/* Appointment page (version 9). Loaded before modern.css, so every rule here is scoped under a page class
   (.appt-head, .request, .appt-reviews, .appt-faq) to win over the shared component it adjusts. Tokens only, light
   theme only. The form keeps its backend contract and its site.js hooks; this file only dresses it:
     1  page header: the facts chips, Dr. Saad inside the orbit rings, floating rating and hours cards, the seal
     2  the request section: the white form panel with its three-step rail, fields, pill tiles, the success panel,
        the urgent notice, and the office column (call card, what happens next, hours and address, a review)
     3  the reviews section and the rating card
     4  the FAQ split
     5  motion (gated on html.motion; reduced motion shows everything settled) */

/* ==========================================================================================================
   1. Page header
   ========================================================================================================== */

.appt-head h1 { max-width: 15ch; }
.appt-head .lede { text-wrap: pretty; }
.appt-head .appt-head__accepting + h1 { margin-top: 18px; }
.appt-head__facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.appt-head__facts li {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 16px 5px 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-float);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--ink);
}
.appt-head__facts .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--mint); color: var(--ink); flex: none; }

/* Dr. Saad inside the orbit: a square photo (4:3 on phones), the two crossing rings a little larger than the photo so
   they pass behind it and show on every side, a node riding each ring at the top and the bottom. */
.appt-head__orbit { max-width: 440px; margin-inline: auto; padding: 11% 0; }
.appt-head__orbit .orbit-photo__ring { width: 122%; }
.appt-head__photo { aspect-ratio: 1; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.appt-head__photo img { object-position: 50% 14%; }
.appt-head .seal { position: absolute; z-index: 3; }
.appt-head__rating .stars { display: flex; gap: 1px; }
.appt-head__rating .float-card__label { color: var(--muted); }

@media (max-width: 767.98px) {
  /* Phones: smaller chips, and the third one (access) waits for the office column beside the form, where it is said in
     full; the photo goes wider than tall, so the form starts sooner. */
  .appt-head__facts { margin-top: 22px; gap: 8px; }
  .appt-head__facts li { min-height: 36px; gap: 8px; padding: 4px 13px 4px 5px; font-size: 0.875rem; }
  .appt-head__facts .icon { width: 26px; height: 26px; padding: 6px; }
  .appt-head__facts li:nth-child(3) { display: none; }
  .appt-head__orbit { max-width: none; padding: 7% 0; }
  .appt-head__orbit .orbit-photo__ring { width: 104%; }
  .appt-head__photo { aspect-ratio: 3 / 2; }
  .appt-head__photo img { object-position: 50% 16%; }
  .appt-head .seal { width: 92px; height: 92px; right: -4px; top: 3%; }
  .appt-head .seal__mark { width: 28px; height: 28px; }
}
@media (max-width: 1023.98px) {
  /* The rating card rests on the photo's lower left, clear of his face; today's hours are on the call line and in the
     column beside the form, so that card waits for the desktop layout. */
  .appt-head__rating.float-card--tl { top: auto; bottom: calc(11% + 14px); left: 14px; }
  .appt-head .appt-head__today { display: none; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Tablets: the text and the photo side by side, so the form is not pushed a full screen down. The shared header grid
     is one column until 1024, so this page sets the twelve columns itself. */
  .appt-head .pagehead__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .appt-head .pagehead__text { grid-column: 1 / span 7; grid-row: 2; align-self: center; }
  .appt-head .pagehead__visual { grid-column: 8 / span 5; grid-row: 2; margin-top: 0; align-self: center; }
  .appt-head .seal { width: 100px; height: 100px; right: -18px; top: 2%; }
  .appt-head .seal__mark { width: 30px; height: 30px; }
  .appt-head__rating.float-card--tl { left: -18px; bottom: calc(11% + 18px); max-width: 230px; }
}
@media (min-width: 1024px) {
  .appt-head .pagehead__visual { grid-column: 7 / span 6; }
  .appt-head__rating.float-card--tl { top: 15%; left: -54px; }
  .appt-head__today.float-card--br { bottom: 15%; right: -36px; }
  .appt-head .seal { left: -70px; bottom: 30%; }
}

/* ==========================================================================================================
   2. The request section
   ========================================================================================================== */

.request { padding-top: calc(var(--section-y) * 0.62); }
.request__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.request__main, .request__side { min-width: 0; }
@media (min-width: 1024px) { .request__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; } }
@media (min-width: 1200px) { .request__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 412px); gap: 40px; } }

/* Phones: the call line above the panel, a white pill row with the number, today's status and the street. */
.request .call-line__wrap { margin-bottom: 14px; padding: 10px 16px 12px 10px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.request .call-line { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.request .call-line b { white-space: nowrap; }
.call-line__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--ink); color: #fff; }
.request .call-line .icon { width: 18px; height: 18px; }
.request .call-line__meta { margin: 2px 0 0 52px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.request .call-line__meta span { white-space: nowrap; }

/* ---------- The panel ---------- */
.request__panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 24px 18px 28px; border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 40px 80px -50px rgba(14, 42, 58, 0.4), var(--shadow);
}
/* A soft sky glow and one faint ring in the panel's top corner, behind the content. */
.request__panel::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -260px; top: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 229, 239, 0.9), rgba(211, 229, 239, 0)); pointer-events: none;
}
.request__panel::after {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -170px; top: -190px; border-radius: 50%;
  border: 1px solid rgba(14, 42, 58, 0.08); pointer-events: none;
}
@media (min-width: 640px) { .request__panel { padding: 36px 32px; } }
@media (min-width: 1200px) { .request__panel { padding: 48px 52px 46px; } }

.request__head { display: grid; gap: 24px; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.request__title .tag + h2 { margin-top: 14px; }
.request__title h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); line-height: 1.15; }
/* Once the request is in, the rail has done its job. */
.request__panel:not(:has(#request-form:not([hidden]))) .form-rail { display: none; }

/* ---------- The three-step rail (decorative; the legends carry the names) ----------
   A step is current while focus is inside its group, and done once its required fields hold valid values. */
.form-rail { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: 100%; }
.form-rail li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 650; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.form-rail li + li { flex: 1 1 0; }
.form-rail li + li::before { content: ""; flex: 1 1 auto; min-width: 16px; height: 2px; margin-inline: 14px 4px; border-radius: 2px; background: var(--rule); transition: background-color 400ms var(--ease-apex); }
.form-rail__num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--rule-strong); background: #fff; color: var(--ink);
  font-size: 0.8125rem; font-weight: 750; font-variant-numeric: tabular-nums;
  transition: background-color 300ms var(--ease-apex), border-color 300ms var(--ease-apex), color 300ms var(--ease-apex), box-shadow 300ms var(--ease-apex);
}
.request__panel:has(fieldset:nth-of-type(1):focus-within) .form-rail li:nth-child(1),
.request__panel:has(fieldset:nth-of-type(2):focus-within) .form-rail li:nth-child(2),
.request__panel:has(fieldset:nth-of-type(3):focus-within) .form-rail li:nth-child(3) { color: var(--ink); }
.request__panel:has(fieldset:nth-of-type(1):focus-within) .form-rail li:nth-child(1) .form-rail__num,
.request__panel:has(fieldset:nth-of-type(2):focus-within) .form-rail li:nth-child(2) .form-rail__num,
.request__panel:has(fieldset:nth-of-type(3):focus-within) .form-rail li:nth-child(3) .form-rail__num { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(1, 171, 238, 0.18); }
.request__panel:has(#f-first_name:valid):has(#f-last_name:valid):has(#f-phone:valid):has(#f-email:valid) .form-rail li:nth-child(1) .form-rail__num,
.request__panel:has(#f-reason:valid) .form-rail li:nth-child(2) .form-rail__num,
.request__panel:has(#f-consent:checked) .form-rail li:nth-child(3) .form-rail__num {
  border-color: var(--ink); color: transparent;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.5 4.5 8.5-9.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.request__panel:has(#f-first_name:valid):has(#f-last_name:valid):has(#f-phone:valid):has(#f-email:valid) .form-rail li:nth-child(2)::before,
.request__panel:has(#f-reason:valid) .form-rail li:nth-child(3)::before { background: var(--brand); }
@media (max-width: 559.98px) {
  /* Phones: three equal columns, the label under its number, the connectors running between the discs. */
  .form-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-rail li { position: relative; flex-direction: column; gap: 6px; font-size: 0.8125rem; text-align: center; }
  .form-rail li + li::before { position: absolute; top: 14px; right: calc(50% + 22px); width: calc(100% - 44px); min-width: 0; margin: 0; }
}

/* ---------- Fields ---------- */
.request .form { gap: 0; counter-reset: fs; }
.request .form-summary:not([hidden]) { margin-bottom: 28px; }
.request .form fieldset { counter-increment: fs; gap: 22px; }
.request .form fieldset + fieldset { margin-top: 34px; }
.request .form legend {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 22px; padding: 0;
  font-family: var(--display); font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink);
}
.request .form fieldset + fieldset legend { border-top: 1px solid var(--rule); padding-top: 32px; }
.request .form legend::before {
  content: counter(fs, decimal-leading-zero); content: counter(fs, decimal-leading-zero) / "";
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--mint); color: var(--ink); font-size: 0.8125rem; font-weight: 750; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.request .row-2 { gap: 22px 20px; }
.request .field { gap: 8px; }
.request .field > label, .request .field__label { font-size: 0.9375rem; font-weight: 650; color: var(--ink); }
.request .field .help { font-size: 0.875rem; line-height: 1.5; color: var(--muted); letter-spacing: 0; text-wrap: pretty; }
.request .field input, .request .field select, .request .field textarea {
  min-height: 52px; padding: 0 16px; border: 1px solid var(--rule-strong); background-color: #fff; color: var(--text);
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.request .field textarea { min-height: 128px; padding: 14px 16px; line-height: 1.5; }
.request .field select { padding-right: 48px; background-position: right 18px center; cursor: pointer; }
.request .field input:hover, .request .field select:hover, .request .field textarea:hover { border-color: var(--ink); }
.request .field input:focus-visible, .request .field select:focus-visible, .request .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); box-shadow: 0 0 0 6px rgba(1, 171, 238, 0.14);
}
/* Errors keep the text where it was: the 2 px error border takes one pixel of the padding. The border is restated here
   (and on hover) because the rules above outrank site.css's error border. */
.request .field.has-error :is(input, select, textarea), .request .field.has-error :is(input, select, textarea):hover,
.request .field :is(input, select, textarea)[aria-invalid="true"], .request .field :is(input, select, textarea)[aria-invalid="true"]:hover { border: 2px solid var(--error); }
.request .field.has-error input, .request .field.has-error select, .request .field input[aria-invalid="true"], .request .field select[aria-invalid="true"] { padding-left: 15px; padding-right: 15px; }
.request .field.has-error select, .request .field select[aria-invalid="true"] { padding-right: 47px; }
.request .field.has-error textarea { padding: 13px 15px; }
.request .err { font-size: 0.875rem; font-weight: 550; }

/* The accepting banner at the top of the form: mint panel, live green dot, one line of welcome. */
.request .appt-accepting {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 18px; border-radius: var(--r-md, 16px);
  background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(31, 157, 107, 0.22); color: var(--text); font-size: 0.9875rem; line-height: 1.45;
}
.request .appt-accepting b { color: var(--ink); font-weight: 700; }
.request .appt-accepting .accepting__dot { margin-top: 6px; width: 10px; height: 10px; }
.request .tile__badge {
  margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--mint-soft); color: #13704c;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2;
}
.request .tile:has(input:checked) .tile__badge, .request .tile.is-checked .tile__badge { background: #1f9d6b; color: #fff; }
@media (max-width: 559.98px) { .request .tile__badge { display: none; } }

/* Radio tiles as pills with a dot: white with an ink hairline, ink filled when chosen. */
.request .tiles { gap: 10px; }
.request .tile {
  gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 0.9875rem; font-weight: 600;
  transition: background-color 250ms var(--ease-apex), border-color 250ms var(--ease-apex), color 250ms var(--ease-apex);
}
.request .tile::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1.5px solid var(--rule-strong); background: #fff;
  transition: border-color 250ms var(--ease-apex), box-shadow 250ms var(--ease-apex);
}
.request .tile:hover { background: var(--surface); border-color: var(--ink); }
.request .tile:has(input:checked), .request .tile.is-checked { border: 1px solid var(--ink); padding: 0 20px 0 14px; background: var(--ink); color: #fff; }
.request .tile:has(input:checked)::before, .request .tile.is-checked::before { border-color: #fff; box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 9px #fff; }
.request .tile:has(input:focus-visible), .request .tile.is-focused { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 559.98px) {
  /* Phones: each group is a row of equal segments, level with the inputs; the dot gives way to the label. */
  .request .tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .request .tile, .request .tile:has(input:checked), .request .tile.is-checked { justify-content: center; padding: 0 8px; font-size: 0.9375rem; text-align: center; }
  .request .tile::before { display: none; }
}

/* Consent */
.request .consent { gap: 14px; font-size: 1rem; color: var(--text); }
.request .consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); cursor: pointer; }

/* Error summary */
.request .form-summary { gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(185, 53, 48, 0.25); }

/* Actions: the ink pill with its arrow disc, the note beside it. */
.request .form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rule); }
.request .form__actions .btn { width: 100%; justify-content: space-between; }
.request .form__note { display: flex; align-items: flex-start; gap: 8px; max-width: 36ch; font-size: 0.875rem; line-height: 1.5; color: var(--muted); letter-spacing: 0; text-wrap: pretty; }
.request .form__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); flex: none; }
@media (min-width: 640px) { .request .form__actions .btn { width: auto; justify-content: center; } }
.request .form.is-sending .form__actions .btn--lg::after { opacity: 0.6; }

/* ---------- Success (with and without JavaScript) ---------- */
.request .form-success {
  position: relative; isolation: isolate; overflow: hidden; padding: 32px 24px;
  border-radius: var(--r-card); background: linear-gradient(160deg, var(--mint-soft) 0%, #fff 75%);
}
.request .form-success::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 260px; height: 260px; background: url("/assets/img/brand/mark-mono.svg") center / contain no-repeat; opacity: 0.05; pointer-events: none; }
.request .form-success .icon--32 { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--mint); color: var(--ink); box-shadow: 0 0 0 8px rgba(198, 227, 222, 0.4); }
.request .form-success h2 { margin-top: 22px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); color: var(--ink); text-wrap: balance; }
.request .form-success p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; max-width: 52ch; color: var(--text); text-wrap: pretty; }
@media (min-width: 768px) { .request .form-success { padding: 44px 40px; } }

/* ---------- The urgent notice under the panel ---------- */
.request__notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: start; margin-top: 20px; padding: 24px 22px;
  border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm);
}
.request__notice-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.request__notice-ico .icon { width: 24px; height: 24px; }
.request__notice h2 { font-size: 1.1875rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.request__notice p { margin-top: 6px; font-size: 0.9875rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.request__notice .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) {
  .request__notice { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 26px 28px; gap: 20px 22px; }
  .request__notice .btn { grid-column: auto; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .request__notice { grid-template-columns: auto minmax(0, 1fr); }
  .request__notice .btn { grid-column: 2; }
}

/* ---------- The office column ---------- */
.request__side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .request__side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "call visit" "next visit" "next review"; align-items: start; }
  .side-call { grid-area: call; }
  .side-next { grid-area: next; }
  .side-visit { grid-area: visit; }
  .side-review { grid-area: review; }
}
.side__label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--display); font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.side__label .icon { width: 16px; height: 16px; color: var(--accent); }
.side__heading { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); line-height: 1.15; margin-bottom: 20px; }

/* The call card: an ink panel with a brand glow and a faint orbit ring. */
.side-call {
  position: relative; isolation: isolate; overflow: hidden; padding: 28px 26px 26px; border-radius: var(--r-card);
  background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, var(--ink-3) 100%); color: var(--on-ink); box-shadow: var(--shadow-lg);
}
.side-call__glow { position: absolute; z-index: -1; width: 380px; height: 380px; right: -170px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 171, 238, 0.38), rgba(1, 171, 238, 0)); pointer-events: none; }
.side-call::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -150px; bottom: -190px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); pointer-events: none; }
.side-call .side__label { color: var(--on-ink-muted); }
.side-call__phone {
  display: inline-flex; align-items: center; min-height: 52px; margin-top: 6px;
  font-family: var(--display); font-size: clamp(1.875rem, 1.45rem + 1.1vw, 2.375rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.side-call__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--on-ink-accent); }
.side-call :focus-visible { outline-color: #fff; }
.side-call__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 0.9375rem; font-weight: 600; color: #fff; }
.side-call__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--brand); box-shadow: 0 0 0 4px rgba(1, 171, 238, 0.25); }
.side-call__hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9375rem; line-height: 1.55; color: var(--on-ink-muted); text-wrap: pretty; }

/* What happens next: the shared .steps, held as a vertical timeline at every width in this narrow column. */
.request__side .steps { --disc: 40px; --steps-gap: 14px; grid-template-columns: minmax(0, 1fr); padding-top: 0; }
.request__side .steps::before {
  left: calc(var(--disc) / 2 - 1px); right: auto; top: calc(var(--disc) / 2 + 18px); bottom: 56px; width: 2px; height: auto;
  background: linear-gradient(180deg, var(--brand), var(--accent)); transform-origin: 50% 0;
}
.request__side .step { margin-left: calc(var(--disc) + 14px); padding: 18px 20px 20px; }
.request__side .step::before { left: calc(-1 * (var(--disc) + 14px)); top: 16px; font-size: 0.8125rem; }
.request__side .step__title { font-size: 1.0625rem; }
.request__side .step p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; }
.request__side .step .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: -10px; font-size: 0.9375rem; }

/* Hours and address: one white card, the hours as stacked rounded rows with today's in mint (Dentrist). */
.side-card { padding: 26px 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.request .appt-hours { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 0 5px; font-size: 0.9375rem; }
.request .appt-hours th, .request .appt-hours td { height: 40px; padding: 0 14px; border: 0; background: var(--offwhite); color: var(--text); font-weight: 500; }
.request .appt-hours th { border-radius: 12px 0 0 12px; white-space: nowrap; }
@media (max-width: 479.98px) {
  .side-card { padding: 22px 18px; }
  .request .appt-hours th, .request .appt-hours td { padding: 0 11px; }
}
.request .appt-hours td { border-radius: 0 12px 12px 0; color: var(--ink); }
.request .appt-hours tr.is-today :is(th, td) { background: var(--mint); font-weight: 650; color: var(--ink); }
.request .appt-hours .hours__today { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.4; color: var(--ink); vertical-align: 1px; }
.side-visit__find { margin-top: 22px !important; padding-top: 20px; border-top: 1px solid var(--rule); }
.side-visit__addr { margin-top: 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.side-visit .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.9375rem; }
.side-visit__facts { list-style: none; margin: 8px 0 0; padding: 14px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--rule); }
.side-visit__facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.side-visit__facts .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); flex: none; }

/* A short verbatim review under the rating pill. */
.side-review { display: grid; gap: 14px; }
.side-review__pill { justify-self: start; color: inherit; text-decoration: none; transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.side-review__pill:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.side-review__pill .stars { display: flex; gap: 1px; color: var(--star); }
.side-review .review-card { padding: 26px 24px 22px; }
.side-review .review-card__text { font-size: 1rem; }

.request .nowrap, .appt-reviews .nowrap { white-space: nowrap; }

/* ==========================================================================================================
   3. Reviews
   ========================================================================================================== */

.appt-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; width: fit-content; max-width: 100%; padding: 22px 26px; border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); }
.appt-rating__num { margin: 0; font-family: var(--display); font-size: clamp(3rem, 2.2rem + 2.4vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.appt-rating__num small { margin-left: 2px; font-size: 0.4em; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.appt-rating__meta { display: grid; gap: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.appt-rating__meta .stars { display: flex; gap: 2px; color: var(--star); }
.appt-rating .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: -10px; font-size: 0.9375rem; }

/* ==========================================================================================================
   4. FAQ
   ========================================================================================================== */

.appt-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.appt-faq__head .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 1024px) {
  .appt-faq__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
  .appt-faq__head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}

/* ==========================================================================================================
   5. Motion
   ========================================================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Header: the rings and their nodes scale in after the photo rises; the cards then bob gently, out of step. */
  html.motion .appt-head .orbit-photo__ring { animation: pw-scale-in 600ms var(--ease-apex) 270ms backwards; }
  html.motion .appt-head .orbit-photo__node { animation: pw-scale-in 520ms var(--ease-apex) 480ms backwards; }
  html.motion .appt-head .pagehead__visual .float-card { animation: pw-rise 600ms var(--ease-apex) 450ms backwards, pw-float 7s ease-in-out 2.2s infinite; }
  html.motion .appt-head .pagehead__visual .appt-head__today { animation-delay: 900ms, 5.2s; }
  html.motion .appt-head .appt-head__facts li { animation: pw-skew-in 700ms var(--ease-apex) backwards; }
  html.motion .appt-head .appt-head__facts li:nth-child(1) { animation-delay: 420ms; }
  html.motion .appt-head .appt-head__facts li:nth-child(2) { animation-delay: 500ms; }
  html.motion .appt-head .appt-head__facts li:nth-child(3) { animation-delay: 580ms; }

  /* The column's vertical timeline draws downwards at every width (the shared rule turns it sideways from 1024). */
  html.motion .request__side .steps:not(.is-in)::before { transform: scaleY(0); }

  /* The success panel rises in and its check disc scales in. */
  html.motion .request .form-success:not([hidden]) { animation: pw-rise 700ms var(--ease-apex) backwards; }
  html.motion .request .form-success:not([hidden]) .icon--32 { animation: pw-scale-in 520ms var(--ease-apex) 150ms backwards; }

  /* The call card's status dot breathes. */
  html.motion .side-call__status::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: appt-pulse 2.4s var(--ease-apex) infinite; }
  @keyframes appt-pulse { 0% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3); } }
}
.side-call__status { position: relative; }

/* ---------- Review pass fixes ---------- */
/* Desktop: the three fact chips are wider than the text column together, so they wrapped two and one, leaving the
   access chip alone on its row. From 1024 they stand as a short column of three, which the header has room for. */
@media (min-width: 1024px) { .appt-head__facts { flex-direction: column; align-items: flex-start; } }
/* 1024 to 1199: the hours card's right overhang ran 4 px past the viewport edge. */
@media (min-width: 1024px) and (max-width: 1199.98px) { .appt-head__today.float-card--br { right: -12px; } }
