form {
    font-family: sans-serif;
    font-size: 14px;
    color: #000;
}

form legend {
    padding: 8px 0 8px 2px;
    color: #555;
}

form legend.required::after {
    content: ' *';
    color: #D70000;
}

form input[type=text], /* will only select text fields */
form input[type=email], /* will only select email fields */
form input[type=tel], /* will only select tel fields */
form input[type=password], /* will only select password fields */
form textarea,
form select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;

    margin: 0;
    padding: 4px 8px;
    line-height: 24px;

    border: 1px solid #CCC;
    border-radius: 0;
    background-color: #FFF;

    box-sizing: border-box;

    appearance: none;
}

form textarea {
    height: 60px;
    min-height: 60px;
    resize: vertical;
}

/* remove dropdown arrow on IE from select */
form select::-ms-expand { display: none; }

/* TODO: replace down.svg with ::after -> see label.checkbox */
/* INFO: https://stackoverflow.com/questions/3532649/problem-with-select-and-after-with-css-in-webkit; */
form select {
    background-image: url(/svg/form/down.svg);
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: right center;
    padding: 4px 30px 4px 6px;
}
/* <-- */

form .w100 input,
form .w100 textarea,
form .w100 select,
form .w100 button,
form .w100 {
    width: 100%;
    box-sizing: border-box;
}

form button[type=submit] {
    font-family: inherit;
    color: inherit;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;

    background-color: var(--green);
    color: var(--white);
    padding: 10px 20px;

    border: none;
    appearance: none;
}

form button[type=submit]:hover {
    background-color: var(--blue);
    cursor: pointer;
}

/* Checkbox */
label.checkbox {
    line-height: 19px;
    padding: 5px 20px 5px 30px;
    vertical-align: bottom;
    display: inline-block;

    user-select: none;
}

label.checkbox input { display: none;}

label.checkbox span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #FFF;
    border: 1px solid #CCC;
    content: ' ';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
}

label.checkbox:hover span { border-color: #1CC664;}

label.checkbox input:checked + span {
    position: relative;
    background-color: #1CC664;
    border-color: #1CC664;
}

label.checkbox input:checked + span::before {
    position: absolute;
    display: block;
    content: ' ';
    border-bottom: 2px solid #FFF;
    border-right: 2px solid #FFF;
    width: 4px;
    height: 8px;
    top: 3px;
    left: 6px;
    transform: rotate(45deg);
}
/* <<< */

/* LOADER */
form.disabled {
    position: relative;
}

/*form .xLoader { display: none; } ???*/

form.disabled .xLoader {
    position: absolute;
    inset: 0;
    background-color: #FFFFFF99; /* INFO: body background-color + alpha 99 */

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    opacity: 0;
    transition: opacity 0.5s ease;
}

.xLoader .circular {
    animation: loaderRotate 2s linear infinite;
    height: 48px;
    position: relative;
    width: 48px;
}

.xLoader .path {
    stroke-dasharray: 1,200;
    stroke-dashoffset: 0;
    animation: loaderDash 1.5s ease-in-out infinite;
    stroke-linecap: round;
    stroke: #1CC664;
}

@keyframes loaderRotate {
    100%{ transform: rotate(360deg); }
}

@keyframes loaderDash {
    0%{
        stroke-dasharray: 1,200;
        stroke-dashoffset: 0;
    }
    50%{
        stroke-dasharray: 89,200;
        stroke-dashoffset: -35;
    }
    100%{
        stroke-dasharray: 89,200;
        stroke-dashoffset: -124;
    }
}
/* <<<<<< */
