:root {
    font-family:Inter,ui-sans-serif,system-ui,sans-serif;
    color:var(--demo-text,#111928);
    background:var(--demo-page-background,#f3f5f8);
    font-synthesis:none
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    padding:24px
}
button,input,textarea,select {
    font:inherit
}
button,a,input,select,textarea {
    -webkit-tap-highlight-color:transparent
}
button:not(:disabled),select {
    cursor:pointer
}
button:disabled {
    cursor:default;
    opacity:.5
}
:focus-visible {
    outline:2px solid var(--demo-accent,#031953);
    outline-offset:3px
}
[hidden] {
    display:none!important
}
.demo-card {
    max-width:1024px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    background:var(--demo-surface,#ffffff);
    border:1px solid #e5e7eb;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 40px #11192814
}
.intro {
    padding:28px;
    border-right:1px solid #e5e7eb;
    max-height:860px;
    overflow:auto
}
.host {
    margin:0;
    color:#737373;
    font-size:14px
}
h1 {
    margin:4px 0 0;
    font-size:22px;
    line-height:1.2;
    font-weight:600;
    letter-spacing:-.3px
}
.duration {
    font-size:14px;
    margin:12px 0
}
.description {
    white-space:pre-line;
    font-size:14px;
    line-height:1.65;
    margin:22px 0
}
.field {
    margin:0 0 24px;
    padding:0;
    border:0;
    min-width:0
}
.field>label,.field>legend {
    display:block;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
    margin-bottom:8px
}
input:not([type=radio],[type=checkbox]),textarea,select {
    width:100%;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#f9fafb;
    padding:10px 12px;
    color:var(--demo-text,#111928);
    font-size:14px
}
input::placeholder {
    color:#9ca3af
}
textarea {
    resize:vertical
}
.phone-input {
    display:flex;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#f9fafb
}
.phone-input select {
    width:92px;
    flex-shrink:0;
    border:0;
    background:transparent;
    padding:9px 6px
}
.phone-input input {
    border:0;
    background:transparent;
    min-width:0;
    padding-left:4px
}
.field label.choice {
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-weight:400;
    margin:10px 0;
    line-height:1.45
}
.choice input {
    flex-shrink:0;
    width:16px;
    height:16px;
    margin:2px 0 0;
    accent-color:var(--demo-accent,#031953)
}
.primary {
    display:block;
    width:100%;
    min-height:40px;
    padding:10px 14px;
    border:0;
    border-radius:8px;
    background:linear-gradient(135deg,var(--demo-button-start,#000000),var(--demo-button-end,#031953));
    color:white;
    font-size:14px;
    font-weight:500
}
.secondary {
    border:1px solid #d1d5db;
    border-radius:8px;
    padding:8px 12px;
    background:var(--demo-surface,#ffffff);
    font-size:13px;
    margin:8px 0
}
.privacy {
    font-size:12px;
    line-height:1.5
}
.privacy a {
    color:inherit;
    font-weight:600;
    text-underline-offset:2px
}
.calendar {
    padding:32px;
    min-width:0
}
.calendar-heading {
    display:flex;
    justify-content:space-between;
    align-items:center
}
.calendar-heading h2 {
    font-size:16px;
    font-weight:400;
    color:#9ca3af;
    text-transform:capitalize;
    margin:0
}
.calendar-heading>div {
    display:flex;
    border:1px solid #e5e7eb;
    border-radius:6px;
    overflow:hidden
}
.calendar-heading button {
    background:var(--demo-surface,#ffffff);
    border:0;
    width:32px;
    height:32px;
    color:#9ca3af;
    font-size:24px
}
.calendar-heading button+button {
    border-left:1px solid #e5e7eb
}
.weekdays,.days {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    text-align:center
}
.weekdays {
    font-size:11px;
    text-transform:uppercase;
    color:#9ca3af;
    margin-top:16px
}
.weekdays span {
    padding:8px 0
}
.days-wrapper {
    position:relative
}
.days button,.days>span {
    width:36px;
    height:36px;
    margin:2px auto;
    border:0;
    border-radius:50%;
    background:var(--demo-surface,#ffffff);
    font-size:14px
}
.days button {
    transition:background-color .18s ease,color .18s ease
}
.days button:not(:disabled) {
    background:#eef2ff;
    background:color-mix(in srgb,var(--demo-accent,#031953) 10%,var(--demo-surface,#ffffff))
}
.days button:disabled {
    color:#d1d5db;
    opacity:1
}
.days button.selected {
    background:var(--demo-text,#111928);
    color:white
}
#calendar-lock {
    position:absolute;
    inset:20% 12%;
    display:grid;
    place-items:center;
    margin:0;
    background:var(--demo-surface,#ffffff);
    padding:12px 16px;
    text-align:center;
    font-size:14px;
    line-height:1.4;
    border-radius:6px;
    box-shadow:0 6px 24px #1119281f
}
#calendar-status {
    font-size:14px;
    text-align:center;
    color:#6b7280
}
#slots {
    display:grid;
    gap:8px;
    margin:16px 0
}
.slot-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,0fr);
    gap:0;
    transition:grid-template-columns .2s ease,gap .2s ease
}
.slot-row.selected {
    grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
    gap:8px
}
.slot-time {
    width:100%;
    min-width:0;
    min-height:40px;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:var(--demo-surface,#ffffff);
    font-size:14px
}
.slot-action {
    display:flex;
    min-width:0;
    overflow:hidden;
    visibility:hidden;
    opacity:0;
    transition:opacity .18s ease,visibility .18s ease
}
.slot-row.selected .slot-action {
    visibility:visible;
    opacity:1
}
.slot-action .primary {
    min-width:0;
    padding:10px 8px;
    white-space:nowrap;
    font-size:13px
}
.error {
    font-size:12px;
    color:#e02424;
    margin:6px 0
}
.field.invalid input,.field.invalid textarea,.field.invalid .phone-input {
    border-color:#e02424
}
#save-state {
    font-size:12px;
    color:#e02424;
    margin-top:12px
}
.demo-card.booking-view {
    display:block;
    max-width:640px
}
.booking-screen {
    padding:48px 36px;
    text-align:center;
    animation:booking-enter .24s ease both
}
.booking-mark {
    display:grid;
    place-items:center;
    width:56px;
    height:56px;
    margin:0 auto 20px;
    border-radius:50%;
    background:#eef2ff;
    color:var(--demo-accent,#031953);
    font-size:30px
}
.booking-screen h1 {
    margin-top:8px;
    font-size:28px
}
#booking-title:focus {
    outline:none
}
.booking-message {
    margin:12px 0 32px;
    color:#6b7280;
    line-height:1.6
}
.booking-event {
    margin:0;
    font-size:15px;
    font-weight:600
}
.booking-date {
    margin:8px 0 0;
    line-height:1.6
}
.booking-links {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px 24px;
    margin-top:28px
}
#booking-result a {
    display:inline-block;
    color:var(--demo-accent,#031953);
    font-size:14px;
    text-underline-offset:3px
}
.booking-screen .secondary {
    margin-top:24px
}
@keyframes booking-enter {
    from {opacity:0;transform:translateY(8px)}
    to {opacity:1;transform:translateY(0)}
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
@media(max-width:767px) {
    body {
        padding:12px
    }
    .demo-card {
        grid-template-columns:1fr
    }
    .intro {
        max-height:none;
        overflow:visible;
        border-right:0;
        border-bottom:1px solid #e5e7eb;
        padding:24px 20px
    }
    .calendar {
        padding:24px 20px
    }
    .booking-screen {
        padding:36px 20px
    }
    .booking-screen h1 {
        font-size:24px
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        animation-duration:.01ms!important;
        transition-duration:.01ms!important
    }
}
