:root {
  color-scheme: dark;
  font-family: "Cabin", Arial, sans-serif;
  background: #020b13;
  color: #fff;
  --gold: #f8a809;
  --navy: #07223a;
  --deep-navy: #04121f;
  --surface: #0a253b;
  --surface-2: #102d43;
  --line: #294257;
  --muted: #b8c7d3;
  --error: #ffb4ab;
  --success: #a7e0b2;
}

* { box-sizing: border-box; }

html { background: var(--deep-navy); }

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(248, 168, 9, .11), transparent 30rem),
    linear-gradient(180deg, #02070c 0, #041522 52%, #03101a 100%);
  color: #fff;
  font-family: "Cabin", Arial, sans-serif;
}

button, input, textarea, select { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffd36d;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.booking-page {
  width: min(100% - 32px, 1120px);
  min-height: calc(100svh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 0, rgba(248, 168, 9, .06), transparent 28rem),
    linear-gradient(155deg, #04121f, #07223a 68%, #04121f);
  box-shadow: 0 22px 70px #0005;
}

.booking-header {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 20px 30px 10px;
}

.booking-header a { display: inline-flex; align-items: center; }
.booking-header img { display: block; width: 156px; height: auto; object-fit: contain; }

.booking-main { width: min(100% - 56px, 820px); margin: 0 auto; padding: 28px 0 30px; }
.booking-intro { margin-bottom: 22px; text-align: center; }
.booking-intro h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.12; }
.booking-intro h1 span { color: var(--gold); }
.booking-offer { margin: 0 auto 16px; max-width: 540px; color: var(--muted); line-height: 1.45; }
.booking-footer a { color: #fff; text-underline-offset: 3px; }
.booking-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.booking-meta > span, .service-picker { display: inline-flex; align-items: center; gap: 6px; }
.booking-meta svg, .timezone-row svg, .timezone-note svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-picker { position: relative; }
.service-picker select { max-width: 260px; padding: 3px 24px 3px 2px; border: 0; background: transparent; color: var(--muted); }
.service-picker select option, .timezone-row select option { background: #0a253b; color: #fff; }

.booking-status {
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid #f8a80966;
  border-radius: 12px;
  background: #f8a80912;
  color: #ffdc99;
  line-height: 1.45;
}
.booking-status[data-kind="error"], .form-status[data-kind="error"] { border-color: #e17770; background: #682b2b50; color: var(--error); }
.booking-status[data-kind="success"], .form-status[data-kind="success"] { border-color: #55a974; background: #153b2a66; color: var(--success); }

.timezone-row { display: flex; justify-content: center; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.timezone-row label { display: inline-flex; align-items: center; gap: 6px; }
.timezone-row select { width: min(270px, 100%); min-width: 0; padding: 8px 30px 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: #fff; font-size: 14px; }
.timezone-hint { font-size: 12px; }

.next-available { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 0 22px; }
.next-available-copy { min-width: 0; }
.next-available-copy > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.next-available-copy strong { display: block; color: var(--gold); font-size: 18px; font-weight: 500; line-height: 1.4; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 600; line-height: 1.25; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.button-primary:hover:not(:disabled) { background: #ffbd31; border-color: #ffbd31; }
.button-secondary { border-color: var(--line); background: #0b293e; color: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #698095; background: #12344d; }
.button-danger { border-color: #d66d68; background: #7c2f2b; color: #fff; }
.text-button { min-height: 40px; padding: 6px 10px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }

.search-form { margin: 0; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 11px 12px 11px 22px; border: 1px solid #52677a; border-radius: 28px; background: var(--surface-2); box-shadow: 0 10px 35px #0003; }
.search-box:focus-within { border-color: var(--gold); }
.search-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-box textarea { display: block; min-width: 0; min-height: 46px; flex: 1; padding: 11px 3px; resize: none; overflow: auto; border: 0; outline: 0; background: transparent; color: #fff; font-size: 17px; line-height: 1.45; }
.search-box textarea:focus-visible { outline: 0; }
.search-box textarea::placeholder { color: var(--muted); opacity: 1; }
.icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.microphone-button { background: #f8a80916; color: var(--gold); }
.microphone-button[aria-pressed="true"] { background: #b7483e; color: #fff; animation: mic-pulse 1.5s infinite; }
.microphone-button:disabled { opacity: .45; cursor: not-allowed; }
.search-submit { background: var(--gold); color: var(--navy); }
.search-submit:hover:not(:disabled) { background: #ffbd31; }
.search-submit:disabled { opacity: .45; cursor: progress; }
.search-help { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }

.voice-panel { display: flex; align-items: center; gap: 12px; margin: 17px auto 0; padding: 13px 15px; border: 1px solid #f8a8096b; border-radius: 15px; background: #102d43; }
.voice-indicator { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f8a80918; color: var(--gold); }
.voice-indicator svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.voice-copy { min-width: 0; flex: 1; }
.voice-copy strong { font-size: 14px; }
.voice-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.search-reply { margin: 20px 4px 0; text-align: center; }
.search-reply > p { margin: 0; color: #fff; font-size: 15px; line-height: 1.5; }
.search-results { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-result { min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #0b293e; color: #fff; cursor: pointer; }
.search-result:hover { border-color: var(--gold); }

.availability-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.calendar-panel, .times-panel { min-width: 0; padding: 23px; }
.times-panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.month-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.month-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }
.month-controls { display: flex; gap: 3px; }
.month-controls button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d8e3eb; cursor: pointer; }
.month-controls button:hover:not(:disabled) { background: #ffffff12; }
.month-controls button:disabled { color: #748596; cursor: not-allowed; opacity: .5; }
.month-controls svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar-grid .weekday { padding: 7px 0; color: var(--muted); font-size: 12px; }
.calendar-grid .calendar-spacer { min-height: 35px; }
.calendar-day { min-width: 0; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #708193; font-size: 14px; }
.calendar-day.available { background: #f8a80912; color: var(--gold); cursor: pointer; }
.calendar-day.available:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.calendar-day.available[aria-pressed="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }
.calendar-day:disabled { cursor: default; }
.calendar-day.today:not(.available) { color: #d1dbe2; }
.timezone-note { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.timezone-note svg { width: 15px; height: 15px; }
.times-panel h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.times-caption { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.times-message { min-height: 36px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.time-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.time-slot { min-height: 43px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px; background: #0d2d43; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.time-slot:hover { border-color: var(--gold); }
.time-slot[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.continue-row { margin-top: auto; padding-top: 20px; }
.continue-row .button { width: 100%; }

.details-view, .confirmation-view, .manage-view { width: min(100%, 560px); margin: 12px auto 0; }
.details-view h2, .confirmation-view h2, .manage-view h2 { margin: 0 0 9px; font-size: 25px; line-height: 1.2; }
.section-intro { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.back-button { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.back-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appointment-summary { margin: 0 0 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: #fff; font-size: 15px; line-height: 1.5; }
.appointment-summary strong { display: block; margin-bottom: 4px; color: var(--gold); font-weight: 600; }
.summary-zoom-link { display: inline-block; margin-top: 7px; color: #ffd36d; text-decoration: underline; text-underline-offset: 3px; }
.details-form { display: grid; gap: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.details-form label { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.details-form label > span:first-child { color: var(--gold); }
.details-form label > .optional-label { display: inline; margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.details-form input:not([type="checkbox"]), .details-form textarea { display: block; margin-top: 7px; width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: #fff; font-size: 16px; }
.details-form textarea { min-height: 90px; resize: vertical; }
.details-form input::placeholder, .details-form textarea::placeholder { color: #9eacb6; }
.consent-field { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); gap: 10px !important; align-items: start; margin-top: 3px; color: var(--muted) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.45; }
.consent-field input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.details-submit { width: 100%; margin-top: 2px; }
.form-status { min-height: 22px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.confirmation-view { text-align: center; }
.confirmation-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #27553c; color: #b4efc3; }
.confirmation-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirmation-view .appointment-summary { text-align: left; }
.confirmation-actions, .manage-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.confirmation-note { min-height: 22px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.manage-view .appointment-summary { margin-top: 16px; }
.manage-view .pending-target-summary { border-color: #8b7138; background: #0d1d2a; }
.manage-actions { justify-content: flex-start; margin-top: 16px; }
.manage-status-button { margin-top: 15px; }
.cancel-check { margin-top: 19px; padding: 16px; border: 1px solid #b35e59; border-radius: 13px; background: #421f20; }
.cancel-check p { margin: 0; font-weight: 600; }
.manage-view .form-status { margin-top: 12px; }
.booking-footer { padding: 0 20px 22px; color: #91a1ad; font-size: 12px; text-align: center; }

@keyframes mic-pulse { 50% { box-shadow: 0 0 0 7px #b7483e30; } }
@media (max-width: 620px) {
  .booking-page { width: 100%; min-height: 100svh; margin: 0; border-radius: 0; box-shadow: none; }
  .booking-header { min-height: 76px; padding: 18px 18px 10px; }
  .booking-header img { width: 145px; }
  .booking-main { width: calc(100% - 32px); padding: 24px 0 26px; }
  .booking-intro { margin-bottom: 21px; }
  .booking-intro h1 { max-width: 380px; margin: 0 auto 14px; font-size: 29px; }
  .booking-meta { gap: 11px 14px; }
  .timezone-row { margin-bottom: 17px; }
  .timezone-row select { width: min(270px, 100%); }
  .timezone-hint { flex-basis: 100%; text-align: center; }
  .next-available { flex-direction: column; gap: 11px; text-align: center; }
  .next-available-copy strong { font-size: 17px; }
  .next-available .button { min-width: 150px; }
  .search-box { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; padding: 12px 12px 9px; border-radius: 20px; }
  .search-icon { display: none; }
  .search-box textarea { grid-column: 1 / -1; grid-row: 1; width: 100%; min-height: 45px; padding: 8px 3px; font-size: 16px; }
  .microphone-button { grid-column: 2; grid-row: 2; }
  .search-submit { grid-column: 3; grid-row: 2; }
  .voice-panel { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; padding: 12px; }
  .voice-indicator { grid-column: 1; grid-row: 1; }
  .voice-copy { grid-column: 2 / 4; grid-row: 1; }
  .voice-panel .button { grid-column: 2; grid-row: 2; }
  .voice-panel .text-button { grid-column: 3; grid-row: 2; }
  .availability-panel { grid-template-columns: minmax(0, 1fr); }
  .calendar-panel, .times-panel { padding: 20px; }
  .times-panel { border-top: 1px solid var(--line); border-left: 0; }
  .calendar-grid { gap: 2px; }
  .calendar-day, .calendar-grid .calendar-spacer { min-height: 42px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .confirmation-actions, .manage-actions { align-items: stretch; flex-direction: column; }
  .confirmation-actions .button, .manage-actions .button { width: 100%; }
  .manage-status-button { width: 100%; }
}

@media (max-width: 380px) {
  .booking-main { width: calc(100% - 26px); }
  .calendar-panel, .times-panel { padding: 16px; }
  .booking-meta { font-size: 13px; }
  .service-picker select { max-width: 210px; font-size: 13px; }
}

@media (pointer: coarse) {
  .calendar-day { min-height: 44px; }
  .month-controls button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* A small desktop identity cue never delays the mobile booking controls. */
.commercial-page .booking-intro .commercial-book-portrait{width:96px;max-width:96px;margin:20px auto 0}
.commercial-page .booking-intro .commercial-book-portrait img{display:block;width:96px;height:96px;aspect-ratio:1;object-fit:cover;border-radius:20px}
.commercial-page .booking-main .commercial-book-prep{width:100%;padding:40px 0 10px;margin-top:32px}
.commercial-page .booking-main .commercial-book-prep h2{font-size:27px;max-width:25ch}
@media(max-width:899px){.commercial-page .booking-intro .commercial-book-portrait{display:none}}
