.booking-page .page-shell {
    width: min(1140px, calc(100% - 32px));
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 178px);
    padding: 18px 0 42px;
    min-width: 0;
}

.booking-intro {
    padding: 24px 0;
}

.booking-intro h1 {
    margin-top: 18px;
    font-size: clamp(3.1rem, 6vw, 5.9rem);
    line-height: .92;
}

.booking-intro h1 span {
    color: var(--secondary);
}

.booking-intro > p {
    max-width: 440px;
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.booking-trust-row {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 700;
}

.booking-trust-row span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.booking-trust-row i {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--secondary);
    font-size: .66rem;
    font-style: normal;
    letter-spacing: .04em;
}

.booking-card {
    padding: clamp(22px, 4vw, 34px);
    min-height: 514px;
    min-width: 0;
}

.booking-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.booking-card-heading h2,
.booking-unavailable h2,
.booking-success h2 {
    font-size: clamp(1.72rem, 3vw, 2.25rem);
}

.booking-kicker {
    margin: 0 0 7px;
    color: var(--secondary);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: 1.55px;
    text-transform: uppercase;
}

.booking-duration {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 900;
}

.booking-timezone-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.45;
}

.booking-loading,
.booking-unavailable,
.booking-success {
    min-height: 355px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* The shared marketing stylesheet assigns display values to these panels,
   so keep the native hidden state authoritative as the booking flow moves
   between loading, available, unavailable and confirmed. */
.booking-loading[hidden],
.booking-unavailable[hidden],
.booking-success[hidden],
.booking-form[hidden],
#booking-flow[hidden] {
    display: none !important;
}

.booking-loading {
    gap: 14px;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 800;
}

.booking-spinner,
.booking-submit-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: bookingSpin .75s linear infinite;
}

@keyframes bookingSpin { to { transform: rotate(360deg); } }

.booking-unavailable-mark,
.booking-success-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--secondary);
    font-size: 1.8rem;
    font-weight: 500;
}

.booking-success-mark {
    background: var(--cta-bg);
    border-color: transparent;
    color: var(--cta-text);
    font-size: 1.5rem;
    font-weight: 900;
}

.booking-unavailable p,
.booking-success > p:not(.booking-kicker) {
    max-width: 370px;
    margin: 12px 0 22px;
    color: var(--text-muted);
    line-height: 1.6;
}

.booking-date-list {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 22px 0 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.booking-date-list::-webkit-scrollbar {
    display: none;
}

#booking-flow,
.booking-outside-hours,
.booking-outside-panel {
    min-width: 0;
}

.booking-date-button,
.booking-slot {
    appearance: none;
    border: 1px solid var(--button-border);
    background: var(--button-bg);
    color: var(--text-main);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.booking-date-button {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 10px 9px;
    border-radius: 13px;
    font-family: Inter, sans-serif;
    font-size: .74rem;
    font-weight: 800;
}

.booking-date-button:hover,
.booking-slot:hover {
    transform: translateY(-1px);
    border-color: var(--secondary);
}

.booking-date-button.active {
    background: var(--cta-bg);
    border-color: transparent;
    color: var(--cta-text);
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 22px 0 6px;
}

.booking-slot {
    min-height: 44px;
    border-radius: 12px;
    font: 800 .84rem Inter, sans-serif;
}

.booking-slot.active {
    background: var(--accent-soft);
    border-color: var(--secondary);
    color: var(--secondary);
}

.booking-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.booking-selected-slot,
.booking-success-time {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--text-main);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.45;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.booking-form label {
    display: grid;
    gap: 7px;
    color: var(--text-main);
    font-size: .75rem;
    font-weight: 800;
}

.booking-form label span {
    padding-left: 2px;
}

.booking-form em {
    color: var(--text-main);
    font-size: .69rem;
    font-style: normal;
    font-weight: 600;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    border: 1px solid var(--button-border);
    border-radius: 12px;
    outline: none;
    background: var(--button-bg);
    color: var(--text-main);
    padding: 12px 13px;
    resize: vertical;
    -webkit-text-fill-color: var(--text-main);
}

/* Chrome renders the native option list on a light system surface. Give that
   surface an explicit readable foreground instead of inheriting the dark-page
   white text colour from the closed select. */
.booking-form select option {
    background: #fff;
    color: #1a202c;
    font-weight: 700;
    -webkit-text-fill-color: #1a202c;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
    -webkit-text-fill-color: var(--text-muted);
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.booking-goal { grid-column: 1 / -1; }
.booking-call-note { grid-column: 1 / -1; margin: -2px 0 2px; color: var(--text-main); font-size: .78rem; line-height: 1.45; }
.booking-honeypot { display: none !important; }

.booking-form-note {
    margin: 14px 2px;
    color: var(--text-main);
    font-size: .75rem;
    line-height: 1.5;
}

.booking-outside-hours {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.booking-outside-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--button-bg);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.booking-outside-toggle:hover,
.booking-outside-toggle:focus-visible {
    border-color: var(--secondary);
    background: var(--accent-soft);
    outline: none;
}

.booking-outside-toggle:hover { transform: translateY(-1px); }
.booking-outside-toggle > span:first-child { display: grid; gap: 4px; }
.booking-outside-toggle strong { color: var(--text-main); font: 800 .84rem Inter, sans-serif; }
.booking-outside-toggle small { color: var(--text-muted); font: 600 .74rem/1.4 Inter, sans-serif; }
.booking-outside-arrow { color: var(--secondary); font-size: 1.3rem; font-weight: 800; }

.booking-outside-panel {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--accent-soft);
}

.booking-outside-panel[hidden] { display: none !important; }
.booking-outside-panel > p { margin: 0; color: var(--text-muted); font-size: .78rem; font-weight: 650; line-height: 1.5; }
.booking-outside-panel .booking-form { margin-top: 16px; padding-top: 16px; }

.booking-submit {
    width: 100%;
    min-height: 52px;
    cursor: pointer;
}

.booking-submit[disabled] { cursor: wait; opacity: .72; }
.booking-submit-loader { display: none; width: 16px; height: 16px; border-color: rgba(17,17,17,.28); border-top-color: var(--cta-text); }
.booking-submit.loading .booking-submit-loader { display: inline-block; }

.booking-error {
    margin: 12px 0 0;
    color: #dc2626;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.booking-success-time {
    color: var(--secondary);
}

.booking-success-actions {
    display: grid;
    width: min(100%, 370px);
    gap: 10px;
}

.booking-success-actions .btn {
    width: 100%;
}

.booking-footer { margin-top: 0; }

.booking-settings-page .booking-layout { min-height: auto; align-items: start; }
.booking-settings-page .booking-intro h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.booking-settings-card { min-height: 0; }
.booking-settings-card[aria-busy="true"] { opacity: .65; pointer-events: none; }
.booking-setup-status { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text-muted); font-size: .8rem; font-weight: 700; line-height: 1.45; }
.booking-setup-status.success { color: #217a41; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .32); }
.booking-setup-status.error { color: #b42318; background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .25); }
.booking-setup-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.booking-setup-group h3 { font-size: 1.1rem; }
.booking-setup-group > p { margin: 7px 0 14px; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.booking-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.booking-setting-grid label { display: grid; gap: 7px; color: var(--text-main); font-size: .75rem; font-weight: 800; }
.booking-setting-grid input, .booking-setting-grid select { min-height: 43px; width: 100%; padding: 0 12px; border: 1px solid var(--button-border); border-radius: 11px; background: var(--button-bg); color: var(--text-main); -webkit-text-fill-color: var(--text-main); }
.booking-setting-grid input:disabled { cursor: default; opacity: 1; color: var(--text-main); -webkit-text-fill-color: var(--text-main); }
.booking-setting-grid input:focus, .booking-setting-grid select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px var(--accent-soft); }
.booking-setting-full { grid-column: 1 / -1; }
.booking-toggle { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--button-bg); }
.booking-toggle span { display: grid; gap: 3px; }
.booking-toggle strong { color: var(--text-main); font-size: .84rem; }
.booking-toggle small { color: var(--text-muted); font-size: .72rem; font-weight: 600; line-height: 1.35; }
.booking-toggle input { width: 44px; height: 24px; accent-color: var(--secondary); }
.booking-hours { display: grid; gap: 8px; }
.booking-hours-row { display: grid; grid-template-columns: 82px 1fr 1fr; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.booking-hours-row:last-child { border-bottom: 0; }
.booking-hours-row label { display: flex; align-items: center; gap: 7px; color: var(--text-main); font-size: .78rem; font-weight: 800; }
.booking-hours-row input[type="time"] { min-width: 0; min-height: 39px; border: 1px solid var(--button-border); border-radius: 10px; background: var(--button-bg); color: var(--text-main); padding: 0 9px; }
.booking-connection-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--button-bg); }
.booking-connection-card strong { display: block; color: var(--text-main); font-size: .84rem; }
.booking-connection-card p { margin: 4px 0 0; color: var(--text-muted); font-size: .74rem; line-height: 1.4; }
.booking-connection-card .btn { min-height: 40px; padding: 0 13px; white-space: nowrap; cursor: pointer; }
.booking-settings-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.booking-settings-actions .btn { cursor: pointer; }

@media (max-width: 820px) {
    .booking-page .page-shell { width: min(100% - 24px, 620px); }
    .booking-layout { grid-template-columns: 1fr; gap: 8px; min-height: auto; padding-top: 8px; }
    .booking-intro { padding: 8px 2px 20px; text-align: center; }
    .booking-intro > p { margin-left: auto; margin-right: auto; }
    .booking-trust-row { justify-content: center; text-align: left; }
    .booking-card { min-height: 0; }
    .booking-footer { margin-top: 18px; }
}

@media (max-width: 520px) {
    .booking-page .site-header { padding-bottom: 16px; gap: 12px; }
    .booking-page .brand { gap: 8px; font-size: .92rem; }
    .booking-page .brand img { width: 34px; height: 34px; border-radius: 11px; }
    .booking-page .nav-link { font-size: .82rem; }
    .booking-intro h1 { font-size: clamp(2.75rem, 15vw, 4.1rem); }
    .booking-card { padding: 20px 16px; border-radius: 24px; }
    .booking-card-heading { gap: 10px; padding-bottom: 18px; }
    .booking-card-heading h2 { font-size: 1.48rem; }
    .booking-duration { font-size: .66rem; padding: 6px 8px; }
    .booking-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-form-grid, .booking-setting-grid { grid-template-columns: 1fr; }
    .booking-goal, .booking-setting-full { grid-column: auto; }
    .booking-hours-row { grid-template-columns: 78px 1fr 1fr; gap: 6px; }
    .booking-connection-card { align-items: flex-start; flex-direction: column; }
    .booking-connection-card .btn { width: 100%; }
}

@media (max-width: 360px) {
    .booking-page .page-shell { width: min(100% - 20px, 620px); }
    .booking-intro { padding-bottom: 16px; }
    .booking-card { padding: 18px 14px; border-radius: 22px; }
    .booking-card-heading { align-items: flex-start; }
    .booking-date-button { min-width: 76px; }
    .booking-slot { min-height: 46px; font-size: .8rem; }
}

html[data-bio-theme="light"] .booking-form input,
html[data-bio-theme="light"] .booking-form textarea,
html[data-bio-theme="light"] .booking-setting-grid input,
html[data-bio-theme="light"] .booking-setting-grid select,
html[data-bio-theme="light"] .booking-hours-row input[type="time"] {
    background: #fff;
    color: #1a202c;
    -webkit-text-fill-color: #1a202c;
}

html[data-bio-theme="light"] .booking-outside-panel {
    background: #f7f1df;
}

html[data-bio-theme="light"] .booking-intro > p,
html[data-bio-theme="light"] .booking-trust-row,
html[data-bio-theme="light"] .booking-timezone-note,
html[data-bio-theme="light"] .booking-unavailable p,
html[data-bio-theme="light"] .booking-success > p:not(.booking-kicker),
html[data-bio-theme="light"] .booking-form input::placeholder,
html[data-bio-theme="light"] .booking-form textarea::placeholder {
    color: #475569;
    -webkit-text-fill-color: #475569;
}

html[data-bio-theme="light"] .booking-outside-panel > p,
html[data-bio-theme="light"] .booking-outside-toggle small {
    color: #334155;
}
