/* Look and feel of the registration app: navy, leaf and gold on a light ground. Phone first (390 px). */
@font-face { font-family: "PJS"; src: url("../fonts/pjs-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "PJS"; src: url("../fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PJS"; src: url("../fonts/pjs-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PJS"; src: url("../fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --navy: #06245A; --navy2: #2A4A7F; --ocean: #0068A8; --leaf: #147A3E; --leaf2: #38A860; --gold: #F4B400;
  --amber: #F08B2E; --ground: #EEF4F8; --line: #D6E2EA; --line2: #E4ECF2; --ink: #10223A; --muted: #4A5B6C; --soft: #CFE0EE;
  --font: "PJS", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { margin: 0; letter-spacing: -.2px; }
h2 { font-size: 18px; font-weight: 800; color: var(--navy); }
h3 { font-size: 16px; font-weight: 800; }
p { margin: 0; }
a { color: var(--ocean); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7CC0EC; outline-offset: 2px; }
[hidden] { display: none !important; }

header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
header .in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
header .logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
header .t { font-weight: 800; font-size: 16px; line-height: 1.2; }
header .s { font-size: 12px; color: var(--soft); }
header .back { color: #fff; text-decoration: none; font-size: 30px; line-height: 1; min-width: 32px; min-height: 44px;
  display: grid; place-items: center; }
.ribbon { display: flex; height: 4px; } .ribbon i { flex: 1; }
.ribbon i:nth-child(1) { background: #0077BC; } .ribbon i:nth-child(2) { background: var(--leaf2); }
.ribbon i:nth-child(3) { background: var(--gold); } .ribbon i:nth-child(4) { background: var(--amber); }

main { max-width: 680px; margin: 0 auto; padding: 16px 16px 80px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; }
.card.new { border: 2px solid var(--gold); }
.card > * + * { margin-top: 8px; }
.sub, .hint, small { color: var(--muted); font-size: 14px; }
.empty, .center { text-align: center; color: var(--muted); padding: 8px; }
.hero { text-align: center; padding: 24px 0 4px; }
.hero img { width: 96px; height: 96px; border-radius: 50%; background: #fff; }
.hero h1 { font-size: 24px; font-weight: 800; color: var(--navy); margin-top: 8px; }
.hero .tagline { color: var(--muted); }

.q { margin-top: 14px; }
.l { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 6px; }
.q > .l { margin-top: 0; }
input[type=text], input[type=password], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px;
  color: var(--ink); background: #fff; border: 1.5px solid #C9D7E2; border-radius: 12px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(0,104,168,.18); }
#pin { letter-spacing: .4em; font-size: 22px; text-align: center; font-weight: 800; }
.count { display: block; text-align: right; font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid transparent; font-weight: 800; font-size: 15px; text-decoration: none; text-align: center; }
.btn.full { width: 100%; }
.btn.pri { background: var(--leaf); color: #fff; }
.btn:disabled { opacity: .55; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.call { background: var(--leaf); color: #fff; border-radius: 999px; min-height: 44px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #C9D7E2; background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E9EEF4;
  color: #2E4257; white-space: nowrap; }
.pill.g { background: #E3F3E8; color: var(--leaf); } .pill.a { background: #FFF1DC; color: #8A4B00; }
.pill.b { background: #E1EEF8; color: var(--navy); } .pill.r { background: #FDE8E8; color: #9B1C1C; }

.msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.msg.good { background: #E3F3E8; color: #0E5A2D; border: 1.5px solid #B7DFC4; font-weight: 700; }
.msg.bad { background: #FDE8E8; color: #9B1C1C; }
.msg.warn, .notice { background: #FFF6EA; color: #6B3D00; border: 1.5px solid #F2D2A4; border-radius: 12px; padding: 10px 12px;
  font-size: 14px; }
.notice .row2 { margin-top: 10px; }
.notice .btn { font-size: 13px; padding: 0 8px; }

.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.who { color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-top: 1px solid var(--line2); }
.list li:first-child { border-top: 0; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel { border-top: 1px solid var(--line2); padding-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--ocean); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 120px; padding: 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.tile b { font-size: 16px; font-weight: 800; color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.stat b { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--navy); }
.stat span { font-size: 14px; font-weight: 700; }
.stat small { font-size: 12px; }
.ro { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 8px 0 0; }
.ro dt { color: var(--muted); } .ro dd { margin: 0; font-weight: 800; text-align: right; }

.picker input { margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: #E1EEF8; color: var(--navy); border-radius: 999px;
  padding: 2px 4px 2px 12px; font-weight: 700; font-size: 14px; }
.tag button { border: 0; background: none; color: var(--navy); font-size: 18px; min-width: 32px; min-height: 32px; }
.results { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.result small { display: block; }
.result:disabled { opacity: .6; cursor: not-allowed; }
.total { margin-top: 10px; font-weight: 700; }
.total p + p { margin-top: 4px; }
.steppers { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.stepper { display: grid; grid-template-columns: 1fr 44px 36px 44px; align-items: center; gap: 6px; }
.stepper output { text-align: center; font-weight: 800; font-size: 18px; }
