/* =========================================================================
   STAR HEALTH — DESIGN SYSTEM
   Self-hosted only: system fonts, inline SVG icons, no external assets.
   ========================================================================= */

:root {
  --navy-950: #041d31;
  --navy-900: #062a45;
  --navy: #0a3d62;
  --navy-700: #0f4f7d;
  --navy-600: #17639a;
  --green: #2ecc71;
  --green-600: #22b35f;
  --green-700: #15803d;
  --green-50: #ecfdf3;
  --green-100: #d1fae0;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --red: #dc2626;
  --red-50: #fef2f2;
  --amber: #b45309;
  --amber-50: #fffbeb;
  --blue: #1d4ed8;
  --blue-50: #eff6ff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -16px rgba(6, 42, 69, .28);
  --ring: 0 0 0 4px rgba(46, 204, 113, .25);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --container: 1180px;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-600) 100%); color: var(--green); box-shadow: 0 6px 14px -6px rgba(10, 61, 98, .6); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; color: var(--navy); }
.brand-name span { color: var(--green-600); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: var(--green); }
.brand-light .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { --btn-bg: var(--green); --btn-fg: #05301a; --btn-bd: var(--green); box-shadow: 0 8px 18px -10px rgba(34, 179, 95, .9); }
.btn-primary:hover { --btn-bg: #3ad57d; --btn-bd: #3ad57d; }
.btn-dark { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn-dark:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn-outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: #eef3f8; }
.btn-light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn-light:hover { --btn-bg: rgba(255,255,255,.18); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--red); --btn-bd: #fecaca; }
.btn-danger:hover { --btn-bg: var(--red-50); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: .86rem; border-radius: 10px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-600); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Beta bar & header ---------- */
.beta-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; background: var(--navy-950); color: #cfe0ee; font-size: .82rem; text-align: center; }
.beta-bar .icon { color: #fbbf24; }
.beta-bar a { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .35); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 560; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); background: #eef3f8; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 1101px) {
  .btn-icon-desktop { padding-inline: 12px; }
  .btn-icon-desktop .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: calc(var(--header-h) + 34px) 12px auto 12px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); padding-top: 12px; }
  .nav-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #dbe7f1; background:
  radial-gradient(900px 480px at 85% -10%, rgba(46, 204, 113, .22), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(23, 99, 154, .55), transparent 60%),
  linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(48px, 8vw, 96px) 20px clamp(56px, 9vw, 110px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(46, 204, 113, .14); border: 1px solid rgba(46, 204, 113, .35); color: #b7f5cf; font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 204, 113, .25); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -.03em; line-height: 1.06; margin-bottom: 20px; }
.hero h1 em { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--green); letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #c6d7e6; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: #b9cde0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--green); }
.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 4.2; background: linear-gradient(150deg, var(--navy-700), var(--navy-600)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); border: 1px solid rgba(255,255,255,.12); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.25); }
.hero-photo-fallback .icon { width: 40%; height: 40%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.3; }
.float-card strong { display: block; font-size: 1.05rem; color: var(--navy); }
.float-card span { color: var(--muted); }
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.float-card.fc-1 { left: -22px; bottom: 34px; }
.float-card.fc-2 { right: -14px; top: 30px; }
.float-card.fc-2 .fc-icon { background: #fff7e6; color: #d97706; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .float-card.fc-1 { left: 12px; bottom: 12px; }
  .float-card.fc-2 { display: none; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}
.doctor-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 270px)); justify-content: center; }
@media (max-width: 520px) { .doctor-grid { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 2; margin-top: -42px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 22px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid > *, .form-grid > *, .booking-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); margin-bottom: 16px; }
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile.navy { background: #e8f0f7; color: var(--navy); }
.service-card h3 { margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--navy-600); text-decoration: none; font-size: .93rem; }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-photo { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 4; background: linear-gradient(150deg, #e8f0f7, #d7e6f2); position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-50); color: var(--green-700); margin-top: 1px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Doctors */
.doctor-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.doctor-photo { aspect-ratio: 4 / 3.4; background: linear-gradient(150deg, #e6eef6, #cfdfec); display: grid; place-items: center; overflow: hidden; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-initials { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.6rem; font-weight: 750; letter-spacing: .02em; }
.doctor-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.doctor-body h3 { margin: 0; }
.doctor-spec { color: var(--green-700); font-weight: 650; font-size: .92rem; }
.doctor-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.doctor-body .btn { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 750; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 14px; }
.quote-card .icon-quote { color: var(--green); width: 30px; height: 30px; }
.quote-card blockquote { margin: 0; color: var(--text); font-size: 1rem; flex: 1; }
.stars { color: #f5a524; letter-spacing: 2px; font-size: 1rem; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #e8f0f7; color: var(--navy); font-weight: 750; font-size: .95rem; flex-shrink: 0; }
.person strong { display: block; color: var(--ink); }
.person span { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #d6e4ef;
  background: radial-gradient(600px 260px at 100% 0%, rgba(46,204,113,.28), transparent 60%), linear-gradient(140deg, var(--navy-900), var(--navy-700)); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Resources */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resource-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 560; transition: border-color .15s, background .15s; }
.resource-list a:hover { border-color: var(--green); background: var(--green-50); }
.resource-list .icon { color: var(--navy-600); }
.resource-list .meta { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 500; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.field label, .label { font-weight: 650; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--red); }
.hint { font-size: .83rem; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--green-600); box-shadow: var(--ring); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field input.error, .field select.error, .field textarea.error { border-color: var(--red); background: #fffafa; }
.field-error { color: var(--red); font-size: .84rem; min-height: 0; }
.field-error:empty { display: none; }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-wrap .input-icon + input { padding-left: 44px; }
.toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 650; cursor: pointer; }
.toggle-pass:hover { background: #f1f5f9; color: var(--navy); }
.input-wrap input[data-has-toggle] { padding-right: 64px; }
.char-count { align-self: flex-end; font-size: .8rem; color: var(--subtle); }
.otp-field input { text-align: center; font-size: 1.7rem !important; font-weight: 750; letter-spacing: .5em; padding-left: .5em !important; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 62px !important; }
.captcha-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.captcha-img { display: flex; align-items: center; gap: 6px; }
.captcha-img img { height: 48px; width: auto; border-radius: 10px; border: 1px solid var(--line); background: #f0f8ff; }
.captcha-refresh { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.captcha-refresh:hover { color: var(--navy); border-color: var(--line-strong); }
@media (max-width: 420px) { .captcha-row { grid-template-columns: 1fr; } }
.password-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.password-meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }
.form-divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: .85rem; margin: 20px 0; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Alerts, status, toast ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius); border: 1px solid; font-size: .93rem; margin-bottom: 18px; line-height: 1.5; }
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--red-50); border-color: #fecaca; color: #991b1b; }
.alert-success { background: var(--green-50); border-color: #a7f3c5; color: #14532d; }
.alert-info { background: var(--blue-50); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.alert a { color: inherit; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-scheduled { background: var(--green-50); color: var(--green-700); }
.status-rescheduled { background: var(--amber-50); color: var(--amber); }
.status-completed { background: var(--blue-50); color: var(--blue); }
.status-cancelled { background: var(--red-50); color: var(--red); }
.toast-region { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(92vw, 440px); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: .93rem; animation: toast-in .25s ease; }
.toast.error { background: #7f1d1d; }
.toast.success { background: #14532d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Auth layout ---------- */
.auth-page { background: var(--bg); }
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr); }
.auth-main, .auth-card { min-width: 0; }
.auth-aside { position: relative; overflow: hidden; color: #d6e4ef; padding: 48px; display: flex; align-items: center;
  background: radial-gradient(520px 360px at 100% 0%, rgba(46,204,113,.25), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(23,99,154,.6), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy)); }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth-aside-inner { position: relative; z-index: 1; max-width: 380px; margin-inline: auto; }
.auth-aside h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 40px 0 24px; letter-spacing: -.02em; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: .98rem; }
.auth-points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--green); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px 40px; }
.auth-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 36px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--muted); margin-bottom: 24px; }
.auth-subtitle strong { color: var(--ink); word-break: break-all; }
.auth-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); margin-bottom: 18px; }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-icon.is-danger { background: var(--red-50); color: var(--red); }
.auth-footer { width: 100%; max-width: 440px; margin-top: 18px; text-align: center; color: var(--muted); font-size: .94rem; }
.auth-footer a { font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; }
.auth-legal { margin-top: 22px; font-size: .82rem; color: var(--subtle); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.back-link:hover { color: var(--navy); }
.auth-top .brand { visibility: hidden; }
.summary-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 8px; font-size: .93rem; }
.summary-row { display: flex; gap: 10px; align-items: flex-start; }
.summary-row .icon { color: var(--navy-600); margin-top: 2px; }
.summary-row strong { color: var(--ink); }
.resend { margin-top: 16px; text-align: center; font-size: .92rem; color: var(--muted); }
.resend form { display: inline; }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-top .brand { visibility: visible; }
  .auth-main { justify-content: flex-start; padding-top: 20px; }
}

/* ---------- App pages (patient area) ---------- */
.app-main { background: var(--bg); min-height: 70vh; padding: 28px 0 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head > div { min-width: 0; }
.page-head h1 { margin: 0; overflow-wrap: anywhere; }
.page-head p { overflow-wrap: anywhere; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat-card .icon-tile { margin: 0; width: 44px; height: 44px; }
.stat-card strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .stat-cards { gap: 10px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-card .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
  .stat-card .icon-tile .icon { width: 19px; height: 19px; }
  .stat-card strong { font-size: 1.25rem; }
  .page-head .btn { width: 100%; }
}

.appt-list { display: grid; gap: 14px; }
.appt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.date-tile { width: 68px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-align: center; background: var(--surface); flex-shrink: 0; }
.date-tile .m { display: block; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .1em; padding: 4px 0; text-transform: uppercase; }
.date-tile .d { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.date-tile .w { display: block; font-size: .7rem; color: var(--muted); padding-bottom: 5px; }
.appt-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.appt-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; }
.appt-meta span { display: inline-flex; align-items: center; gap: 6px; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.appt-card.is-past { opacity: .82; }
@media (max-width: 720px) {
  .appt-card { grid-template-columns: auto 1fr; align-items: start; }
  .appt-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
details.symptoms { margin-top: 8px; font-size: .88rem; }
details.symptoms summary { cursor: pointer; color: var(--navy-600); font-weight: 600; }
details.symptoms p { margin: 6px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; color: var(--text); }
.empty-state { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .icon-tile { margin: 0 auto 14px; }
.empty-state p { color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e9eef4; border-radius: 12px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(92vw, 460px); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(4, 29, 49, .55); backdrop-filter: blur(2px); }
.dialog-body { padding: 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Booking page */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.slot-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option label { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 650; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.slot-option label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.slot-option label:hover { border-color: var(--subtle); }
.slot-option input:checked + label { border-color: var(--green-600); background: var(--green-50); box-shadow: var(--ring); }
.slot-option input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.slot-options.error label { border-color: var(--red); }
.form-section-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .82rem; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: minmax(0, 1fr); } .booking-aside { position: static; } }
@media (max-width: 520px) { .slot-options { grid-template-columns: 1fr; } }

/* Confirmation */
.success-hero { text-align: center; margin-bottom: 20px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); box-shadow: 0 0 0 10px rgba(46, 204, 113, .1); }
.success-icon .icon { width: 36px; height: 36px; }
.ticket { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.ticket-top { display: flex; gap: 16px; align-items: center; padding: 18px; }
.ticket-bottom { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--bg); border-top: 1px dashed var(--line-strong); font-size: .9rem; }
.ticket-bottom strong { color: var(--navy); letter-spacing: .04em; }
.stack { display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb6c9; padding: 56px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { color: var(--green); margin-top: 2px; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 20px 24px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-page { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #b9cde0; }
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand .brand-name { font-size: 1.08rem; }
.admin-brand .brand-mark { width: 32px; height: 32px; }
.admin-tag { margin-left: auto; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(46,204,113,.15); color: var(--green); }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a, .admin-sidebar-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b9cde0; text-decoration: none; font-weight: 560; font-size: .94rem; }
.admin-nav a:hover, .admin-sidebar-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(46,204,113,.14); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.admin-nav a[aria-current="page"] .icon { color: var(--green); }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; }
.admin-user .avatar { background: rgba(255,255,255,.1); color: #fff; width: 36px; height: 36px; font-size: .85rem; }
.admin-user strong { display: block; color: #fff; font-size: .9rem; line-height: 1.2; }
.admin-user span { font-size: .78rem; }
.admin-body { min-width: 0; }
.admin-topbar { display: none; }
.admin-main { padding: 28px clamp(16px, 3vw, 36px) 56px; max-width: 1320px; }
.admin-scrim { display: none; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .admin-shell.nav-open .admin-sidebar { transform: none; }
  .admin-shell.nav-open .admin-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(4, 29, 49, .5); }
  .admin-topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; padding: 10px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .admin-topbar .nav-toggle { display: inline-flex; margin: 0; }
  .admin-main { padding-top: 20px; }
}

/* Panels & tables */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-head h2 .icon { color: var(--navy-600); }
.panel-body { padding: 20px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th { text-align: left; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; max-width: 200px; }
.data td { padding: 12px 12px; border-bottom: 1px solid #eef2f6; vertical-align: middle; color: var(--text); }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #fafcfe; }
.data .sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 1px; }
.data .strong { color: var(--ink); font-weight: 650; }
.data .actions { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 220px; }
.data .actions form { display: inline-flex; margin: 0; }
.data .icon-actions { min-width: 0; flex-wrap: nowrap; gap: 4px; }
.data .status { padding: 3px 9px; font-size: .74rem; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; border-radius: 10px; }
.btn-icon .icon { width: 18px; height: 18px; }
.data .empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eef2f6; color: var(--text); white-space: nowrap; }
.chip-green { background: var(--green-50); color: var(--green-700); }
.chip-navy { background: #e8f0f7; color: var(--navy); }
.chip-red { background: var(--red-50); color: var(--red); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 600; text-decoration: none; }
.filter-bar a:hover { border-color: var(--line-strong); }
.filter-bar a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.search-bar .input-wrap { flex: 1; min-width: 200px; }
.search-bar input { width: 100%; min-height: 42px; padding: 9px 12px 9px 40px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-size: .95rem; }
.search-bar input:focus { outline: none; border-color: var(--green-600); box-shadow: var(--ring); }
.search-bar .input-icon { left: 12px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #e8f0f7; display: grid; place-items: center; color: var(--navy); font-weight: 750; font-size: .9rem; flex-shrink: 0; }
.who { display: flex; align-items: center; gap: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1200px) { .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 20px; }
.quick-actions a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; transition: border-color .15s, transform .15s; }
.quick-actions a:hover { border-color: var(--green); transform: translateY(-1px); }
.quick-actions .icon { color: var(--green-700); width: 20px; height: 20px; }
.two-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1000px) { .two-panels { grid-template-columns: minmax(0, 1fr); } }
.feedback-list { display: grid; gap: 12px; }
.feedback-item { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.feedback-item p { margin: 6px 0 4px; }
.form-narrow { max-width: 720px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.image-slot { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.image-preview { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #eef2f6; display: grid; place-items: center; color: var(--subtle); border: 1px dashed var(--line-strong); text-align: center; font-size: .88rem; padding: 10px; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview:has(img) { padding: 0; border-style: solid; }
@media (max-width: 720px) { .image-slot { grid-template-columns: 1fr; } }
.field input[type="file"] { padding: 9px 10px; min-height: 0; font-size: .9rem; background: #f8fafc; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 560; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green-600); }
.password-reveal { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 8px; background: #fff; border: 1px dashed currentColor; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .beta-bar, .nav-toggle, .appt-actions, .btn { display: none !important; }
  body { background: #fff; }
}
