/*
CSS Spécifique aux inputs
*/

/*
Fieldset
*/

.stdform legend {
    font: normal normal bold 1.8rem/2.7rem Roboto;
    color: #000000;
}

/*
INPUT
*/

.stdform .field {
    margin-bottom: 3rem;
    margin-top: 4.5rem;
    position: relative;
}

/**
  * Add a transition to the label and input.
  * I'm not even sure that touch-action: manipulation works on
  * inputs, but hey, it's new and cool and could remove the 
  * pesky delay.
  */
.stdform .field label,
.stdform .field input {
    transition: all 0.2s;
    touch-action: manipulation;
}

.stdform .field input:not([type="checkbox"]):not([type="radio"]) {
    color: #212121;
    padding: 0;
    display: block;
    width: 100%;
    max-width: 40.5rem;
    border: none;
    border-bottom: 1px solid #757575;
    font-weight: normal;
   /* margin:1.9rem 0 2.2rem 0;*/
    padding-left: 1px;
    background-color: transparent;
}

@media (max-device-width: 583.98px) {
    .stdform .field input:not([type="checkbox"]):not([type="radio"]) {
        width:100%
    }
}

@media (max-device-width: 767.98px) and (min-device-width: 576px){
    .stdform .field input:not([type="checkbox"]):not([type="radio"]) {
        width:30.5rem;
    }
}

.stdform .field input:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-bottom: 1px solid #666;
}

/**
  * Translate down and scale the label up to cover the placeholder,
  * when following an input (with placeholder-shown support).
  * Also make sure the label is only on one row, at max 2/3rds of the
  * field—to make sure it scales properly and doesn't wrap.
  */
.stdform .field input:placeholder-shown + label {
    cursor: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-origin: left bottom;
    transform: translate(0, 1.8rem);
    font-weight: normal;
}

/**
  * By default, the placeholder should be transparent. Also, it should 
  * inherit the transition.
  */
::-webkit-input-placeholder {
    opacity: 0;
    transition: inherit;
}
/**
  * Show the placeholder when the input is focused.
  */
.stdform .field input:focus::-webkit-input-placeholder {
    opacity: 1;
}
/**
  * When the element is focused, remove the label transform.
  * Also, do this when the placeholder is _not_ shown, i.e. when 
  * there's something in the input at all.
  */
.stdform .field input:not(:placeholder-shown) + label,
.stdform .field input:focus + label {
    transform: translate(0, 0);
    cursor: pointer;
    color: #707070 !important;
    font-size: 80%;
}

.stdform .field input:focus {
    outline: none;
}

.stdform .field label {
    bottom: 1.9rem;
    margin: 0;
    color: #000000;
    position: absolute;
    pointer-events: none;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
    font: normal normal normal 1.6rem/2.1rem Roboto;
}

.stdform .field label .small {
    color: #707070;
    font-size: 80%;
    font-weight: 300;
}

.stdform .field input:disabled {
    opacity: 0.5;
}

/*
  En dessous des inputs
*/

.input-verify {
    float: left;
    margin-top: -3%;
    font-size: 12px;
    color: #212121;
}

.badge-input-verify {
    background-color: #c6c6c6;
    color: #000000;
    font-size: 10px;
}

.badge-valid {
    background-color: #c0d99d;
}

/*
* CheckBox
*/

.ej-checkbox {
    width: unset;
    margin-top: 0.3rem;
}

.ej-checkbox-label {
    text-align: left;
    letter-spacing: 0rem;
    opacity: 1;
    margin-left: 1rem;
    font-size: 1.6rem;
}

input:not(:placeholder-shown) + .ej-checkbox-label,
input:focus + .ej-checkbox-label {
    color: #000000 !important;
}





.stdform input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3cpath d='M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z' fill='%23707070' /%3e%3c/svg%3e");
  background-repeat: no-repeat;
  width: 1.5rem;
  height: 1.5rem;
}

.stdform label>input[type="checkbox"] {
    margin-right: 0.7rem;
    margin-top: 0.2rem;

}

_:-ms-fullscreen, :root .stdform input[type="checkbox"] {
    background-repeat: round;
}

.stdform input[type="checkbox"] + span {
    color: #212121;
}
.stdform input[type="checkbox"] + span.small {
    font: normal normal normal 1.2rem/1.8rem Roboto;
}
.stdform input[type="checkbox"]:disabled + label {
    opacity: 0.5;
}
.stdform input[type="checkbox"]::-ms-check {
    display: none; /* unstyle IE checkboxes */
}
.stdform input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3cpath d='M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z' fill='%23005F85' /%3e%3c/svg%3e");
}


/*
Buttons
*/


.stdform button {
    font: normal normal normal 1.6rem/2.4rem Roboto;
    color: #FFFFFF;
    background: #0267C1 0% 0% no-repeat padding-box;
    border-radius: .5rem;
    padding: .7rem 1.6rem;
    margin: 2rem 0 2rem; 
}


/*
Erreurs
*/

.error {
    font-weight: normal;
    color: #D90000;
}
/* Erreur directement au niveau du formulaire, pour les CSRF par exemple */
.stdform>span.form-error {
    display: block;
    font: normal normal normal 1.2rem/1.4rem Roboto;
    color: #D90000;
    padding-top: 0.2rem;
}

.stdform .field input + label + span.form-error {
    position: absolute;
    font: normal normal normal 1.2rem/1.4rem Roboto;
    color: #D90000;
    padding-top: 0.2rem;
}

form.stdform.show_invalid .field input:invalid,
form.stdform.show_invalid .field input.invalid {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20512'%3E%3Cpath%20fill='%23D90000'%20d='M64%20400c-17.67%200-32%2014.32-32%2031.99s14.33%2032%2032%2032s32-14.33%2032-32S81.67%20400%2064%20400zM64%20352c8.844%200%2016-7.166%2016-16.01v-288c0-8.844-7.156-15.99-16-15.99S48%2039.16%2048%2048v288C48%20344.8%2055.16%20352%2064%20352z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 0.4rem;
    background-position: right 0.5rem;
}

.stdform input[type="checkbox"] ~ span.form-error {
    font: normal normal normal 1.2rem/1.4rem Roboto;
    color: #D90000;
    padding-top: 0.2rem;
    margin-left: 2.2rem;
}

