@charset "UTF-8";
/* ============================================================
   MODAL CALLBACK
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Окно ── */
.modal {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: #111;
    border: 1px solid var(--linii);
    border-radius: 20px;
    padding: 50px;
    box-sizing: border-box;
    overflow: hidden;

    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
}

.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}

/* Декор свечение */
.modal__glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-zheltyj);
    opacity: .06;
    filter: blur(60px);
    pointer-events: none;
}

/* Кнопка закрыть */
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--linii);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232,232,232,.5);
    transition: border-color .2s, color .2s;
    z-index: 2;
}

.modal__close:hover {
    border-color: rgba(255,219,115,.4);
    color: #FFDB73;
}

/* ── Контент ── */
.modal__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.modal__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__title {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
    margin: 0;
}

.modal__subtitle {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
    margin: 0;
    opacity: .7;
}

/* ── Форма ── */
.modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__field {
    align-self: stretch;
}

.modal__input {
    width: 100%;
    background: rgba(21,21,21,.8);
    border-radius: 11px;
    border: 1px solid #323232;
    padding: 0 19px;
    height: 54px;
    color: rgba(255,255,255,.8);
    -webkit-text-fill-color: rgba(255,255,255,.8);
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}

.modal__input::placeholder {
    color: rgba(255,255,255,.4);
    -webkit-text-fill-color: rgba(255,255,255,.4);
}

.modal__input:focus {
    border-color: rgba(255,219,115,.5);
    color: #FFDB73;

}

.modal__input.is-error {
    border-color: #e74c3c;
    animation: modal-shake .4s ease;
}

/* Кнопка + согласие */
.modal__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.modal__input:hover {

    background: #282828 url('/wp-content/uploads/2026/05/input-hover.png') left center / 100% auto no-repeat;
}
.modal__btn {
    background: var(--gradient-zheltyj);
    border-radius: 5px;
    padding: 18px 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-bebas);
    font-size: 22px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}



.modal__btn:hover { background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%); }


/* Согласие */
.modal__agree {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}

.modal__agree-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modal__agree-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--linii);
    background: transparent;
    margin-top: 2px;
    position: relative;
    transition: border-color .2s, background .2s;
}

.modal__agree-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 6px;
    height: 10px;
    border: 2px solid var(--color-black);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity .2s;
}

.modal__agree-input:checked + .modal__agree-box {
    background: var(--gradient-zheltyj);
    border-color: #FFDB73;
}

.modal__agree-input:checked + .modal__agree-box::after { opacity: 1; }
.modal__agree-box.is-error { border-color: #e74c3c; }

.modal__agree-text {
    color: rgba(255,255,255,.5);
    -webkit-text-fill-color: rgba(255,255,255,.5);
    font-family: var(--font-myriad);
    font-size: 13px;
    line-height: 16px;
}

.modal__agree-link {
    color: rgba(255,255,255,.5);
    -webkit-text-fill-color: rgba(255,255,255,.5);
    text-decoration: underline;
}

/* Сообщение */
.modal__message {
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-myriad);
    font-size: 15px;
    line-height: 1.4;
}

.modal__message[hidden] { display: none; }

.modal__message--success {
    background: rgba(53,191,74,.15);
    border: 1px solid rgba(53,191,74,.4);
    color: #35bf4a;
    -webkit-text-fill-color: #35bf4a;
}

.modal__message--error {
    background: rgba(231,76,60,.15);
    border: 1px solid rgba(231,76,60,.4);
    color: #e74c3c;
    -webkit-text-fill-color: #e74c3c;
}

/* ── Экран успеха ── */
.modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal__success[hidden] { display: none; }

.modal__success-title {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 38px;
    line-height: 41px;
    font-weight: 700;
    margin: 0;
}

.modal__success-text {
    color: rgba(232,232,232,.6);
    -webkit-text-fill-color: rgba(232,232,232,.6);
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 24px;
    margin: 0;
}

@keyframes modal-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ── Адаптив ── */
@media (max-width: 599px) {
    .modal {
        padding: 40px 24px;
    }

    .modal__title {
        font-size: 30px;
    }
}