: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;
}

/* html,
body {
    overflow-x: hidden;
} */

/* .scolllock-on {
    overflow: auto!important;
} */

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


#popup-apr .popup-content {
    width: 700px;
    height: 500px;
    max-height: 100%;
}

#popup-apr .popup-default {
    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-thanks {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/hero/thanks-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/thanks-back.jpg") 1x,
            url("../images/hero/thanks-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: 9em;
    height: 2.2em;
    border-radius: 1.1em;
    margin-top: 6px;
    font-size: 1.25em;
    padding: 0;
    background-color: #ffc32c;
}

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

#popup-apr .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
    width: 10em;
}

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

#popup-apr .button:hover,
#popup-apr .button:active,
#popup-apr .button:visited,
#popup-apr .button:focus {
    color: black;
    text-decoration: none;
}

@supports (background: -webkit-named-image(i)) {
  #popup-apr .button {
    padding-top: 2px;
  }
}

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

@media screen and (max-width: 567px) {

    html,
    body {
        overflow-x: hidden;
    }

    :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%;
    }

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

    #popup-apr .popup-default {
        background-position: bottom right;
        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 .popup-thanks {
        background-position: bottom right;
        background-image: url(../images/hero/thanks-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/thanks-back-m.jpg") 1x,
                url("../images/hero/thanks-back-m@2x.jpg") 2x);
    }

    #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: 0;
    }

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

    #popup-apr .popup-thanks.popup-inner {
        padding: 0 !important;
    }
}