.modal-form .modal-form-layout.callback-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: calc(100% - 32px);
    max-width: 614px;
    height: auto;
    max-height: calc(100% - 32px);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 12px;
    background: var(--ui-surface);
    color: #333;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
}

.callback-modal__content {
    position: relative;
    padding: 32px 40px 40px;
}

.callback-modal:focus { outline: none; }

.callback-modal .mf-header {
    margin-bottom: 32px;
    padding-right: 42px;
}

.callback-modal .mf-header h3 {
    color: inherit;
    font-size: 32px;
    line-height: 1.3;
}

.callback-modal .mf-close {
    position: absolute;
    top: 30px;
    right: 32px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 6px;
    border: 0;
    border-radius: var(--ui-radius);
    background: transparent;
    color: #000;
}

.callback-modal .mf-close:hover { background: var(--ui-choice-hover); }
.callback-modal .mf-close svg { width: 28px; height: 28px; }
.callback-modal .mf-body { padding: 0; overflow: visible; }

.form.business-request.callback-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-areas:
        "label label"
        "phone submit"
        "consent consent"
        "captcha captcha";
    align-items: start;
    column-gap: 12px;
    min-width: 0;
}

.callback-form__label { grid-area: label; }
.callback-form__phone { grid-area: phone; }
.callback-form__consent { grid-area: consent; margin-top: 18px; }
.callback-form__captcha { grid-area: captcha; }
.callback-form > .btn { grid-area: submit; }

.callback-modal .callback-form__label { font-size: 18px; }
.callback-modal .callback-form__phone input {
    height: 64px;
    padding: 12px 16px;
    border-radius: 12px;
}

.callback-modal .callback-form__phone input.parsley-error { border-color: #e35d5d; }
.callback-modal .callback-form__phone input:focus-visible {
    outline: 2px solid var(--ui-focus);
    outline-offset: 2px;
}

.callback-modal .callback-form .gdpr-checkbox-wrapper {
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0;
    font-weight: 400;
    line-height: 1.45;
}

.callback-modal .callback-form .gdpr-checkbox-wrapper input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
    padding: 0;
    accent-color: var(--ui-home);
}

.callback-modal .gdpr-checkbox-wrapper .frm-label-text {
    position: relative;
    flex: 1 1 calc(100% - 22px);
    min-width: 0;
    padding-left: 12px;
}

.callback-modal .gdpr-checkbox-wrapper .text-danger {
    position: absolute;
    left: 0;
    margin: 0;
    color: #85388c;
}

.callback-modal .gdpr-checkbox-wrapper .parsley-errors-list.filled {
    order: 1;
    flex: 0 0 100%;
}

.callback-modal .callback-form > .btn,
.callback-modal .callback-chat__action {
    min-height: 60px;
    padding: 14px 12px;
    font-size: 20px;
    font-weight: 600;
}

.callback-modal .callback-form > .btn { min-height: 64px; }

.callback-chat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 166px;
    gap: 18px 28px;
    padding: 32px 24px 40px 40px;
    background: radial-gradient(ellipse at 94% 54%, var(--ui-surface), transparent 55%), #dfe8fc;
}

.callback-chat p {
    grid-column: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.callback-chat__action {
    grid-column: 1;
    --ui-tone: #333;
}

.callback-chat__status {
    grid-column: 1 / -1;
    font-size: 16px;
    line-height: 1.5;
}

.callback-chat__status a { display: inline-block; font-weight: 600; }

.callback-chat__art {
    position: relative;
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
    aspect-ratio: 166 / 130;
    pointer-events: none;
}

.callback-chat__art img {
    position: absolute;
    top: -11%;
    left: -20%;
    width: 129%;
    max-width: none;
    height: auto;
    mask-image: linear-gradient(to right, transparent, #000 12% 94%, transparent),
        linear-gradient(to bottom, transparent, #000 12% 91%, transparent);
    mask-composite: intersect;
}

@media (max-width: 575px) {
    .callback-modal__content { padding: 24px 20px; }
    .callback-modal .mf-header { margin-bottom: 24px; }
    .callback-modal .mf-header h3 { font-size: 24px; }
    .callback-modal .mf-close { top: 19px; right: 13px; }

    .form.business-request.callback-form {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "label" "phone" "consent" "captcha" "submit";
    }

    .callback-modal .callback-form__label { font-size: 16px; }
    .callback-modal .callback-form__phone input { height: 54px; }
    .callback-modal .callback-form > .btn { margin-top: 18px; }
    .callback-modal .callback-form > .btn,
    .callback-modal .callback-chat__action { min-height: 52px; font-size: 18px; }

    .callback-chat {
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 16px 8px;
        padding: 20px;
    }

    .callback-chat p { font-size: 16px; }
    .callback-chat__art { grid-row: 1; }
    .callback-chat__action { grid-column: 1 / -1; }
}
