body.af-request-modal-open { overflow: hidden; }
.af-request-modal[hidden] { display: none !important; }
.af-request-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; box-sizing: border-box; }
.af-request-modal *, .af-request-modal *::before, .af-request-modal *::after { box-sizing: border-box; }
.af-request-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.af-request-modal__dialog { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #222; border-radius: 6px; padding: clamp(28px, 5vw, 44px); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.af-request-modal__close,
.af-request-modal__close:hover,
.af-request-modal__close:focus { position: absolute; z-index: 5; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d7d7d7; border-radius: 50%; background: #fff; color: #222 !important; opacity: 1 !important; font-family: Arial, sans-serif; font-size: 28px; font-weight: 400; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.af-request-modal__close:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.af-request-modal h2 { padding-right: 42px; }
.af-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.af-request-grid > p { min-width: 0; margin: 0; }
.af-request-modal label { display: block; font-weight: 600; margin-bottom: 6px; }
.af-request-modal input[type="text"], .af-request-modal input[type="email"], .af-request-modal input[type="tel"] { display: block; width: 100%; max-width: 100%; min-width: 0; }
.af-request-summary-wrap { margin: 22px 0; padding: 18px; background: #f6f6f6; overflow: hidden; }
.af-request-summary-wrap h3 { margin-top: 0; }
.af-request-summary__list { display: grid; gap: 10px; }
.af-request-summary__item { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.4fr); gap: 12px 18px; align-items: start; min-width: 0; padding: 12px 14px; background: #fff; border: 1px solid #e4e4e4; border-radius: 6px; }
.af-request-summary__label { min-width: 0; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.af-request-summary__value { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.af-request-consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.af-request-consent input { margin-top: 5px; flex: 0 0 auto; }
.af-request-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.af-request-message { margin: 15px 0; }
.af-request-message.is-success { padding: 12px; background: #edf8ed; border-left: 4px solid #278227; }
.af-request-message.is-error { padding: 12px; background: #fff0f0; border-left: 4px solid #b32d2e; }
.af-request-submit { width: 100%; white-space: normal; }
@media (max-width: 600px) {
    .af-request-modal { align-items: end; padding: 0; }
    .af-request-modal__dialog { width: 100%; max-height: 94dvh; border-radius: 12px 12px 0 0; padding: 28px 18px 22px; }
    .af-request-modal__close, .af-request-modal__close:hover, .af-request-modal__close:focus { position: sticky; top: 0; float: right; margin: -12px -4px 0 12px; }
    .af-request-modal h2 { padding-right: 0; font-size: clamp(24px, 8vw, 32px); }
    .af-request-grid { grid-template-columns: 1fr; gap: 12px; }
    .af-request-summary-wrap { margin: 18px 0; padding: 14px; }
    .af-request-summary__list { gap: 10px; }
    .af-request-summary__item { display: block; width: 100%; padding: 13px 14px; border-radius: 8px; }
    .af-request-summary__label { display: block; margin: 0 0 5px; font-size: 12px; line-height: 1.3; letter-spacing: .035em; text-transform: uppercase; color: #666; }
    .af-request-summary__value { display: block; font-size: 16px; line-height: 1.45; color: #222; }

}

@media (max-width: 380px) {
    .af-request-modal__dialog { padding-left: 14px; padding-right: 14px; }
    .af-request-summary-wrap { margin-left: -2px; margin-right: -2px; padding: 10px; }
    .af-request-summary__item { padding: 12px; }
}
