.booking-hero { min-height: clamp(178px, 24svh, 252px); text-align: center; }
.booking-hero::before, .booking-hero .line-field { animation: none; }
.booking-hero .wrap { padding-block: 36px; }
.booking-hero h1 { font-size: clamp(2.55rem, 5vw, 4.5rem); }
.booking-hero p { margin: 10px auto 0; }
.booking-wrap { padding-block: clamp(28px, 4.2vw, 59px); }

.booking-panel {
  --booking-blue: #1753b1;
  --booking-blue-soft: #e9f1ff;
  --booking-grid: #d6dbda;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 90% 380px at 15% 160px, #e4f4ed, transparent), linear-gradient(90deg, #f2faf6, #f8fdfa);
}
.booking-panel::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse 360px 290px at var(--glow-x, 50%) var(--glow-y, 50%), rgb(76 139 255 / .24), transparent 100%);
  opacity: 0;
  transition: opacity .4s ease;
}
.booking-panel[data-glow]::before { opacity: 1; }

.booking-layout { padding: clamp(16px, 3.5vw, 42px); }
.booking-shortcuts { display: flex; justify-content: space-between; gap: 8px; margin-bottom: clamp(14px, 2vw, 28px); }
.booking-shortcuts .button { min-height: 40px; padding-inline: 12px; font-size: .8rem; }
.booking-step { width: min(100%, 52rem); margin-inline: auto; animation: booking-enter .3s var(--ease) both; }
.booking-panel h2 { font-size: clamp(1.45rem, 2.55vw, 2rem); letter-spacing: -.025em; }
.booking-panel h2[tabindex]:focus { outline: none; }
.booking-intake { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.booking-intake > :is(h2, .intake-notes, [data-save-details]) { grid-column: 1 / -1; }
.booking-intake .field { gap: 4px; }
.booking-intake .field :is(input, select, textarea) { padding-inline: 10px; }
.booking-intake .field small { line-height: 1.35; font-size: .71rem; }
.intake-notes summary { display: list-item; padding-block: 7px; color: var(--accent); cursor: pointer; font-size: .82rem; font-weight: 600; }
.intake-notes summary span { color: var(--muted); font-weight: 400; }
.booking-intake [data-save-details] { justify-self: start; }

.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #1a2222;
  text-align: center;
}
.calendar-toolbar h3 { font-size: .94rem; letter-spacing: -.015em; }
.calendar-toolbar button {
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 1.42rem;
  line-height: 1;
}
.calendar-toolbar button:disabled { color: #687371; opacity: .6; cursor: default; }
.calendar-toolbar button:not(:disabled):hover { background: var(--mint); }
.calendar-table {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #9ea8a6;
  border-spacing: 0;
  table-layout: fixed;
  color: #202626;
  background: white;
  text-align: center;
  font-size: .83rem;
}
.calendar-table :is(th, td) { padding: 0; border-inline-end: 1px solid var(--booking-grid); border-block-end: 1px solid var(--booking-grid); }
.calendar-table :is(th, td):last-child { border-inline-end: 0; }
.calendar-table tbody tr:last-child td { border-block-end: 0; }
.calendar-table th { height: 32px; font-size: .68rem; color: #383f3e; background: #f4f6f5; }
.calendar-table abbr { text-decoration: none; }
.calendar-table td > * { width: 100%; height: 43px; display: grid; place-items: center; }
.calendar-table td span { color: #58605f; }
.calendar-date {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--booking-blue-soft);
  color: var(--booking-blue);
  cursor: pointer;
  font-weight: 800;
}
.calendar-date:hover { background: #d6e5ff; }
.calendar-date:focus-visible { outline: 2px solid var(--booking-blue); outline-offset: -3px; }
.calendar-date[aria-current="date"] { box-shadow: inset 0 0 0 2px var(--booking-blue); }
.calendar-status { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: .79rem; }
.booking-picked-date { display: block; margin-top: 9px; font-weight: 700; color: var(--accent); }

@keyframes booking-enter { from { opacity: 0; translate: 10px 0; } to { opacity: 1; translate: none; } }
.booking-time [data-timezone] { margin-top: 7px; }
.booking-time [data-slot-status]:empty { display: none; }
.time-readout { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin-top: 22px; }
.time-readout output { font-size: clamp(1.75rem, 4vw, 3rem); color: var(--accent); font-weight: 800; line-height: 1.2; letter-spacing: -.05em; }
.time-readout span { color: var(--muted); font-size: .78rem; }
.time-slider { position: relative; display: grid; align-items: center; min-height: 52px; margin: 4px 12px 0; cursor: ew-resize; touch-action: pan-y; }
.time-slider:focus-within { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 8px; }
.time-slider input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; pointer-events: none; }
.time-rail { height: 2px; position: relative; background: #748984; }
.time-rail::after, .time-rail i { position: absolute; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.time-rail::after {
  content: "";
  left: var(--slot-position, 0%);
  width: 17px;
  height: 17px;
  border: 2px solid white;
  outline: 2px solid var(--booking-blue);
  background: var(--booking-blue);
}
.time-rail i { width: 7px; height: 7px; background: var(--booking-blue); }
.time-hours { position: relative; min-height: 1.65em; margin-inline: 12px; color: var(--muted); font-size: .77rem; }
.time-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.time-hours span:first-child { transform: none; }
.time-hours span:last-child { transform: translateX(-100%); }
.booking-time [data-review] { margin-top: 22px; }

.booking-summary { overflow-wrap: anywhere; margin-block: 2px 5px; }
.booking-summary div { display: grid; grid-template-columns: minmax(65px, .9fr) minmax(0, 2.5fr); gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-strong); }
.booking-summary dt { color: var(--muted); }
.booking-summary a { text-decoration: underline; }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; min-height: 44px; cursor: pointer; }
.check-field input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: var(--teal-dark); }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.button.confirm-appointment {
  color: var(--teal-dark);
  background: linear-gradient(134deg, rgb(255 255 255 / .9), rgb(167 230 208 / .55));
  border-color: var(--teal-dark);
  box-shadow: inset 0 1px 0 white, 0 6px 16px rgb(31 110 83 / .13);
}
.button.confirm-appointment:not(:disabled):hover { background: var(--mint-middle); }
.booking-panel [data-booking-mode] { margin: 0; padding: 12px clamp(15px, 2vw, 26px); border-top: 1px solid var(--line-strong); }
.booking-panel .form-error { margin: 12px clamp(15px, 2vw, 26px); }
.booking-result { width: min(100%, calc(52rem + clamp(32px, 7vw, 84px))); margin-inline: auto; padding: clamp(16px, 3.5vw, 42px); }
[data-result-message] { color: var(--muted); margin-block: 12px; }
.booking-result > a { margin-top: 10px; }
.booking-panel noscript p { padding: 12px 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 640px) {
  .booking-hero .wrap { padding-block: 28px; }
  .booking-intake { grid-template-columns: minmax(0, 1fr); }
  .booking-intake [data-save-details] { justify-self: stretch; }
  .step-actions > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .booking-panel[data-glow]::before { opacity: 0; }
}
