/* Colonial Heart step-by-step appointment form (assets/smart-form.js). Scoped to .sf. */
.sf, .sf-choose {
  --sf-red: #C0392B; --sf-red-hover: #A93226; --sf-red-bg: #FEF0EE; --sf-red-border: #F5C6C1;
  --sf-ink: #0F172A; --sf-body: #374151; --sf-muted: #6B7280; --sf-border: #E5E7EB; --sf-surface: #F9FAFB;
  font-family: Inter, system-ui, sans-serif; color: var(--sf-body); font-size: 16px; line-height: 1.5;
  text-align: left;
}
.sf *, .sf *::before, .sf *::after { box-sizing: border-box; }
.sf-hd[tabindex="-1"] { outline: none; } /* focused by script on step change, not interactive */
.sf-hd { font-family: Outfit, Inter, sans-serif; font-weight: 700; color: var(--sf-ink); font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
.sf-sub { color: var(--sf-muted); font-size: 14px; margin: 0 0 16px; }
.sf-steps { font-size: 14px; font-weight: 500; color: var(--sf-muted, #6B7280); margin: 0 0 4px; }
.sf-back { background: none; border: 0; padding: 0; margin: 0 0 12px; color: var(--sf-muted); font: inherit; font-size: 14px; cursor: pointer; }
.sf-back:hover { color: var(--sf-ink); text-decoration: underline; }

.sf-choices { display: grid; gap: 10px; }
.sf-choice { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--sf-border); border-radius: 12px; padding: 14px 16px; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.sf-choice:hover, .sf-choice:focus-visible { border-color: var(--sf-red); background: var(--sf-red-bg); outline: none; }
.sf-choice b { display: block; color: var(--sf-ink); font-size: 16px; font-weight: 600; }
.sf-choice span { display: block; color: var(--sf-muted); font-size: 14px; margin-top: 2px; }

.sf-label { display: block; font-size: 14px; font-weight: 600; color: var(--sf-ink); margin: 20px 0 8px; }
.sf-label .sf-opt { color: var(--sf-muted); font-weight: 400; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-row > div { min-width: 0; }
.sf-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.sf input[type=text], .sf input[type=tel], .sf input[type=email], .sf select, .sf textarea {
  width: 100%; border: 1.5px solid var(--sf-border); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 16px;
  color: var(--sf-ink); background: #fff; min-height: 46px;
}
.sf textarea { min-height: 84px; resize: vertical; }
.sf input:focus-visible, .sf select:focus-visible, .sf textarea:focus-visible { outline: 2px solid #666; outline-offset: 1px; border-color: var(--sf-red); }
.sf .sf-filled { background: #FFFBEB; border-color: #F59E0B; }
.sf-err { color: #B91C1C; font-size: 13px; margin-top: 4px; }
.sf-note { font-size: 13px; color: var(--sf-muted); margin-top: 6px; }
.sf-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; }
.sf-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sf-red); flex: none; }

.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { border: 1.5px solid var(--sf-border); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--sf-ink); cursor: pointer; min-height: 40px; }
.sf-chip[aria-pressed=true] { background: var(--sf-red); border-color: var(--sf-red); color: #fff; }
.sf-chip:disabled { color: #9CA3AF; background: var(--sf-surface); cursor: not-allowed; }

.sf-docs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.sf-doc { flex: none; width: 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff; border: 1.5px solid var(--sf-border); border-radius: 12px; padding: 12px 6px; font: inherit; cursor: pointer; }
.sf-doc img, .sf-doc .sf-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sf-red-bg); color: var(--sf-red); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.sf-doc b { display: block; color: var(--sf-ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
.sf-doc span { display: block; color: var(--sf-muted); font-size: 12px; line-height: 1.3; }
.sf-doc[aria-pressed=true] { border-color: var(--sf-red); background: var(--sf-red-bg); }
.sf-doc.sf-none { opacity: .6; }
.sf-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.sf-day { min-width: 0; border: 1.5px solid var(--sf-border); background: #fff; border-radius: 12px; padding: 10px 2px; font: inherit; text-align: center; cursor: pointer; color: var(--sf-ink); }
.sf-day small { display: block; font-size: 12px; text-transform: uppercase; color: var(--sf-muted); letter-spacing: .04em; }
.sf-day b { display: block; font-size: 20px; line-height: 1.25; }
.sf-day i { display: block; font-style: normal; font-size: 12px; color: var(--sf-muted); }
.sf-day[aria-pressed=true] { background: var(--sf-red); border-color: var(--sf-red); color: #fff; }
.sf-day[aria-pressed=true] small, .sf-day[aria-pressed=true] i { color: #fff; }
.sf-day:disabled { opacity: .35; cursor: default; background: var(--sf-surface); }
.sf-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.sf-time { border: 1.5px solid var(--sf-border); background: #fff; border-radius: 12px; padding: 10px 4px; font: inherit; font-size: 15px; font-weight: 600; color: var(--sf-ink); cursor: pointer; min-height: 52px; }
.sf-time small { display: block; font-size: 12px; color: var(--sf-muted); font-weight: 400; }
.sf-time[aria-pressed=true] { background: var(--sf-red); border-color: var(--sf-red); color: #fff; }
.sf-time[aria-pressed=true] small { color: #fff; }

.sf-btn { display: block; width: 100%; margin-top: 18px; background: var(--sf-red); color: #fff; border: 0; border-radius: 10px; padding: 14px 16px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; min-height: 50px; }
.sf-btn:hover { background: var(--sf-red-hover); }
.sf-btn:disabled { background: #D1D5DB; cursor: not-allowed; }
.sf-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--sf-red); text-decoration: underline; cursor: pointer; margin-top: 12px; display: inline-block; }
.sf-mic { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 1.5px dashed var(--sf-red-border); background: var(--sf-red-bg); color: var(--sf-red); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin: 4px 0 2px; }
.sf-mic svg { width: 18px; height: 18px; }
.sf-mic.sf-rec { background: var(--sf-red); color: #fff; border-style: solid; position: sticky; top: 84px; bottom: 16px; z-index: 5; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18); }
@media (max-width: 900px) { .sf-mic.sf-rec { top: 72px; } }

.sf-summary { background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.sf-summary b { color: var(--sf-ink); }
.sf-summary div + div { margin-top: 4px; }
.sf-visit { border: 1.5px solid var(--sf-border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.sf-visit b { color: var(--sf-ink); display: block; }
.sf-visit .sf-acts { display: flex; gap: 8px; margin-top: 10px; }
.sf-visit .sf-acts button { flex: 1; border: 1.5px solid var(--sf-border); background: #fff; border-radius: 10px; padding: 9px; font: inherit; font-size: 14px; cursor: pointer; color: var(--sf-ink); }
.sf-visit .sf-acts button.sf-danger { color: #B91C1C; }
.sf-done { text-align: center; }
.sf-done .sf-tick { width: 52px; height: 52px; border-radius: 50%; background: #DCFCE7; color: #15803D; display: grid; place-items: center; margin: 0 auto 10px; }
.sf-done .sf-tick svg { width: 26px; height: 26px; }
.sf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sf-actions a { display: block; text-align: center; border: 1.5px solid var(--sf-border); border-radius: 10px; padding: 10px; color: var(--sf-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.sf-911 { font-size: 12px; color: var(--sf-muted); margin-top: 14px; text-align: center; }
.sf-call { font-size: 14px; color: var(--sf-muted); margin-top: 14px; text-align: center; }
.sf-call a { color: var(--sf-red); font-weight: 600; text-decoration: none; }
.sf-chat { width: 100%; height: 520px; border: 1px solid var(--sf-border); border-radius: 12px; display: block; }
.sf-sheet { position: fixed; inset: 0; z-index: 2147483000; background: #fff; display: flex; flex-direction: column; }
.sf-sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--sf-border); color: var(--sf-ink); }
.sf-sheet-x { background: none; border: 1.5px solid var(--sf-border); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sf-ink); cursor: pointer; min-height: 40px; }
.sf-sheet .sf-chat { flex: 1; height: auto; border: 0; border-radius: 0; }
.sf-busy { display: flex; align-items: center; gap: 10px; color: var(--sf-muted); font-size: 14px; padding: 18px 0; }
.sf-spin { width: 18px; height: 18px; border: 2px solid var(--sf-border); border-top-color: var(--sf-red); border-radius: 50%; animation: sf-spin .8s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-demo { font-size: 12px; background: #FEF3C7; color: #92400E; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; }
.sf [hidden] { display: none !important; }
.sf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-seg .sf-chip { border-radius: 12px; min-height: 48px; font-weight: 600; }
.sf-weekbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; color: var(--sf-ink); font-size: 15px; }
.sf-wk { background: none; border: 1.5px solid var(--sf-border); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sf-ink); cursor: pointer; min-height: 40px; }
.sf-weekbar b { white-space: nowrap; }
.sf-wk { white-space: nowrap; }
.sf-wk:disabled { color: #C4C9D2; cursor: default; }
@media (max-width: 480px) {
  .sf-weekbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sf-weekbar b { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}
.sf-wk:not(:disabled):hover { border-color: var(--sf-red); }
.sf.appt-form::before { display: none; }
.sf-hd + .sf-choices { margin-top: 16px; }
.sf-seg .sf-chip { font-size: 15px; padding: 8px 10px; }
@media (max-width: 599px) {
  .sf-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
  .sf-doc { width: auto; }
}
@media (min-width: 600px) {
  .sf-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; padding-bottom: 0; }
  .sf-doc { width: auto; }
}
@media (max-width: 480px) { .sf.appt-form[data-smart-form] { padding: 20px 16px; } }
@media (max-width: 420px) { .sf-row, .sf-row3 { grid-template-columns: 1fr; } .sf-times { grid-template-columns: repeat(3, 1fr); } .sf-wk { padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .sf-spin { animation: none; } }

/* Nov 20, 2026: one booking flow, one short step per phone screen. */
.sf-f { min-width: 0; }
.sf-alt { font-size: 14px; color: var(--sf-muted); margin: 14px 0 0; text-align: center; }
.sf-alt .sf-link { margin-top: 0; }
.sf-alt-top { text-align: left; margin: 0 0 4px; }
.sf-done-list { border: 1px solid var(--sf-border); border-radius: 12px; margin: 0 0 16px; overflow: hidden; }
.sf-done-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: var(--sf-surface); border: 0; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--sf-body); }
.sf-done-row + .sf-done-row { border-top: 1px solid var(--sf-border); }
.sf-done-k { color: var(--sf-muted); font-size: 13px; }
.sf-done-v { color: var(--sf-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-done-e { color: var(--sf-red); font-size: 13px; text-decoration: underline; }
.sf-done-row:hover .sf-done-v { text-decoration: underline; }
.sf-docs { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding-bottom: 0; margin-top: 12px; }
.sf-doc { width: auto; flex: none; flex-direction: row; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; min-height: 44px; }
.sf-doc img { width: 30px; height: 30px; }
.sf-doc b { font-size: 14px; }
.sf-doc:not(:has(img)) { padding-left: 14px; }
.sf-weekbar { display: flex; margin-top: 14px; }
.sf-times { margin-top: 10px; }
.sf [aria-invalid=true] { border-color: #B91C1C; }
@media (max-width: 599px) {
  .sf-docs { display: flex; grid-template-columns: none; }
  .sf-doc { width: auto; }
  .sf-label { margin: 14px 0 6px; }
  .sf-btn { margin-top: 16px; }
  .sf-911 { margin-top: 10px; }
  .sf textarea { min-height: 64px; }
}
@media (max-width: 480px) {
  .sf-weekbar { display: flex; }
  .sf-weekbar b { grid-column: auto; grid-row: auto; }
}
@media (max-width: 420px) { .sf-row { grid-template-columns: 1fr 1fr; } .sf-row3 { grid-template-columns: 1fr 64px 84px; } }

/* Nov 20, 2026 (afternoon): plainer controls. Insurance and clinician are selects on the times step; no pills;
 * 8px corners, 1px borders, fewer tints. On the lp ad pages (phone), the lead, bullets and phone block move below
 * the form so the times are near the top. */
.sf input[type=text], .sf input[type=tel], .sf input[type=email], .sf select, .sf textarea { border-width: 1px; border-color: #D1D5DB; border-radius: 8px; }
.sf-btn { border-radius: 8px; }
.sf-day, .sf-time, .sf-wk, .sf-done-list, .sf-summary, .sf-visit, .sf-actions a { border-radius: 8px; border-width: 1px; }
.sf-day { padding: 8px 2px; }
.sf-day b { font-size: 18px; }
.sf-day[aria-pressed=true], .sf-time[aria-pressed=true] { background: var(--sf-ink); border-color: var(--sf-ink); }
.sf-time { min-height: 48px; font-weight: 600; }
.sf-times { gap: 8px; }
.sf-days { gap: 6px; }
.sf-wk { border: 0; padding: 8px 0; min-height: 40px; color: var(--sf-red); font-weight: 600; }
.sf-wk:disabled { color: #C4C9D2; }
.sf-weekbar { margin-top: 16px; }
.sf-weekbar b { font-size: 15px; }
.sf-mic { border: 1px solid #D1D5DB; background: #fff; color: var(--sf-ink); border-radius: 8px; font-weight: 500; }
.sf-mic svg { color: var(--sf-red); }
.sf-mic.sf-rec svg { color: #fff; }
.sf-done-row { background: #fff; }
.sf-hd { font-size: 21px; margin-bottom: 0; }
.sf-hd + .sf-f .sf-label, .sf-hd + .sf-row .sf-label { margin-top: 14px; }
.sf-flag { color: var(--sf-ink); font-size: 14px; margin: 12px 0 0; }
.sf-flag a { color: var(--sf-red); font-weight: 600; white-space: nowrap; }
.sf.appt-form { border-radius: 10px; }
.ad-form .sf.appt-form { border-radius: 10px; }
@media (max-width: 420px) { .sf-time small { font-size: 12px; } }
@media (max-width: 860px) {
  .lp-hero-inner:has(.sf) { gap: 16px; }
  .lp-hero-inner:has(.sf) .lp-hero-main { display: contents; }
  .lp-hero-inner:has(.sf) .lp-eyebrow, .lp-hero-inner:has(.sf) .lp-h1 { order: 1; margin-bottom: 0; }
  .lp-hero-inner:has(.sf) > .lp-form-sticky-wrap { order: 2; }
  .lp-hero-inner:has(.sf) .lp-lead { order: 3; margin: 8px 0 0; }
  .lp-hero-inner:has(.sf) .lp-bullets { order: 3; margin: 0; }
  .lp-hero-inner:has(.sf) .lp-hero-phone { order: 4; }
  .lp-hero-inner:has(.sf) .lp-eyebrow { align-self: flex-start; background: none; border: 0; padding: 0; margin-bottom: -8px; }
}
.sf-done-e { color: var(--sf-muted); text-decoration: none; }
.sf-done-row { padding: 8px 12px; }
.sf-done-list { margin-bottom: 8px; }
.sf-back-step { margin: 0 0 4px; }

/* Nov 20 (12:48 round): insurance and clinician stack full width on phones so plan names aren't cut off; week
   buttons at the ends of the range are hidden (space kept so the date stays centred); "Pick a time" is a plain hint;
   one neutral focus ring (no red border inside it); less empty space above the eyebrow on phones. */
@media (max-width: 600px) { .sf .sf-pickrow { grid-template-columns: 1fr; gap: 0; } }
.sf-wk.sf-off { visibility: hidden; }
.sf-hint { text-align: center; margin: 14px 0 0; }
.sf input:focus-visible, .sf select:focus-visible, .sf textarea:focus-visible { outline: 2px solid #666; outline-offset: 1px; border-color: var(--sf-border); }
@media (max-width: 860px) { .lp-hero:has(.sf) { padding-top: 24px; } }
.sf-steps-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.sf-steps-row .sf-steps { margin: 0; }
.sf-steps-row .sf-back-step { margin: 0; color: var(--sf-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* week label centred whether or not Earlier/Later is showing (Nov 20, 1:15 round) */
.sf .sf-weekbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sf .sf-weekbar b { grid-column: auto; grid-row: auto; text-align: center; }
.sf .sf-weekbar .sf-wk:first-child { justify-self: start; }
.sf .sf-weekbar .sf-wk:last-child { justify-self: end; }

/* A single office phone remains in the header while scheduling. */
.sf-booking-page :is(#ppcStickyCta, .lp-hero-phone, .ad-intro .ad-lead, .lp-hero .lp-eyebrow) { display: none; }
.sf-booking-page .lp-form-sticky-wrap .sf { position: static; }
.sf-booking-page .sf.appt-form { min-width: 0; height: auto; padding: clamp(16px, 4vw, 26px); box-shadow: none; }
.sf .sf-hd { line-height: 1.22; }
.sf .sf-recovery { font-size: 16px; line-height: 1.55; color: var(--sf-body); margin: 12px 0 0; }
.sf .sf-link { min-height: 44px; margin-top: 4px; text-underline-offset: 3px; }
.sf-done-v { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.sf .sf-btn {
  display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 100%;
  min-height: 44px; padding: 9px 17px; border: 0; border-radius: 6px; background: #233647;
  color: #fff; font: 600 15px/1.35 Inter, sans-serif; box-shadow: none; text-align: center;
}
.sf .sf-btn:hover { background: #172837; }
.sf .sf-btn:disabled { background: #e3e6e9; color: #475569; }
.sf-booking-page header a[href^="tel:"], .ty-header-phone { min-height: 44px; }
.sf-recovery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; }
.sf-recovery-actions .sf-btn, .sf-recovery-actions .sf-link { margin: 0; }
.sf .sf-link, .sf-request-details summary { color: #344a5d; font-size: 14px; text-underline-offset: 3px; }
.sf-request-details { margin-top: 8px; }
.sf-request-details summary { cursor: pointer; padding: 11px 0; line-height: 22px; width: fit-content; }
.sf-task-view :is(.lp-hero-left-col, .ad-intro, .ad-ticks, main > section:not(:has(.sf))) { display: none; }
.sf-task-view :is(.lp-hero-inner, .ad-hero-grid) { display: block; max-width: 510px; margin: 0 auto; }
.sf-task-view .lp-form-sticky-wrap .sf.appt-form, .sf-task-view .ad-form .sf.appt-form,
.sf-task-view .ad-form { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.sf-task-view .sf .sf-hd, .sf-receipt .sf-hd { font: 600 clamp(24px, 4vw, 30px)/1.2 Outfit, Inter, sans-serif; letter-spacing: -.015em; }
.sf-task-view .sf-911 { text-align: left; margin-top: 22px; }
.sf-task-view .sf-sub { margin: 8px 0 16px; font-size: 15px; color: #435269; }
.sf-task-view .sf-back { min-height: 36px; margin: 0 0 8px; }
.sf-task-view :is(.lp-hero, .ad-hero), .ty-hero.sf-receipt { padding: clamp(32px, 6vw, 72px) 22px; }
.ty-hero.sf-receipt { align-items: center; }
.sf-receipt-page .ty-reviews { display: none; }
.sf-receipt .sf-done { width: 100%; max-width: 510px; text-align: left; }
.sf-done .sf-tick { height: 30px; width: 30px; margin: 0 0 12px; }
.sf-done .sf-tick svg { width: 17px; height: 17px; }
.sf-done .sf-summary { padding: 0; border: 0; background: transparent; margin-top: 20px; font-size: 16px; line-height: 1.55; }
.sf-done .sf-summary b { font-size: 17px; }
.sf-done .sf-note, .sf-done .sf-sub { margin-top: 16px; font-size: 15px; line-height: 1.55; color: #475569; }
.sf-done .sf-actions { display: flex; gap: 22px; border-bottom: 1px solid #e0e5e9; margin-top: 8px; }
.sf-done .sf-actions a { border: 0; border-radius: 0; padding: 12px 0; min-height: 44px; color: #344a5d; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .sf .sf-row, .sf .sf-row3 { grid-template-columns: minmax(0, 1fr); }
  .sf .sf-row, .sf .sf-row3, .sf .sf-pickrow { gap: 0; }
  .sf-booking-page .lp-hero:has(.sf) { padding-top: 20px; }
  .sf-booking-page .lp-hero-inner:has(.sf) { gap: 16px; }
  .sf .sf-times { grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); }
}
@media (max-width: 360px) {
  .sf .sf-done-row { grid-template-columns: minmax(0,1fr) auto; }
  .sf .sf-done-k { grid-column: 1 / -1; }
  .sf-done .sf-actions { grid-template-columns: 1fr; }
}
.sf-booking-page .rev-top-photo:not(:has(img)) { display: none; }
.sf-booking-page .rev-top:has(.rev-top-photo:not(:has(img))) { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .sf-booking-page .lp-form-sticky-wrap .sf.appt-form,
  .sf-booking-page .ad-form, .sf-booking-page .ad-form .sf.appt-form {
    border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0;
  }
  .sf-task-view .lp-hero:has(.sf) { padding-top: 32px; }
  .sf-booking-page .lp-h1, .sf-booking-page .ad-intro h1 { font-weight: 600; }
}
body.sf-task-view, body.sf-receipt-page { display: flex; flex-direction: column; min-height: 100svh; }
.sf-task-view main, .sf-receipt-page main { flex: 1; }

/* The ordinary contact form stays on the page until Netlify accepts it. */
.sf-booking-page [hidden] { display: none !important; }
.sf-booking-page .sf-intake::before { display: none; }
.sf-booking-page form.sf-intake { position: static; background: white; box-shadow: none; }
.sf-intake .fg { margin: 12px 0 0; }
.sf-intake .form-sub { margin: 6px 0 12px; font-size: .9375rem; line-height: 1.45; }
.sf-intake input:not([type=hidden]) { min-height: 44px; padding: 8px 10px; font-size: 1rem; }
.sf-intake input:focus-visible { outline: 2px solid #526573; outline-offset: 1px; border-color: #526573; box-shadow: none; }
.sf-intake .btn-submit { width: auto; max-width: 100%; min-height: 44px; margin-top: 16px; border: 0; border-radius: 6px; padding: 9px 16px; background: #233647; color: white; font: 600 .9375rem/1.4 Inter, sans-serif; box-shadow: none; white-space: normal; }
.sf-intake .btn-submit:hover { background: #172837; }
.sf-intake .btn-submit:disabled { background: #e3e6e9; color: #475569; }
.sf-intake-error { color: #a32424; font-size: .9375rem; }
.sf-intake-error:empty { display: none; }
.sf-task-view .ad-why { display: none; }
.sf-clinicians { min-width: 0; padding: 0; border: 0; margin: 14px 0 0; }
.sf-clinicians legend { padding: 0; margin: 0 0 6px; }
.sf-clinicians > div { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-clinician { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; color: #233647; background: #fff; border: 1px solid #c7d0d6; border-radius: 6px; font: 500 .9375rem/1.3 Inter, sans-serif; text-align: left; padding: 4px 9px; cursor: pointer; }
.sf-clinician[aria-pressed=true] { border-color: #243748; box-shadow: inset 0 0 0 1px #243748; background: #f1f5f7; }
.sf-clinician img { border-radius: 50%; width: 36px; height: 36px; flex: none; object-fit: cover; object-position: center top; }
.sf-clinician span, .sf-choice span, .sf-option { overflow-wrap: anywhere; white-space: normal; }
.sf-clinician.sf-single { border: 0; padding: 0; cursor: default; }
.sf-clinician.sf-single img { width: 44px; height: 44px; }
.sf .sf-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; border: 1px solid #bac4cd; border-radius: 6px; padding: 9px 12px; }
.sf .sf-choice span { margin: 0; color: #172837; font-size: 1rem; line-height: 1.45; }
.sf .sf-choice::after { content: ''; width: 7px; height: 7px; transform: rotate(45deg); border: solid #526573; border-width: 0 1.5px 1.5px 0; }
.sf-options { box-sizing: border-box; width: min(28rem, calc(100% - 24px)); max-height: 80vh; max-height: 80svh; margin: auto; padding: 0 14px 12px; border: 1px solid #b4c0c8; border-radius: 10px; background: white; color: #172837; font: 400 1rem/1.45 Inter, sans-serif; overscroll-behavior: contain; }
.sf-options::backdrop { background: rgba(18,31,43,.36); }
.sf-options-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d8e0e4; background: white; }
.sf-options-head h2 { font: 600 1.125rem/1.25 Outfit, sans-serif; margin: 0; }
.sf-options button { min-height: 44px; font: inherit; color: inherit; text-align: left; background: white; border: 0; cursor: pointer; }
.sf-options-head button { font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.sf-option { display: block; width: 100%; padding: 9px 10px; }
.sf-option[aria-pressed=true] { background: #ecf1f4; font-weight: 600; }
.sf-options button:focus-visible, .sf .sf-choice:focus-visible, .sf-clinician:focus-visible { outline: 2px solid #334e61; outline-offset: -2px; }
@media (max-width: 860px) {
  .sf-booking-page :is(.lp-form-sticky-wrap, .ad-form) form.sf-intake { padding: 0; box-shadow: none; border: 0; }
}

.sf-replacement-provider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; }
.sf-replacement-provider img { border-radius: 50%; object-fit: cover; object-position: center top; }
.sf-replacement-times { display: flex; flex-wrap: wrap; gap: 8px; }
.sf .sf-replacement-times .sf-btn { width: auto; margin: 0; min-height: 44px; padding: 8px 16px; }
/* Contact page first question (Nov 25): Book an appointment / General request, inside the page's own form */
.sf-choose .form-hd { margin-bottom: 16px; }
.sf-choose .sf-choice { box-sizing: border-box; }
/* The contact grid centers its columns; keep the form at the top so it doesn't float or jump as its height changes between steps */
.contact-grid > .appt-form { align-self: start; }
