.cx_modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(72, 72, 72, 0.66);
    cursor: pointer;
    z-index: 30;
}




.cx_modal__overlay * {
    box-sizing: border-box;
}
.cx_modal__overlay._hidden {
    display: none;
}

.cx_modal {
    position: relative;
    height: auto;
    border-radius: 10px;
    padding: 20px;
    max-width: 70%;
    background: white;
    cursor: default;
    width: 100%;
}

.cx_modal form {
    margin: 0;
}

.cx_modal__button_close {
    font-size: 24px;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
    display: block;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 15px;
    right: 16px;
    border-width: 0;
    border-radius: 0;
    cursor: pointer;
    background: url(../img/modal-close-2.svg) 0 0 no-repeat;
    text-indent: -9999px;
}

.cx_modal__button_close:hover {
    opacity: 0.8;
}

.cx_modal__left {
    float: left;
    width: 50%;
    padding-right: 10px;
}

.cx_modal__right {
    float: right;
    width: 50%;
    padding-left: 10px;
}

.cx_modal__caption {
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
    padding: 0 30px;
}

.cx_modal__field {
    margin-bottom: 10px;
}

.cx_modal__field label {
    font-weight: 400;
    font-size: 14px;
    color: #888888;
    letter-spacing: 0.1px;
    margin-bottom: 0px;
    height: 22px;
    line-height: 1.1;
    display: flex;
    gap: 5px;
    align-items: center;
}

.cx_modal__field > label.required:after {
    display: inline;
    content: ' *';
    color: red;
}

.cx_modal__field input, .cx_modal__field textarea {
    width: 100%;
    /* margin: 0 0 10px; */
    padding: 0 10px;
    height: 37px;
    font-size: 14px;
    color: #3b3b3b;
    background: #F7F7F7;
    border: 1px solid #EEEEEE;
    border-radius: 5px;
    outline: 0;
}

.cx_modal__field input {
    height: 26px;
    line-height: 26px;
    padding: 0 5px;
}

.cx_modal__field textarea {
    padding: 5px;
    resize: none;
    height: 218px;
}

.cx_modal__field_hint {
    display: block;
    color: grey;
    font-size: 12px;
    font-style: italic;
}

.cx_modal__buttons {
    text-align: center;
}

.cx_modal__buttons > input {
    width: 220px;
    height: 43px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-block;
    vertical-align: top;
    margin: 0 auto 20px;
    padding: 10px 10px 9px;
    outline: 0;
    box-shadow: none;
    text-shadow: none;
    font-size: 14px;
    line-height: 23px;
    font-weight: normal;
    color: #2d2d2d;
    background: #ffcc46;
    letter-spacing: -0.2px;
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.cx_modal__buttons > input:hover {
    background: #e9bb44;
    border-color: #e9bb44;
    color: #2d2d2d;
}
.cx_modal__agreements_block {
    font-size: 0.7em;
    color: grey;
}

#oneclickmodalSuccess .cx_modal {
    max-width: 380px;
    border-radius: 0;
    padding: 40px 25px 35px;
}

#oneclickmodalSuccess .oneclickmodalSuccess_title {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
}

#oneclickmodalSuccess .oneclickmodalSuccess_descr {
    font-size: 15px;
    color: #747474;
    margin-bottom: 20px;
}

#oneclickmodalSuccess .oneclickmodalSuccess_close {
    width: 146px;
    height: 45px;
    cursor: pointer;
    padding: 10px 10px;
    font-size: 14px;
    color: #000000;
    background: #ffcc46;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    line-height: 27px;
}

#oneclickmodalSuccess .oneclickmodalSuccess_close:hover {
    background: #e9bb44;
}

@media screen and (max-width: 900px) {
    .cx_modal__overlay {
        font-size: 0.8em;
    }
    .cx_modal__left {
        float: none;
        width: auto;
        padding-right: 0;
    }

    .cx_modal__right {
        float: none;
        width: auto;
        padding-left: 0;
    }

    .cx_modal__field > textarea {
        height: 90px;
    }

    #oneclickmodalSuccess .cx_modal {
        max-width: 285px;
    }

    #oneclickmodalSuccess .oneclickmodalSuccess_title {
        font-size: 18px;
    }

    #oneclickmodalSuccess .oneclickmodalSuccess_descr {
        font-size: 11px;
    }

    #oneclickmodalSuccess .oneclickmodalSuccess_close {
        font-size: 11px;
        line-height: 27px;
    }
}

@media screen and (max-width: 440px) {
    .cx_modal {
        max-width: 95%;
    }
    .cx_modal__buttons {
        margin-top: 10px;
    }
}