:root {
  --page: #f5f5f2;
  --surface: #ffffff;
  --olive: #4a5037;
  --dark: #22251c;
  --muted: #6f7268;
  --sage: #8d9175;
  --line: #dedfd9;
  --soft: #f7f7f4;
  --error: #9b3d32;
  --shadow: 0 18px 55px rgba(44, 48, 34, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--dark); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.site-header { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--surface); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.back-link { text-decoration: none; font-weight: 650; }
.site-header span { color: var(--muted); }

.booking-layout { width: min(1180px, calc(100% - 2rem)); min-height: calc(100svh - 4.4rem); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 0; display: grid; grid-template-columns: minmax(15.5rem, 18rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.booking-intro, .booking-card { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.booking-intro { position: sticky; top: 1.5rem; padding: 2rem; }
.booking-card { min-height: 42rem; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem); }

.eyebrow, .section-kicker { margin: 0 0 .7rem; color: var(--sage); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 650; }
h1, h2 { margin: 0; font-family: inherit; font-weight: 650; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.05; }
h2 { max-width: none; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; }
.intro-copy { margin: 1rem 0 1.8rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: flex; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.process-list span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--soft); color: var(--olive); font-size: .7rem; font-weight: 650; }
.privacy-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.step-header { display: grid; grid-template-columns: auto minmax(8rem, 1fr); align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.step-header p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 650; }
.progress-track { height: .3rem; overflow: hidden; border-radius: 999px; background: #ecece8; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--olive); transition: width .25s ease; }

.form-step { animation: reveal .25s ease; }
.field-help { margin: .65rem 0 1.6rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.service-grid { display: grid; gap: .75rem; margin-top: 1.6rem; }
.service-option { display: block; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-card { position: relative; display: grid; grid-template-columns: minmax(12rem, 1fr) auto; align-items: center; gap: .35rem 1.25rem; min-height: 5.5rem; padding: 1.1rem 3.8rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.service-card::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); border: 1.5px solid #a9aba3; border-radius: 50%; background: var(--surface); }
.service-option input:checked + .service-card { border-color: var(--olive); background: #f7f8f3; box-shadow: 0 0 0 1px var(--olive); }
.service-option input:checked + .service-card::after { border: 4px solid var(--surface); background: var(--olive); box-shadow: 0 0 0 1.5px var(--olive); }
.service-option input:focus-visible + .service-card { outline: 3px solid rgba(74, 80, 55, .22); outline-offset: 2px; }
.service-title { font-size: 1rem; font-weight: 650; }
.service-meta { justify-self: end; color: var(--dark); font-size: .82rem; font-weight: 600; }
.service-note { color: var(--muted); font-size: .78rem; }

.scheduler-shell { display: grid; grid-template-columns: minmax(20rem, 1.2fr) minmax(12rem, .8fr); gap: 1.25rem; align-items: stretch; }
.calendar-panel, .time-panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.calendar-panel { padding: 1.25rem; }
.calendar-header { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.calendar-header p { margin: 0; text-align: center; font-size: 1rem; font-weight: 650; }
.month-button { width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--dark); cursor: pointer; font-size: 1rem; transition: background .18s ease, border-color .18s ease; }
.month-button:hover, .month-button:focus-visible { outline: 0; border-color: var(--olive); background: var(--soft); }
.month-button:disabled { opacity: .3; cursor: default; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(2rem, 1fr)); gap: .25rem; }
.weekday-row { margin-bottom: .35rem; }
.weekday-row span { padding: .35rem 0; color: var(--muted); text-align: center; font-size: .66rem; font-weight: 650; }
.calendar-day, .calendar-blank { aspect-ratio: 1; }
.calendar-day { display: grid; place-items: center; min-width: 0; border: 1px solid transparent; border-radius: .55rem; background: transparent; color: var(--dark); cursor: pointer; font-size: .82rem; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.calendar-day:not(:disabled):hover, .calendar-day:not(:disabled):focus-visible { outline: 0; border-color: var(--olive); background: #f2f4ec; }
.calendar-day.is-selected { background: var(--olive); color: #fff; border-color: var(--olive); font-weight: 650; }
.calendar-day.is-today:not(.is-selected) { border-color: #aeb09f; }
.calendar-day:disabled { color: #c5c6c0; cursor: default; }
.calendar-key { display: flex; align-items: center; gap: .45rem; margin-top: .8rem; color: var(--muted); font-size: .72rem; }
.calendar-key span { width: .55rem; height: .55rem; border: 1px solid var(--olive); border-radius: .15rem; }
.time-panel { padding: 1.25rem; background: var(--soft); }
.time-panel-kicker { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 650; }
.selected-date-label { min-height: 2.7rem; margin: .45rem 0 1.1rem; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.time-fieldset, .payment-fieldset { margin: 1.7rem 0 0; padding: 0; border: 0; }
.time-panel .time-fieldset { margin-top: 0; }
.time-grid, .payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.time-panel .time-grid { grid-template-columns: 1fr; }
.time-grid input, .payment-options input { position: absolute; opacity: 0; }
.time-grid span, .payment-options span { display: grid; place-items: center; min-height: 3rem; padding: .6rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); cursor: pointer; font-size: .82rem; font-weight: 600; transition: .18s ease; }
.time-grid input:checked + span, .payment-options input:checked + span { background: var(--olive); color: #fff; border-color: var(--olive); }
.time-grid input:disabled + span { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.time-grid input:focus-visible + span, .payment-options input:focus-visible + span { outline: 3px solid rgba(74, 80, 55, .22); outline-offset: 2px; }
.availability-message { min-height: 1.25rem; margin: .8rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.field-label, .time-fieldset legend, .payment-fieldset legend, .stacked-field > span, .field-row label > span { display: block; margin-bottom: .5rem; color: var(--dark); font-size: .82rem; font-weight: 650; }
.text-input, textarea { width: 100%; border: 1px solid var(--line); border-radius: .65rem; padding: .8rem .9rem; background: var(--surface); color: var(--dark); font-size: .95rem; }
.text-input:focus, textarea:focus { outline: 3px solid rgba(74, 80, 55, .16); border-color: var(--olive); }
textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.stacked-field { display: block; margin-top: 1.4rem; }
.consent-field { display: grid; grid-template-columns: 1.1rem 1fr; gap: .75rem; align-items: start; margin-top: 1.5rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.consent-field input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--olive); }

.booking-summary { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.booking-summary div { display: grid; grid-template-columns: minmax(8rem, .55fr) 1fr; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.booking-summary div:last-child { border-bottom: 0; }
.booking-summary dt { color: var(--muted); font-size: .76rem; font-weight: 650; }
.booking-summary dd { margin: 0; font-size: .9rem; }
.payment-fieldset p { margin: -.05rem 0 .9rem; color: var(--muted); font-size: .88rem; }
.payment-options { grid-template-columns: repeat(2, minmax(8rem, 12rem)); }
.approval-note { margin-top: 1.5rem; padding: 1rem; border-radius: .7rem; background: #f2f4ec; }
.approval-note strong { font-size: .8rem; }
.approval-note p { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.primary-button, .secondary-button { min-height: 3rem; padding: .75rem 1.25rem; border: 1px solid var(--olive); border-radius: .6rem; cursor: pointer; font-size: .85rem; font-weight: 650; transition: .18s ease; }
.primary-button { background: var(--olive); color: #fff; }
.primary-button:hover, .primary-button:focus-visible { background: var(--dark); border-color: var(--dark); }
.secondary-button { background: var(--surface); color: var(--olive); }
.secondary-button:hover, .secondary-button:focus-visible { background: var(--soft); }
.primary-button:disabled { opacity: .48; cursor: wait; }
.button-link { display: inline-flex; align-items: center; width: fit-content; margin-top: 1.25rem; text-decoration: none; }
.form-error { min-height: 1.2rem; margin-top: .8rem; color: var(--error); font-size: .82rem; }
.success-state { margin: auto 0; }
.success-state p:not(.section-kicker) { max-width: 34rem; color: var(--muted); line-height: 1.6; }
.honeypot { position: absolute; left: -9999px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(.3rem); } to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .booking-layout { grid-template-columns: 1fr; width: min(760px, calc(100% - 2rem)); }
  .booking-intro { position: static; }
  .process-list { display: grid; grid-template-columns: repeat(4, 1fr); border: 0; gap: .5rem; }
  .process-list li { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; font-size: .72rem; }
  .privacy-note { margin-top: 1rem; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .booking-layout { width: min(100% - 1rem, 760px); padding: .75rem 0 1.5rem; gap: .75rem; }
  .booking-intro, .booking-card { border-radius: .8rem; box-shadow: none; }
  .booking-intro { padding: 1.35rem; }
  .booking-card { min-height: 0; padding: 1.25rem; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .step-header { margin-bottom: 1.7rem; }
  .service-card { grid-template-columns: 1fr; min-height: 6.2rem; }
  .service-meta { justify-self: start; }
  .scheduler-shell { grid-template-columns: 1fr; }
  .calendar-panel, .time-panel { padding: .9rem; }
  .weekday-row, .calendar-grid { gap: .1rem; }
  .calendar-day { font-size: .78rem; }
  .time-panel .time-grid { grid-template-columns: repeat(3, 1fr); }
  .time-grid span { min-height: 2.8rem; padding: .45rem .2rem; font-size: .72rem; }
  .field-row { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr 1fr; }
  .booking-summary div { grid-template-columns: 1fr; gap: .25rem; }
  .form-actions { justify-content: stretch; }
  .form-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
