/* Public booking checkout - clean mobile-first stylesheet */

:root {
  --bg: #f4fbf7;
  --surface: #ffffff;
  --soft: #eef9f3;
  --ink: #17211c;
  --muted: #66756d;
  --line: rgba(23, 33, 28, .13);
  --brand: #12382d;
  --accent: #16a37b;
  --coral: #ff9f7f;
  --success: #15945f;
  --warn: #d85f32;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(18, 56, 45, .12);
  --bottom-bar: 86px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }

.public-booking-v2 {
  min-height: 100svh;
  padding: 76px 10px calc(var(--bottom-bar) + 18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 0 0, rgba(22, 163, 123, .16), transparent 22rem),
    radial-gradient(circle at 100% 0, rgba(255, 159, 127, .16), transparent 22rem),
    var(--bg);
}

.booking-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 520;
}

/* Header */
.hero {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f5f50, #18a57d 58%, var(--coral));
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-brand-row,
.hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-brand-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.hero-logo-tile {
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 20px;
  background: #fff;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-kicker { display: none; }
.hero h1 {
  margin: 0;
  font-size: clamp(1.12rem, 7vw, 1.55rem);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-copy p {
  display: none;
}

.hero-actions {
  display: grid;
  gap: 6px;
}

.hero-chip-row {
  display: grid;
  gap: 6px;
}

.btn {
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 830;
  text-decoration: none;
  cursor: pointer;
}

.btn i,
.section-title i,
.step-badge,
.summary-item i,
.summary-mark,
.slot i,
.pill i,
.step-continue i,
.mini-dot i,
.mini-dot i::before {
  display: grid;
  place-items: center;
  line-height: 1;
}

.hero .btn-soft {
  min-height: 34px;
  justify-content: center;
  padding: 7px 10px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn-soft { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-green { background: var(--success); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn:disabled {
  opacity: 1;
  background: #d8e3dd !important;
  color: #7a8a82 !important;
  border-color: rgba(23, 33, 28, .12) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Mobile progress */
.progress-rail {
  position: fixed;
  inset: 8px 10px auto 10px;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: auto;
  padding: 8px 10px 10px;
  border: 1px solid rgba(23, 33, 28, .1);
  border-radius: 22px;
  background: rgba(244, 251, 247, .98);
  box-shadow: 0 12px 24px rgba(18, 56, 45, .12);
  backdrop-filter: blur(12px);
}

.progress-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a49c;
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
}

.progress-step span {
  max-width: 4.5rem;
  overflow: hidden;
  color: currentColor;
  white-space: normal;
}

.progress-step i {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 2px solid rgba(244, 251, 247, .98);
  border-radius: 999px;
  background: #d6e3dc;
  color: #6f8178;
  box-shadow: 0 0 0 3px rgba(244, 251, 247, .98);
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  top: 14px;
  height: 2px;
  background: rgba(23, 33, 28, .18);
  z-index: 0;
}

.progress-step.available i { background: #dff7eb; color: var(--accent); }
.progress-step.active i { background: #ffcf4a; color: var(--ink); }
.progress-step.done i { background: var(--success); color: #fff; }
.progress-step.done:not(:last-child)::after,
.progress-step.active:not(:last-child)::after { background: rgba(21, 148, 95, .45); }
.progress-step.locked { opacity: 1; cursor: not-allowed; }

/* Checkout flow */
.booking-experience {
  display: grid;
  gap: 12px;
}

.wizard-panel {
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 14px;
}

.wizard-panel > h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 900;
}

.wizard-eyebrow {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.booking-form {
  display: grid;
  gap: 12px;
}

.booking-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-section,
.time-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(18, 56, 45, .045);
}

.form-section.active {
  border-color: rgba(22, 163, 123, .34);
  box-shadow: 0 0 0 4px rgba(22, 163, 123, .08);
}

.form-section.done:not(.active) {
  border-color: rgba(21, 148, 95, .26);
  background: #f0fbf5;
  cursor: pointer;
}

.form-section.locked:not(.active) { opacity: .72; }
.form-section:not(.active) .grid,
.form-section:not(.active) .service-picker,
.form-section:not(.active) .service-info { display: none; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
}

.section-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.section-title i {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--accent);
}

.section-title strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 860;
}

.section-title span { display: none; }

.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 820;
}

.form-section.done .step-badge {
  position: relative;
  overflow: hidden;
  background: var(--success);
  color: #fff;
  font-size: 0;
}

.form-section.done .step-badge::before {
  content: "\f00c";
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

label:not(.service-native) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  font-size: 16px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 163, 123, .55);
  box-shadow: 0 0 0 4px rgba(22, 163, 123, .12);
}

input.field-error,
select.field-error,
textarea.field-error {
  border-color: rgba(180, 35, 24, .72);
  background: #fff7f5;
}

.full { grid-column: 1 / -1; }

.combo { position: relative; }
.combo-results {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 240px;
  overflow: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.combo-option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.combo-option:hover,
.combo-option.active { background: var(--soft); }
.combo-empty,
.service-empty { padding: 12px; color: var(--muted); font-size: .86rem; }

.service-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-picker {
  display: grid;
  gap: 9px;
}

.service-card {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.service-card.active {
  border-color: rgba(22, 163, 123, .45);
  background: #f0fbf5;
}
.service-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .96rem;
  font-weight: 860;
}
.service-card span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.service-info { display: none !important; }

.step-continue {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.step-continue i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

/* Time panel */
.time-panel {
  margin-top: 2px;
  border: 0;
  background: linear-gradient(135deg, #12382d, #0f5f50);
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 56, 45, .18);
}
.time-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}
.time-panel h2::before {
  content: "\f073";
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.time-panel .muted { color: rgba(255,255,255,.78); font-weight: 650; }
.time-panel .btn-soft {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.time-panel .btn-primary:not(:disabled) {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 159, 127, .28);
}

.estimate {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.price { color: #fff; font-size: 1.7rem; font-weight: 900; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
}
.time-panel .pill {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.actions,
.slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.slots:empty { display: none; }
.slot-group { display: contents; }
.slot-group-title { color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 800; }
.slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.slot.active { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.16); }
.slot i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
}
.slot strong { color: #fff; font-size: .9rem; font-weight: 840; }
.slot span { display: block; margin-top: 3px; color: rgba(255,255,255,.68); font-size: .76rem; }
.selected-slot {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .88rem;
}

.notice {
  padding: 11px;
  border: 1px solid rgba(216, 95, 50, .25);
  border-radius: 13px;
  background: #fff4ee;
  color: var(--warn);
  font-size: .84rem;
}
.error { border-color: rgba(180, 35, 24, .28); background: #fff1ef; color: var(--danger); }
.success { border-color: rgba(21, 148, 95, .24); background: #eef9f3; color: var(--success); }
#form-message { margin: 0; }
.booking-policy-inline {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 207, 74, .58);
  border-left: 4px solid #ffcf4a;
  border-radius: 14px;
  background: rgba(255, 246, 214, .14);
  color: #fff4bf;
  font-size: .86rem;
  font-weight: 720;
  line-height: 1.4;
}
.booking-legal-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  font-weight: 680;
  line-height: 1.45;
}
.booking-legal-inline > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #c8f5df;
  font-size: .82rem;
}
.booking-legal-inline p { margin: 0; min-width: 0; }
.booking-legal-inline a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Side rail */
.side-rail { display: grid; gap: 10px; }
.summary-card { display: none; }
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.summary-head h2 { margin: 0; font-size: 1rem; font-weight: 900; }
.summary-mark,
.summary-item i {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
}
.summary-list { display: grid; gap: 8px; margin-top: 12px; }
.summary-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
}
.summary-item strong {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 820;
}
.summary-item span { display: block; color: var(--ink); font-size: .86rem; font-weight: 650; }

.location-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.location-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.location-map iframe { display: block; width: 100%; height: 170px; border: 0; }

/* Mobile bottom bar */
.mobile-booking-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 50px;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 20px);
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 40px rgba(23, 33, 28, .18);
  backdrop-filter: blur(12px);
}
.mobile-booking-bar > div { min-width: 0; }
.mobile-booking-bar strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 900;
}
.mobile-booking-bar #mobile-summary-text { display: none; }
.mobile-booking-bar .btn {
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
}
.mobile-booking-bar #mobile-refresh-slots {
  width: 48px;
  min-width: 48px;
  height: 48px;
  background: #e8f7ef;
  color: var(--accent);
}
.mobile-booking-bar .btn:not(:disabled) {
  background: var(--coral);
  color: var(--ink);
}

.mobile-field-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  min-height: 26px;
}
.mini-dot {
  position: relative;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2ef;
  color: #8a9a92;
}
.mini-dot i,
.mini-dot i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  transform: translate(-50%, -50%);
}
.mini-dot.done { background: #d8f8e7; color: #118252; }
.mini-dot.missing { background: #ffe8da; color: var(--warn); }
.mini-dot.optional { background: #e8edff; color: #526ec7; }

/* Calendar modal */
.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end stretch;
  padding: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(22, 163, 123, .22), transparent 26rem),
    rgba(23, 33, 28, .62);
  backdrop-filter: blur(10px);
}
.calendar-sheet {
  width: 100%;
  height: min(92svh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #f6fbf8;
  box-shadow: 0 -20px 60px rgba(18, 56, 45, .22);
}
.calendar-head {
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(23, 33, 28, .1);
  background: linear-gradient(135deg, #ffffff, #eef9f3);
}
.calendar-title strong { display: block; font-size: 1.15rem; font-weight: 930; letter-spacing: 0; }
.calendar-title span { display: block; margin-top: 3px; color: var(--accent); font-size: .82rem; font-weight: 760; }
.calendar-actions { display: grid; grid-template-columns: 44px 44px 1fr; gap: 8px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 56, 45, .08);
}
.calendar-body { overflow: auto; padding: 12px; }
.calendar-grid-compact { display: grid; grid-template-columns: 1fr; gap: 12px; }
.calendar-day-col {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 28, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(18, 56, 45, .08);
}
.calendar-day-col.today {
  border-color: rgba(22, 163, 123, .34);
  box-shadow: 0 16px 36px rgba(22, 163, 123, .12);
}
.calendar-day-col-head {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6f8ef, #fff5e9);
}
.calendar-day-col-head strong,
.calendar-day-col-head span { display: block; }
.calendar-day-col-head strong { font-size: .98rem; font-weight: 920; }
.calendar-day-col-head span { color: var(--muted); font-size: .78rem; font-weight: 680; }
.calendar-slot-group { display: grid; gap: 8px; }
.calendar-slot-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  color: var(--brand);
  font-size: .84rem;
  font-weight: 900;
}
.calendar-slot-group-title span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0e8;
  color: var(--warn);
  font-size: .72rem;
}
.calendar-slot-choices { display: grid; gap: 7px; }
.calendar-slot {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 33, 28, .11);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 56, 45, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.calendar-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 123, .34);
  box-shadow: 0 12px 24px rgba(18, 56, 45, .1);
}
.calendar-slot.active {
  border-color: rgba(22, 163, 123, .55);
  background: #e9f8ef;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 123, .2), 0 12px 24px rgba(22, 163, 123, .12);
}
.calendar-slot strong,
.calendar-slot span { display: block; line-height: 1.1; }
.calendar-slot strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand);
  font-size: .86rem;
  font-weight: 880;
  white-space: nowrap;
}
.calendar-slot span { margin-top: 3px; color: var(--muted); font-size: .74rem; font-weight: 680; }
.calendar-empty {
  padding: 16px;
  border: 1px dashed rgba(23, 33, 28, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-weight: 680;
  text-align: center;
}

#success {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: center;
}
#success h1 { margin: 0; font-size: 1.7rem; font-weight: 900; }
.success-meta { justify-content: center; }

@media (min-width: 720px) {
  .public-booking-v2 {
    padding: 18px;
  }
  .booking-wrap { gap: 14px; }
  .hero { padding: 18px; }
  .hero-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .hero-brand-main {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }
  .hero-logo-tile { width: 84px; border-radius: 22px; }
  .hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    max-width: 760px;
  }
  .hero-actions {
    min-width: 230px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .hero .btn-soft {
    min-height: 38px;
    padding: 8px 12px;
    font-size: .86rem;
  }
  .hero-copy {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
    align-items: end;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .hero-copy p {
    display: block;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .86rem;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions .btn-primary,
  .actions .btn-green { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-group-title { grid-column: 1 / -1; }
  .calendar-modal { place-items: center; padding: 18px; }
  .calendar-sheet {
    width: min(100%, 1080px);
    height: min(88vh, 720px);
    border-radius: 24px;
  }
  .calendar-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 18px 20px;
  }
  .calendar-actions {
    grid-template-columns: 44px 44px auto;
  }
  .calendar-body { padding: 16px; }
  .calendar-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .calendar-day-col { padding: 14px; }
  .mobile-booking-bar { display: none; }
}

@media (min-width: 1020px) {
  .public-booking-v2 {
    min-height: 100vh;
    padding: 18px;
  }
  .booking-wrap {
    width: min(100%, 1220px);
    gap: 14px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #12382d 0%, #1b8d72 100%);
  }
  .hero-brand-row {
    display: block;
  }
  .hero-brand-main {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }
  .hero-logo-tile {
    width: 78px;
    border-radius: 20px;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 4.7vw, 4rem);
    line-height: .96;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
  }
  .hero-actions .btn {
    width: auto;
  }
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
    gap: 10px 18px;
    align-items: start;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .hero-copy p {
    align-self: start;
    max-width: none;
    padding-top: 2px;
    font-size: .9rem;
    line-height: 1.35;
  }
  .hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    max-width: 850px;
  }
  .booking-experience {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .side-rail {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 18px;
    gap: 12px;
  }
  .wizard-panel {
    grid-column: 2;
    min-height: calc(100vh - 160px);
    padding: 26px 30px 30px;
    border-radius: 22px;
  }
  .wizard-panel > h2 { font-size: 2.05rem; }
  .progress-rail {
    position: static;
    width: auto;
    display: grid;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #e8f7ef;
    box-shadow: none;
    backdrop-filter: none;
  }
  .progress-step {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
  }
  .progress-step i {
    flex: 0 0 28px;
    margin: 0;
  }
  .progress-step span {
    display: block;
    max-width: 7rem;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .progress-step::after { display: none; }
  .form-section,
  .form-section:not(.active) { padding: 18px; }
  .service-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-panel {
    width: auto;
    margin: 22px 0 0;
    padding: 26px 30px;
    border-radius: 24px;
    justify-items: stretch;
  }
  .time-panel h2 {
    justify-content: center;
    text-align: center;
  }
  .time-panel .muted {
    text-align: center;
  }
  .time-panel h2,
  .time-panel .muted,
  .time-panel .estimate,
  .time-panel .slots,
  .time-panel .selected-slot,
  .time-panel .notice,
  .time-panel .booking-legal-inline,
  .time-panel .actions { width: 100%; }
  .time-panel .actions {
    grid-template-columns: 1fr;
  }
  .time-panel .actions .btn {
    width: 100%;
  }
  #refresh-slots {
    grid-column: 1 / -1;
  }
  .booking-policy-inline {
    width: 100%;
  }
  .summary-card {
    display: block;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #12382d, #0f2d25);
    color: #fff;
  }
  .summary-head { border-color: rgba(255,255,255,.14); }
  .summary-head h2,
  .summary-item span { color: #fff; }
  .summary-item strong { color: rgba(255,255,255,.58); }
  .summary-item i,
  .summary-mark {
    background: rgba(255,255,255,.1);
    color: #c8f5df;
  }
  .location-card {
    border-radius: 18px;
    background: #fff;
  }
}

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