:root {
  --cream: #f3eddf;
  --paper: #faf7ef;
  --petrol: #0b3b3c;
  --petrol-deep: #061f20;
  --gold: #b79a5d;
  --gold-light: #d8c28f;
  --ink: #143434;
  --muted: #687675;
  --line: rgba(11,59,60,.17);
  --danger: #99483f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 300; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.booking-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 1rem clamp(1.25rem,5vw,5rem); background: var(--petrol-deep); color: white; }
.booking-brand { display: flex; flex-direction: column; color: white; text-decoration: none; text-align: center; }
.booking-brand span { font-family: var(--serif); font-size: 1.75rem; line-height: .9; letter-spacing: .04em; }
.booking-brand small { margin-top: .35rem; font-size: .52rem; letter-spacing: .35em; }
.header-link { color: rgba(255,255,255,.8); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.booking-main { width: min(1240px,100%); margin: 0 auto; padding: clamp(1rem,5vw,4rem); }
.booking-shell { display: grid; grid-template-columns: .78fr 1.22fr; min-width: 0; min-height: 660px; overflow: hidden; border: 1px solid rgba(183,154,93,.36); background: var(--paper); box-shadow: 0 20px 70px rgba(12,48,47,.1); }
.booking-intro { min-width: 0; padding: clamp(2rem,4vw,4rem); overflow: hidden; background: var(--petrol); color: white; }
.eyebrow { margin: 0 0 .9rem; color: var(--gold-light); font-size: .63rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, legend { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .98; }
h1 { font-size: clamp(3rem,5vw,5.2rem); }
h2 { font-size: clamp(2.2rem,4vw,3.5rem); }
.booking-intro > p:not(.eyebrow) { max-width: 430px; margin-top: 1.5rem; color: rgba(255,255,255,.72); line-height: 1.75; }
.steps { display: grid; gap: 1.1rem; margin: 3rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.45); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.steps li { display: flex; align-items: center; gap: .8rem; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(216,194,143,.35); border-radius: 50%; color: var(--gold-light); }
.steps li.active { color: white; }
.steps li.active span { background: var(--gold); border-color: var(--gold); color: white; }
.booking-panel { position: relative; min-width: 0; padding: clamp(1.5rem,4vw,4rem); }
.loading-state { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: .8rem; font-size: clamp(2.2rem,4vw,3.7rem); }
.field-help, .manage-card > p:not(.eyebrow), [data-recovery] > p { margin: 0 0 1.8rem; color: var(--muted); line-height: 1.7; }
label { display: grid; gap: .45rem; margin-top: 1rem; color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
input, select { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 0; outline: 0; background: white; color: var(--ink); text-transform: none; letter-spacing: normal; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(183,154,93,.14); }
.form-actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 2rem; }
.form-actions.end { justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1.3rem; border: 1px solid var(--petrol); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.button.primary { background: var(--petrol); color: white; }
.button.secondary { background: transparent; color: var(--petrol); }
.button.danger { border-color: var(--danger); background: var(--danger); color: white; }
.button:disabled { cursor: wait; opacity: .5; }
.slots { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; margin-top: 1.3rem; }
.slot { min-height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); }
.slot.selected { border-color: var(--gold); background: var(--petrol); color: white; }
.empty-state { grid-column: 1/-1; color: var(--muted); line-height: 1.6; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: flex; flex-direction: column; gap: .35rem; min-height: 100px; padding: 1.1rem; border: 1px solid var(--line); background: white; color: var(--muted); font-size: .75rem; text-transform: none; letter-spacing: normal; }
.choice strong { color: var(--petrol); font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.choice input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.booking-summary, .appointment-details { margin: 1.5rem 0; padding: 1.2rem; border-left: 2px solid var(--gold); background: #f1ecdf; line-height: 1.7; }
.booking-summary strong, .appointment-details strong { color: var(--petrol); }
.consent { display: flex; align-items: flex-start; gap: .7rem; text-transform: none; letter-spacing: normal; line-height: 1.5; }
.consent input { width: 18px; min-height: 18px; margin: .1rem 0 0; accent-color: var(--petrol); }
.notice { padding: 1.5rem; border: 1px solid var(--line); background: white; }
.notice p { color: var(--muted); line-height: 1.7; }
.notice .button { margin-top: .5rem; }
.security-note { margin-top: 1rem; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.status { min-height: 1.5em; margin: 1rem 0 0; color: var(--danger); line-height: 1.5; }
.manage-main { display: grid; place-items: start center; }
.manage-card { width: min(100%,680px); padding: clamp(1.5rem,4vw,3.5rem); border: 1px solid rgba(183,154,93,.4); background: var(--paper); box-shadow: 0 20px 70px rgba(12,48,47,.1); }
.manage-card .eyebrow { color: var(--gold); }
.manage-card h1 { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
[data-recovery-form] .button, [data-code-form] .button { margin-top: 1.4rem; }

@media (max-width: 820px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-intro { padding: 2rem 1.25rem; }
  .booking-intro h1 { font-size: 3.2rem; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin-top: 2rem; }
  .steps li { align-items: flex-start; flex-direction: column; font-size: .52rem; }
  .booking-panel { padding: 2rem 1.25rem; }
}

@media (max-width: 520px) {
  .booking-header { min-height: 70px; }
  .header-link { max-width: 130px; text-align: right; line-height: 1.5; }
  .booking-main { padding: .5rem; }
  .booking-shell { border: 0; box-shadow: none; }
  .slots { grid-template-columns: repeat(3,1fr); }
  .choice-grid, .field-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
}
