/* ===========================================================
   Schedule page (schedule.html only, body.schedule-page).
   Like the Contact page (css/contact.css): one screen, no page scroll,
   on the site's page colour with a slim footer on the same colour, and
   the booking form is the Contact page's blue enquiry card (the field,
   checkbox, error and Turnstile rules in contact.css cover #schedulerForm
   too). Step 1 (choose a time) is the same card shape: the calendar on
   the blue, the times on white.

   ONE SCREEN: every height below scales with the small viewport height
   (svh), clamped, plus a few height-based media queries, so nav, steps,
   card and footer fit inside 100svh from 360x740 phones up to
   1920x1080. Nothing locks scrolling: below the supported heights (e.g.
   phone landscape) the page simply scrolls.
   =========================================================== */

.schedule-page{
  --ct-blue: #385C95;
  --ct-field-ink: #24406E;
  --ct-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23385C95' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ct-snap: cubic-bezier(.34,1.45,.64,1);
  --ct-ease: cubic-bezier(.2,.7,.2,1);

  /* Fit-to-screen tokens (desktop; overridden per breakpoint) */
  --sc-top: clamp(5.5rem, 12svh, 7rem);        /* clears logo + pill nav */
  --ct-f-h: clamp(2.25rem, 5svh, 3rem);          /* input/select height */
  --ct-gap: clamp(0.3125rem, 1svh, 0.625rem);           /* form row gap */
  --ct-ta-h: clamp(3rem, 7svh, 5rem);         /* textarea */
  --ct-ta-pad: clamp(0.5rem, 1.2svh, 0.75rem);
  --ct-submit-h: clamp(2.5rem, 5.4svh, 3.25rem);
  --ct-card-py: clamp(0.875rem, 2.6svh, 1.875rem);
  --ct-card-px: clamp(1.125rem, 2.8vw, 2.5rem);
  --sc-day: clamp(1.875rem, min(5.4svh, 4.6vw), 2.875rem);   /* calendar day button */

  background: var(--paper-alt);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.schedule-page main.page-shell{ flex: 1 0 auto; display: flex; flex-direction: column; background: transparent; }
.sc-wrap{
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 68.75rem; margin: 0 auto;
  padding: var(--sc-top) var(--gutter) clamp(0.375rem, 1.4svh, 1.125rem);
}
.schedule-page .scheduler{ width: 100%; }

/* Steps: "Choose time — Your info" */
.schedule-page .scheduler-steps{ margin-bottom: clamp(0.5rem, 1.8svh, 1.375rem); }

/* ---------- Footer: on the page's own colour ---------- */
.schedule-page .site-footer{ background: transparent; padding: clamp(0.25rem, 1.4svh, 1.375rem) var(--gutter) clamp(0.625rem, 2.4svh, 1.875rem); }
.schedule-page .site-footer .footer-bottom{ max-width: 68.75rem; margin: 0 auto; padding: 0; font-size: 0.8125rem; color: var(--ink-45); border: 0; }
.schedule-page .site-footer .footer-hire{ font-weight: 700; color: var(--ink); }
/* (the links' enlarged tap area stops at the footer's bottom, so it never
   adds a scrollbar to the one-screen page) */
.schedule-page .site-footer .footer-bottom a::after{ bottom: 0; }

/* ---------- The card (both steps) ---------- */
.schedule-page .scheduler-panel{
  border: 0; border-radius: 1.75rem; overflow: hidden;
  box-shadow: 0 1.875rem 3.75rem -2.5rem rgba(17,18,26,.45);
}

/* Step 1: the calendar on the blue, the times on white */
.schedule-page .scheduler-calendar{ background: var(--ct-blue); padding: clamp(0.875rem, 2.6svh, 1.75rem) clamp(1rem, 2.6vw, 1.875rem); }
.schedule-page .scheduler-org-mark{ width: 1.25rem; height: 1.25rem; margin-bottom: clamp(0.25rem, 1svh, 0.75rem); }
.schedule-page .scheduler-calendar :is(h1, h2){
  color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.25rem, min(2.2vw, 3.4svh), 1.75rem); margin: 0 0 clamp(0.5rem, 1.6svh, 1.125rem);
}
.schedule-page .scheduler-month-nav{ margin-bottom: clamp(0.5rem, 1.6svh, 1.125rem); }
.schedule-page .scheduler-weekdays{ margin-bottom: clamp(2px, .6svh, 0.5rem); color: rgba(255,255,255,.7); }
.schedule-page .scheduler-days{ row-gap: clamp(1px, .4svh, 0.25rem); }
.schedule-page .scheduler-day{ aspect-ratio: auto; width: var(--sc-day); height: var(--sc-day); justify-self: center; }
.schedule-page .scheduler-day.is-selected{ color: var(--ct-blue); }
.schedule-page .scheduler-day:disabled{ color: rgba(255,255,255,.35); }
.schedule-page .scheduler-slots{ padding: clamp(0.875rem, 2.6svh, 1.75rem) clamp(1rem, 2.6vw, 1.875rem); gap: clamp(0.625rem, 2svh, 1.125rem); }
.schedule-page .scheduler-field-label{ margin-bottom: clamp(0.375rem, 1.2svh, 0.75rem); }
.schedule-page .scheduler-duration-btn.is-active{ background: rgba(56,92,149,.08); border-color: var(--ct-blue); color: var(--ct-blue); }
.schedule-page .scheduler-tz{ margin-bottom: clamp(0.5rem, 1.4svh, 0.875rem); }
.schedule-page .scheduler-times{ max-height: min(17.5rem, 34svh); }
.schedule-page .scheduler-time-btn{ padding: clamp(0.5rem, 1.3svh, 0.75rem) 1rem; }
.schedule-page .scheduler-time-btn:hover{ border-color: var(--ct-blue); color: var(--ct-blue); }

/* Step 2: the Contact page's blue enquiry card */
.schedule-page .scheduler-panel--info{
  max-width: 45rem; margin: 0 auto;
  background: var(--ct-blue); color: #fff;
  padding: var(--ct-card-py) var(--ct-card-px); --card-pad-b: var(--ct-card-py);
}
.schedule-page .scheduler-summary{ align-items: center; gap: 1rem; padding-bottom: clamp(0.5rem, 1.4svh, 0.875rem); margin-bottom: clamp(0.5rem, 1.6svh, 1rem); border-bottom-color: rgba(255,255,255,.22); }
.schedule-page .scheduler-summary-when{ color: #fff; font-size: clamp(1rem, min(1.6vw, 2.6svh), 1.25rem); margin-bottom: 0.1875rem; }
.schedule-page .scheduler-summary-location{ color: rgba(255,255,255,.85); }
.schedule-page .scheduler-summary-location svg{ color: #fff; }
.schedule-page .scheduler-edit-link{ color: #fff; }
.schedule-page .scheduler-edit-link:focus-visible{ outline: 0.1875rem solid rgba(255,255,255,.7); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.schedule-page .scheduler-form{ max-width: none; }
#schedulerForm{ --form-gap: var(--ct-gap); }

/* Guests: one white field with its Add button; the count shows once
   someone's been added */
.schedule-page .scheduler-guests label{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.schedule-page .scheduler-guest-input-row{ gap: clamp(0.5rem, 1vw, 0.75rem); }
.schedule-page .scheduler-guest-input-row input{
  height: var(--ct-f-h); padding: 0 1rem; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid transparent; border-radius: 0.5rem;
}
.schedule-page .scheduler-guest-input-row input::placeholder{ color: var(--ct-field-ink); opacity: 1; font-weight: 500; }
.schedule-page .scheduler-guest-input-row input:focus{ outline: 0.1875rem solid rgba(255,255,255,.6); outline-offset: 2px; border-color: transparent; }
.schedule-page #schedulerAddGuest{
  height: var(--ct-f-h); padding: 0 1.25rem; border-color: rgba(255,255,255,.85); color: #fff; --btn-fill: #fff;
}
.schedule-page #schedulerAddGuest:hover{ color: var(--ct-blue); }
.schedule-page .scheduler-guest-count{ margin: 0.375rem 0 0; font-size: 0.7813rem; color: rgba(255,255,255,.8); }
.schedule-page .scheduler-guests:has(.scheduler-guest-list:empty) .scheduler-guest-count{ display: none; }
.schedule-page .scheduler-guest-list{ margin-top: 0.5rem; justify-content: flex-start; }
.schedule-page .scheduler-guest-list:empty{ display: none; }
.schedule-page .scheduler-guest-chip{ background: #fff; color: var(--ink); }

/* The marketing opt-in, centred under the fields */
#schedulerForm .form-checkbox{ justify-content: center; text-align: left; }

/* Back and Confirm: an outline and the Contact page's white button,
   each sized to its label, centred together */
.schedule-page .scheduler-form-actions{ display: flex; justify-content: center; gap: clamp(0.5rem, 1vw, 0.75rem); margin-top: 2px; }
.schedule-page #schedulerBack{ height: var(--ct-submit-h); padding: 0 1.5rem; border-color: rgba(255,255,255,.85); color: #fff; --btn-fill: #fff; }
.schedule-page #schedulerBack:hover{ color: var(--ct-blue); }
.schedule-page .scheduler-confirm-btn{
  height: var(--ct-submit-h); justify-content: center; padding: 0 2.25rem;
  background: #fff; color: var(--ink); font-size: clamp(0.9375rem, 2.2svh, 1.0625rem); font-weight: 600;
  --bm-star-c: var(--ct-blue); --bm-star-on: var(--ct-blue);
}
.schedule-page .scheduler-confirm-btn:hover{ background: #fff; color: var(--ink); }
.scheduler-confirm-btn:focus-visible, .schedule-page #schedulerBack:focus-visible, .schedule-page #schedulerAddGuest:focus-visible{ outline: 0.1875rem solid rgba(255,255,255,.7); outline-offset: 0.1875rem; }
.schedule-page .scheduler-confirm-btn:disabled{ opacity: .72; cursor: progress; }

/* Confirmed: the blue card's success state */
.schedule-page .scheduler-panel--confirmed{
  max-width: 45rem; margin: 0 auto; background: var(--ct-blue); color: #fff;
  padding: clamp(2.25rem, 7svh, 4rem) 2rem;
}
.schedule-page .scheduler-confirmed-icon{ background: #fff; color: var(--ct-blue); border-radius: 1.125rem; }
.schedule-page .scheduler-panel--confirmed h2{ color: #fff; font-weight: 700; letter-spacing: -.025em; }
.schedule-page .scheduler-panel--confirmed p{ color: rgba(255,255,255,.88); }
.schedule-page .scheduler-panel--confirmed .scheduler-confirmed-note{ color: rgba(255,255,255,.75); }


/* The select chevron in the field ink (contact.css draws its own for
   #contactForm; this is the same one) */
#schedulerForm .form-field select{
  padding-right: 2.625rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2324406E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-size: 1rem 1rem; background-position: right 1rem center;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px){
  .schedule-page{ --sc-top: 5.75rem; }   /* below logo; the hamburger ends at 87px */
}
@media (max-width: 760px){
  .schedule-page{ --sc-day: clamp(1.75rem, min(4.4svh, 11vw), 2.5rem); }
  .schedule-page .scheduler-panel{ border-radius: 1.375rem; }
  .schedule-page .scheduler-panel--info, .schedule-page .scheduler-panel--confirmed{ border-radius: 1.375rem; }
  /* Stacked: a compact calendar, then location and length on one row
     and the times three to a row, so the step fits one screen */
  .schedule-page .scheduler-org-mark{ display: none; }
  .schedule-page .scheduler-calendar :is(h1, h2){ font-size: clamp(1.125rem, 2.8svh, 1.375rem); }
  .schedule-page .scheduler-month-nav{ font-size: 0.9375rem; }
  .schedule-page .scheduler-month-btn{ width: 2rem; height: 2rem; }
  .schedule-page .scheduler-slots{ display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 1rem; }
  .schedule-page .scheduler-slots > .scheduler-field--times{ grid-column: 1 / -1; }
  .schedule-page .scheduler-duration-btn{ min-height: 2.5rem; padding: 0.5rem 0.75rem; }
  .schedule-page .scheduler-times{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-height: none; overflow: visible; padding: 0; }
  .schedule-page .scheduler-time-btn{ padding: 0.625rem 0.25rem; font-size: 0.875rem; }
  .schedule-page .scheduler-tz{ font-size: 0.8125rem; }
}
@media (max-width: 560px){
  .schedule-page{
    --ct-f-h: clamp(2.25rem, 4.7svh, 2.875rem);
    --ct-gap: clamp(0.3125rem, .75svh, 0.5rem);
    --ct-ta-h: clamp(3.25rem, 7svh, 4.75rem);
    --ct-ta-pad: 0.5rem;
    --ct-submit-h: 2.75rem;
    --ct-card-py: clamp(0.75rem, 1.8svh, 1.125rem);
    --ct-card-px: 0.875rem;
  }
  .schedule-page .sc-wrap{ padding-left: 1rem; padding-right: 1rem; }
  .schedule-page .scheduler-steps{ gap: 0.625rem; }
  .schedule-page .scheduler-step-line{ width: 2.25rem; }
  #schedulerForm .form-field input, #schedulerForm .form-field select{ padding: 0 0.75rem; }
  #schedulerForm .form-field select{ padding-right: 1.875rem; background-position: right 0.625rem center; background-size: 0.875rem 0.875rem; }
  #schedulerForm .form-field textarea{ padding: var(--ct-ta-pad) 0.75rem; }
  #schedulerForm .form-field label{ left: 0.75rem; font-size: 0.875rem; max-width: calc(100% - 2.25rem); }
  #schedulerForm .form-checkbox{ font-size: 0.7188rem; line-height: 1.3; gap: 0.625rem; }
  .schedule-page .scheduler-summary-location{ font-size: 0.8125rem; }
  .schedule-page .scheduler-guest-input-row input{ padding: 0 0.75rem; }
  .schedule-page #schedulerAddGuest{ padding: 0 1rem; }
  .schedule-page #schedulerBack{ padding: 0 1.125rem; }
}
/* Short phones: tighter still (and the steps line goes) */
@media (max-width: 760px) and (max-height: 780px){
  .schedule-page{ --sc-top: 5.25rem; --sc-day: clamp(1.625rem, 4.2svh, 2rem); --ct-f-h: 2.125rem; --ct-gap: 0.3125rem; --ct-ta-h: 3rem; --ct-card-py: 0.625rem; }
  .schedule-page .scheduler-steps{ display: none; }
  .schedule-page .scheduler-calendar{ padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .schedule-page .scheduler-slots{ padding-top: 0.625rem; padding-bottom: 0.75rem; gap: 0.5rem; }
  .schedule-page .scheduler-time-btn{ padding: 0.5rem 0.25rem; }
}
/* Very short phones (e.g. iPhone SE in the browser, 320x568): the
   calendar's heading and the field headings stay for screen readers
   only, and everything packs tighter */
@media (max-width: 760px) and (max-height: 620px){
  .schedule-page{ --sc-top: 4.75rem; --sc-day: 1.4375rem; --ct-f-h: 1.9375rem; --ct-gap: 0.25rem; --ct-ta-h: 2.375rem; --ct-ta-pad: 0.375rem; --ct-submit-h: 2.5rem; --ct-card-py: 0.5rem; }
  .schedule-page .scheduler-calendar :is(h1, h2),
  .schedule-page .scheduler-field-label{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .schedule-page .scheduler-month-nav{ margin-bottom: 0.25rem; }
  .schedule-page .scheduler-month-btn{ width: 1.75rem; height: 1.75rem; }
  .schedule-page .scheduler-slots{ align-items: center; }
  .schedule-page .scheduler-duration-btn{ min-height: 2.125rem; padding: 0.375rem 0.625rem; font-size: 0.8125rem; }
  .schedule-page .scheduler-tz{ margin-bottom: 0.375rem; font-size: 0.75rem; }
  .schedule-page .scheduler-time-btn{ padding: 0.375rem 2px; font-size: 0.8125rem; }
  .schedule-page .scheduler-summary{ padding-bottom: 0.375rem; margin-bottom: 0.375rem; }
  .schedule-page .scheduler-summary-when{ font-size: 0.9375rem; }
  .schedule-page .scheduler-summary-location{ display: none; }
  #schedulerForm .form-checkbox{ font-size: 0.6875rem; }
  .schedule-page .site-footer{ padding-top: 2px; padding-bottom: 0.375rem; }
}
/* Narrow phones: the half-width select keeps a readable label */
@media (max-width: 420px){
  #schedulerForm .form-field:has(select) label span{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px){
  #schedulerForm .cf-turnstile{ min-width: 0; width: 100%; }
  #schedulerForm .cf-turnstile > *{ flex: none; transform: scale(.88); transform-origin: 50% 50%; }
}
