/* NearDoctor website. Brand: Register Ink Blue. Mobile first (360 px), desktop from 900 px. */
:root {
  --primary: #1E3A8A;
  --action: #B45309;
  --action-dark: #92400E;
  --page: #F5F8FF;
  --card: #FFFFFF;
  --text: #172554;
  --muted: #475569;
  --border: #CBD5E1;
  --tint: #E0E7FF;
  --coming: #15803D;
  --late: #B45309;
  --stop: #DC2626;
  --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", sans-serif;
  --font-head: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --pad: 16px;
  --sec: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
html[lang="bn"] body { font-size: 17px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 800; font-size: 34px; }
h2 { font-weight: 700; font-size: 25px; }
a { color: inherit; }
svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.sec.white { background: var(--card); }
.sec .wrap { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 16px; }
.head p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Top bar */
.topbar { background: var(--primary); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 21px; }
.logo span.mark { width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 20px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { display: none; text-decoration: none; font-weight: 500; }
.nav a.link:hover, .nav a.link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav a.link[aria-current="page"] { font-weight: 700; }
.lang { display: flex; border: 1px solid #fff; border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--primary); }

/* Mobile tabs */
.tabs { display: flex; background: var(--card); }
.tabs a { flex: 1; text-align: center; text-decoration: none; padding: 13px 8px; min-height: 50px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); }
.tabs a[aria-current="page"] { color: var(--primary); font-weight: 600; border-bottom: 3px solid var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 10px; border: 0; background: var(--action); color: #fff; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--action-dark); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn.ghost { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.btn.ghost:hover { background: var(--tint); }
.btn.on-blue { background: #fff; color: var(--primary); }
.btn.small { min-height: 48px; font-size: 16px; padding: 10px 16px; }
.btn.block { display: flex; width: 100%; }

/* Hero and search */
.hero .wrap { gap: 20px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pill { align-self: flex-start; background: var(--tint); color: var(--primary); font-weight: 600; font-size: 13px; border-radius: 999px; padding: 5px 12px; }
.search { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 12px; }
.search .box { display: flex; align-items: center; gap: 8px; background: var(--page); border-radius: 10px; padding: 0 14px; min-height: 52px; color: var(--muted); }
.search .box svg.ic { width: 20px; height: 20px; }
.search .box.town { color: var(--primary); }
.search select, .search input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 0; min-height: 52px; outline-offset: -2px; }
.search select { font-weight: 600; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--page); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; }
.svc h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.svc p { font-size: 14px; color: var(--muted); display: none; }
.svc .tile { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.svc.first { grid-column: 1 / -1; background: var(--primary); border-color: var(--primary); color: #fff; }
.svc.first h3 { font-size: 19px; }
.svc.first p { display: block; color: #fff; opacity: .9; }
.svc.first .tile { background: #fff; }
.badge { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.svc.first .badge { background: var(--coming); border-color: var(--coming); color: #fff; }

/* Queue */
.queue .wrap { gap: 20px; }
.queue .text { display: flex; flex-direction: column; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg.ic { color: var(--coming); width: 22px; height: 22px; stroke-width: 2.2; margin-top: 1px; }
.caption { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.token-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.token-card .doc b { display: block; font-weight: 600; }
.token-card .doc span { font-size: 14px; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; border: 1.5px solid currentColor; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 15px; background: var(--card); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.status.coming { color: var(--coming); }
.status.late { color: var(--late); }
.status.stop { color: var(--stop); }
.token { background: var(--page); border-radius: 12px; padding: 14px 12px; text-align: center; }
.token small { font-size: 14px; color: var(--muted); display: block; }
.token strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 68px; line-height: 1.05; color: var(--primary); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.facts b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.facts span { font-size: 12px; color: var(--muted); }
.token-card .auto { font-size: 13px; color: var(--muted); text-align: center; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; }
.steps .num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; flex: none; }
.steps h3 { font-size: 18px; font-weight: 600; }
.steps p { font-size: 15px; color: var(--muted); }

/* Chips used as buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 500; color: var(--text); background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 10px 18px; min-height: 46px; cursor: pointer; }
.chip:hover { border-color: var(--primary); }

/* Specialties */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec { text-align: left; font: inherit; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; color: inherit; }
.spec:hover { border-color: var(--primary); }
.spec b { display: block; color: var(--primary); font-weight: 600; }
.spec span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* Doctor cards */
.docs { display: grid; gap: 12px; }
.doc-card { background: var(--page); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.doc-card h3 { font-size: 17px; font-weight: 600; }
.doc-card p { font-size: 14px; color: var(--muted); }
.doc-card .btn { margin-top: auto; }

/* For doctors */
.fordoc { background: var(--page); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fordoc p { color: var(--muted); }
.fordoc .btn { flex: none; }

/* No app band */
.band { background: var(--primary); color: #fff; padding: 28px 0; }
.band .wrap { display: flex; flex-direction: column; gap: 14px; }
.band p { opacity: .9; margin-top: 4px; }

/* Form */
.join .wrap { gap: 16px; }
.join .intro { display: flex; flex-direction: column; gap: 14px; }
.form-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.two { display: flex; flex-direction: column; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
legend, label.lbl { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; display: block; }
.field label.lbl { margin-bottom: 6px; }
.field input { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 52px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input[aria-invalid="true"] { border: 2px solid var(--stop); }
.err { color: var(--stop); font-weight: 500; font-size: 14px; margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 52px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; flex: none; }
.opt:has(input:checked) { border: 2px solid var(--primary); background: var(--tint); font-weight: 600; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 999px; font-weight: 500; background: var(--card); }
.pick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.form-msg { border: 2px solid var(--stop); color: var(--stop); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; }
.success { align-items: center; text-align: center; gap: 14px; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--coming); color: #fff; display: grid; place-items: center; }
.success .tick svg.ic { width: 34px; height: 34px; stroke-width: 2.6; }
.success p { color: var(--muted); }

/* Coming later page */
.future { display: grid; gap: 12px; }
.future article { display: flex; gap: 14px; background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; }
.future .tile { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.future h2 { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.35; }
.future p { font-size: 15px; color: var(--muted); margin: 6px 0; }
.future .badge { display: inline-block; font-size: 13px; font-weight: 500; }
.ask .wrap { gap: 12px; }

/* Footer */
footer { background: var(--primary); color: #fff; padding: 28px 0; }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }
footer .name { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
footer small { font-size: 14px; opacity: .8; display: block; }
footer a { text-underline-offset: 3px; }

/* Toast */
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--text); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; z-index: 20; box-shadow: 0 6px 24px rgba(23, 37, 84, .3); }
.toast a { color: #fff; font-weight: 600; }

/* Photos: flat, same border and corners as cards */
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 16px; border: 1.5px solid var(--border); background: var(--tint); }
.hero-photo { aspect-ratio: 3 / 2; object-position: 50% 22%; }
.how-grid { display: flex; flex-direction: column; gap: 20px; }
.how-photo { aspect-ratio: 3 / 2; object-position: 50% 30%; }
.fordoc-photo { aspect-ratio: 16 / 9; object-position: 50% 30%; border-radius: 10px; }
.join-photo { display: none; }
.cl-head { display: flex; flex-direction: column; gap: 16px; }
.cl-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cl-photo { aspect-ratio: 3 / 2; object-position: 50% 25%; }

@media (min-width: 900px) {
  .hero .wrap { flex-direction: row; align-items: center; gap: 56px; }
  .hero-text { flex: 1; gap: 18px; }
  .hero-photo { width: 380px; flex: none; aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .how-grid { flex-direction: row; align-items: center; gap: 56px; }
  .how-photo { width: 420px; flex: none; aspect-ratio: 5 / 4; }
  .how-grid .steps { flex: 1; grid-template-columns: 1fr; gap: 28px; }
  .fordoc-photo { width: 200px; flex: none; aspect-ratio: 1; }
  .fordoc-text { flex: 1; }
  .join-photo { display: block; aspect-ratio: 4 / 3; margin-top: 10px; }
  .cl-head { flex-direction: row; align-items: center; gap: 56px; }
  .cl-text { flex: 1; }
  .cl-photo { width: 340px; flex: none; aspect-ratio: 4 / 3; }
  :root { --pad: 32px; --sec: 64px; }
  h1 { font-size: 56px; line-height: 1.1; }
  h2 { font-size: 34px; }
  .lead { font-size: 19px; max-width: 760px; }
  .head p { font-size: 17px; }
  .sec .wrap { gap: 24px; }
  .tabs { display: none; }
  .nav a.link { display: inline; }
  .logo { font-size: 25px; }
  .logo span.mark { width: 38px; height: 38px; font-size: 24px; }
  .search { flex-direction: row; }
  .search .box.town { width: 200px; flex: none; }
  .search .box.q { flex: 1; }
  .services { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .svc.first { grid-column: auto; }
  .svc p { display: block; }
  .queue .wrap { flex-direction: row; align-items: center; gap: 80px; }
  .queue .text { flex: 1; }
  .queue .preview { width: 400px; flex: none; }
  .token strong { font-size: 80px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .specs { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .spec { padding: 18px; }
  .spec b { font-size: 18px; }
  .spec span { font-size: 15px; }
  .docs { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .fordoc { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px; gap: 40px; }
  .band { padding: 48px 0; }
  .band .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .band p { font-size: 18px; }
  .join .wrap { flex-direction: row; align-items: flex-start; gap: 80px; }
  .join .intro { flex: 1; }
  .join .intro p { font-size: 18px; }
  .form-card { width: 520px; flex: none; padding: 28px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .future { grid-template-columns: 1fr 1fr; gap: 24px; }
  .future article { padding: 24px; gap: 18px; }
  .future .tile { width: 56px; height: 56px; }
  .future h2 { font-size: 21px; }
  .future p { font-size: 17px; }
  .ask .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  footer .right { text-align: right; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
