.callback-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
}

.callback-modal.is-open {
    display: block;
}

.callback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(48, 29, 36, 0.5);
}

.callback-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 32px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(34, 21, 28, 0.25);
}

.callback-modal__content {
    padding: 26px 32px 34px;
}

.callback-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #9d9aa2;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.callback-modal__title {
    margin: 14px 0 34px;
    color: #24314a;
    font-size: 27px;
    line-height: 1.18;
    text-align: center;
    font-weight: 700;
}

.callback-form__field {
    margin-bottom: 16px;
}

.callback-form__field input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #e6e2e2;
    border-radius: 24px;
    color: #24314a;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.callback-form__field input:focus {
    border-color: #ffbe92;
    box-shadow: 0 0 0 3px rgba(255, 190, 146, 0.18);
}

.callback-form__field input.error {
    border-color: #e77070;
    box-shadow: 0 0 0 3px rgba(231, 112, 112, 0.14);
}

.callback-form__message {
    min-height: 22px;
    margin: 4px 0 14px;
    color: #6b7381;
    font-size: 14px;
    text-align: center;
}

.callback-form__message.is-error {
    color: #c25353;
}

.callback-form__message.is-success {
    color: #44925c;
}

.callback-form__submit {
    display: block;
    width: 182px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffd0a6 0%, #ffbb87 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.callback-form__submit:hover {
    background: linear-gradient(180deg, #ffc698 0%, #ffb278 100%);
}

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

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

@media (max-width: 420px) {
    .callback-modal__dialog {
        max-width: calc(100% - 20px);
        margin: 16px auto;
    }

    .callback-modal__content {
        padding: 22px 18px 28px;
    }

    .callback-modal__title {
        margin-top: 26px;
        font-size: 24px;
    }

    .callback-form__submit {
        width: 100%;
    }
}
