:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #17233f;
    background: #fffaf5;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 50% 0, #ffead8 0, #fffaf5 48rem);
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.demo-shell { max-width: 1530px; margin: 0 auto 54px; padding: 124px 24px 0; }
.demo-intro { max-width: 820px; margin: 0 auto 26px; text-align: center; }
.demo-intro h1 { margin: 0 auto 22px; color: #102549; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.demo-intro > p:last-child { color: #718096; font-size: 15px; line-height: 1.6; }
.demo-eyebrow, .demo-step { color: #ef7611; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.demo-steps {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
}
.demo-steps li:not(.demo-step-line) { display: flex; align-items: center; gap: 9px; color: #8791a2; font-size: 12px; }
.demo-steps li:not(.demo-step-line) span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #dfe4eb;
    border-radius: 50%;
    background: #fff;
    color: #778398;
    font-size: 12px;
    font-weight: 700;
}
.demo-steps li.is-current { color: #24334d; }
.demo-steps li.is-current span, .demo-steps li.is-complete span { border-color: #ef7611; background: #ef7611; color: #fff; }
.demo-steps li.is-complete { color: #24334d; }
.demo-step-line { width: 34px; height: 1px; background: #e0e3e8; }

.demo-card { border: 1px solid #f0e5dc; border-radius: 22px; background: #fff; box-shadow: 0 22px 65px #37230b12; }
.demo-booking-main { display: grid; overflow: hidden; }
.demo-calendar, .demo-slots-panel, .demo-details-panel { min-width: 0; padding: 28px clamp(18px, 2.4vw, 38px); }
.demo-calendar, .demo-slots-panel { border-bottom: 1px solid #f0e9e3; }
.demo-slots-panel { background: #fff; }
.demo-details-panel { background: #fffaf6; }
.demo-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-calendar-heading h2, .demo-slots-panel h2 { margin: 5px 0 0; color: #172b4d; font-size: 21px; font-weight: 750; }
.demo-calendar-heading .demo-step, .demo-slots-panel > .demo-step, .demo-details-panel > .demo-step { margin: 0; }
.demo-month-controls { display: flex; align-items: center; gap: 7px; }
.demo-month-controls button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e8ebf0; border-radius: 50%; background: #fff; color: #53627a; font-size: 22px; line-height: 1; transition: border-color .16s ease, color .16s ease; }
.demo-month-controls button:hover:not(:disabled) { border-color: #ef7611; color: #ef7611; }
.demo-month-controls button:disabled { cursor: default; opacity: .38; }

.demo-weekdays, .demo-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.demo-weekdays { margin: 22px 0 10px; color: #7e899a; font-size: 10px; font-weight: 750; text-align: center; text-transform: uppercase; }
.demo-day { position: relative; min-width: 0; min-height: 46px; border: 1px solid transparent; border-radius: 11px; background: #fff; color: #263650; font-size: 13px; font-weight: 550; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.demo-day.is-available { border-color: #e9edf2; }
.demo-day.is-available:hover { border-color: #f3a05a; background: #fff8f1; }
.demo-day.is-available::after { position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #ef7611; content: ""; transform: translateX(-50%); }
.demo-day.is-selected, .demo-day.is-selected:hover { border-color: #ef7611; background: #ef7611; color: #fff; }
.demo-day.is-selected::after { background: #fff; }
.demo-day:disabled { cursor: default; color: #c3cad4; }
.demo-calendar-legend { display: flex; margin-top: 16px; flex-wrap: wrap; gap: 14px; color: #7c8798; font-size: 11px; }
.demo-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.demo-calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: #ef7611; }
.demo-calendar-legend .demo-legend-full i { background: #cbd1da; }
.demo-timezone, .demo-slots-timezone { margin: 10px 0 0; color: #7c8798; font-size: 11px; line-height: 1.5; }

.demo-slots-panel h2 { min-height: 27px; margin: 5px 0 0; text-transform: capitalize; }
.demo-slots-timezone { min-height: 17px; margin: 3px 0 20px; }
.demo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 8px; }
.demo-slot-group { grid-column: 1 / -1; margin: 3px 0 0; color: #7b8698; font-size: 11px; font-weight: 700; }
.demo-slot { min-height: 42px; padding: 8px; border: 1px solid #e5e9ef; border-radius: 10px; background: #fff; color: #263650; font-size: 13px; font-weight: 600; transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.demo-slot:hover { border-color: #f3a05a; background: #fff8f1; }
.demo-slot.is-selected, .demo-slot.is-selected:hover { border-color: #ef7611; background: #ef7611; box-shadow: 0 5px 14px #ef76113b; color: #fff; }
.demo-muted, .demo-footnote { color: #8993a3; font-size: 12px; line-height: 1.6; }
.demo-slots > .demo-muted { grid-column: 1 / -1; }

.demo-selection-summary { display: grid; gap: 4px; margin: 18px 0 17px; padding: 13px 14px; border: 1px solid #f1dfd0; border-radius: 12px; background: #fff; }
.demo-selection-summary strong { color: #253650; font-size: 13px; line-height: 1.45; }
.demo-selection-summary > span { color: #7d8798; font-size: 11px; line-height: 1.4; }
.demo-form { display: grid; gap: 12px; }
.demo-form > .demo-step { margin: 0; }
.demo-form label { display: grid; gap: 6px; color: #33425a; font-size: 11px; font-weight: 700; }
.demo-form input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe4eb; border-radius: 9px; background: #fff; color: #17233f; font-size: 13px; font-weight: 400; }
.demo-form input::placeholder { color: #a0a8b4; }
.demo-form input:focus { outline: 2px solid #f8c18d; border-color: #ef7611; }
.demo-submit, .demo-secondary { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 999px; background: #ef7611; color: #fff; font-size: 13px; font-weight: 750; transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.demo-submit:not(:disabled):hover { background: #dc6507; box-shadow: 0 8px 18px #ef761133; }
.demo-submit:disabled { cursor: not-allowed; opacity: .55; }
.demo-form-note { margin: -3px 2px 0; color: #7c8798; font-size: 10px; line-height: 1.5; }
.demo-feedback { min-height: 0; margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.demo-feedback.is-error { color: #b42318; }
.demo-feedback.is-success { color: #14804a; }
.demo-footnote { max-width: 760px; margin: 16px auto; text-align: center; }

.demo-toast {
    position: fixed;
    z-index: 1055;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: min(440px, calc(100vw - 32px));
    min-height: 76px;
    padding: 16px 48px 16px 16px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #d5efdf;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px #10254926;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .22s ease, transform .22s ease;
}
.demo-toast.is-visible { opacity: 1; transform: translateY(0); }
.demo-toast[data-kind="warning"] { border-color: #f5dfb7; }
.demo-toast-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e8f7ed; color: #16834b; }
.demo-toast-icon svg { width: 23px; height: 23px; }
.demo-toast[data-kind="warning"] .demo-toast-icon { background: #fff4df; color: #b76a00; }
.demo-toast p { margin: 0; color: #34445d; font-size: 14px; font-weight: 550; line-height: 1.55; }
.demo-toast-close { position: absolute; top: 10px; right: 10px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #78859a; font-size: 22px; line-height: 1; }
.demo-toast-close:hover { background: #f4f6fa; color: #17233f; }
.demo-toast-close:focus-visible { outline: 2px solid #ef7611; outline-offset: 2px; }

.demo-admin-shell { max-width: 1000px; }
.demo-login-card { max-width: 460px; margin: 0 auto; padding: 28px; }
.demo-login-card h2 { margin: 0; font-size: 20px; }
.demo-admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 18px; }
.demo-admin-toolbar h2 { margin: 0; color: #172b4d; font-size: 21px; }
.demo-secondary { min-height: 40px; background: #fff; border: 1px solid #eadfd7; color: #455369; }
.demo-secondary:hover { border-color: #ef7611; color: #d65b00; }
.demo-settings, .demo-bookings-card { margin-bottom: 22px; padding: 28px; }
.demo-settings-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.demo-schedule { display: grid; gap: 8px; }
.demo-schedule-row { display: grid; grid-template-columns: minmax(120px, 1fr) 32px minmax(120px, 1fr) minmax(90px, auto); align-items: center; gap: 10px; }
.demo-schedule-row label { display: flex; align-items: center; gap: 7px; }
.demo-schedule-row input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: #ef7611; }
.demo-schedule-row input[type="time"] { min-height: 38px; }
.demo-schedule-row.is-disabled input[type="time"] { opacity: .45; }
.demo-save-schedule { justify-self: start; }
.demo-admin-weekdays, .demo-admin-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.demo-admin-weekdays { margin: 22px 0 8px; color: #8993a3; font-size: 12px; text-align: center; }
.demo-admin-day { min-width: 0; min-height: 112px; padding: 8px; border: 1px solid #f0e9e3; border-radius: 10px; background: #fff; }
.demo-admin-day-number { color: #59677e; font-size: 12px; }
.demo-admin-event { display: grid; gap: 4px; margin-top: 7px; padding: 7px; border-radius: 7px; background: #fff2e6; }
.demo-admin-event strong { overflow-wrap: anywhere; color: #9c4600; font-size: 11px; }
.demo-admin-event span { color: #718096; font-size: 10px; line-height: 1.4; }
.demo-cancel { justify-self: start; padding: 5px 8px; border: 1px solid #f1d2c8; border-radius: 999px; background: #fff; color: #b42318; font-size: 10px; }
.demo-cancel:hover { background: #fff3f0; }

@media (min-width: 1000px) {
    .demo-booking-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, .92fr) minmax(300px, .94fr); }
    .demo-calendar, .demo-slots-panel { border-right: 1px solid #f0e9e3; border-bottom: 0; }
}

@media (min-width: 620px) and (max-width: 999px) {
    .demo-booking-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-calendar { border-right: 1px solid #f0e9e3; }
    .demo-details-panel { grid-column: 1 / -1; border-top: 1px solid #f0e9e3; }
    .demo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
    .demo-details-panel > .demo-step, .demo-selection-summary, .demo-form-note, .demo-feedback { grid-column: 1 / -1; }
}

@media (max-width: 619px) {
    .demo-shell { padding: 112px 14px 0; }
    .demo-intro { margin-bottom: 18px; }
    .demo-intro h1 { margin-bottom: 18px; font-size: 30px; }
    .demo-steps { gap: 7px; }
    .demo-steps li:not(.demo-step-line) { gap: 5px; font-size: 10px; }
    .demo-steps li:not(.demo-step-line) span { width: 23px; height: 23px; }
    .demo-step-line { width: 16px; }
    .demo-calendar, .demo-slots-panel, .demo-details-panel, .demo-settings, .demo-bookings-card { padding: 19px; }
    .demo-calendar-heading { align-items: center; }
    .demo-days, .demo-weekdays { gap: 4px; }
    .demo-day { min-height: 42px; border-radius: 9px; }
    .demo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .demo-slot { min-height: 40px; font-size: 12px; }
    .demo-details-panel { border-top: 1px solid #f0e9e3; }
    .demo-toast { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
    .demo-settings-row { grid-template-columns: 1fr; }
    .demo-schedule-row { grid-template-columns: 1fr 28px 1fr; gap: 6px; }
    .demo-schedule-row label { grid-column: 1 / -1; }
    .demo-schedule-row input[type="time"] { min-width: 0; }
    .demo-admin-weekdays, .demo-admin-calendar { grid-template-columns: repeat(7, minmax(88px, 1fr)); width: 720px; }
    .demo-bookings-card { overflow-x: auto; }
    .demo-cancel { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-toast, .demo-day, .demo-slot { transition: none; }
}
