/* ==========================================================================
   World Cup Championships - entry document finder
   BRAND: every colour and font lives in the :root block below. Swap these
   six values to match the client's site and the whole page follows.
   ========================================================================== */
:root{
  /* Palette sampled from worldcupchampionships.com (2026-09-25).
     --brand      #011627  the deep navy of the site's dark sections and footer
     --accent     #1569AE  the blue of its CONTINUE buttons and links
     --cta        #AE1523  the red reserved for ENTER NOW - the conversion action
     Swap these six and the whole page follows; nothing else needs touching. */
  --brand:          #011627;   /* dark bands, headings */
  --brand-ink:      #FFFFFF;   /* text on --brand */
  --accent:         #1569AE;   /* selected state, highlights, links */
  --accent-soft:    #E9F0FF;   /* selected background wash */
  --page:           #FFFFFF;   /* page ground */
  --surface:        #FFFFFF;   /* cards */

  --cta:            #AE1523;   /* primary call to action, as on the site */
  --cta-hover:      #8E111C;

  --font-ui:   "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-num:  "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* derived - normally leave alone */
  --ink:      #011628;
  --ink-2:    #4A5464;
  --muted:    #6E7A8A;
  --rule:     #D8E0EA;
  --rule-2:   #EDF1F6;
  --surface-2:#F7F9FC;
  --ok:       #1D6A4F;
  --warn:     #8A5A08;
  --radius:   6px;
  --shadow:   0 1px 2px rgba(1,22,39,.06), 0 10px 30px -22px rgba(1,22,39,.45);
  --maxw:     980px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:var(--font-ui); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0; text-wrap:balance; color:var(--brand); font-weight:700; letter-spacing:-.005em}
a{color:var(--brand)}
button{font:inherit}
.tnum{font-variant-numeric:tabular-nums; font-family:var(--font-num)}
.mono{font-family:var(--font-mono)}
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- shell ---------- */
.brandbar{background:#fff; border-bottom:1px solid var(--rule); padding:14px 20px}
.brandbar .inner{max-width:var(--maxw); margin:0 auto; display:flex; align-items:center; gap:16px}
.brandbar img{height:76px; width:auto; display:block}
.brandbar .tag{
  margin-left:auto; font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); font-weight:600; text-align:right;
}
@media (max-width:560px){ .brandbar .tag{display:none} .brandbar img{height:56px} }

.masthead{background:var(--accent); color:var(--brand-ink); padding:30px 20px}
.masthead .inner{max-width:var(--maxw); margin:0 auto}
.masthead h1{color:var(--brand-ink); font-size:clamp(21px,3vw,30px); letter-spacing:.005em}
.masthead p{margin:8px 0 0; color:rgba(255,255,255,.75); font-size:15.5px; max-width:64ch}

main{max-width:var(--maxw); margin:0 auto; padding:26px 20px 80px; background:var(--page)}

/* ---------- progress ---------- */
.progress{display:flex; gap:6px; margin-bottom:26px; list-style:none; padding:0}
.progress li{
  flex:1; height:4px; background:var(--rule); border-radius:2px; position:relative;
}
.progress li.done{background:var(--accent)}
.progress li.current{background:var(--brand)}

/* ---------- steps ---------- */
.step{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px; margin-bottom:16px;
}
.step[hidden]{display:none!important}
.step-head{display:flex; align-items:baseline; gap:12px; margin-bottom:4px; flex-wrap:wrap}
.step-num{
  font-family:var(--font-num); font-size:12px; font-weight:700; color:#fff;
  background:var(--accent); border-radius:3px; padding:3px 9px; letter-spacing:.04em;
}
.step h2{font-size:18px; text-transform:uppercase; letter-spacing:.03em}
.step .help{margin:2px 0 16px; color:var(--ink-2); font-size:15px; max-width:60ch}

.choices{display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(196px,1fr))}
.choice{
  text-align:left; background:var(--surface-2); border:1.5px solid var(--rule);
  border-radius:8px; padding:13px 15px; cursor:pointer; color:var(--ink);
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.choice:hover{border-color:var(--accent); background:var(--surface)}
.choice:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
.choice[aria-pressed="true"]{
  border-color:var(--brand); background:var(--accent-soft);
  box-shadow:inset 0 0 0 1px var(--brand);
}
.choice .t{display:block; font-weight:600; font-size:16px}
.choice .s{display:block; color:var(--muted); font-size:13.5px; margin-top:2px}

/* multi-select variant - step 2. Reads as a tick list, not a radio group. */
.choice.multi{display:flex; align-items:flex-start; gap:11px}
.choice.multi .body{flex:1; min-width:0}
.choice.multi .tick{
  flex:none; width:19px; height:19px; margin-top:1px; border-radius:5px;
  border:1.5px solid var(--rule); background:var(--surface); position:relative;
  transition:border-color .12s ease, background .12s ease;
}
.choice.multi[aria-pressed="true"] .tick{background:var(--brand); border-color:var(--brand)}
.choice.multi[aria-pressed="true"] .tick::after{
  content:""; position:absolute; left:6px; top:2px; width:5px; height:10px;
  border:solid var(--brand-ink); border-width:0 2px 2px 0; transform:rotate(42deg);
}

/* ---------- broker cards ---------- */
.brokers{display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); align-items:start}
.broker{
  text-align:left; background:var(--surface-2); border:1.5px solid var(--rule);
  border-radius:8px; padding:15px; cursor:pointer; color:var(--ink);
  display:grid; gap:10px; align-content:start; justify-items:stretch;
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.broker:hover{border-color:var(--accent); background:var(--surface)}
.broker:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
.broker[aria-pressed="true"]{border-color:var(--brand); background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--brand)}
.broker-top{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
.broker-name{font-weight:650; font-size:16.5px; color:var(--brand)}
.broker-kind{font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted)}
.broker-facts{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.fact{
  font-size:12.5px; background:var(--surface); border:1px solid var(--rule);
  border-radius:100px; padding:3px 10px; color:var(--ink-2);
  line-height:1.35; align-self:center; white-space:nowrap;
}
.fact b{font-family:var(--font-num); color:var(--ink); font-weight:600}
.margin-mini{width:100%; border-collapse:collapse; font-size:13px}
.margin-mini th{
  text-align:left; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); font-weight:600; padding:0 8px 4px 0; border-bottom:1px solid var(--rule-2);
}
.margin-mini td{padding:3px 8px 3px 0; border-bottom:1px solid var(--rule-2); color:var(--ink-2)}
.margin-mini tr:last-child td{border-bottom:none}
.margin-mini td.v{text-align:right; font-family:var(--font-num); color:var(--ink); font-variant-numeric:tabular-nums; padding-right:0}
.margin-note{font-size:12.5px; color:var(--warn); margin:0}
/* travels inside the same <details> as the table - never separated from the numbers */
.margin-disclaimer{
  margin-top:9px; padding-top:9px; border-top:1px solid var(--rule-2);
  display:grid; gap:5px;
}
/* same size as the "Not sure which is right for you?" footer (.help-foot) */
.margin-disclaimer p{margin:0; font-size:14px; line-height:1.5; color:var(--muted)}
.margin-disclaimer p:first-child{color:var(--warn)}
.broker details summary{
  cursor:pointer; font-size:13px; color:var(--brand); font-weight:600; list-style:none;
}
.broker details summary::-webkit-details-marker{display:none}
/* Drawn with borders rather than a ▸/▾ character: Montserrat has no glyph for
   those, so the browser fell back to an emoji font and rendered red flags. */
.broker details summary::before{
  content:""; display:inline-block; vertical-align:middle;
  width:0; height:0; margin-right:7px; margin-top:-2px;
  border-left:5px solid currentColor;
  border-top:4px solid transparent; border-bottom:4px solid transparent;
  transition:transform .12s ease;
}
.broker details[open] summary::before{transform:rotate(90deg)}

.fact.saving{color:var(--ok); border-color:#BFDACF; background:#F1F8F4}
.fact.saving b{color:var(--ok)}

.auto-note{
  margin:0; padding:11px 14px; background:var(--accent-soft); border:1px solid var(--rule);
  border-left:3px solid var(--accent); border-radius:6px; font-size:14.5px; color:var(--ink-2);
}
.auto-note b{color:var(--ink)}
.auto-note.warn{background:#FDF6EC; border-left-color:var(--warn); color:#6B4708}

/* ---------- lead gate ---------- */
#gate[hidden]{display:none!important}
.gate-card{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.gate-head{background:var(--brand); color:var(--brand-ink); padding:20px 22px}
.gate-head h2{color:var(--brand-ink); font-size:20px}
.gate-head p{margin:5px 0 0; color:rgba(255,255,255,.8); font-size:14.5px}
.gate-body{padding:22px; display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.field{display:grid; gap:5px; min-width:0}
.field label{font-size:13px; font-weight:600; color:var(--ink-2)}
.field input,.field select{
  font:inherit; font-size:15px; color:var(--ink); background:var(--surface);
  border:1.5px solid var(--rule); border-radius:7px; padding:10px 12px; width:100%;
}
.field input:focus-visible,.field select:focus-visible{
  outline:3px solid var(--accent); outline-offset:1px; border-color:var(--brand);
}
.field input[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:#A33}
.field .err{font-size:12.5px; color:#A33; min-height:1em}
.field .err:empty{min-height:0}
/* honeypot - off-screen rather than display:none, which some bots skip */
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.gate-error{
  grid-column:1/-1; margin:0; background:#FDF2F2; border:1px solid #E9C9C9;
  border-left:3px solid #A33; border-radius:7px; padding:11px 14px;
  font-size:14px; color:#7A2222;
}
.gate-error[hidden]{display:none!important}
.gate-actions{grid-column:1/-1; display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.gate-actions .btn:disabled{opacity:.6; cursor:default}

/* ---------- result ---------- */
#result[hidden]{display:none!important}
.result-card{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.result-head{background:var(--brand); color:var(--brand-ink); padding:20px 22px}
.result-head h2{color:var(--brand-ink); font-size:20px}
.result-head p{margin:5px 0 0; color:rgba(255,255,255,.8); font-size:14.5px}
.result-body{padding:22px}
.result-body > p.intro{margin:0 0 16px; color:var(--ink-2); font-size:15px}
.result-body > p.intro b{color:var(--ink)}

/* the championships chosen, listed under the result heading */
.chosen{list-style:none; margin:9px 0 0; padding:0; display:grid; gap:4px}
.chosen li{display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; font-size:14.5px}
.chosen b{color:var(--brand-ink); font-weight:600}
.chosen span{color:rgba(255,255,255,.65); font-size:13px; font-family:var(--font-num)}

/* section headings, shown only when more than one championship is combined */
.group-head{
  font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
  font-weight:700; margin:0 0 8px; display:flex; align-items:baseline; gap:9px; flex-wrap:wrap;
}
.group-head:not(:first-of-type){margin-top:20px}
.group-head span{
  letter-spacing:0; text-transform:none; font-weight:600; font-size:12.5px;
  color:var(--accent); background:var(--accent-soft); border-radius:4px; padding:1px 7px;
}

.docs{list-style:none; margin:0; padding:0; border:1px solid var(--rule); border-radius:8px; overflow:hidden}
.docs li{border-bottom:1px solid var(--rule-2); background:var(--surface)}
.docs li:last-child{border-bottom:none}
.docs li.ea{background:var(--accent-soft)}
.doc{display:flex; align-items:center; gap:13px; padding:13px 15px}
.doc .txt{flex:1; min-width:0}
.doc .name{font-weight:600; display:block}
.doc .note{color:var(--muted); font-size:13px; display:block}
.doc a.go{
  flex:none; text-decoration:none; background:var(--accent); color:#fff;
  font-size:13.5px; font-weight:600; padding:8px 15px; border-radius:5px; white-space:nowrap;
}
.doc a.go:hover{background:#125A96}
.doc a.go:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
.badge{
  font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:700;
  color:var(--accent); margin-left:8px;
}

.result-actions{display:flex; flex-wrap:wrap; gap:9px; margin-top:18px}
.btn{
  border:1.5px solid var(--rule); background:var(--surface); color:var(--ink);
  border-radius:5px; padding:10px 16px; font-size:14.5px; font-weight:600; cursor:pointer;
}
.btn:hover{border-color:var(--accent)}
.btn:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.primary:hover{background:#125A96}
/* the conversion action, in the site's ENTER NOW red */
#leadSubmit{background:var(--cta); border-color:var(--cta); color:#fff; letter-spacing:.4px}
#leadSubmit:hover:not(:disabled){background:var(--cta-hover); border-color:var(--cta-hover)}

.help-foot{
  max-width:var(--maxw); margin:26px auto 0; font-size:14px; color:var(--ink-2);
  text-align:center;
}
.help-foot a{font-weight:600}

.error{
  background:#FDF2F2; border:1px solid #E9C9C9; border-left:3px solid #A33;
  border-radius:8px; padding:16px; color:#7A2222;
}

@media print{
  .brandbar,.masthead,.progress,.step,.result-actions,.help-foot,#gate,#debug{display:none!important}
  .risk{display:block!important; margin-top:18px; color:#000}
  body{background:#fff}
  .result-card{box-shadow:none; border:none}
  .result-head{background:#fff; color:#000; padding:0 0 12px; border-bottom:2px solid #000}
  .result-head h2,.result-head p{color:#000}
  .chosen b{color:#000}
  .chosen span{color:#444}
  .result-body{padding:12px 0}
  .doc a.go{display:none}
}
@media (max-width:560px){
  .doc{flex-wrap:wrap}
  .doc a.go{width:100%; text-align:center}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- gate: interests preview + debug panel ---------- */
.gate-tags{margin:9px 0 0; display:flex; flex-wrap:wrap; gap:6px}
.gate-tags .tag{
  font-size:11.5px; font-weight:600; letter-spacing:.03em;
  background:rgba(255,255,255,.14); color:var(--brand-ink);
  border:1px solid rgba(255,255,255,.25); border-radius:100px; padding:3px 10px;
}
#debug[hidden]{display:none!important}
.debug-card{
  margin-top:20px; background:#0F1720; color:#CFE3F5; border-radius:var(--radius);
  padding:16px 18px; font-family:var(--font-mono); font-size:12px; line-height:1.5;
}
.debug-card h3{
  color:#7FD1A8; font-family:var(--font-ui); font-size:13px; margin:0 0 10px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.debug-card h3 span{color:#6B8299; font-weight:500}
.debug-row{border-top:1px solid #1E2C3A; padding:7px 0}
.debug-row:first-of-type{border-top:none}
.debug-row b{color:#E0A458; font-weight:600; margin-right:7px}
.debug-card pre{
  margin:5px 0 0; white-space:pre-wrap; word-break:break-word;
  color:#9FB6CC; background:#0A1017; border-radius:6px; padding:8px 10px; overflow-x:auto;
}

/* who a form is for - "(New Customers Only)" / "(Existing Customers Only)" */
.doc .audience{
  font-size:12.5px; font-weight:600; color:var(--ink-2); margin-left:8px; white-space:nowrap;
}
@media (max-width:560px){
  .doc .audience{display:block; margin-left:0}
}

/* residency carried over from the country on the form, shown so it is not a mystery */
.residency{
  margin-left:auto; font-size:13px; color:var(--ink-2); font-weight:600;
  display:inline-flex; align-items:center; gap:8px;
}
.residency[hidden]{display:none!important}
.linkish{
  background:none; border:0; padding:0; font:inherit; font-size:12.5px; font-weight:600;
  color:var(--accent); text-decoration:underline; cursor:pointer;
}
.linkish:hover{color:#125A96}
.linkish:focus-visible{outline:3px solid var(--accent); outline-offset:2px}
@media (max-width:560px){ .residency{margin-left:0; width:100%} }

/* Risk disclosure. Deliberately static markup, not rendered from contests.json:
   it must appear even if the data file fails to load and the page is in its
   error state. It also survives into print, where the rest of the chrome does not. */
.risk{
  max-width:var(--maxw); margin:22px auto 0; padding-top:18px;
  border-top:1px solid var(--rule);
  font-size:14px; line-height:1.5; color:var(--muted); text-align:center;
}

/* division icons - sit beside the label, take the button's colour */
.choice.has-icon{display:flex; align-items:center; gap:14px}
.choice.has-icon .pic{
  flex:none; width:50px; height:50px; color:var(--accent);
  transition:color .12s ease;
}
.choice.has-icon[aria-pressed="true"] .pic{color:var(--brand)}
@media (max-width:560px){ .choice.has-icon .pic{width:40px; height:40px} }
