/* «عيادة نموذج لطب الأسنان» Namoothaj Dental Clinic: a SAMPLE design by Khalesni, for a made-up clinic.
   It has its own palette (pearl white, ice blue, cobalt, deep ultramarine and a small mint spark) and its own font
   (Almarai, SIL Open Font Licence), to show a style different from Khalesni's site and the café sample.
   Khalesni's colours appear only in the sample banner and the demo note, because those are Khalesni speaking.
   The idea: the clinic's own paperwork. A fee schedule for the services, a printed appointment card in the hero,
   and every process (booking, the first visit) set out as numbered steps on a thin line. Flat colour, hairlines,
   no glow and nothing floating.
   Type scale: 14 / 17 / 20 / 32–46 / 40–68 px. Spacing runs on a 4 px grid.
   Contrast (WCAG): ink on white 17.0:1, on ice 15.6:1; slate on white 6.7:1, on ice 6.1:1, on mist 5.7:1;
   white on the deep booking section 10.6:1; mint on it 7.6:1; sky on it 6.2:1;
   cobalt on white 6.2:1 (white on cobalt the same); sky on navy 8.3:1; mint on navy 8.2:1; ink on mint 9.8:1;
   mint-ink on white 5.3:1; slate on the message bubble 5.3:1; placeholder on ice 4.8:1. */

:root {
  --ink: #0B1846;
  --deep: #13308A;
  --deep-2: #0E1F5C;
  --navy: #0F2A4F;
  --navy-2: #173A6B;
  --cobalt: #2457D6;
  --cobalt-d: #1C46B3;
  --sky: #A8C6FF;
  --ice: #F1F5FD;
  --mist: #E6EEFB;
  --line: #D5E1F5;
  --rule: #C9D7EF;
  --slate: #4A5D7A;
  --body: #2C3F5C;
  --mint: #3DDBB0;
  --mint-ink: #0B7A62;
  --bubble: #D9FDD3;
  --chat: #E9EEF6;
  --warm: #FFD38A;
  --k-ink: #06323A;   /* Khalesni: sample banner and demo note only */
  --k-teal: #0E6670;
  --font: "Almarai", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.35; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: var(--cobalt); text-underline-offset: 0.25em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.sample-banner :focus-visible, .cl-book :focus-visible, .cl-cta :focus-visible, .cl-footer :focus-visible { outline-color: #fff; }
.cl-book .bk-panel :focus-visible, .cl-book .book-fallback :focus-visible { outline-color: var(--ink); }
[id] { scroll-margin-top: 84px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 8px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Sample banner (Khalesni's note, same as the café sample) ---------- */
.sample-banner { background: var(--k-ink); color: #fff; font-size: 0.875rem; }
.banner-inner { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.banner-inner img { flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 8px; background: #fff; }
.banner-inner p { flex: 1; margin: 0; line-height: 1.5; }
.banner-inner p span { display: block; font-size: 0.875em; opacity: 0.88; }
.banner-inner a {
  flex: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.banner-inner a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header: a plain white bar with a hairline ---------- */
.cl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.cl-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cobalt); color: #fff; }
.logo-text b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.logo-text small { display: block; color: var(--slate); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
.cl-header nav ul { display: flex; gap: 0.25rem; }
.cl-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.75rem;
  color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cl-header nav a:hover { color: var(--ink); text-decoration-color: var(--cobalt); }
@media (max-width: 760px) { .cl-header nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { flex: none; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-d); color: #fff; }
.btn-outline { border-color: var(--rule); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { border-color: var(--line); background: var(--ice); color: var(--navy); }
.btn-soft:hover { border-color: #B7CBF2; background: var(--mist); color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #62E6C3; color: var(--ink); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--ice); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }
.btn:active { transform: translateY(1px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Hero ---------- */
.cl-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); background: var(--ice); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; } }
.kicker {
  display: flex; align-items: center; gap: 0.75rem; max-width: 32rem; margin-bottom: 1.5rem;
  color: var(--navy); font-size: 0.9375rem; font-weight: 700; line-height: 1.6;
}
.kicker::after { content: ""; flex: 1; min-width: 2rem; height: 1px; background: var(--rule); }
.kicker [lang="en"] { color: var(--slate); font-weight: 400; white-space: nowrap; }
.cl-hero h1 { margin-bottom: 0.25em; font-size: clamp(2.5rem, 1.4rem + 4.8vw, 4.25rem); line-height: 1.25; }
.h1-accent { color: var(--cobalt); }
.en-line { margin-bottom: 1.5rem; color: var(--slate); font-size: 1.125rem; }
.lead { max-width: 33rem; color: var(--body); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
@media (max-width: 520px) { .hero-actions { display: grid; } }
/* Three facts, spaced out, not pills. The list wraps at most widths, so there are no hairlines between them
   (a hairline would start each new row with a stray line and an indent). */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; max-width: 36rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.chips li {
  display: inline-flex; align-items: center; gap: 0.5rem; padding-inline: 0;
  border-inline-start: 0; color: var(--navy); font-size: 0.875rem; font-weight: 700; line-height: 1.5;
}
.chips svg { flex: none; color: var(--mint-ink); }
.chips span { color: var(--slate); font-weight: 400; }

/* Hero picture: a tooth drawn in one cobalt line, and a printed appointment card */
.hero-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; }
.art-disc { position: absolute; inset: 0 4% 8% 4%; border-radius: 50%; background: #fff; }
.art-tooth { position: absolute; top: 12%; inset-inline: 0; width: 56%; height: auto; margin-inline: auto; }
.appt-card {
  position: absolute; bottom: 4%; inset-inline-start: 0; display: flex; align-items: stretch;
  min-width: 15rem; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink);
  font-size: 0.875rem; line-height: 1.5;
}
.appt-card .fc-icon {
  display: grid; place-items: center; flex: none; width: 3.5rem;
  border-inline-end: 1px dashed var(--rule); color: var(--cobalt);
}
.appt-card .fc-text { padding: 0.75rem 1rem; }
.fc-text small { display: block; color: var(--slate); font-size: 0.8125rem; font-weight: 700; }
.fc-text b { display: block; font-size: 1.0625rem; font-weight: 800; }
@media (max-width: 899px) { .hero-art { width: min(100%, 340px); } }

/* ---------- Sections ---------- */
.cl-section { padding-block: clamp(4rem, 2.5rem + 6vw, 7rem); background: #fff; }
.cl-section.alt { background: var(--ice); }
/* Section heads sit at the start of the line, with a hairline under them; the note answers on the far side */
.sec-head {
  display: grid; gap: 0.75rem 3rem; align-items: end;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); } }
.sec-head h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 2.2vw, 2.875rem); line-height: 1.3; }
.sec-head > p { margin: 0; }
.sec-sub { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.7; }
h2 [lang="en"], h3 [lang="en"], legend [lang="en"] { font-weight: 700; }
h2 [lang="en"] { display: block; margin-top: 0.25em; color: var(--cobalt); font-size: 0.4em; }
h3 [lang="en"], legend [lang="en"] { margin-inline-start: 0.5em; color: var(--slate); font-size: 0.6em; }
.example-note {
  margin: 0; padding-inline-start: 0.75rem; border-inline-start: 3px solid var(--cobalt);
  color: var(--navy); font-size: 0.875rem; line-height: 1.6;
}
.example-note span { display: block; color: var(--slate); }

/* ---------- Services: a fee schedule, two columns of ruled rows ---------- */
.svc-grid { display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; } }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1.5rem; align-items: start;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.svc-body h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.svc-body h3 [lang="en"] { display: inline; font-size: 0.65em; }
.svc-body p { margin: 0; color: var(--slate); font-size: 0.9375rem; line-height: 1.7; }
.svc-body .dur { margin-top: 0.5rem; }
.svc-meta { display: grid; justify-items: end; gap: 0.25rem; text-align: end; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0.25rem 0.5rem; font-size: 1.125rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price em, .fv-time em, .loc-facts em { color: var(--slate); font-size: 0.75rem; font-style: normal; font-weight: 700; }
.dur { display: flex; align-items: center; gap: 0.25rem; color: var(--slate); font-size: 0.875rem; }
.dur svg { flex: none; color: var(--cobalt); }
.svc-book {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px;
  color: var(--cobalt); font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px;
  transition: text-decoration-color 0.25s var(--ease);
}
.svc-book:hover { text-decoration-color: currentColor; }
.svc-book svg { transition: transform 0.3s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .svc-book:hover svg { transform: translateX(-3px); } }
.svc-foot { display: grid; gap: 0.75rem 4rem; margin-top: 2rem; }
@media (min-width: 900px) { .svc-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-hint { margin: 0; color: var(--ink); font-weight: 700; }
.svc-more { margin: 0; color: var(--slate); }
.svc-hint a, .svc-more a { font-weight: 700; }

/* ---------- Booking ---------- */
/* No overflow: hidden here: it would stop the message preview from staying in view (position: sticky) */
.cl-book { padding-block: clamp(4rem, 2.5rem + 6vw, 7rem); background: var(--deep); color: #fff; }
.on-dark { border-bottom-color: rgba(255, 255, 255, 0.2); }
.on-dark h2 { color: #fff; }
.on-dark h2 [lang="en"] { color: var(--sky); }
.on-dark p { color: rgba(255, 255, 255, 0.9); }
.sec-head .eyebrow {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  color: var(--mint); font-size: 0.9375rem; font-weight: 700; line-height: 1.6;
}
.eyebrow [lang="en"] { color: rgba(255, 255, 255, 0.82); font-weight: 400; }

/* Without JavaScript */
.book-fallback {
  display: flex; align-items: flex-start; gap: 1rem; max-width: 40rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.bf-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #E3FAF3; color: var(--mint-ink); }
.book-fallback h3 { font-size: 1.375rem; }
.book-fallback p { color: var(--slate); }
.bf-note { margin: 0.75rem 0 0; font-size: 0.875rem; }
@media (max-width: 520px) { .book-fallback { flex-direction: column; } }
.bk-on .book-fallback { display: none; }

/* With JavaScript: the booking picker */
.booker { display: none; }
.bk-on .booker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.bk-panel, .bk-side { min-width: 0; }
@media (min-width: 960px) { .bk-on .booker { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 2rem; } }
.bk-panel {
  --pp: clamp(1.25rem, 0.75rem + 1.6vw, 2rem);
  padding: var(--pp); border-radius: var(--radius); background: #fff; color: var(--ink);
}
/* The three steps on one thin line: numbers in circles, filled once a step is done */
.bk-progress {
  position: relative; display: flex;
  margin: 0 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
/* Steps 1 and 2 share the free space equally, so both connector lines are the same length; step 3 sits at the far end */
.bk-progress li:not(:last-child) { flex: 1 1 auto; }
.bk-progress li {
  display: flex; align-items: center; gap: 0.5rem; color: var(--slate); font-size: 0.875rem; font-weight: 700;
  transition: color 0.3s var(--ease);
}
.bk-progress li span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--rule);
  border-radius: 50%; background: #fff; font-size: 0.8125rem; line-height: 1;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bk-progress li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin-inline: 0.25rem 0.75rem; background: var(--rule); }
.bk-progress li.is-done { color: var(--ink); }
.bk-progress li.is-done span { border-color: var(--mint-ink); background: var(--mint); color: var(--ink); }

.bk-step { min-width: 0; margin: 0; padding: 0; border: 0; transition: background-color 0.4s var(--ease); }
.bk-step + .bk-step { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); }
/* A floated legend behaves like a normal heading line (no gap in the fieldset border) */
.bk-step legend {
  float: left; width: 100%; margin: 0 0 1rem; padding: 0;
  color: var(--ink); font-size: 1.125rem; font-weight: 800; line-height: 1.5;
}
.bk-step legend + * { clear: both; }
.bk-step legend .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-inline-end: 0.5rem;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.875rem; vertical-align: 1px;
  transition: background-color 0.3s var(--ease);
}
.bk-step legend small { color: var(--slate); font-size: 0.8em; font-weight: 400; }
.bk-step.is-missing legend .n { background: #C2410C; }
.bk-step.is-missing legend { color: #9A3412; }
.step-hint { margin: 0 0 1rem; color: var(--slate); font-size: 0.875rem; line-height: 1.6; }

.opt, .day, .slot { position: relative; display: block; }
.opt input, .day input, .slot input {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.day input:disabled, .slot input:disabled { cursor: not-allowed; }
.opt input:focus-visible + .opt-card, .day input:focus-visible + .day-card, .slot input:focus-visible + span {
  outline: 3px solid var(--ink); outline-offset: 2px;
}

/* Step 1: service */
.svc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 560px) { .svc-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.opt-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; height: 100%;
  padding: 0.75rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.opt-ic { margin-bottom: 0.25rem; color: var(--cobalt); }
.opt-card b { font-size: 1rem; line-height: 1.45; }
.opt-card small { color: var(--slate); font-size: 0.8125rem; font-weight: 700; line-height: 1.5; }
.opt-tick {
  position: absolute; top: 0.5rem; inset-inline-end: 0.5rem; padding: 3px; border-radius: 50%;
  background: var(--cobalt); color: #fff; opacity: 0; scale: 0.5;
  transition: opacity 0.25s var(--ease), scale 0.3s var(--ease);
}
.opt:hover .opt-card { border-color: #B7CBF2; }
.opt input:checked + .opt-card { border-color: var(--cobalt); background: #F3F7FF; }
.opt input:checked + .opt-card .opt-tick { opacity: 1; scale: 1; }

/* Step 2: day (a swipeable strip on phones, a two-week grid on wider screens) */
.days {
  display: flex; gap: 0.5rem; margin-inline: calc(var(--pp) * -1); padding: 0.25rem var(--pp) 0.75rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--pp);
  scrollbar-width: thin; scrollbar-color: #C4D3EE transparent;
}
.day { flex: 0 0 auto; scroll-snap-align: start; }
.day-card {
  display: grid; justify-items: center; gap: 0.125rem; width: 68px; padding: 0.5rem 0.25rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; line-height: 1.25; text-align: center;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.day-card small { color: var(--slate); font-size: 0.75rem; font-weight: 700; }
.day-card b { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.day.is-today .day-card small:first-child { color: var(--cobalt); }
.day:hover .day-card { border-color: #B7CBF2; }
.day input:checked + .day-card { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.day input:checked + .day-card small { color: rgba(255, 255, 255, 0.92); }
.day input:disabled + .day-card { border-style: dashed; background: var(--ice); color: #5A6A85; }
.day input:disabled + .day-card small { color: #5A6A85; }
@media (min-width: 700px) {
  .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .day-card { width: auto; }
}

/* Step 3: time */
.slot-group + .slot-group { margin-top: 1rem; }
.slot-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; color: var(--navy); font-size: 0.875rem; font-weight: 700; }
.slot-title svg { color: var(--cobalt); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.5rem; }
.slot span {
  display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.slot:hover span { border-color: #B7CBF2; }
.slot input:checked + span { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.slot input:disabled + span { border-style: dashed; background: var(--ice); color: #5A6A85; text-decoration: line-through; }

/* Step 4: details */
.field { display: grid; gap: 0.25rem; margin-bottom: 1rem; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.field input {
  width: 100%; min-height: 50px; padding: 0.5rem 1rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--ice); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field input::placeholder { color: #5D6D86; opacity: 1; }
.field input:hover { border-color: #B7CBF2; }
.field input:focus { border-color: var(--cobalt); background: #fff; }
.field input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; margin: 0 0 0.75rem; font-weight: 700; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--cobalt); }
.bk-details .field:last-child { margin-bottom: 0; }

/* The message preview and the send button */
.bk-side { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 960px) and (min-height: 760px) { .bk-side { position: sticky; top: 88px; } }
.wa-card { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--chat); color: var(--ink); }
.wa-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--deep-2); color: #fff; }
.wa-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); }
.wa-who b { display: block; font-size: 0.9375rem; line-height: 1.35; }
.wa-who small { display: block; color: rgba(255, 255, 255, 0.8); font-size: 0.8125rem; line-height: 1.4; }
.wa-chat { display: flex; flex-direction: column; align-items: flex-end; min-height: 208px; padding: 1rem; background: var(--chat); }
.wa-bubble {
  position: relative; max-width: 94%; margin: 0; padding: 0.75rem 1rem 1.5rem;
  border-radius: 12px; border-start-end-radius: 4px; background: var(--bubble);
  font-size: 0.9375rem; line-height: 1.75; overflow-wrap: anywhere;
}
.wa-bubble .ln { display: block; }
.wa-bubble b { font-weight: 800; }
.wa-bubble .miss { color: var(--slate); border-bottom: 1.5px dashed rgba(74, 93, 122, 0.55); }
.wa-meta {
  position: absolute; bottom: 0.25rem; inset-inline-end: 0.75rem; display: inline-flex; align-items: center; gap: 0.25rem;
  color: #55657E; font-size: 0.75rem; line-height: 1.4;
}
.wa-meta svg { color: var(--cobalt); }
.wa-cap { padding: 0.5rem 1rem 0.75rem; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.8125rem; line-height: 1.5; }
.wa-cap span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .wa-bubble.is-pop { animation: pop 0.35s var(--ease); }
}
@keyframes pop { from { opacity: 0.6; } }
.bk-price { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.9375rem; }
.bk-price b { color: #fff; font-weight: 800; }
.bk-price em { margin-inline-start: 0.25rem; color: var(--sky); font-size: 0.75rem; font-style: normal; font-weight: 700; }
#bk-send.is-ready { box-shadow: 0 0 0 4px rgba(61, 219, 176, 0.3); }
.bk-status { margin: 0; color: var(--warm); font-size: 0.9375rem; font-weight: 700; }
.bk-status:empty { margin-top: -1rem; }
.bk-note { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 0.875rem; line-height: 1.65; }
.bk-note a, .bk-urgent a { color: var(--mint); font-weight: 700; }
.bk-urgent {
  display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.92); font-size: 0.9375rem; line-height: 1.6;
}
.bk-urgent svg { flex: none; margin-top: 0.125rem; color: var(--warm); }

/* ---------- Dentists: portrait frames waiting for the clinic's own photos ---------- */
.doc-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.doc { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 1.25rem; }
@media (min-width: 760px) { .doc { grid-template-columns: 1fr; gap: 1rem; } }
/* Each dentist: the first letter of the name in a circle, in the clinic's colours (no photos in the sample) */
.doc-ava {
  display: grid; place-items: center; width: 104px; aspect-ratio: 1; border: 2px solid var(--rule); border-radius: 50%;
  background: var(--mist); color: var(--deep); font-size: 2.75rem; font-weight: 800; line-height: 1;
}
@media (min-width: 760px) { .doc-ava { width: 120px; font-size: 3.125rem; } }
.doc:nth-child(2) .doc-ava { border-color: #B9E3D5; background: #E3F4EE; color: var(--mint-ink); }
.doc:nth-child(3) .doc-ava { border-color: #CBD5E6; background: #ECF0F7; color: var(--navy); }
.doc-body { padding-top: 0.75rem; border-top: 2px solid var(--ink); }
@media (max-width: 759px) { .doc-body { padding-top: 0; border-top: 0; } }
.doc-body h3 { margin-bottom: 0.125rem; font-size: 1.25rem; }
.doc-spec { margin: 0 0 0.25rem; color: var(--cobalt); font-size: 0.9375rem; font-weight: 700; }
.doc-body p:not(.doc-spec) { margin: 0 0 0.25rem; color: var(--slate); font-size: 0.9375rem; line-height: 1.65; }
.doc-book { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; font-weight: 800; text-decoration: none; }
.doc-book:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- First visit: four numbered steps on one line ---------- */
.fv-steps { position: relative; display: grid; gap: 0; max-width: 40rem; counter-reset: none; }
.fv-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.25rem; padding-bottom: 2rem; }
.fv-steps li:last-child { padding-bottom: 0; }
.fv-n {
  position: relative; z-index: 1; grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--cobalt); border-radius: 50%; background: #fff; color: var(--cobalt);
  font-size: 1.25rem; font-weight: 800;
}
.fv-steps li:not(:last-child)::before {
  content: ""; position: absolute; top: 48px; bottom: 0; inset-inline-start: 23.5px; width: 1px; background: var(--rule);
}
.fv-steps h3 { margin: 0.5rem 0 0.25rem; font-size: 1.25rem; }
.fv-steps p { margin: 0; color: var(--slate); line-height: 1.75; }
@media (min-width: 900px) {
  .fv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: none; }
  .fv-steps li { grid-template-columns: 1fr; padding: 0; }
  .fv-n { grid-row: auto; margin-bottom: 1rem; }
  .fv-steps li:not(:last-child)::before { top: 24px; bottom: auto; inset-inline: 48px -2rem; width: auto; height: 1px; }
}
.fv-time {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 2.5rem 0 0;
  color: var(--navy); font-size: 0.9375rem; font-weight: 700;
}
.fv-time svg { color: var(--cobalt); }
.info-grid { display: grid; gap: 2rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 820px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.info-card { padding-top: 1rem; border-top: 2px solid var(--ink); }
.info-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.info-card .ic { display: grid; place-items: center; color: var(--cobalt); }
.info-card p { margin-bottom: 0.5rem; color: var(--body); }
.info-card p:last-child { margin-bottom: 0; }
.ticks li { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.25rem; font-weight: 700; }
.ticks svg { flex: none; color: var(--mint-ink); }
.fill-note { margin: 2rem 0 0; color: var(--slate); font-size: 0.875rem; }
.fill-note span[lang] { display: block; }

/* ---------- Hours and location ---------- */
.visit-grid { display: grid; gap: 3rem; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.visit-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 1.375rem; }
.visit-card h3 svg { color: var(--cobalt); }
.open-status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem;
  color: var(--slate); font-size: 0.9375rem; font-weight: 700;
}
.open-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8A98B0; }
.open-status.is-open { color: #0A6B55; }
.open-status.is-open::before { background: #15B48C; }
.hours { border-top: 2px solid var(--ink); }
.hours div {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-block: 1rem; border-bottom: 1px solid var(--line);
}
.hours dt { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.hours dd { flex: none; display: grid; justify-items: end; margin: 0; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.hours dd span { white-space: nowrap; }
.hours .is-today dt { color: var(--cobalt); }
.today-badge { margin-inline-start: 0.5rem; color: var(--cobalt); font-size: 0.8125rem; font-weight: 700; }
.today-badge::before { content: "· "; }
.small-note { color: var(--slate); font-size: 0.875rem; }
.visit-card .small-note:last-child { margin: 0.75rem 0 0; }
.map { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1rem; border-radius: 4px; background: #E3EBF8; }
.map svg { width: 100%; height: 100%; }
.map-tag {
  position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 4px;
  background: #fff; color: var(--navy); font-size: 0.75rem; font-weight: 700;
}
.map-card {
  position: absolute; inset-inline: 0.75rem; bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 8px; background: #fff;
}
.mc-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; }
.mc-text { min-width: 0; }
.mc-text b { display: block; font-size: 0.875rem; line-height: 1.35; }
.mc-text small { display: block; color: var(--slate); font-size: 0.8125rem; line-height: 1.4; }
.mc-text .is-open { color: #0A6B55; font-weight: 700; }
.address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.5rem; }
.loc-facts { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; }
.loc-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--body); font-size: 0.9375rem; }
.loc-facts svg { flex: none; color: var(--mint-ink); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) { .loc-actions { display: grid; } }

/* ---------- Instagram: the account as it would look, in flat colours ---------- */
.ig-wrap { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ig-wrap { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 4rem; align-items: start; } }
.ig-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.ig-avatar { display: block; width: 76px; height: 76px; padding: 3px; border: 2px solid var(--cobalt); border-radius: 50%; }
.ig-avatar > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--navy); color: #fff; }
.ig-id p { margin: 0; line-height: 1.55; }
.ig-handle { font-size: 1.0625rem; font-weight: 800; }
.tag { display: inline-block; margin-inline-start: 0.25rem; color: var(--slate); font-size: 0.75rem; font-weight: 700; }
.ig-name { color: var(--navy); font-size: 0.9375rem; font-weight: 700; }
.ig-bio { color: var(--slate); font-size: 0.875rem; }
.ig-follow { grid-column: 1 / -1; justify-self: start; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 900px) { .ig-grid { grid-row: span 2; } }
.ig-post {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25em;
  aspect-ratio: 1; overflow: hidden; padding: 8%; text-align: center;
  font-size: clamp(0.75rem, 0.5rem + 0.75vw, 1rem); font-weight: 800; line-height: 1.4; text-wrap: balance;
}
.pt-small { font-size: 0.95em; }
.ig-reel {
  position: absolute; top: 7%; inset-inline-end: 7%; display: grid; place-items: center; width: 1.75em; height: 1.75em;
  border-radius: 4px; background: rgba(10, 27, 51, 0.32); color: #fff;
}
.ig-reel svg { width: 1em; height: 1em; }
.p-tip { background: var(--navy); color: #fff; }
.pt-tag { padding: 0 0.5em; border-radius: 4px; background: var(--mint); color: var(--ink); font-size: 0.85em; }
.pt-big { font-size: 2.5em; line-height: 1.15; }
.p-smile { background: var(--cobalt); color: #fff; }
.ps-tooth { width: 44%; height: auto; }
.p-team { background: var(--mist); color: var(--ink); }
.pt-faces { display: flex; justify-content: center; width: 100%; margin-bottom: 0.25em; }
.pt-faces svg {
  --collar: #C9D7EF;
  width: 34%; height: auto; aspect-ratio: 1; margin-inline: -4%; padding: 6% 6% 0; border: 2px solid var(--mist); border-radius: 50%;
  background: #fff; color: var(--sky);
}
.pt-faces svg:nth-child(2) { position: relative; z-index: 1; color: #8FD9C4; }
.p-reel { background: var(--mint); color: var(--ink); }
.pt-play { display: grid; place-items: center; width: 2.75em; height: 2.75em; margin-bottom: 0.25em; border-radius: 50%; background: #fff; color: var(--ink); }
.pt-play svg { width: 1.4em; height: 1.4em; }
.p-reel .ig-reel { background: rgba(10, 27, 51, 0.55); }
.p-first { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pt-title { color: var(--cobalt); font-size: 1.15em; }
.pt-lines { display: grid; gap: 0.35em; width: 70%; margin-block: 0.25em; }
.pt-lines i { display: block; height: 1px; background: var(--rule); }
.pt-lines i:nth-child(2) { width: 82%; }
.pt-lines i:nth-child(3) { width: 62%; }
.p-book { background: var(--deep-2); color: #fff; }
.pt-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25em; width: 88%; margin-bottom: 0.35em; }
.pt-cal i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-style: normal; }
.pt-cal i.on { background: var(--mint); color: var(--ink); }
.ig-note { margin: 0; }

/* ---------- Call to action ---------- */
.cl-cta { padding-block: clamp(3rem, 2rem + 4vw, 5rem); background: var(--cobalt); color: #fff; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cl-cta h2 { margin-bottom: 0.25em; color: #fff; font-size: clamp(2rem, 1.5rem + 2.2vw, 2.875rem); }
.cl-cta h2 [lang="en"] { color: #DCE7FF; }
.cl-cta p { margin: 0; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) { .cta-actions { display: grid; } }

/* ---------- Demo note (Khalesni's note) ---------- */
.demo-note { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); background: var(--ice); }
.demo-card {
  display: flex; align-items: flex-start; gap: 1rem; max-width: 52rem; margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 2px dashed rgba(6, 50, 58, 0.25); border-radius: 16px; background: #fff; color: var(--k-ink);
}
.demo-card img { flex: none; width: 44px; height: 44px; }
.demo-card h2 { color: var(--k-ink); font-size: 1.25rem; }
.demo-card h2 [lang="en"] { display: block; margin-top: 0.25em; color: #46636A; font-size: 0.75em; }
.demo-card p { color: #46636A; }
.demo-en { font-size: 0.9375rem; }
.demo-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.demo-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.25rem 0.75rem;
  border: 1px solid rgba(6, 50, 58, 0.22); border-radius: 999px; color: var(--k-ink);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
}
.demo-list a:hover { background: #EEF6F6; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 1.25rem; border-radius: 999px; background: var(--k-teal); color: #fff; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.k-btn:hover { background: #0A4F57; color: #fff; }
.k-btn .k-nw { white-space: nowrap; }
.nw { white-space: nowrap; }
.demo-card :focus-visible { outline-color: var(--k-ink); }
@media (max-width: 520px) { .demo-card { flex-direction: column; } }

/* ---------- Footer ---------- */
.cl-footer { padding-block: 2rem; background: var(--ink); color: rgba(255, 255, 255, 0.86); font-size: 0.875rem; }
.footer-row { display: grid; gap: 0.75rem; }
@media (min-width: 820px) { .footer-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; } }
.cl-footer p { margin: 0; }
.cl-footer p > span { display: block; margin-top: 0.25rem; opacity: 0.9; }
.cl-footer a { color: var(--sky); }
.credit a {
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #fff;
  font-size: 0.875rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.credit a:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 819px) { .cl-footer { padding-bottom: 6rem; } }

/* ---------- Floating "book" bar on phones (clinic.js hides it while the hero buttons or the booking are on screen) ---------- */
.book-bar {
  position: fixed; z-index: 50; inset-inline: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 54px;
  border-radius: 999px; background: var(--cobalt); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(15, 42, 79, 0.55);
  transition: opacity 0.3s var(--ease), translate 0.35s var(--ease), visibility 0s;
}
.book-bar.is-hidden { opacity: 0; translate: 0 140%; visibility: hidden; transition: opacity 0.3s var(--ease), translate 0.35s var(--ease), visibility 0s 0.35s; }
.book-bar:focus-visible { outline-color: var(--ink); }
@media (min-width: 820px) { .book-bar { display: none; } }

/* ---------- Scroll reveal (only when ../script.js runs and motion is allowed): a short rise, once ---------- */
.reveal-ready [data-reveal] { transition: opacity 0.6s var(--ease) var(--rd, 0s), translate 0.6s var(--ease) var(--rd, 0s); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 16px; }
[data-reveal="1"] { --rd: 0.06s; }
[data-reveal="2"] { --rd: 0.12s; }
[data-reveal="3"] { --rd: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
}
@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .book-bar { display: none; }
  .cl-header { position: static; }
}
