/*--------------------------------------------------------------------------*\
    Container of input, unit, search icon, link etc..
    ->  has border-color and background and give a visual feed-back
        to the user while input or blur
    (label and flash are outside this container)
\*--------------------------------------------------------------------------*/

.control__field {
    /*box*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;

    /*background*/
    background-color: var(--c-tertiary-3);

    /*border*/
    border-width: 2px;
    border-style: solid;
    border-color: var(--c-tertiary-2);
    border-radius: 5px;

    /*transition*/
    -webkit-transition: border-color 0.5s, background-color 0.5s;
    transition: border-color 0.5s, background-color 0.5s;
}

.control:not(.is-focus) .control__field:hover,
.control.is-focus .control__field {
    /*border*/
    border-color: var(--c-cta-2);
}

.control.is-focus .control__field {
    /*background*/
    background-color: var(--c-tertiary-4);
}

/*--------------------------------------------------------------------------*\
	    Case of a field inside another field
        (example: a select next to an input)
\*--------------------------------------------------------------------------*/

.control--encapsulated .control__field {
    /*box*/
    width: auto !important;

    /*border*/
    border-width: 0px !important;
    border-radius: 0px !important;
    border-left: 1px dashed var(--c-tertiary-1) !important;
}

/*--------------------------------------------------------------------------*\
	    Error on field
\*--------------------------------------------------------------------------*/

.control.is-error .control__field {
    /*border*/
    border-color: var(--c-error-primary-2) !important;
}