/* 30-minute demo booking: pop-up dialog + demo.php */
.demo-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); }
.demo-dialog[open] { display: flex; flex-direction: column; animation: demo-in .22s ease; }
.demo-dialog::backdrop { background: rgba(4, 12, 31, .62); backdrop-filter: blur(3px); }
@keyframes demo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.demo-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; background: linear-gradient(135deg, #071530, #0B2A6B); color: #fff; flex: none; }
.demo-dialog__head h2 { color: #fff; font-size: 22px; margin: 0; }
.demo-dialog__head .eyebrow { margin-bottom: 6px; color: var(--sky-400); }
.demo-dialog__close { color: #fff; flex: none; }
.demo-dialog__close:hover { background: rgba(255, 255, 255, .12); }
.demo-dialog__body { padding: 22px 26px 26px; overflow-y: auto; }
body.demo-open { overflow: hidden; }

.demo-note { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--sky-100); border: 1px solid #C9DCFB; }
.demo-note p { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.demo-note__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--btn-blue); color: #fff; display: grid; place-items: center; }
.demo-note__icon .icon { width: 22px; height: 22px; }

.demo-form .form__grid { gap: 14px 18px; }
.demo-form .field input, .demo-form .field select, .demo-form .field textarea { padding: 11px 13px; }
.demo-form .field textarea { min-height: 84px; }
.demo-form__alert { margin-bottom: 14px; }
.demo-days { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo-days legend { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; padding: 0; }
.demo-days legend small { color: var(--muted); font-weight: 400; }
.demo-days__list { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-day { position: relative; cursor: pointer; }
.demo-day input { position: absolute; opacity: 0; }
.demo-day span { display: inline-block; min-width: 64px; text-align: center; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); transition: all .15s; }
.demo-day input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.demo-day input:focus-visible + span { outline: 3px solid var(--sky-400); outline-offset: 2px; }
.demo-form .field--error input, .demo-form .field--error select, .demo-form .field--error textarea { border-color: var(--red); }
.demo-form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.demo-form__small { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.demo-form__small .icon { width: 16px; height: 16px; color: #16A34A; }
.demo-form button[disabled] { opacity: .7; cursor: progress; }

.demo-success { text-align: center; padding: 10px 6px; }
.demo-success:focus { outline: none; }
.demo-success__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #E8F7EE; color: #16A34A; display: grid; place-items: center; }
.demo-success__icon .icon { width: 38px; height: 38px; }
.demo-success h2 { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 600px) { .demo-dialog__head, .demo-dialog__body { padding-inline: 18px; } }
.demo-dialog [hidden], .demo-form [hidden] { display: none !important; }
