.callback-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.callback-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.callback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 36, 35, 0.78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.callback-modal__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 48px;
    border-radius: 18px;
    background: var(--white, #fff);
    box-shadow: 0 24px 80px rgba(2, 36, 35, 0.3);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.3s ease;
}

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

.callback-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--header, #022423);
    background: var(--bg-2, #f5f5f5);
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.callback-modal__close:hover {
    color: var(--header, #022423);
    background: var(--theme, #ffb700);
}

.callback-modal__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #b57e00;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.callback-modal__dialog h2 {
    margin: 0 52px 10px 0;
    color: var(--header, #022423);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.1;
}

.callback-modal__intro {
    margin: 0 0 26px;
    color: var(--text, #577d7d);
}

.callback-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.callback-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.callback-form__field:nth-of-type(n + 4),
.callback-form__consent,
.callback-form__submit,
.callback-form__message {
    grid-column: 1 / -1;
}

.callback-form__field label {
    color: var(--header, #022423);
    font-size: 14px;
    font-weight: 700;
}

.callback-form__field input,
.callback-form__field textarea {
    width: 100%;
    border: 1px solid #cad2d2;
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--header, #022423);
    background: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.callback-form__field input:focus,
.callback-form__field textarea:focus {
    border-color: var(--theme, #ffb700);
    box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.16);
}

.callback-form__field textarea {
    min-height: 96px;
    resize: vertical;
}

.callback-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text, #577d7d);
    font-size: 13px;
    line-height: 1.45;
}

.callback-form__consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--theme, #ffb700);
}

.callback-form__consent a {
    color: #8b6200;
    text-decoration: underline;
}

.callback-form__submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.callback-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.callback-form__message {
    display: none;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.callback-form__message.is-success,
.callback-form__message.is-error {
    display: block;
}

.callback-form__message.is-success {
    color: #14532d;
    background: #dcfce7;
}

.callback-form__message.is-error {
    color: #991b1b;
    background: #fee2e2;
}

.callback-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.callback-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .callback-modal {
        padding: 12px;
    }

    .callback-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 38px 22px 26px;
        border-radius: 14px;
    }

    .callback-form {
        grid-template-columns: 1fr;
    }

    .callback-form__field,
    .callback-form__consent,
    .callback-form__submit,
    .callback-form__message {
        grid-column: 1;
    }
}
