/* The patients' pages, finished (11 Nov; the user: "do the patient pages too", "like the Apple experienced designer").
   Loaded after each page's own styles and before a hospital's own sheet, so Rajasthan's and Sarvodaya's colours and
   fonts still win. One calm system, built only on each page's tokens: the phone's own typeface with large titles, white
   rounded cards on a soft grey, large rounded buttons as on a phone, filled fields that light up when typed in, a
   segmented language switch, rows grouped with hairlines, and an appointment that reads like a pass. */

:root {
  --p-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Devanagari", system-ui, sans-serif;
  --p-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Noto Sans Devanagari", system-ui, sans-serif;
  --sans: var(--p-font);
  --serif: var(--p-display);
  --p-fill: color-mix(in srgb, var(--ink) 6%, transparent);
  --p-fill-2: color-mix(in srgb, var(--ink) 9%, transparent);
  --p-hair: color-mix(in srgb, var(--ink) 11%, transparent);
  --p-tint: color-mix(in srgb, var(--mint) 12%, transparent);
  --p-elev: 0 1px 1px rgba(0, 0, 0, .03), 0 12px 32px -16px rgba(0, 0, 0, .18);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --paper: #f2f2f7; --card: #ffffff; } }
:root[data-theme="light"] { --paper: #f2f2f7; --card: #ffffff; }

body { font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--p-tint); }

/* ---------- a page: the title large, the content in cards ---------- */
body > main { gap: 16px; padding-top: 24px; padding-bottom: 48px; }
body > main > header small, body > main > .top small { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
body > main h1 { margin-top: 4px; font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
body > main h2 { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.012em; line-height: 1.3; }
body > main .card { border: 0; border-radius: 20px; background: var(--card, #fff); box-shadow: var(--p-elev); padding: 18px; gap: 14px; }
.note, .sub { color: var(--muted); }
.note { font-size: 15px; line-height: 1.45; }

/* rows of a card, grouped as on a phone: the label quiet, the value clear, a hairline between */
.card > .row { align-items: baseline; }
.card > .row + .row { border-top: 1px solid var(--p-hair); padding-top: 12px; }
.row > span { font-size: 15px; color: var(--muted); }
.row b { font-size: 17px; font-weight: 600; }
.big { font-family: var(--serif); font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }

/* ---------- buttons: one large rounded main action, a tinted second, never a box of lines ---------- */
.primary, .pay, .btn.primary, a.btn.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 20px;
  border: 0; border-radius: 14px; background: var(--mint); color: var(--on-mint, #fff); font-family: inherit; font-size: 17px;
  font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 18px -10px color-mix(in srgb, var(--mint) 75%, transparent);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.primary:hover:not([disabled]), .pay:hover, .btn.primary:hover { filter: brightness(1.06); }
.primary:active:not([disabled]), .pay:active, .btn.primary:active { transform: scale(.98); filter: brightness(.94); }
.primary[disabled] { opacity: .45; box-shadow: none; }
a.btn:not(.primary), button.btn:not(.primary) {
  border: 0; background: var(--p-tint); color: var(--mint); box-shadow: none; transition: transform .12s ease, background .12s ease;
}
a.btn:not(.primary):active, button.btn:not(.primary):active { transform: scale(.98); }
.change { border: 0; background: var(--p-tint); color: var(--mint); padding: 8px 15px; }
.more { border: 0; background: transparent; color: var(--mint); }
.linkbtn { text-decoration: none; }

/* ---------- fields: filled, no lines; they light up in the hospital's colour when typed in ---------- */
input:where(:not([type="checkbox"], [type="radio"], [type="hidden"])), textarea {
  font-family: inherit; font-size: 17px; color: var(--ink); background: var(--p-fill); border: 0; border-radius: 12px;
  padding: 14px 16px; transition: background .15s ease, box-shadow .15s ease;
}
input:where(:not([type="checkbox"], [type="radio"], [type="hidden"])):focus, textarea:focus {
  outline: none; background: var(--card, #fff); box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 4px var(--p-tint);
}
::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
label { font-size: 15px; }
.seg label { border: 0; background: var(--p-fill); border-radius: 12px; padding: 13px 14px; }

/* ---------- choosing: days as capsules, doctors and times as soft tiles; the chosen one in the hospital's colour ---------- */
.day { border: 0; background: var(--p-fill); min-height: 40px; padding: 9px 16px; font-size: 15px; font-weight: 500; transition: background .15s ease; }
.day[aria-pressed="true"] { background: var(--mint); color: var(--on-mint, #fff); font-weight: 600; }
.opt, .dept, .dochit { border: 0; background: var(--p-fill); border-radius: 14px; transition: background .15s ease, box-shadow .15s ease, transform .12s ease; }
.opt:active, .dept:active, .dochit:active { transform: scale(.985); }
.opt[aria-pressed="true"], .dept.best { background: var(--p-tint); box-shadow: inset 0 0 0 2px var(--mint); }
.dept:hover, .dochit:hover { background: var(--p-fill-2); }
.chosen { background: var(--p-tint); border-radius: 14px; padding: 12px 14px; }
.alert { border-radius: 16px; }
.alert.sos, .alert.calm, .alert.soon { border: 0; }
.status { padding: 4px 11px; font-size: 14px; }

/* ---------- the language: a segmented switch, the chosen side raised ---------- */
.lang { border: 0; background: var(--p-fill-2); border-radius: 10px; padding: 2px; }
.lang button { min-height: 34px; padding: 8px 13px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.lang button[aria-pressed="true"] { background: var(--card, #fff); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 1px 1px rgba(0, 0, 0, .04); }

/* ---------- the appointment, as a pass: the hospital's colour along the top, the rows grouped, the number large ---------- */
.card.pass { padding: 0; gap: 0; overflow: hidden; }
.card.pass::before { content: ""; display: block; height: 8px; background: var(--mint); }
.card.pass > .row { padding: 13px 18px; }
.card.pass > .row + .row { padding-top: 13px; }
.card.pass .big { font-size: 40px; color: var(--mint); }

/* ---------- the home page: the title large and plain, the two ways in as cards, the rest calm ---------- */
.hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.028em; line-height: 1.06; }
.lead { color: var(--muted); }
.actions .btn, .actions a.btn.primary { border: 0; border-radius: 18px; box-shadow: var(--p-elev); align-items: flex-start; text-align: left; }
.block h2, .head h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.022em; }
.actions .btn:not(.primary) { background: var(--card, #fff); color: var(--ink); }
.actions .btn.primary { box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 14px 28px -14px color-mix(in srgb, var(--mint) 80%, transparent); }
.staff { border: 0; background: var(--p-fill-2); color: var(--ink); font-weight: 600; }
.depts li { border: 0; background: var(--card, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.place .links a { border: 0; background: var(--card, #fff); box-shadow: var(--p-elev); border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  .primary, .pay, .btn, .opt, .dept, .dochit, .day { transition: none; }
}

/* ---------- the home page's first screen, as apple.com: centred, the title very large, the two ways in side by side ---------- */
.hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; padding-top: 48px; }
.hero > div:first-child { max-width: 780px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); max-width: 15ch; margin-left: auto; margin-right: auto; }
.hero .lead { margin-left: auto; margin-right: auto; font-size: clamp(18px, 2.2vw, 22px); max-width: 32em; }
.hero .actions, .hero .note { margin-left: auto; margin-right: auto; }
.hero .slip-stage { width: min(440px, 100%); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; max-width: 600px; }
.hero .actions .btn, .hero .actions a.btn.primary { flex: 0 1 270px; align-items: center; text-align: center; }
