/* Patient website. Mobile first: one column, sticky action dock at the bottom. */
:root {
  --bg: #F4FAF9;
  --surface: #FFFFFF;
  --ink: #10302D;
  --muted: #55706C;
  --line: #D6E7E4;
  --teal: #0F766E;
  --teal-ink: #FFFFFF;
  --teal-soft: #E1F3F0;
  --mint: #CFEFE9;
  --sun: #F2A93B;
  --wa: #128C4A;
  --danger: #B42318;
  --radius: 18px;
  --font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: 26px; font-weight: 800; }
p { margin: 0; }
a { color: var(--teal); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.demo-bar { background: #FFF4DB; color: #6B4A00; text-align: center; font-size: 13px; padding: 4px 12px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: var(--muted); font-size: 13px; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); flex: none; }
.lang button { border: 0; background: none; border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 10px 30px rgba(15, 80, 70, .06); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn.big { min-height: 54px; font-size: 18px; padding: 12px 24px; }
.btn.primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 6px 16px rgba(15, 118, 110, .25); }
.btn.primary:disabled { background: #9DBDB8; box-shadow: none; cursor: not-allowed; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 8px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--muted); }
.open-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 10px; font-size: 14px; font-weight: 600; }
.open-pill i { width: 10px; height: 10px; border-radius: 50%; background: #9AA9A6; }
.open-pill.open i { background: #12A150; box-shadow: 0 0 0 4px rgba(18, 161, 80, .15); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { flex: 1 1 180px; }
.trust { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; }
.trust b { font-size: 20px; }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.hero-art { display: none; }

/* booking */
.book { scroll-margin-top: 12px; display: flex; flex-direction: column; gap: 16px; border: 2px solid var(--teal); }
.book-head { display: flex; flex-direction: column; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 700; font-size: 12px; flex: none; }
.steps li em { font-style: normal; line-height: 1.2; }
.steps li.on { color: var(--ink); border-color: var(--teal); }
.steps li.on span { background: var(--teal); color: #fff; }
.q { font-size: 18px; font-weight: 700; margin: 4px 0 10px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.date { flex: none; width: 72px; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.date small { font-size: 12px; color: var(--muted); }
.date b { font-size: 24px; font-weight: 800; }
.date em { font-style: normal; font-size: 11px; color: var(--muted); }
.date[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.date[aria-checked="true"] small, .date[aria-checked="true"] em { color: #E3F6F3; }
.date:disabled { opacity: .45; cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--bg) 6px 12px); }
.slot-group + .slot-group { margin-top: 14px; }
.slot-group h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.slot-group h4 .full { color: var(--danger); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: 48px; border: 1.5px solid var(--teal); background: var(--teal-soft); color: var(--teal); border-radius: 12px; font-weight: 700; cursor: pointer; }
.slot[aria-checked="true"] { background: var(--teal); color: #fff; }
.slot:disabled { border-color: var(--line); background: var(--bg); color: #A7B7B4; text-decoration: line-through; cursor: not-allowed; }
.slots-note { background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); }
.pane-foot { margin-top: 16px; display: flex; }
.pane-foot .btn.big { flex: 1; }
.pane-foot.two { gap: 10px; }
.pane-foot.two .btn.ghost { flex: 0 0 auto; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--teal-soft); border-radius: 14px; padding: 10px 14px; font-weight: 700; margin-bottom: 14px; }
.chosen button { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; }
.field > span, .field legend { font-weight: 700; font-size: 16px; padding: 0; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-height: 50px; font-size: 18px; }
.field textarea { font-size: 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.field.bad input { border-color: var(--danger); }
.phone { display: flex; align-items: stretch; }
.phone b { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bg); color: var(--muted); }
.phone input { border-radius: 0 12px 12px 0; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 40px; font-weight: 600; font-size: 15px; }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--teal); }
.err { color: var(--danger); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.form-err { background: #FDECEA; color: var(--danger); border-radius: 12px; padding: 10px 14px; margin-top: 10px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tick svg { width: 72px; height: 72px; }
.tick circle { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 3; }
.tick path { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: 24px; }
.ticket { width: 100%; max-width: 420px; border: 1.5px dashed var(--teal); border-radius: 16px; padding: 14px 16px; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; background: var(--teal-soft); }
.ticket dt { color: var(--muted); font-size: 14px; }
.ticket dd { margin: 0; font-weight: 700; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* services */
.services { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: start; }
.svc .si { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; font-size: 22px; }
.svc h3 { font-size: 18px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .price { font-weight: 700; color: var(--teal); font-size: 15px; }

/* doctor */
.doctor { display: grid; grid-template-columns: 1fr; gap: 14px; }
.avatar svg { width: 80px; height: 80px; }
.doctor p + p { margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }

/* reviews */
.reviews { margin-top: 14px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rev { flex: 0 0 min(300px, 85%); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rev .stars { color: var(--sun); letter-spacing: 2px; }
.rev b { font-size: 15px; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hours { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--teal); font-weight: 800; }
.hours .closed { color: var(--danger); }
.addr { margin-bottom: 12px; }
.visit-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.visit-btns .btn { flex: 1 1 150px; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 240px; background: var(--teal-soft); }
.map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }

/* faq */
.faq { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding-bottom: 14px; color: var(--muted); }

.foot { max-width: 1040px; margin: 40px auto 0; padding: 20px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* bottom dock (phones) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 14px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.dock a.wa { color: var(--wa); border-color: #BFE3CD; }
.dock .book-btn { background: var(--teal); border-color: var(--teal); color: #fff; font-size: 17px; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 24px; }
  .hero-art { display: block; }
  .hero-art svg { width: 100%; max-width: 340px; margin: 0 auto; }
  .card { padding: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: auto 1fr; gap: 24px; }
  .visit { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
