:root {
  color-scheme: light;
  --booking-primary: #153f34;
  --booking-accent: #f4ad45;
  --booking-surface: #ffffff;
  --booking-ink: #17211e;
  --booking-muted: #61706b;
  --booking-line: #dce4e1;
  --booking-danger: #9f2d24;
  --booking-success: #176442;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--booking-ink);
  background:
    radial-gradient(circle at top left, rgba(244, 173, 69, .24), transparent 36rem),
    linear-gradient(160deg, #f8f5ed 0%, #eef4f1 100%);
}

button, input, select, textarea { font: inherit; }

.booking-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
}

.booking-hero { padding: 22px 8px 26px; text-align: center; }
.brand-mark { display: block; margin: 0 auto 12px; }
.eyebrow, .step-label {
  margin: 0 0 6px;
  color: var(--booking-primary);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.booking-hero h1, .policy-card h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.02; }
.business-name { margin: 12px 0 0; color: var(--booking-primary); font-size: 1.12rem; font-weight: 800; }
.hero-copy { max-width: 560px; margin: 10px auto 0; color: var(--booking-muted); line-height: 1.6; }

.booking-card {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid rgba(21, 63, 52, .10);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 60px rgba(21, 63, 52, .13);
}
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.secure-chip { padding: 7px 10px; border-radius: 999px; color: var(--booking-success); background: #e8f6ef; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: .9rem; font-weight: 800; }
.field em { color: var(--booking-muted); font-size: .78rem; font-style: normal; font-weight: 500; }
.field small { color: var(--booking-muted); line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--booking-line);
  border-radius: 13px;
  color: var(--booking-ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--booking-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(21, 63, 52, .12);
}
.field select:disabled { color: #77837f; background: #f1f4f3; }

.privacy-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin: 24px 0 18px; color: var(--booking-muted); font-size: .92rem; line-height: 1.5; }
.privacy-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--booking-primary); }
.marketing-check { margin-top: -8px; }
.marketing-check input:disabled + span { opacity: .72; }
a { color: var(--booking-primary); font-weight: 750; }

.status-box { margin: 0 0 16px; padding: 14px 16px; border-radius: 13px; line-height: 1.5; }
.status-box.info { color: #31554b; background: #edf5f2; }
.status-box.error { color: var(--booking-danger); background: #fff0ee; }
.status-box.success { color: var(--booking-success); background: #e9f7ef; }

.primary-action {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--booking-primary);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(21, 63, 52, .22);
}
.primary-action:hover { filter: brightness(1.06); }
.primary-action:focus-visible { outline: 3px solid var(--booking-accent); outline-offset: 3px; }
.primary-action:disabled { cursor: wait; opacity: .62; }
.secondary-action { min-height: 50px; padding: 0 20px; border: 1px solid var(--booking-line); border-radius: 13px; color: var(--booking-primary); background: #fff; font-weight: 850; cursor: pointer; }
.submit-note { margin: 10px 0 0; color: var(--booking-muted); font-size: .78rem; text-align: center; }
.booking-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 22px 8px 0; color: var(--booking-muted); font-size: .82rem; }

.booking-confirmation { width: min(calc(100% - 24px), 560px); padding: clamp(24px, 6vw, 38px); border: 0; border-radius: 24px; color: var(--booking-ink); background: var(--booking-surface); box-shadow: 0 28px 80px rgba(15, 35, 29, .28); }
.booking-confirmation::backdrop { background: rgba(10, 24, 20, .62); backdrop-filter: blur(3px); }
.booking-confirmation-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--booking-success); font-size: 1.55rem; font-weight: 900; }
.booking-confirmation h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 5vw, 2.15rem); }
.booking-confirmation-copy { color: var(--booking-muted); line-height: 1.62; }
.booking-confirmation-copy p { margin: 0 0 12px; }
.booking-confirmation-copy strong { color: var(--booking-ink); }
.booking-confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.booking-confirmation-actions .primary-action { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.policy-shell { width: min(100% - 32px, 760px); }
.policy-card { line-height: 1.7; }
.policy-card h1 { margin-bottom: 24px; }
.policy-card h2 { margin: 28px 0 4px; font-size: 1.2rem; }
.policy-card p { color: #3f4e49; }
.back-link { display: inline-flex; margin-top: 12px; }

@media (max-width: 640px) {
  .booking-shell { width: min(100% - 20px, 820px); padding-top: max(16px, env(safe-area-inset-top)); }
  .booking-hero { padding: 16px 8px 20px; }
  .booking-card { padding: 22px 17px; border-radius: 21px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field-wide { grid-column: auto; }
  .section-heading { align-items: center; }
  .booking-confirmation-actions { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .booking-shell { padding-top: 52px; }
}

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