/* Simple EICR - one stylesheet, no web fonts, no libraries.
   Colours from brand/simple-eicr/brand-guidelines.md: navy #123A5E,
   amber #FFB733 on dark, ink #0E2136 on light. */
:root {
  --navy: #123A5E;
  --navy-deep: #0E2136;
  --amber: #FFB733;
  --amber-button: #F4A300;
  --ink: #0E2136;
  --ink-soft: #3B4A5C;
  --paper: #FFFFFF;
  --paper-soft: #F4F6F9;
  --line: #D5DCE4;
  --error: #B42318;
  --good: #0F6B3A;
  --good-soft: #E7F5EC;
  --wait-soft: #FFF6E0;
  --radius: 12px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber-button);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 720px; }

/* The header and the hero share the navy band. */
.band { background: var(--navy); color: var(--paper); }

.site-header { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-size: 21px; font-weight: 800; letter-spacing: 0.2px; }
.brand-word span { color: var(--amber); }
.header-link { color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; }
.header-link:hover { text-decoration: underline; }

.hero { display: grid; gap: 20px; padding: 4px 0 32px; grid-template-areas: "intro" "card" "points"; }
.hero-intro { grid-area: intro; }
.hero .card { grid-area: card; }
.hero .hero-points { grid-area: points; }
.hero h1 { font-size: 27px; line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -0.2px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { margin: 10px 0 0; font-size: 17px; color: #DCE6F0; }
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li { position: relative; padding-left: 28px; margin: 8px 0; color: #F2F6FA; }
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg);
}

/* The form card. */
.card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: 0 10px 30px rgba(6, 20, 36, 0.28);
}
.card h2 { font-size: 19px; margin: 0 0 14px; line-height: 1.3; }
.form-title { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin: 0 0 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 16px; margin: 0 0 6px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 14px; min-height: 50px;
  border: 2px solid #8A97A8; border-radius: 10px; background: var(--paper);
}
.field input:focus { border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.field-error[hidden] { display: none; }
.field-hint { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }

fieldset.field { border: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-block; margin: 0; font-weight: 600; font-size: 15px;
  padding: 9px 12px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper);
}
.choice input:checked + label { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.choice input:focus-visible + label { outline: 3px solid var(--amber-button); outline-offset: 2px; }

details.more { margin: 0 0 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 15px; padding: 4px 0; }
details.more[open] summary { margin-bottom: 10px; }

.button {
  display: block; width: 100%; font: inherit; font-size: 18px; font-weight: 800;
  min-height: 54px; padding: 12px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--amber-button); color: var(--ink);
}
.button:hover { background: #E09500; }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button-quiet {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0;
  color: var(--navy); text-decoration: underline; cursor: pointer; padding: 6px 0;
}

.consent { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.5; }
.form-error { color: var(--error); font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.form-error[hidden] { display: none; }

.hidden-box { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.answer { padding: 2px 0 0; }
.answer[hidden] { display: none; }
.answer h2 { margin: 0 0 8px; font-size: 20px; }
.answer p { margin: 0 0 10px; }
.answer h2::before {
  content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: 1px;
}
.answer-covered h2 { color: var(--good); }
.answer-covered h2::before { background: var(--good); }
.answer-waiting h2::before { background: var(--amber-button); }
.answer-words { overflow-wrap: anywhere; }

.noscript-note { background: var(--wait-soft); color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 0 0 12px; }

/* The reading sections. */
.section { padding: 40px 0; }
.section-soft { background: var(--paper-soft); }
.section h2 { font-size: 25px; line-height: 1.25; margin: 0 0 12px; }
.section h3 { font-size: 19px; margin: 0 0 6px; }
.section p { margin: 0 0 12px; }
.section-lead { font-size: 18px; color: var(--ink-soft); }

.tiles { display: grid; gap: 14px; margin-top: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.section-soft .tile { border-color: #E1E6EC; }
.tile p:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 0 52px; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--paper); font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin-bottom: 2px; }

.codes { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 16px; }
.codes th, .codes td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.codes th { width: 64px; }
.code-tag { display: inline-block; min-width: 40px; text-align: center; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.code-c1 { background: #FDE2E0; color: #8A1C12; }
.code-c2 { background: #FFE8CC; color: #7A4100; }
.code-c3 { background: #E3EDF7; color: var(--navy); }
.code-fi { background: #EDE7F6; color: #4A2A7A; }

.area-box { background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.area-box p { color: #E3EBF3; }
.area-box strong { color: var(--amber); }
.area-box a { color: var(--paper); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { margin: 10px 0 0; }

.section .back-to-form { margin-top: 28px; }
.back-to-form a {
  display: inline-block; background: var(--amber-button); color: var(--ink); font-weight: 800;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}

.site-footer { background: var(--navy-deep); color: #C9D5E2; padding: 28px 0; font-size: 15px; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 0 0 8px; }

/* The privacy page. */
.page-title { padding: 24px 0 28px; }
.page-title h1 { font-size: 29px; margin: 0; }
.page-title p { margin: 8px 0 0; color: #DCE6F0; }
.prose h2 { font-size: 21px; margin: 28px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .site-header { height: 72px; }
  .hero { grid-template-columns: 1.1fr 1fr; grid-template-areas: "intro card" "points card"; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 20px; align-items: start; padding: 28px 0 56px; }
  .form-title { position: static; width: auto; height: auto; overflow: visible; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 19px; }
  .card { padding: 26px 26px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .page-title h1 { font-size: 40px; }
}
.after-steps { margin-top: 20px; }
.last { margin-bottom: 0; }
