/* The booking card uses the site's existing fonts and contact-section colours. */
#contact .booking-form {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 688px;
  height: min(688px, calc(100svh - 32px));
  min-height: 480px;
}
#contact .booking-form [hidden] { display: none !important; }
#contact .booking-form > h3 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
  letter-spacing: -.5px;
  text-align: center;
}
#contact .booking-ui { display: flex; flex: 1; flex-direction: column; min-height: 0; }
#contact .booking-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 31px;
  padding: 0;
  list-style: none;
}
#contact .booking-progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #7f8d83;
  font-size: 11px;
  font-weight: 500;
}
#contact .booking-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 1px;
  background: #9eafa2;
}
#contact .booking-progress-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #d0dbcd;
  border-radius: 50%;
  background: #f8faf5;
  color: #24493a;
  font-size: 10px;
}
#contact .booking-progress li[aria-current="step"] { color: #173a2c; font-weight: 600; }
#contact .booking-progress li[aria-current="step"] .booking-progress-number { background: #123729; border-color: #123729; color: #fff; }
#contact .booking-progress li.is-complete .booking-progress-number { background: #c6e7c3; border-color: #c6e7c3; color: #194a2d; }
#contact .booking-step { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px; margin: -3px; scrollbar-width: thin; scrollbar-color: #a7b9a8 transparent; }
#contact .booking-step h4, #contact .booking-success h4 { margin: 0 0 19px; font-family: "Manrope", sans-serif; font-size: 23px; line-height: 1.3; letter-spacing: -.5px; color: var(--ink); }
#contact .booking-step h4:focus, #contact .booking-success h4:focus { outline: none; }
#contact .booking-calendar { flex: 0 0 auto; width: 100%; max-width: 372px; align-self: center; padding: 10px 10px 12px; border: 1px solid #d3ddd0; border-radius: 8px; }
#contact .booking-calendar-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; margin-bottom: 12px; text-align: center; }
#contact .booking-calendar-heading strong { color: #153d2e; font-size: 13px; font-weight: 600; }
#contact .booking-month-arrow { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #214937; font-size: 25px; line-height: 1; }
#contact .booking-month-arrow:hover:not(:disabled) { background: #e6efe3; }
#contact .booking-month-arrow:disabled { color: #b8c2b8; cursor: not-allowed; }
#contact .booking-weekdays, #contact .booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
#contact .booking-weekdays { margin-bottom: 7px; color: #52675b; font-size: 10px; }
#contact .booking-day, #contact .booking-day-empty {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(42px, 100%);
  height: 38px;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #143d2c;
  font-size: 12px;
  transition: background-color 160ms ease, color 160ms ease;
}
#contact .booking-day:not(:disabled):not([aria-pressed="true"]):hover { background: #e6efe3; color: #143d2c; }
#contact .booking-day:disabled { color: #a4afa6; cursor: not-allowed; }
#contact .booking-day[aria-pressed="true"] { background: #19472e; border-color: #19472e; color: #fff; }
#contact .booking-day[aria-pressed="true"]:hover { background: #255a3b; border-color: #255a3b; color: #fff; }
#contact .booking-day:focus-visible, #contact .booking-time:focus-visible,
#contact .booking-month-arrow:focus-visible, #contact .booking-actions button:focus-visible,
#contact .booking-selection button:focus-visible { outline: 3px solid #3a9663; outline-offset: 2px; }
/* Keep keyboard guidance available to assistive technology without altering the mockup. */
#contact #booking-calendar-help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#contact .booking-help { margin: 13px 0 0; color: #687b69; font-size: 10px; line-height: 1.65; }
#contact .booking-actions { display: flex; flex: 0 0 auto; gap: 12px; margin-top: auto; padding-top: 25px; }
#contact .booking-actions button { min-height: 50px; border-radius: 7px; font-size: 12px; font-weight: 600; }
#contact .booking-primary { flex: 1 1 auto; width: 100%; padding: 12px 16px; border: 1px solid #102d23; background: #102d23; color: #fff; }
#contact .booking-primary:disabled { opacity: .48; cursor: not-allowed; }
#contact .booking-primary.cta-circle { --cta-original-background: #102d23; --cta-original-colour: #fff; }
#contact .booking-secondary { flex: 0 0 38%; padding: 12px; border: 1px solid #9db59c; background: transparent; color: #214437; }
#contact .booking-secondary:hover:not(:disabled) { background: #e8f0e5; }
#contact .booking-date-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 24px; color: #254637; font-size: 11px; font-weight: 600; }
#contact .booking-date-meta, #contact .booking-zone { display: inline-flex; align-items: center; gap: 8px; }
#contact .booking-zone { padding-left: 16px; border-left: 1px solid #d9e2d5; color: #607a69; font-weight: 400; }
#contact .booking-date-summary svg, #contact .booking-selection svg { flex: 0 0 17px; width: 17px; height: 17px; color: #3d7452; }
#contact .booking-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #a7b9a8 transparent; }
#contact .booking-time { min-width: 0; min-height: 48px; border: 1px solid #cad9c6; border-radius: 7px; background: #fbfcf8; color: #163d2d; font-size: 12px; font-weight: 600; }
#contact .booking-time:not([aria-pressed="true"]):hover { background: #e6efe3; color: #163d2d; }
#contact .booking-time[aria-pressed="true"] { background: #19472e; border-color: #19472e; color: #fff; }
#contact .booking-time[aria-pressed="true"]:hover { background: #255a3b; border-color: #255a3b; color: #fff; }
#contact .booking-selection { display: flex; align-items: center; gap: 10px; padding: 12px 13px; margin: 0 0 18px; border-radius: 7px; background: #e5efe0; color: #214737; font-size: 11px; font-weight: 600; line-height: 1.6; }
#contact .booking-selection [data-selection-summary] { flex: 1; min-width: 0; }
#contact .booking-selection button { flex: 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: #286545; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#contact .booking-step .field { margin-bottom: 15px; }
#contact .booking-step .field input { min-height: 46px; }
#contact .booking-step .form-note { margin-top: 18px; }
#contact .booking-alert { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #dca996; border-radius: 7px; background: #fff3ed; color: #803c2c; font-size: 11px; line-height: 1.6; }
#contact .booking-noscript { color: #526a59; font-size: 13px; }
#contact .booking-noscript a { text-decoration: underline; }
#contact .booking-success { min-height: 0; overflow-y: auto; padding: 12px 0 16px; color: #526a59; font-size: 13px; line-height: 1.8; }
#contact .booking-success h4 { margin-top: 20px; }
#contact .booking-success strong { color: #173a2c; }
#contact .booking-success-check { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #d8ead2; color: #285d3b; font-size: 21px; }
@media (max-width: 520px) {
  #contact .booking-form > h3 { font-size: 21px; }
  #contact .booking-calendar { padding: 8px 6px 10px; }
  #contact .booking-day, #contact .booking-day-empty { height: 36px; }
  #contact .booking-times { gap: 7px; }
  #contact .booking-time { min-height: 46px; font-size: 11px; }
  #contact .booking-actions { gap: 8px; }
  #contact .booking-date-summary { gap: 8px; }
  #contact .booking-zone { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #contact .booking-day, #contact .booking-actions button { transition: none; }
}

/* Calendar states and selection summary, matching the supplied reference. */
#contact .booking-calendar {
  width: 100%;
  max-width: none;
  align-self: stretch;
  padding: 0;
}
#contact .booking-calendar-heading { padding: 12px 18px 0; margin-bottom: 10px; grid-template-columns: 40px minmax(0, 1fr) 40px; }
#contact .booking-calendar-heading strong { font-size: 14px; font-weight: 650; }
#contact .booking-month-arrow { width: 40px; height: 40px; border: 1px solid #d1dfcd; border-radius: 50%; background: #eaf1e7; font-size: 23px; }
#contact .booking-month-arrow:hover:not(:disabled) { background: #dfeadd; }
#contact .booking-month-arrow:disabled { background: transparent; border-color: #d1dfcd; color: #a2b3aa; }
#contact .booking-weekdays, #contact .booking-days { padding-inline: 18px; }
#contact .booking-weekdays { margin-bottom: 2px; color: #64796b; font-size: 11px; }
#contact .booking-days { gap: 2px 3px; padding-bottom: 14px; }
#contact .booking-day, #contact .booking-day-empty { width: min(44px, 100%); height: 42px; font-size: 15px; }
#contact .booking-day:not(:disabled) { color: #143d2c; font-weight: 600; }
#contact .booking-day:disabled { color: #8d9c93; opacity: 1; }
#contact .booking-day[data-today="true"] { box-shadow: inset 0 0 0 1px #296744; }
#contact .booking-day[aria-pressed="true"],
#contact .booking-day[aria-pressed="true"]:not(:disabled) { color: #fff; }
#contact .booking-day[aria-pressed="true"][data-today="true"] { box-shadow: inset 0 0 0 1px #d6ecd3; }
#contact .booking-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 0 0 7px 7px;
  background: #eaf1e7;
  color: #204a38;
  font-size: 11px;
  line-height: 1.5;
}
#contact .booking-calendar-footer [data-calendar-today] { margin-left: auto; color: #74877a; font-size: 10px; }
@media (max-width: 520px) {
  #contact .booking-calendar { padding: 0; }
  #contact .booking-calendar-heading { padding-inline: 10px; }
  #contact .booking-weekdays, #contact .booking-days { padding-inline: 7px; }
  #contact .booking-day, #contact .booking-day-empty { height: 40px; font-size: 14px; }
  #contact .booking-calendar-footer { padding-inline: 10px; }
}


/* All three stages share one grid cell. Hidden stages contribute their natural
   height but stay invisible and unfocusable, so the tallest stage sets the
   same card height. The document, rather than the card, scrolls if needed. */
#contact .booking-form { height: auto; min-height: 688px; }
#contact .booking-ui { min-height: auto; }
#contact .booking-stage-stack { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 0 auto; }
#contact .booking-stage-stack > .booking-step { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow: visible; }
#contact .booking-form .booking-stage-stack > .booking-step[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
#contact .booking-times, #contact .booking-success { overflow: visible; }
