:root {
    --popup-width: 704px;
    --popup-height: 498px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
}

body {
    overflow-x: hidden;
}

#popup-apr {
    --blue: #2a3b74;
}


#popup-apr .popup-content {
    width: 700px;
    height: 500px;
    max-height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/hero/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back.jpg") 1x,
            url("../images/hero/popup-back@2x.jpg") 2x);
}

#popup-apr .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}

#popup-apr form {
    margin-top: var(--text-dist);
}

#popup-apr .button {
    width: 11em;
    height: 2.2em;
    border-radius: 1.1em;
    margin-top: 6px;
    font-size: 1.25em;
    padding: 0;
}

#popup-apr .form-action {
    justify-content: center;
    display: flex;
}

#popup-apr .popup-thanks .button {
    width: 10.5em;
    margin-top: 20px;
}

#wheel {
    bottom: unset;
    top: -2em;
}

#popup-apr .thanks {
    left: -2.5%;
}

#popup-apr .form-field .validation-error select,
#popup-apr .form-field .validation-error input,
#popup-apr .form-field .incomplete-mask input {
    border-color: var(--error-border);
    border-width: 2px;
}

#popup-apr .form-field .validation-error label,
#popup-apr .form-field .incomplete-mask label {
    color: var(--error-color);
}

#popup-apr .form-field .select_box.focused:after {
    transform: scaleY(-1);
}

#popup-apr .form-field .focused label,
#popup-apr .form-field .has-value label {
    font-size: 0.84375em;
    margin-top: calc(-2.9em + 24px);
    color: var(--focus-color);
}

#popup-apr .form-field .focused select,
#popup-apr .form-field .focused input {
    border-color: var(--focus-border);
    border-width: 2px;
}

@media screen and (min-width: 568px) {}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-apr .popup-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.jpg") 1x,
                url("../images/hero/popup-back-m@2x.jpg") 2x);
    }

    #popup-apr form {
        margin-top: 21px;
        width: calc(100% - 50px);
    }

    #popup-apr .popup-close {
        width: 47px;
    }

    #popup-apr .thanks {
        width: 100%;
        ;
    }

    #popup-apr .popup-form,
    #popup-apr .popup-inner {
        width: 100%;
    }

    #popup-apr .form-text {
        width: 77%;
    }

    #popup-apr .button {
        font-size: 1.15em;
    }

    #wheel {
        top: unset;
        left: -4%;
    }

    #popup-apr .thanks {
        left: -2%;
        width: 100%;
    }

    #popup-apr .popup-thanks.popup-inner {
        padding: 0 !important;
    }
    .popup-spin {
        height: 100%;
    }
}