/* The demo request stays on the page that prompted it. */
html.s-demo-open { overflow: hidden; }
.s-demo-open .s-dock, .s-demo-open .s-wa { visibility: hidden; }
.s-demo-modal { position: fixed; inset: 0; margin: auto; padding: 0; width: min(920px, calc(100% - 48px)); max-width: 100%; max-height: calc(100dvh - 48px); border: 1px solid var(--line-2); border-radius: 24px; background: #fff; color: var(--ink-2); box-shadow: 0 32px 100px rgba(17, 32, 80, .22); overflow: hidden; }
.s-demo-modal::backdrop { background: rgba(14, 23, 50, .48); backdrop-filter: blur(4px); }
.s-demo-modal__frame { display: grid; grid-template-columns: 270px minmax(0, 1fr); height: min(680px, calc(100dvh - 48px)); }
.s-demo-modal__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 30px 26px; background: linear-gradient(150deg, #f0f4ff, #e6eeff); border-right: 1px solid #dfe7fc; }
.s-demo-modal__intro .s-logo { font-size: 18px; gap: 8px; font-weight: 750; letter-spacing: -.04em; }
.s-demo-modal__intro .s-logo img { flex: none; border-radius: 9px; }
.s-demo-modal__eyebrow { color: var(--blue); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.s-demo-modal__headline { color: var(--ink); font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.s-demo-modal__lead { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 16px; }
.s-demo-modal__points { display: grid; gap: 18px; margin-top: 28px; }
.s-demo-modal__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; }
.s-demo-modal__points i { flex: none; color: var(--blue); font-size: 16px; }
.s-demo-modal__note { font-size: 11px; line-height: 1.8; color: var(--muted); padding-top: 20px; border-top: 1px solid #d4dff6; }
.s-demo-modal__main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.s-demo-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: none; padding: 28px 28px 23px; border-bottom: 1px solid var(--line); }
.s-demo-modal__head h2 { font-size: 27px; line-height: 1.3; font-weight: 750; letter-spacing: -.04em; }
.s-demo-modal__head h2:focus { outline: none; }
.s-demo-modal__head p { margin-top: 7px; max-width: 40ch; color: var(--muted); font-size: 12px; line-height: 1.7; }
.s-demo-modal__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -5px -5px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; color: var(--ink); font-size: 29px; line-height: 1; }
.s-demo-modal__close span { margin-top: -3px; }
.s-demo-modal__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px 28px 28px; }
.s-demo-form { display: grid; gap: 20px; position: relative; }
.s-demo-form[hidden], .s-demo-success[hidden], .s-demo-form [hidden] { display: none; }
.s-demo-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.s-demo-form .s-field { min-width: 0; gap: 7px; }
.s-demo-form label { font-size: 12px; }
.s-demo-form label > span { color: var(--blue); }
.s-demo-form label small { font-size: 10px; }
.s-demo-form .s-input { height: 46px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.s-demo-form textarea.s-input { min-height: 80px; height: 80px; padding: 11px 12px; }
.s-demo-form .s-error { font-size: 11px; line-height: 1.6; }
.s-demo-form__alert { padding: 11px 13px; border: 1px solid #f1d2d2; border-radius: 10px; background: #fff6f6; color: var(--red-ink); font-size: 12px; line-height: 1.7; }
.s-demo-form__foot { display: grid; gap: 14px; padding-top: 2px; }
.s-demo-form__foot p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.s-demo-form__foot p i { color: var(--blue); }
.s-demo-form__foot .s-btn { min-height: 48px; width: 100%; gap: 16px; font-size: 14px; border-radius: 11px; }
.s-demo-form__foot .s-btn:disabled { opacity: .65; cursor: wait; }
.s-demo-success { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 100%; padding: 24px 12px; text-align: center; }
.s-demo-success:focus { outline: none; }
.s-demo-success__icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--blue); border: 1px solid #dae3ff; border-radius: 20px; background: #edf2ff; font-size: 34px; }
.s-demo-success h3 { color: var(--ink); font-size: 25px; line-height: 1.3; font-weight: 750; letter-spacing: -.04em; }
.s-demo-success p { max-width: 35ch; color: var(--muted); font-size: 14px; line-height: 1.9; }
.s-demo-success .s-btn { min-height: 48px; margin-top: 8px; gap: 16px; }
@media (max-width: 900px) {
    .s-demo-modal { width: min(600px, calc(100% - 40px)); }
    .s-demo-modal__frame { grid-template-columns: minmax(0, 1fr); }
    .s-demo-modal__intro { display: none; }
}
@media (max-width: 599px) {
    .s-demo-modal { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
    .s-demo-modal__frame { height: 100dvh; }
    .s-demo-modal__head { padding: max(20px, env(safe-area-inset-top)) 20px 19px; }
    .s-demo-modal__head h2 { font-size: 25px; }
    .s-demo-modal__body { padding: 23px 20px max(28px, env(safe-area-inset-bottom)); }
    .s-demo-form__fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .s-demo-form label { font-size: 13px; }
    .s-demo-form label small { font-size: 11px; }
    .s-demo-form .s-input { font-size: 16px; height: 48px; }
    .s-demo-form__foot p { font-size: 11px; }
}
@media (max-height: 600px) and (min-width: 600px) {
    .s-demo-modal { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 24px); }
    .s-demo-modal__frame { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 24px); }
    .s-demo-modal__intro { display: none; }
    .s-demo-modal__head { padding-top: 16px; padding-bottom: 14px; }
    .s-demo-modal__head h2 { font-size: 23px; }
    .s-demo-modal__head p { margin-top: 3px; }
    .s-demo-modal__body { padding-top: 18px; }
}
