:root {
  --teal: #1EBDB8;      /* accents */
  --teal-d: #0B7F7B;    /* teal text and white-on-teal buttons */
  --navy: #0B4672;
  --light: #F2F6F7;
  --ink: #17324A;
  --mute: #566D80;
  --line: #CFE3E5;
  --bad: #B3261E;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font: 400 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; }

/* ---------- navy header band (look B) ---------- */
.band { background: var(--navy); color: #fff; padding: 28px 20px 62px; }
.band-in { max-width: 480px; margin: 0 auto; }
.logo {
  display: block; width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #fff; box-shadow: 0 0 0 2px #fff;
}
h1 {
  font: 800 26px/1.15 Montserrat, system-ui, sans-serif; letter-spacing: -.01em;
  color: #fff; margin: 14px 0 4px;
}
.meta { font-weight: 600; font-size: 14px; color: #8FE5E1; margin: 0; }
.welcome { margin: 8px 0 0; color: #D5E3EC; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 28px; }

/* ---------- the booking card ---------- */
.card {
  position: relative; margin-top: -40px; background: #fff; border-radius: 16px;
  padding: 20px 16px 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 70, 114, .06), 0 12px 30px -8px rgba(11, 70, 114, .16);
}
.progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #DCE7EA; }
.progress i {
  display: block; height: 100%; background: var(--teal);
  transform-origin: 0 50%; transform: scaleX(.3333);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 14px; min-height: 32px;
}
.summary-text {
  margin: 0; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--teal-d); color: #fff; font-weight: 600; font-size: 14px;
}
.change, .text-link {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--teal-d);
  text-decoration: underline; text-underline-offset: 3px;
}

.step.fade { animation: fade 120ms ease-out; }
@keyframes fade { from { opacity: 0; } }

.prompt {
  font: 800 20px/1.2 Montserrat, system-ui, sans-serif; color: var(--navy);
  margin: 0 0 12px; outline: none;
}
.sub { margin: -8px 0 12px; font-size: 13px; color: var(--mute); }
.note {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #FFF6E5; color: #6B4A00; font-size: 14px;
}
.note a { color: inherit; font-weight: 600; }
.msg { margin: 0 0 12px; }

/* day grid */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 8px; }
.grid.c7 { gap: 5px; }
.month {
  grid-column: 1 / -1; font: 600 11px/1 Inter, sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute); padding: 6px 2px 0; min-height: 17px;
}
.day, .ph-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 56px; padding: 0; border-radius: 12px;
}
.day {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.day .wd { font-size: 12px; font-weight: 600; color: var(--mute); }
.day .wd.today { color: var(--teal-d); }
.day .dn { font: 800 18px/1.1 Montserrat, system-ui, sans-serif; }
.day:disabled { border-color: transparent; background: #F4F7F8; color: #B5C3CC; cursor: default; }
.day:disabled .wd { color: #B5C3CC; }
.ph-tile { background: #E9EFF1; }
.month.ph { width: 72px; height: 11px; min-height: 0; margin: 6px 2px 0; padding: 0; border-radius: 4px; background: #E9EFF1; }
/* loading shimmer: a soft band sweeps across each placeholder */
.ph-tile, .month.ph { position: relative; overflow: hidden; }
.ph-tile::after, .month.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-100%); animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* time pills */
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time {
  height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.day:not(:disabled):hover, .time:hover { border-color: var(--teal); }
.day.sel, .time.sel { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.day.sel .wd { color: #fff; }

/* details */
.confirm { background: var(--light); border-radius: 12px; padding: 14px; margin: 0 0 14px; }
.confirm p { margin: 0; }
.confirm strong { display: block; font-weight: 600; color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 52px; border: 0; border-radius: 12px; background: var(--teal-d); color: #fff;
  font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn:disabled, .btn[aria-disabled="true"] { cursor: default; opacity: .92; }
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-under { display: block; margin: 10px auto 0; padding: 6px; }
.field { margin: 0 0 12px; }
.field label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 5px; }
.field input {
  width: 100%; height: 48px; border: 1.5px solid #CFDCE2; border-radius: 12px;
  padding: 0 12px; font: 400 16px Inter, system-ui, sans-serif; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 3px rgba(30, 189, 184, .25); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.err { margin: 4px 0 0; font-size: 13px; color: var(--bad); }
.err:empty { display: none; }

/* booked */
.done { text-align: center; padding: 6px 0 4px; }
.check { width: 64px; height: 64px; display: block; margin: 0 auto 12px; }
.check circle, .check path {
  fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
}
.done .prompt { margin-bottom: 10px; }
.when { font: 800 24px/1.2 Montserrat, system-ui, sans-serif; color: var(--navy); margin: 0; }
.zone { font-size: 13px; color: var(--mute); margin: 4px 0 14px; }
.done p { margin: 0 0 12px; }
.cal { display: flex; flex-direction: column; gap: 2px; align-items: center; margin: 0 0 12px; }
.cal a { padding: 5px; }
.done .move { font-size: 14px; color: var(--mute); margin: 0; }

/* ---------- below the card ---------- */
.cue {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 20px auto 0;
  background: none; border: 0; padding: 8px 12px; cursor: pointer;
  font-size: 14px; color: #3E6383; text-align: center;
}
#proof { scroll-margin-top: 16px; }

.foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--mute); }
.foot p { margin: 0 0 6px; }
.foot .text-link { font-size: 13px; padding: 4px 2px; }
.zones { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 8px; }
.zones button {
  border: 1px solid #CFDCE2; border-radius: 999px; padding: 6px 12px; background: #fff;
  color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer;
}
.zones button[aria-pressed="true"] { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 1.4s; }
  .progress i { transition: none; }
  .ph-tile::after, .month.ph::after { animation: none; display: none; }
}
