:root {
  --ink: #17382b;
  --muted: #66756d;
  --green: #215f3d;
  --green-dark: #153d2a;
  --gold: #a27b26;
  --cream: #f4f0e5;
  --paper: #fffdf8;
  --line: #d9d4c7;
  --error: #9d2f2f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 0, #fffaf0 0, transparent 32rem), var(--cream); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #c28d19; outline-offset: 3px; }
.site-header { min-height: 82px; padding: 16px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(23,56,43,.12); background: rgba(255,253,248,.9); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .08em; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; font-size: 24px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.booking-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 7vw, 88px) 0 72px; }
.booking-intro { max-width: 760px; margin-bottom: 42px; }
.booking-intro h1 { max-width: 700px; margin: 8px 0 16px; font: 500 clamp(40px, 6vw, 76px)/.98 Georgia, serif; letter-spacing: -.04em; }
.booking-intro > p:last-child { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.eyebrow, .step-count { margin: 0; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.notice { margin-bottom: 24px; padding: 16px 18px; border: 1px solid #d0b36c; background: #fff8df; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.booking-builder { min-width: 0; }
.step-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.step-progress li { min-width: 0; border-top: 3px solid var(--line); padding-top: 9px; }
.step-progress li span { display: none; }
.step-progress .is-current, .step-progress .is-complete { color: var(--green); border-color: var(--green); }
.booking-step { min-height: 510px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 60px rgba(34, 49, 39, .07); }
.booking-step h2, .order-summary h2, .auth-card h1, .dashboard h1 { margin: 8px 0 10px; font: 500 clamp(28px, 4vw, 42px)/1.08 Georgia, serif; letter-spacing: -.025em; }
.booking-step h2:focus { outline: none; }
.field-help { color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.category-card, .service-card { min-height: 132px; padding: 18px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.category-card { border-top: 4px solid var(--accent); }
.category-card:hover, .service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20,49,36,.08); }
.category-card[aria-pressed="true"], .service-card[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); background: #f3f9f4; }
.category-card span, .category-card strong, .category-card small, .service-card > span { display: block; }
.card-kicker, .service-heading > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.category-card strong { margin: 14px 0 4px; font: 500 22px Georgia, serif; }
.category-card small { color: var(--muted); }
.service-fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.service-fieldset legend { margin-bottom: 12px; font-weight: 800; }
.service-grid { display: grid; gap: 10px; }
.service-card { min-height: 0; }
.service-heading { display: flex !important; justify-content: space-between; gap: 12px; }
.service-heading strong { font-size: 16px; }
.service-description { margin: 10px 0; color: var(--muted); line-height: 1.5; }
.service-price { color: var(--green); font-weight: 800; }
.field-label, .field-grid label > span { display: block; margin: 28px 0 8px; font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); border: 1px solid #aaa99f; border-radius: 0; background: white; }
textarea { resize: vertical; }
.quantity-list, .addon-list { margin: 28px 0; border-top: 1px solid var(--line); }
.quantity-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.quantity-row strong, .quantity-row small { display: block; }
.quantity-row small { margin-top: 4px; color: var(--muted); }
.quantity-control { display: grid; grid-template-columns: 44px 42px 44px; align-items: center; text-align: center; }
.quantity-control button { width: 44px; height: 44px; border: 1px solid var(--green); border-radius: 50%; background: white; color: var(--green); font-size: 22px; cursor: pointer; }
.quantity-control output { font-weight: 800; }
.empty-state { padding: 24px; border: 1px dashed var(--line); color: var(--muted); line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.field-grid .full-field { grid-column: 1 / -1; }
.field-grid small { color: var(--muted); font-weight: 400; }
.check-field { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; line-height: 1.5; }
.check-field input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border: 1px solid var(--green); background: var(--green); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-secondary { background: transparent; color: var(--green); }
.order-summary { position: sticky; top: 24px; padding: 30px; color: #f9f5e9; background: var(--green-dark); box-shadow: 0 24px 60px rgba(16,48,32,.2); }
.order-summary .eyebrow { color: #d9b862; }
.summary-details { margin: 24px 0; border-top: 1px solid rgba(255,255,255,.18); }
.summary-details div, .summary-lines > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.summary-details dt, .summary-lines span:first-child { color: #c4d0c7; }
.summary-details dd { margin: 0; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 8px; font-size: 18px; }
.summary-total strong { font: 500 28px Georgia, serif; }
.summary-note, .secure-note { color: #c4d0c7; font-size: 12px; line-height: 1.5; }
.button-checkout { width: 100%; margin-top: 14px; border-color: #e1bf67; background: #e1bf67; color: #193729; }
.button-checkout:hover { background: #f1d381; }
.secure-note { display: flex; gap: 8px; margin-top: 16px; }
.form-status { min-height: 20px; color: #ffd0c8; font-weight: 700; }
.builder-status { min-height: 22px; margin: 14px 0 0; color: var(--error); font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 26px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); font-size: 13px; }

/* Shared authenticated and confirmation pages */
.page-wrap { width: min(1080px, calc(100% - 40px)); min-height: 70vh; margin: 0 auto; padding: 64px 0; }
.auth-card { width: min(520px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); background: var(--paper); }
.auth-card label { display: block; margin: 20px 0; font-weight: 800; }
.auth-card label input { margin-top: 8px; }
.status-pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #e2ede4; color: var(--green); font-size: 12px; font-weight: 800; text-transform: capitalize; }
.status-pill.payment { background: #e9f4ec; }
.status-pill.pending { background: #fff0c7; color: #795a13; }
.dashboard-grid { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 28px; align-items: start; }
.order-list, .order-card, .message-panel { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.order-link { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-link strong, .order-link small { display: block; }
.order-link small { margin-top: 5px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.detail-grid div { padding: 14px; background: #f5f2ea; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 12px; }
.messages { display: grid; gap: 10px; margin: 20px 0; }
.message { max-width: 82%; padding: 12px 14px; background: #eef3ef; line-height: 1.5; }
.message.customer { margin-left: auto; background: #dcebdd; }
.message.system { max-width: 100%; color: var(--muted); background: #f3efe5; text-align: center; font-size: 13px; }
.message small { display: block; margin-top: 5px; color: var(--muted); }
.message-form textarea { margin-bottom: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.inline-form select { min-height: 44px; padding: 8px; }
.error-box { padding: 14px; border: 1px solid #c87373; background: #fff0ee; color: var(--error); }

@media (max-width: 840px) {
  .site-header { align-items: flex-start; }
  .site-header nav { display: block; text-align: right; }
  .site-header nav a { display: flex; justify-content: flex-end; }
  .booking-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; grid-row: 2; }
  .booking-builder { grid-row: 1; }
  .desktop-checkout-hint { display: none; }
}
@media (max-width: 560px) {
  .booking-shell, .page-wrap { width: min(100% - 24px, 1240px); padding-top: 36px; }
  .site-header { padding: 12px; }
  .brand small { display: none; }
  .site-header nav { font-size: 13px; }
  .category-grid, .field-grid, .detail-grid { grid-template-columns: 1fr; }
  .step-progress { overflow-x: auto; }
  .step-progress li { min-width: 68px; }
  .booking-step, .order-summary { padding: 22px; }
  .site-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
