/* Medzone kiosk styles — brand: blue #00388F, orange #F76300, black ink, white.
   Large tap targets + high contrast (build plan Phase 6 a11y starts here). */
:root {
  --mz-blue: #00388F;
  --mz-orange: #F76300;
  --ink: #111;
  --ok: #0a7a2f;
  --bad: #b00020;
  --warn: #9a6700;
  --bg: #f5f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 17px; }

header { background: #fff; padding: 14px 20px; border-bottom: 4px solid var(--mz-blue); }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: .5px; }
.wordmark .med { color: var(--mz-blue); }
.wordmark .zone { color: var(--mz-orange); }
.wordmark .pharm { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 4px; display: block; }
header .sub { color: #555; font-size: 14px; margin-top: 2px; }

#banners .banner { padding: 8px 20px; font-size: 14px; font-weight: 600; }
.banner-danger { background: var(--bad); color: #fff; }
.banner-warn { background: #fff7e6; color: var(--warn); border-bottom: 1px solid #f0c36d; }
.banner-info { background: #e8eefc; color: var(--mz-blue); }

main { max-width: 860px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 14px; padding: 22px; margin: 14px 0; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card.center { text-align: center; }
.card.pharmacist { border-top: 6px solid var(--mz-orange); }
h1 { margin: 0 0 10px; font-size: 26px; }
h2 { margin: 22px 0 8px; font-size: 19px; color: var(--mz-blue); }
h3 { margin: 0 0 6px; font-size: 17px; }
.note { color: #555; font-size: 14px; }
.err { color: var(--bad); font-weight: 700; min-height: 1.2em; }

.btn { -webkit-appearance: none; appearance: none; border: 0; border-radius: 12px; padding: 14px 22px;
  font-size: 17px; font-weight: 700; cursor: pointer; min-height: 48px; margin: 6px 6px 6px 0; }
.btn.primary { background: var(--mz-blue); color: #fff; }
.btn.secondary { background: #e8eefc; color: var(--mz-blue); }
.btn.big { font-size: 20px; padding: 18px 30px; }
.btn.link { background: none; color: var(--mz-blue); text-decoration: underline; font-weight: 600; }
.btn:disabled { opacity: .4; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.field span { font-size: 13px; font-weight: 700; color: #444; }
input, select, textarea { font-size: 17px; padding: 12px; border: 1.5px solid #c8cdd6; border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,56,143,.35); border-color: var(--mz-blue); }

/* Visible keyboard focus for all interactive controls (WCAG 2.4.7). */
.btn:focus-visible, .pill:focus-within, a:focus-visible, .openlink:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #1f6feb; outline-offset: 2px;
}
.pill input:focus-visible { outline: none; } /* the .pill:focus-within ring covers it */

/* Respect reduced-motion preferences (WCAG 2.3.3 / motion sensitivity). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid #c8cdd6; border-radius: 10px; font-weight: 600; }
.check input { width: 26px; height: 26px; flex: none; }

.question { padding: 14px 0; border-bottom: 1px solid #eee; }
.question p { margin: 0 0 8px; font-weight: 600; }
.answers { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #c8cdd6; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; cursor: pointer; }
.pill input { width: 20px; height: 20px; margin: 0; }
.pill:has(input:checked) { border-color: var(--mz-blue); background: #e8eefc; }
.detail { margin-top: 8px; }

.vaxcard { border: 1.5px solid #dfe3ea; border-radius: 12px; padding: 14px; margin: 10px 0; }
.vaxcard .status { font-weight: 700; color: var(--warn); }
.livechip { background: var(--mz-orange); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; vertical-align: middle; }
.statuschip { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; vertical-align: middle; }
.statuschip.st-ok { background: #e6f6ea; color: var(--ok); }
.statuschip.st-warn { background: #fff7e6; color: var(--warn); }
.statuschip.st-bad { background: #fdecef; color: var(--bad); }
.statuschip.st-gate { background: var(--bad); color: #fff; }
.warnchip { background: #fff7e6; border: 1px solid #f0c36d; color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.flags { background: #fdf2f2; border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 8px 0; }
.flags ul { margin: 6px 0 0; padding-left: 18px; }

.consent-text { border: 1.5px solid #dfe3ea; border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.5; max-height: 260px; overflow-y: auto; background: #fafbfc; white-space: pre-wrap; }
.sigwrap { border: 2px dashed #c8cdd6; border-radius: 10px; display: inline-block; background: #fff; }
.sigimg { max-width: 320px; border: 1px solid #dfe3ea; border-radius: 8px; }

table.summary { width: 100%; border-collapse: collapse; font-size: 14px; }
table.summary td, table.summary th { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: left; }

.stop .stop-sign { width: 130px; height: 130px; margin: 10px auto; background: var(--bad); color: #fff;
  border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: 2px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 16px; padding: 26px; max-width: 420px; width: 92%; text-align: center; }
.code-input { font-size: 28px; text-align: center; letter-spacing: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 60; }
.resume-box { border: 2px solid var(--mz-orange); border-radius: 12px; padding: 14px; margin: 14px 0; }
.expmsg { font-size: 13px; font-weight: 700; }
.expmsg.error { color: var(--bad); }
.expmsg.warn { color: var(--warn); }
.expmsg.ok { color: var(--ok); }
