:root { --booking-max: 1180px; }

html { min-height: 100%; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 8% 8%, color-mix(in oklab, var(--amber) 10%, transparent), transparent 65%),
    radial-gradient(700px 540px at 92% 88%, color-mix(in oklab, var(--gl) 7%, transparent), transparent 68%),
    var(--bg-1);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(color-mix(in oklab, var(--line) 22%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--line) 22%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
::selection { background: var(--amber); color: var(--on-amber); }

.skip {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  transition: top .18s ease-out;
}
.skip:focus { top: 14px; }

.book-nav {
  position: relative;
  z-index: 5;
  width: min(var(--booking-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-hi); font-family: var(--font-display); font-weight: 700; }
.book-brand-mark { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; background: var(--amber); box-shadow: 0 8px 22px -10px var(--amber-glow); }
.book-brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.book-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-mid); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.book-back:hover { color: var(--amber); }
.book-back svg { width: 18px; height: 18px; }

.booking-shell {
  position: relative;
  z-index: 2;
  width: min(var(--booking-max), calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 34px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(540px, 1.14fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.booking-intro { position: sticky; top: 46px; padding: 24px 0; }
.booking-intro h1 {
  max-width: 620px;
  margin: 30px 0 18px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.booking-lede { max-width: 530px; margin: 0; color: var(--text-mid); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; text-wrap: pretty; }

.booking-orbit { position: relative; width: 136px; height: 136px; }
.orbit-ring { position: absolute; inset: 4px; border: 1px dashed color-mix(in oklab, var(--amber) 48%, var(--line)); border-radius: 50%; animation: orbit-turn 18s linear infinite; }
.orbit-ring::after { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 20px var(--amber-glow); }
.orbit-core { position: absolute; inset: 35px; border-radius: 20px; overflow: hidden; background: var(--amber); box-shadow: var(--shadow-glow); transform: rotate(-4deg); }
.orbit-core img { width: 100%; height: 100%; display: block; object-fit: contain; }
.orbit-node { position: absolute; min-width: 31px; height: 27px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--text-hi); box-shadow: var(--shadow-card); font: 600 10px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.orbit-node-a { left: -4px; top: 32px; }
.orbit-node-b { right: -7px; top: 21px; }
.orbit-node-c { right: 3px; bottom: 5px; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }

.availability-line { max-width: 520px; margin: 28px 0 0; padding: 14px 16px; display: flex; gap: 11px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; line-height: 1.5; }
.availability-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px color-mix(in oklab, var(--ok) 12%, transparent); }

.booking-steps { max-width: 520px; margin: 26px 0 0; padding: 0; list-style: none; }
.booking-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; }
.booking-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 31px; bottom: 4px; width: 1px; background: var(--line-2); }
.step-marker { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); color: var(--amber); font: 700 11px/1 var(--font-mono); }
.booking-steps strong { display: block; color: var(--text-hi); font-size: 14px; margin: 3px 0 4px; }
.booking-steps small { display: block; color: var(--text-mid); font-size: 12.5px; line-height: 1.5; }
.booking-note { max-width: 500px; margin: 4px 0 0; color: var(--text-lo); font-size: 11.5px; line-height: 1.5; }

.booking-workspace {
  min-height: 670px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in oklab, var(--bg-2) 94%, transparent);
  box-shadow: 0 1px 0 color-mix(in oklab, white 5%, transparent) inset, 0 32px 90px -48px rgba(0,0,0,.8);
}
[data-theme="light"] .booking-workspace { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 32px 80px -54px rgba(15,23,42,.42); }
@media (prefers-color-scheme: light) {
  [data-theme="system"] .booking-workspace { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 32px 80px -54px rgba(15,23,42,.42); }
}
.form-heading, .manage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.form-heading h2, .manage-heading h2 { margin: 0 0 6px; color: var(--text-hi); font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; }
.form-heading p, .manage-heading p { margin: 0; color: var(--text-mid); font-size: 12.5px; line-height: 1.5; }
.secure-mark, .pending-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-mid); font: 600 10px/1 var(--font-mono); letter-spacing: .04em; }
.secure-mark svg { width: 13px; height: 13px; }
.pending-chip { border-color: color-mix(in oklab, var(--warn) 38%, var(--line)); background: color-mix(in oklab, var(--warn) 9%, transparent); color: var(--warn); }

.field-group { margin: 0 0 20px; padding: 0; border: 0; }
.field-group > label, .field-group > legend, .decline-panel > label { display: block; margin: 0 0 9px; color: var(--text-hi); font-size: 12px; font-weight: 650; }
.field-group label span { color: var(--text-lo); font-weight: 500; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--bg-1);
  color: var(--text-hi);
  font-size: 14px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out, background-color .15s ease-out;
}
input, select { height: 46px; padding: 0 13px; }
textarea { min-height: 96px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--text-mid); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); background: var(--bg-2); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap svg { position: absolute; pointer-events: none; width: 18px; height: 18px; right: 13px; top: 14px; color: var(--text-mid); }

.duration-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.duration-options label { position: relative; cursor: pointer; }
.duration-options input { position: absolute; opacity: 0; pointer-events: none; }
.duration-options span { height: 48px; display: flex; align-items: baseline; justify-content: center; gap: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-1); color: var(--text); font: 650 15px/1 var(--font-mono); transition: border-color .15s ease-out, background-color .15s ease-out, color .15s ease-out, transform .15s ease-out; }
.duration-options small { color: var(--text-lo); font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; }
.duration-options label:hover span { border-color: var(--amber); color: var(--text-hi); transform: translateY(-1px); }
.duration-options input:checked + span { border-color: var(--amber-deep); background: var(--amber-soft); color: var(--link); box-shadow: 0 0 0 1px color-mix(in oklab, var(--amber) 34%, transparent) inset; }
.duration-options input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.schedule-fields { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.time-options { min-height: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.time-button { min-height: 46px; padding: 7px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-1); color: var(--text); font: 600 12.5px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out, color .15s ease-out, transform .15s ease-out; }
.time-button:hover { border-color: var(--amber); color: var(--text-hi); transform: translateY(-1px); }
.time-button[aria-pressed="true"] { border-color: var(--amber-deep); background: var(--amber-soft); color: var(--link); }
.no-times { grid-column: 1 / -1; min-height: 46px; display: flex; align-items: center; color: var(--text-lo); font-size: 12px; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.consent-field { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; color: var(--text-mid); font-size: 11.5px; line-height: 1.5; cursor: pointer; }
.consent-field input { flex: 0 0 auto; appearance: none; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 5px; display: grid; place-items: center; }
.consent-field input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--on-amber); border-bottom: 2px solid var(--on-amber); transform: rotate(-45deg) scale(0); transition: transform .12s ease-out; }
.consent-field input:checked { background: var(--amber); border-color: var(--amber); }
.consent-field input:checked::after { transform: rotate(-45deg) scale(1); }
.consent-field a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.honey-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.form-message { min-height: 19px; margin: 0 0 10px; color: var(--text-mid); font-size: 12px; line-height: 1.45; }
.form-message.error { color: var(--err); }
.form-message.success { color: var(--ok); }
.submit-request, .primary-action, .secondary-action, .decline-action, .decline-toggle {
  min-height: 46px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .15s ease-out, box-shadow .15s ease-out, background-color .15s ease-out, border-color .15s ease-out;
}
.submit-request, .primary-action { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--amber-deep); background: var(--amber); color: #25180b; }
.submit-request svg { width: 18px; height: 18px; }
.submit-request:hover:not(:disabled), .primary-action:hover { transform: translateY(-1px); background: var(--amber-hot); box-shadow: 0 10px 24px -10px var(--amber-glow); }
.submit-request:disabled, .secondary-action:disabled, .decline-action:disabled { opacity: .58; cursor: wait; }
.secondary-action { display: inline-flex; width: auto; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--text-hi); }
.secondary-action:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }

.status-view { min-height: 570px; padding: 76px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.status-view[hidden] { display: none; }
.status-icon { width: 66px; height: 66px; margin-bottom: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-1); color: var(--amber); }
.status-icon::before { content: ''; width: 24px; height: 24px; border: 2px solid var(--amber); border-top-color: transparent; border-radius: 50%; animation: status-spin .8s linear infinite; }
.status-icon.success::before { width: 23px; height: 13px; border: 0; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); border-radius: 0; transform: rotate(-45deg) translate(2px, -2px); animation: none; }
.status-icon.error::before { content: '×'; width: auto; height: auto; border: 0; color: var(--err); font: 500 36px/1 var(--font-sans); animation: none; }
@keyframes status-spin { to { transform: rotate(360deg); } }
.status-view h2 { margin: 0 0 10px; color: var(--text-hi); font-family: var(--font-display); font-size: 30px; letter-spacing: -.025em; }
.status-view p { max-width: 440px; margin: 0 0 24px; color: var(--text-mid); line-height: 1.65; }

.request-details { margin: 0 0 24px; border-top: 1px solid var(--line); }
.request-details > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.request-details dt { color: var(--text-lo); font: 500 10px/1.5 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.request-details dd { margin: 0; color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.request-details dd strong { color: var(--text-hi); }
.outlook-flow { padding-top: 4px; }
.outlook-step { display: flex; gap: 13px; margin: 0 0 14px; }
.outlook-step > span { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font: 700 10px/1 var(--font-mono); }
.outlook-step strong { display: block; color: var(--text-hi); font-size: 13px; margin: 3px 0 4px; }
.outlook-step p { margin: 0; color: var(--text-mid); font-size: 12px; line-height: 1.5; }
.manage-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin: 0 0 24px 40px; }
.manage-actions .primary-action { text-decoration: none; }
.decline-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.decline-toggle { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--text-mid); text-decoration: underline; text-underline-offset: 4px; }
.decline-toggle:hover { color: var(--err); }
.decline-panel { margin-top: 12px; padding: 16px; border: 1px solid color-mix(in oklab, var(--err) 32%, var(--line)); border-radius: 12px; background: color-mix(in oklab, var(--err) 5%, var(--bg-1)); }
.decline-panel textarea { margin-bottom: 10px; }
.decline-action { width: 100%; border: 1px solid var(--err); background: transparent; color: var(--err); }
.decline-action:hover { background: color-mix(in oklab, var(--err) 10%, transparent); }

.book-footer { position: relative; z-index: 2; width: min(var(--booking-max), calc(100% - 40px)); margin: 0 auto; padding: 20px 0 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--text-lo); font-size: 11px; }
.book-footer a { color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; }
.book-footer a:hover { color: var(--link); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 980px) {
  .booking-shell { grid-template-columns: 1fr; gap: 24px; max-width: 720px; padding-top: 18px; }
  .booking-intro { position: relative; top: auto; padding: 12px 0 24px; }
  .booking-intro h1 { max-width: 650px; margin-top: 22px; font-size: clamp(42px, 8.5vw, 66px); }
  .booking-orbit { width: 112px; height: 112px; }
  .orbit-core { inset: 29px; border-radius: 17px; }
  .availability-line, .booking-steps, .booking-note { max-width: 620px; }
}

@media (max-width: 640px) {
  .book-nav, .booking-shell, .book-footer { width: min(100% - 28px, 720px); }
  .book-nav { padding-top: 14px; }
  .book-back { font-size: 0; }
  .book-back svg { width: 23px; height: 23px; }
  .booking-shell { padding: 6px 0 34px; gap: 14px; }
  .booking-intro { padding: 6px 0 12px; }
  .booking-orbit { width: 82px; height: 82px; }
  .orbit-core { inset: 22px; border-radius: 13px; }
  .orbit-node { min-width: 25px; height: 22px; padding: 0 4px; border-radius: 7px; font-size: 8px; }
  .orbit-node-a { left: -3px; top: 18px; }
  .orbit-node-b { right: -6px; top: 11px; }
  .orbit-node-c { right: 0; bottom: 0; }
  .booking-intro h1 { margin: 16px 0 10px; font-size: clamp(38px, 11.8vw, 50px); line-height: 1.01; }
  .booking-lede { font-size: 15px; line-height: 1.5; }
  .availability-line { margin-top: 16px; padding: 10px 8px; font-size: 12px; }
  .booking-steps { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .booking-steps li { display: block; padding: 0; }
  .booking-steps li:not(:last-child)::after { display: none; }
  .step-marker { width: 24px; height: 24px; margin-bottom: 6px; font-size: 9px; }
  .booking-steps strong { margin: 0; font-size: 11px; line-height: 1.25; }
  .booking-steps small { display: none; }
  .booking-note { margin-top: 10px; font-size: 10.5px; }
  .booking-workspace { min-height: 620px; padding: 22px 16px; border-radius: 18px; }
  .form-heading, .manage-heading { margin-bottom: 24px; }
  .secure-mark { display: none; }
  .duration-options { gap: 5px; }
  .duration-options span { height: 45px; font-size: 14px; }
  .schedule-fields, .identity-fields { grid-template-columns: 1fr; gap: 0; }
  .time-options { grid-template-columns: repeat(3, 1fr); }
  .manage-actions { grid-template-columns: 1fr; margin-left: 0; }
  .request-details > div { grid-template-columns: 94px 1fr; }
  .book-footer { gap: 16px; flex-direction: column; }
}

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