section.contacts {
    text-align: center;
}

section.contacts h3 {
    color: var(--white);
    margin: 20px 0;
}

section.contacts p {
    margin: 20px 0;
}

/* ICON SET */
picture.icon {
    display: inline-block;
    border-radius: 50%;
}

picture.icon img {
    padding: 20px;
}

picture.icon.orange {
    background-color: var(--orange);
}
/* <<< */

/* FORM CONTACTS */
form.contacts input[type=text], /* will only select text fields */
form.contacts input[type=email], /* will only select email fields */
form.contacts textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;

    margin: 0;
    padding: 10px 15px;
    line-height: 24px;
    width: 100%;

    border: 1px solid #555;
    border-radius: 0;
    background-color: #222C35;

    box-sizing: border-box;

    appearance: none;
}

form.contacts textarea {
    height: 60px;
    min-height: 60px;
    resize: vertical;
}

form.contacts input[type=text]:focus,
form.contacts input[type=email]:focus,
form.contacts textarea:focus {
    border-color: var(--orange);
}

form.contacts button[type=submit] {
    font-family: inherit;
    font-size: 18px;
    color: inherit;

    background-color: var(--orange);
    border: 1px solid var(--orange);
    color: #FFF;
    padding: 10px 20px;

    appearance: none;
}

form.contacts button[type=submit]:hover {
    background-color: transparent;
    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: transparent;
    border: 1px solid #555;
    content: '';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
}

label.checkbox:hover span { border-color: var(--orange); }

label.checkbox input:checked + span {
    position: relative;
    background-color: var(--orange);
    border-color: var(--orange);
}

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;
    opacity: 0.5;
}

/*form.contacts .mgLoader { display: none; } ???*/

form.disabled .mgLoader {
    position: absolute;
    inset: 0;

    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(--orange);
}

@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*/
/* <<< */

section iframe {
    width: 100%;
    filter: invert(95%) hue-rotate(195deg) sepia(.5);
}


@media (orientation: landscape) {
    section iframe {
        aspect-ratio: 4 / 2;
    }
}

@media (orientation: portrait) {
    section iframe {
        aspect-ratio: 1 / 1;
    }
}