form {
    font-family: din-2014, sans-serif;
    font-weight: 400;
    color: var(--blue);
    font-size: 16px;
}

form input[type=text], /* will only select text fields */
form input[type=email], /* will only select email 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;
    background-color: #FFF;
    box-sizing: border-box;
    appearance: none;
    border: none;
    border-bottom: 2px solid var(--blue);
}

form textarea {
    /*height: 60px;*/
    min-height: 60px;
    resize: vertical;
}

form .w100 input,
form .w100 textarea,
form .w100 select,
form .w100 button,
form .w100 {
    width: 100%;
    box-sizing: border-box;
}

form button[type=submit] {
    padding: 9px 24px 9px 24px;
    border: none;
    appearance: none;
    cursor: pointer;
}

/* Checkbox */
label.checkbox {
    line-height: 19px;
    padding: 5px 20px 5px 30px;
    vertical-align: bottom;
    display: inline-block;
    color: var(--blue);

    user-select: none;
}

label.checkbox input { display: none;}

label.checkbox span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #FFF;
    border: 2px solid var(--blue);
    content: ' ';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
    border-radius: 5px;
}

label.checkbox:hover span { border-color: var(--l-blue1); }

label.checkbox input:checked + span {
    position: relative;
    background-color: var(--blue);
    border-color: var(--blue);
}

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 .mgLoader { display: none; } ???*/

form.disabled .mgLoader {
    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;
}

.mgLoader .circular {
    animation: loaderRotate 2s linear infinite;
    height: 48px;
    position: relative;
    width: 48px;
}

.mgLoader .path {
    stroke-dasharray: 1,200;
    stroke-dashoffset: 0;
    animation: loaderDash 1.5s ease-in-out infinite;
    stroke-linecap: round;
    stroke: var(--blue);
}

@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;
    }
}
/* <<<<<< */

/* formerror */
.mgErrorTooltip {
    position: absolute;
    max-width: 520px;
    padding: 7px 20px 7px 10px;
    text-align: left;
    border-radius: 4px;
    color: #FFF;
    background-color: #D70000;
    box-shadow: 1px 1px 3px 0 rgba(0, 0 ,0, 0.35);
    margin-top: 3px;
    z-index: 1;
}

/* INFO: top left arrow */
.mgErrorTooltip:after {
    height: 0;
    width: 0;
    bottom: 100%;
    left: 25px;
    border: solid transparent;
    content: " ";
    position: absolute;
    border-bottom-color: #D70000;
    border-width: 7px;
    margin-left: -7px;
}
/* <<<<<< */

/*SUCCESS START*/
svg.success path:first-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: success-dash 5s linear forwards;
}

svg.success path:last-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: success-dash 5s linear forwards;
    animation-delay: .5s;
}

@keyframes success-dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}
/*SUCCESS END*/

/*FAIL START*/
svg.failed path:first-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
}

svg.failed path:nth-child(2) {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
    animation-delay: .4s;
}

svg.failed path:last-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
    animation-delay: .6s;
}

@keyframes failed-dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}
/*FAIL END*/