.booking-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}

.booking-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.booking-heading .eyebrow,
.form-heading .eyebrow {
  color: var(--pacifico);
}

.booking-heading h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.booking-heading > p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.demo-badge {
  display: inline-flex;
  padding: .45rem .75rem;
  border: 1px solid #c9d7ee;
  border-radius: 999px;
  color: #294f86;
  background: var(--pacifico-soft);
  font-size: .86rem;
  font-weight: 600;
}

.availability-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 18px;
}

.availability-intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.availability-intro p {
  margin: 0;
  color: var(--muted);
}

.calendar-card,
.selected-day-panel {
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 24px rgba(13,31,93,.045);
}
.month-navigation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; }
.month-navigation h3 { margin: 0; text-align: center; font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.month-navigation button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: var(--paper); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.month-navigation button:hover, .month-navigation button:focus-visible { border-color: var(--pacifico); outline: 3px solid rgba(49,95,168,.18); }
.month-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.weekday-label { padding: 6px 0; color: var(--muted); text-align: center; font-size: .8rem; font-weight: 700; }
.month-blank { min-width: 0; }
.month-day { min-width: 0; min-height: 90px; padding: .55rem .4rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .35rem; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
button.month-day { color: var(--ink); cursor: pointer; }
.month-day .day-number { font-weight: 700; line-height: 1; }
.day-status { font-size: .78rem; font-weight: 700; line-height: 1.2; }
.status-many { border-color: #c5d8ef; background: #edf4ff; }.status-many .day-status { color: #214d82; }
.status-one { border-color: #d6c99e; background: #fff8e8; }.status-one .day-status { color: #71511b; }
.status-full { color: #697586; background: #f4f5f8; }.status-full .day-status { color: #5e6878; }
.status-off { color: #98a2b3; border-color: transparent; background: #f8f9fb; }
.status-unavailable { color: #98a2b3; border-color: transparent; background: #f8f9fb; }
.status-past { color: #a1a8b3; border-color: transparent; background: #f5f6f8; }
.status-past .day-number { text-decoration: line-through; text-decoration-thickness: 1.5px; }
button.month-day:hover, button.month-day:focus-visible { border-color: var(--pacifico); outline: 3px solid rgba(49,95,168,.2); }
button.month-day[aria-pressed="true"] { border: 2px solid var(--navy-2); box-shadow: inset 0 0 0 1px var(--navy-2); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: 16px; color: var(--muted); font-size: .8rem; }
.calendar-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.availability-status { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.availability-status:empty { display: none; }
.availability-status button { margin-left: 12px; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-2); background: white; cursor: pointer; }
.legend-dot { width: 12px; height: 12px; display: inline-block; border: 1px solid var(--line); border-radius: 4px; }
.legend-dot.many { background: #edf4ff; }.legend-dot.one { background: #fff8e8; }.legend-dot.full { background: #f4f5f8; }.legend-dot.off { background: #f8f9fb; }
.existing-booking { max-width: 640px; padding: 26px; border: 1px solid #c9d7ee; border-radius: 20px; background: var(--pacifico-soft); }
.existing-booking .eyebrow { color: var(--pacifico); }
.existing-booking h2 { margin: 6px 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.existing-booking p { margin: 0 0 10px; color: var(--muted); }
.existing-booking #existing-booking-text { color: var(--ink); font-weight: 700; }
.selected-day-panel { margin-top: 18px; }
.selected-day-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.selected-day-heading .eyebrow { color: var(--pacifico); }
.selected-day-heading h3 { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.65rem); text-transform: capitalize; }
.selected-day-heading p:last-child { margin: 0; color: var(--muted); }

.time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.time-button {
  min-width: 98px;
  min-height: 52px;
  padding: .7rem;
  border: 1px solid #b8c9e4;
  border-radius: 12px;
  color: #173b70;
  background: var(--pacifico-soft);
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.time-button:hover,
.time-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(13,31,93,.11);
  outline: 3px solid rgba(49,95,168,.22);
}

.time-button[aria-pressed="true"] {
  color: white;
  border-color: var(--navy-2);
  background: var(--navy-2);
  box-shadow: 0 8px 18px rgba(22,48,122,.22);
}
.continue-button { min-height: 48px; margin-top: 18px; padding: .7rem 1.6rem; border: 0; border-radius: 12px; color: white; background: var(--navy-2); font-weight: 700; cursor: pointer; }
.continue-button:hover, .continue-button:focus-visible { background: var(--navy); outline: 3px solid rgba(49,95,168,.2); }

.patient-step {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 1.5fr);
  gap: 18px;
}

.selection-summary,
#booking-form,
.booking-success {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 24px rgba(13,31,93,.045);
}

.selection-summary {
  padding: 22px;
  align-self: start;
  color: white;
  border: 0;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
}

.selection-summary span,
.selection-summary small {
  display: block;
  color: rgba(255,255,255,.78);
}

.selection-summary strong {
  display: block;
  margin: 7px 0;
  font: 600 1.3rem/1.3 "Sora", sans-serif;
}

#booking-form {
  padding: 24px;
}

.form-heading {
  margin-bottom: 18px;
}

.form-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}

.form-grid label span {
  color: var(--muted);
  font-weight: 500;
}

.form-grid input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: .7rem .8rem;
  border: 1px solid #b9c2d0;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
}

.form-grid input:focus {
  border-color: var(--pacifico);
  outline: 3px solid rgba(49,95,168,.18);
}

.field-wide {
  grid-column: 1 / -1;
}

.confirm-button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--navy-2);
  font-weight: 700;
  cursor: pointer;
}

.confirm-button:hover,
.confirm-button:focus-visible {
  background: var(--navy);
  outline: 3px solid rgba(49,95,168,.25);
}
.change-selection { margin-top: 12px; padding: .4rem 0; border: 0; color: var(--navy-2); background: transparent; font-weight: 700; text-decoration: underline; cursor: pointer; }
.selection-summary .change-selection { color: white; }
.form-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.form-status { min-height: 1.4em; margin: 10px 0 0; color: #8a2d2d; text-align: center; font-weight: 600; }
.confirm-button:disabled { opacity: .55; cursor: wait; }
.booking-success dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.simulation-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .82rem;
}

.booking-success {
  max-width: 620px;
  margin: 34px auto 0;
  padding: 34px;
  text-align: center;
}

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--boadilla);
  font-size: 1.6rem;
  font-weight: 700;
}

.booking-success .eyebrow {
  color: var(--boadilla);
}

.booking-success h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.booking-success dl {
  margin: 24px 0;
  padding: 4px 18px;
  border-radius: 14px;
  background: var(--paper);
}

.booking-success dl div {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.booking-success dl div:last-child {
  border-bottom: 0;
}

.booking-success dt {
  color: var(--muted);
}

@media (max-width: 720px) {
  .booking-main { width: min(100% - 24px, 1180px); padding: 34px 0 90px; }
  .availability-intro, .selected-day-heading { display: block; }
  .availability-intro p, .selected-day-heading p:last-child { margin-top: 8px; }
  .month-day { min-height: 70px; padding: .45rem .25rem; border-radius: 9px; }
  .day-status { font-size: .62rem; overflow-wrap: anywhere; }
  .patient-step { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .booking-success { padding: 24px 18px; }
}

.booking-success dd {
  margin: 0;
  font-weight: 700;
}

.success-button {
  width: 100%;
  color: white;
  background: var(--navy-2);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .booking-main {
    width: min(100% - 32px, 620px);
    padding: 42px 0;
  }

  .booking-heading {
    margin-bottom: 28px;
  }

  .booking-heading h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .availability-intro {
    display: block;
  }

  .availability-intro p {
    margin-top: 6px;
  }

  .patient-step {
    grid-template-columns: 1fr;
  }

  .month-grid { gap: 4px; }
  .month-day { min-height: 68px; padding: .4rem .25rem; border-radius: 9px; }
  .day-status { font-size: .65rem; letter-spacing: -.03em; }
  .selected-day-heading { display: block; }
  .selected-day-heading p:last-child { margin-top: 6px; }
  .time-button { flex: 1 0 82px; }
  .continue-button { width: 100%; }

  .patient-step {
    margin-top: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .booking-success {
    padding: 26px 20px;
  }
}

@media (max-width: 390px) {
  .booking-main { width: calc(100% - 20px); }
  .calendar-card { padding: 8px; }
  .month-grid { gap: 2px; }
  .month-day { min-height: 62px; padding: .35rem .15rem; }
  .day-status { font-size: .61rem; letter-spacing: -.045em; }
  .calendar-legend { font-size: .72rem; }
}
