/* ==========================================================================
   TALENT NAMIBIA 2026 – ENTRY FORMS
   Look & feel follows the 2026 Rules & Regulations document:
   black + gold + cream, Poppins, diamond bullets, gold gradient total bar.
   ========================================================================== */
:root {
  --black: #000;
  --ink: #1b1b1b;
  --muted: #5c5c5c;
  --gold: #b8893b;
  --gold-2: #c9a24f;
  --gold-dark: #8e6624;
  --gold-soft: #e9d3a0;
  --gold-light: #e3c27d;
  --cream: #faf6ee;
  --line: #e6dcc6;
  --white: #fff;
  --error: #b3261e;
  --error-bg: #fdf0ef;
  --ok: #1e6b3a;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .12);
  --gold-gradient: linear-gradient(90deg, #8e6624 0%, #b8893b 55%, #c9a24f 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); }
a:hover { color: var(--black); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0 0 .9em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--black); color: var(--gold-soft); padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) var(--radius); }
.skip-link:focus { top: 0; }

/* ---------- Site header (like the PDF running header) ---------- */
.site-header { border-bottom: 1px solid #cfcfcf; background: var(--white); }
.site-header__inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.site-header__logo { display: block; }
.site-header__logo img { display: block; height: 38px; width: auto; }

/* ---------- Title block (black bar + gold rule, like the PDF) ---------- */
.title-block { max-width: 1120px; margin: 28px auto 0; padding: 0 20px; }
.title-block__bar { background: var(--black); color: var(--white); padding: 26px 30px 24px; border-bottom: 5px solid var(--gold); border-image: var(--gold-gradient) 1; }
.title-block__eyebrow { font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.title-block h1 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.title-block h1 em { font-style: normal; color: var(--gold-light); }
.title-block__sub { margin: 8px 0 0; font-size: 14px; color: #ddd; font-weight: 300; }

/* ---------- Layout ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 24px 20px 120px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .page { padding-bottom: 64px; }
}

/* ---------- Callouts ---------- */
.callout { background: var(--cream); border-left: 4px solid var(--gold); padding: 16px 20px; margin: 0 0 22px; font-size: 14px; }
.callout strong { font-weight: 600; }
.callout--dark { background: var(--black); color: var(--white); border-left-color: var(--gold); font-weight: 600; }
.callout--warn { background: #fff7e0; border-left-color: #d49a00; }
.callout--error { background: var(--error-bg); border-left-color: var(--error); color: #5b1410; }
.callout :last-child { margin-bottom: 0; }

.required-note { font-size: 13px; color: var(--error); margin: 0 0 18px; }

/* ---------- Sections (gold diamond + spaced caps heading) ---------- */
.section { margin: 0 0 34px; }
.section__title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section__title::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; background: var(--gradient, linear-gradient(135deg, #8e6624, #e3c27d)); transform: rotate(45deg) scale(.85); }
.section__intro { font-size: 14px; color: var(--ink); }

/* ---------- Fields ---------- */
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field__label, legend.field__label { display: block; font-weight: 600; font-size: 14.5px; padding: 0; margin: 0 0 2px; }
.field__label .req, .req { color: var(--error); margin-left: 3px; }
.field__help { display: block; font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 300; }
.field__hint { display: block; font-size: 13px; margin-top: 6px; color: var(--gold-dark); }
.field__error { display: none; color: var(--error); font-size: 13px; font-weight: 500; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.field.has-error input[type=text], .field.has-error input[type=email], .field.has-error input[type=date], .field.has-error input[type=number], .field.has-error select { border-color: var(--error); background: var(--error-bg); }
.field.has-error .choices { outline: 2px solid var(--error); outline-offset: 4px; border-radius: 4px; }

input[type=text], input[type=email], input[type=date], input[type=number], select {
  width: 100%; max-width: 460px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #bdb39b; border-radius: var(--radius);
  padding: 11px 13px; min-height: 46px;
}
input[type=text]:focus, input[type=email]:focus, input[type=date]:focus, input[type=number]:focus, select:focus { border-color: var(--gold-dark); outline: 3px solid rgba(184, 137, 59, .35); outline-offset: 0; }
input[readonly] { background: #f2efe7; color: var(--muted); }
.field--short input, .field--short select { max-width: 220px; }

/* Radio / checkbox lists */
.choices { display: grid; gap: 8px; }
.choices--cols { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choice { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; line-height: 1.4; min-height: 46px; }
.choice:hover { border-color: var(--gold); background: var(--cream); }
.choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-dark); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold-dark); background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice__text { font-size: 14.5px; }
.other-wrap { margin-top: 10px; }
.other-wrap input { max-width: 460px; }

/* ---------- Fee explainer ---------- */
.fee-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; background: var(--white); }
.fee-box h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.ladder li { flex: 1 1 96px; text-align: center; border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius); padding: 8px 6px; font-size: 12px; color: var(--muted); }
.ladder li strong { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.ladder li.is-best { background: var(--black); border-color: var(--black); color: var(--gold-soft); }
.ladder li.is-best strong { color: var(--gold-light); }
.fee-box__note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Divisions (accordion cards) ---------- */
.divisions { display: grid; gap: 12px; margin-bottom: 8px; }
.divisions__tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.divisions__tools .count { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 14px; color: var(--gold-dark); text-decoration: underline; cursor: pointer; min-height: 36px; }
.link-btn:hover { color: var(--black); }

.division { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.division[open] { border-color: var(--gold); }
.division > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 600; font-size: 15px; background: var(--white); min-height: 54px; }
.division > summary::-webkit-details-marker { display: none; }
.division > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg); transition: transform .15s; flex: 0 0 auto; margin-right: 4px; }
.division[open] > summary::before { transform: rotate(45deg); }
.division[open] > summary { background: var(--cream); border-bottom: 1px solid var(--line); }
.division__name { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; }
.division__badge { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 99px; background: #efe9da; color: var(--muted); }
.division.has-selection .division__badge { background: var(--black); color: var(--gold-light); }

.items { list-style: none; margin: 0; padding: 6px 18px 10px; display: grid; grid-template-columns: 1fr; column-gap: 28px; }
@media (min-width: 700px) { .items { grid-template-columns: 1fr 1fr; } }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px; border-bottom: 1px solid #efe9da; border-radius: 4px; }
.item.is-on { background: var(--cream); }
.item__name { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.item.is-on .item__name { font-weight: 600; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: stretch; flex: 0 0 auto; border: 1.5px solid #bdb39b; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.item.is-on .stepper { border-color: var(--gold-dark); }
.stepper button { width: 42px; min-height: 42px; border: 0; background: var(--cream); font: inherit; font-size: 20px; line-height: 1; color: var(--gold-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: manipulation; }
.stepper button:hover:not(:disabled) { background: var(--black); color: var(--gold-light); }
.stepper button:disabled { color: #b9b4a6; cursor: not-allowed; background: #f6f3ec; }
.stepper input[type=number] { width: 44px; max-width: none; min-height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 0; text-align: center; font-size: 16px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; background: var(--white); }
.stepper input[type=number]::-webkit-outer-spin-button, .stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number]:focus { outline: 3px solid var(--gold); outline-offset: -3px; }

/* ---------- Terms ---------- */
.terms { border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius); padding: 18px 22px; font-size: 13.5px; max-height: 420px; overflow: auto; margin-bottom: 18px; }
.terms ul { margin: 0 0 .9em; padding-left: 20px; }
.terms li { margin-bottom: 4px; }
.terms :last-child { margin-bottom: 0; }

/* ---------- Honeypot ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Summary / total panel ---------- */
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary__head { background: var(--black); color: var(--white); padding: 14px 20px; border-bottom: 3px solid var(--gold); }
.summary__head h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-light); }
.summary__body { padding: 16px 20px 4px; max-height: 52vh; overflow: auto; }
.summary__empty { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.sel-group { margin: 0 0 12px; }
.sel-group h3 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.sel-list { list-style: none; margin: 0; padding: 0; }
.sel-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.sel-list .x { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; width: 32px; height: 32px; border-radius: 4px; flex: 0 0 auto; }
.sel-list .x:hover { color: var(--error); background: var(--error-bg); }
.fee-lines { border-top: 1px solid var(--line); margin: 8px 0 0; padding: 10px 0 0; font-size: 13.5px; }
.fee-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.fee-line span:first-child { color: var(--muted); }
.fee-line span:last-child { white-space: nowrap; font-weight: 500; }
.nudge { background: var(--cream); border-left: 3px solid var(--gold); padding: 8px 12px; font-size: 12.5px; margin: 10px 0 12px; }
.summary__total { background: var(--gold-gradient); color: var(--white); padding: 14px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.summary__total .lbl { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.summary__total .amt { font-size: 24px; white-space: nowrap; }
.summary__foot { padding: 12px 20px 16px; font-size: 12px; color: var(--muted); }
.summary__foot p { margin: 0; }
.summary-toggle { display: none; }

@media (min-width: 1000px) {
  .summary-wrap { position: sticky; top: 16px; }
}
/* Mobile / tablet: the summary becomes a bottom bar that expands */
@media (max-width: 999px) {
  .summary-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; }
  .summary { border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
  .summary__head, .summary__body, .summary__foot { display: none; }
  .summary-wrap.is-open .summary__head, .summary-wrap.is-open .summary__body, .summary-wrap.is-open .summary__foot { display: block; }
  .summary-wrap.is-open .summary__body { max-height: 42vh; }
  .summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; font: inherit; cursor: pointer; background: var(--gold-gradient); color: var(--white); padding: 12px 18px; min-height: 58px; text-align: left; }
  .summary-toggle .t1 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: block; }
  .summary-toggle .t2 { font-size: 12px; opacity: .92; display: block; }
  .summary-toggle .amt { font-size: 21px; font-weight: 700; white-space: nowrap; }
  .summary-toggle .chev { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-135deg); margin: 4px 0 0 10px; flex: 0 0 auto; transition: transform .15s; }
  .summary-wrap.is-open .summary-toggle .chev { transform: rotate(45deg); margin-top: -4px; }
  .summary__total { display: none; }
  .summary-wrap.is-open .summary__total { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--black); color: var(--gold-light); border: 2px solid var(--black); border-radius: var(--radius); padding: 14px 30px; min-height: 52px; cursor: pointer; transition: background .15s, color .15s; touch-action: manipulation; }
.btn:hover:not(:disabled) { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--ghost { background: var(--white); color: var(--black); border-color: var(--black); }
.btn--ghost:hover:not(:disabled) { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.btn--gold { background: var(--gold-gradient); border-color: transparent; color: var(--white); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.submit-row .total-inline { font-size: 14px; color: var(--muted); }
.submit-row .total-inline strong { font-size: 18px; color: var(--ink); }

/* ---------- Error summary ---------- */
.error-summary { margin: 0 0 26px; }
.error-summary h2 { font-size: 15px; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #5b1410; font-weight: 500; }

/* ---------- Confirmation ---------- */
.done { max-width: 820px; margin: 0 auto; }
.done__tick { width: 62px; height: 62px; border-radius: 50%; background: var(--black); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 0 16px; border: 2px solid var(--gold); }
.done h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.done__ref { display: inline-block; background: var(--black); color: var(--gold-light); font-weight: 600; letter-spacing: .12em; padding: 4px 14px; border-radius: 3px; margin: 4px 0 18px; }
.recap { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 22px; }
.recap th { background: var(--black); color: var(--gold-light); text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; }
.recap td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap tr:nth-child(even) td { background: var(--cream); }
.recap td:last-child, .recap th:last-child { text-align: right; }
.recap--kv td:last-child, .recap--kv th:last-child { text-align: left; }
.recap--kv td:first-child { width: 36%; color: var(--muted); }
.recap tr.total td { background: var(--gold-gradient); color: #fff; font-weight: 700; border: 0; font-size: 16px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 12px 46px; min-height: 36px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--gold-light); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.done__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #cfcfcf; margin-top: 20px; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; padding: 16px 20px 90px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.site-footer a { color: var(--gold-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .site-footer__inner { padding-bottom: 20px; } }

/* ---------- Landing page ---------- */
.hero-wrap { background: #000; }
.hero { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 1 / .8; overflow: hidden; container-type: inline-size; text-align: center; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hero__text { position: absolute; left: 0; right: 0; top: 66%; padding: 0 5%; }
.hero__eyebrow { font-size: clamp(9px, 2.1cqw, 16px); letter-spacing: .5em; text-transform: uppercase; color: var(--gold-soft); margin: 1.4cqw 0 .6cqw; padding-left: .5em; }
.hero h1 { font-size: clamp(20px, 6cqw, 52px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.6cqw; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero__rule { height: 1px; width: 34%; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; }

.choose { max-width: 1000px; margin: -8px auto 0; padding: 40px 20px 8px; }
.choose h2 { text-align: center; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.card__top { background: var(--black); color: #fff; padding: 22px 24px 18px; border-bottom: 4px solid var(--gold); border-image: var(--gold-gradient) 1; }
.card__top small { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.card__top h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .05em; }
.card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.card__body ul { list-style: none; margin: 0; padding: 0; }
.card__body li { position: relative; padding: 0 0 8px 22px; font-size: 14px; }
.card__body li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.card__body .btn { margin-top: auto; width: 100%; }

.how { max-width: 820px; margin: 0 auto; padding: 36px 20px 20px; }
.how h2 { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; text-align: center; }
.how .steps li { padding-bottom: 14px; }
.small-links { text-align: center; font-size: 14px; padding: 6px 20px 10px; }

/* ---------- Print (confirmation page) ---------- */
@media print {
  .site-header, .site-footer, .summary-wrap, .done__actions, .skip-link, .no-print { display: none !important; }
  .title-block__bar, .done__ref, .recap th, .recap tr.total td, .done__tick { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { padding: 0; }
}
