/* ============================================================
   Kamwene Festival 2026 — palette taken from the logo:
   deep forest green ground, orange accent, cream text
   ============================================================ */

:root {
  --green-900: #0b1f13;
  --green-800: #0e2418;
  --green-700: #143220;
  --green-600: #1c4a2e;
  --green-400: #2f7a49;

  --orange:      #e8871e;
  --orange-soft: #f5a623;
  --orange-pale: #ffd9a8;

  --cream:     #f5efe3;
  --cream-dim: #c9c0b0;
  --cream-mute:#8f887c;

  --line:      rgba(245, 239, 227, 0.12);
  --line-warm: rgba(232, 135, 30, 0.34);

  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      880px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--green-900);
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(232,135,30,0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(47,122,73,0.20), transparent 62%);
  background-attachment: fixed;
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
a { color: var(--orange-soft); }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #241202; }

/* ---------------- header ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 19, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.2rem;
}
.top-cta {
  background: linear-gradient(135deg, #ffb347, var(--orange) 60%, #cf6f0c);
  color: #2a1503 !important; font-family: "Sora", sans-serif; font-weight: 700 !important;
  padding: 0.5em 1.2em; border-radius: 100px;
}
.top-cta:hover { filter: brightness(1.08); }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.brand em { font-style: normal; color: var(--orange-soft); }
.topnav { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.topnav a { color: var(--cream-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.topnav a:hover { color: var(--cream); }
.topnav .lang {
  border: 1px solid var(--line-warm); border-radius: 100px;
  padding: 0.3em 0.9em; color: var(--orange-soft);
}

/* ---------------- layout ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.2rem 3rem; }

.card {
  background: rgba(20, 50, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  margin-bottom: 1.2rem;
}
.card--tight { padding: 1.2rem 1.3rem; }

/* ---------------- hero ---------------- */
.hero { padding: 1.8rem 0 1.2rem; }
.hero__grid { display: grid; grid-template-columns: 240px 1fr; gap: 2.2rem; align-items: center; }
.hero__logo { width: 240px; }
.hero__text { text-align: left; }
.hero__text .actions { justify-content: flex-start; margin-bottom: 1.1rem; }
.hero__text .lead { margin: 0; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: 0.6rem; }
.btn--xl { font-size: 1.12rem; padding: 0.95em 1.7em; box-shadow: 0 16px 40px -14px rgba(232,135,30,0.75); }
.btn__price {
  font-size: 0.8em; font-weight: 700; background: rgba(42,21,3,0.14);
  padding: 0.2em 0.6em; border-radius: 100px;
}
.hero .tagline {
  color: var(--orange-soft); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem;
}
.hero .meta { display: grid; gap: 0.25rem; margin-bottom: 1.1rem; font-weight: 600; }
.hero .meta .dates { color: var(--cream); font-size: 1.12rem; }
.hero .meta .venue { color: var(--cream-dim); font-weight: 500; }
.hero .lead { color: var(--cream-dim); max-width: 60ch; margin: 0 auto 1.6rem; }

.actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.97rem;
  padding: 0.82em 1.5em; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), filter 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, #ffb347, var(--orange) 60%, #cf6f0c); color: #2a1503; }
.btn--ghost { border-color: var(--line-warm); color: var(--orange-soft); background: transparent; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------------- programme ---------------- */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.day { background: rgba(11, 31, 19, 0.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.day h3 { font-size: 1.02rem; color: var(--orange-soft); margin-bottom: 0.5rem; }
.day p { color: var(--cream-dim); font-size: 0.95rem; }

.section-title { font-size: 1.3rem; margin-bottom: 1rem; }

.programme__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.4rem; align-items: stretch; }
.programme .days { grid-template-columns: 1fr; }
.programme__photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 280px; border: 1px solid var(--line); }
.programme__photo img { width: 100%; height: 100%; object-fit: cover; }
.programme__photo figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.85rem;
  background: rgba(11, 31, 19, 0.78); border: 1px solid var(--line-warm);
  padding: 0.3em 0.9em; border-radius: 100px;
}

/* ---------------- forms ---------------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field .hint { display: block; color: var(--cream-mute); font-size: 0.8rem; margin-top: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--cream);
  background: rgba(11, 31, 19, 0.75);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75em 0.9em;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,135,30,0.18);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange-soft) 50%), linear-gradient(135deg, var(--orange-soft) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.total-line {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line); margin-top: 1.1rem; padding-top: 1rem;
}
/* direct child only — the number inside <strong> is a span too */
.total-line > span { color: var(--cream-dim); font-size: 0.92rem; }
.total-line strong { font-family: "Sora", sans-serif; font-size: 1.5rem; color: var(--orange-soft); }

/* ---------------- alerts + badges ---------------- */
.alert { border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.1rem; font-size: 0.94rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert--bad  { background: rgba(190, 50, 40, 0.16); border: 1px solid rgba(230, 90, 80, 0.4); color: #ffd4d0; }
.alert--ok   { background: rgba(47, 122, 73, 0.22); border: 1px solid rgba(80, 190, 120, 0.4); color: #ccf3da; }
.alert--info { background: rgba(232, 135, 30, 0.14); border: 1px solid var(--line-warm); color: var(--orange-pale); }

.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.35em 0.9em; border-radius: 100px; text-transform: uppercase;
}
.badge--ok   { background: rgba(80, 190, 120, 0.18); color: #8ee7ac; border: 1px solid rgba(80,190,120,0.4); }
.badge--warn { background: rgba(232, 135, 30, 0.16); color: var(--orange-pale); border: 1px solid var(--line-warm); }
.badge--info { background: rgba(90, 150, 230, 0.16); color: #bcd6ff; border: 1px solid rgba(90,150,230,0.4); }
.badge--bad  { background: rgba(190, 50, 40, 0.18); color: #ffb3ad; border: 1px solid rgba(230,90,80,0.4); }

/* ---------------- payment ---------------- */
.refbox { text-align: center; padding: 1.4rem; border: 1px dashed var(--line-warm); border-radius: var(--radius); margin-bottom: 1.2rem; }
.refbox .label { color: var(--cream-dim); font-size: 0.85rem; }
.refcode {
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 7vw, 2.3rem); color: var(--orange-soft); margin: 0.25rem 0;
}

.paybox { text-align: center; background: rgba(232,135,30,0.10); border: 1px solid var(--line-warm); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; }
.paybox .lipa-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange-pale); }
.paybox .lipa { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); color: var(--cream); letter-spacing: 0.06em; }
.paybox .lipa-name { font-size: 0.86rem; color: var(--cream-dim); }
.paybox .amount { margin-top: 0.8rem; font-size: 1.05rem; }
.paybox .amount strong { font-family: "Sora", sans-serif; font-size: 1.7rem; color: var(--orange-soft); }
.paybox .networks { margin-top: 0.7rem; font-size: 0.85rem; color: var(--cream-dim); }

ol.steps { margin: 0 0 0 1.1rem; display: grid; gap: 0.55rem; color: var(--cream-dim); font-size: 0.95rem; }
ol.steps strong { color: var(--cream); }

/* ---------------- detail table ---------------- */
.kv { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.kv td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td:first-child { color: var(--cream-mute); width: 42%; }
.kv tr:last-child td { border-bottom: none; }

/* ---------------- phone bottom bar ---------------- */
.mobile-cta { display: none; }

/* ---------------- WhatsApp ---------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(37, 211, 102, 0.18);
  transition: transform 0.25s var(--ease), bottom 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); text-align: center; padding: 2rem 1.2rem 2.6rem; color: var(--cream-dim); font-size: 0.9rem; }
.foot p { margin-bottom: 0.3rem; }
.foot .muted a { color: var(--cream-mute); text-decoration: none; }
.powered-wrap { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.powered { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; color: var(--cream-mute); text-decoration: none; }
.powered img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 5px 10px; }
.powered__name { font-size: 0.78rem; color: var(--cream-mute); margin: 0; }
.powered__name a { color: var(--cream-dim); }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .hero__logo { width: 150px; margin: 0 auto; }
  .hero__text { text-align: center; }
  .hero__text .actions { justify-content: center; }
  .hero__text .lead { margin: 0 auto; }

  .mobile-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    text-align: center; text-decoration: none;
    font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem;
    padding: 0.95em 1em; border-radius: 100px; color: #2a1503;
    background: linear-gradient(135deg, #ffb347, var(--orange) 60%, #cf6f0c);
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  /* sit above the register bar; drop back down when the bar hides */
  .wa-float { right: 14px; bottom: 84px; width: 54px; height: 54px; }
  .mobile-cta.is-hidden ~ .wa-float { bottom: 16px; }
  .foot { padding-bottom: 6rem; }
}

@media (max-width: 620px) {
  .days, .field-row, .programme__grid { grid-template-columns: 1fr; }
  .programme__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .card { padding: 1.3rem; }
  .actions .btn { width: 100%; }
  .brand span { font-size: 1rem; }
}

/* On phones the header status link duplicates the hero's "already registered"
   button and forces the header onto two lines — keep just the language pill. */
@media (max-width: 480px) {
  /* Keep the Register button on screen; only the status link folds away. */
  .topnav a:not(.lang):not(.top-cta) { display: none; }
  .top-cta { padding: 0.5em 1em; font-size: 0.9rem; }
  .brand span { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------------- print (the collection pass) ---------------- */
@media print {
  body { background: #fff; color: #111; }
  .top, .foot, .actions, .noprint { display: none !important; }
  .card { border: 1px solid #999; background: #fff; }
  .refcode, .paybox .lipa { color: #111; }
  .kv td:first-child { color: #555; }
}

/* ---------------- event partners ---------------- */
.partners { text-align: center; }
.partners__label {
  display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-mute); margin-bottom: 0.8rem; font-weight: 700;
}
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.partner { display: inline-flex; flex-direction: column; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--cream-dim); font-size: 0.85rem; font-weight: 600; }
.partner img { height: 58px; width: auto; background: #fff; border-radius: 12px; padding: 7px 14px; transition: transform 0.2s var(--ease); }
.partner:hover img { transform: translateY(-2px); }
.partner:hover { color: var(--cream); }
.partners--ticket { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-warm); }
.partners--ticket .partner img { height: 46px; }

/* ---------------- ticket (paid registration) ---------------- */
.ticket__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-warm); }
.ticket__head img { width: 72px; height: auto; background: #fff; border-radius: 12px; padding: 4px; flex: none; }
.ticket__kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-soft); font-weight: 700; }
.ticket__event { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; }
.ticket__meta { color: var(--cream-dim); font-size: 0.86rem; }

@media print {
  .wa-float, .mobile-cta, .topbar { display: none !important; }
  .ticket__event, .partner { color: #111; }
  .ticket__meta, .partners__label { color: #555; }
  .partner img, .ticket__head img { border: 1px solid #ddd; }
}
.ticket__ref { text-align: center; margin: 0 0 1.1rem; padding: 0.8rem; border-radius: 12px; background: rgba(232,135,30,0.1); border: 1px solid var(--line-warm); }
.ticket__ref span { display: block; font-size: 0.78rem; color: var(--cream-dim); }
.ticket__ref strong { font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: 0.12em; font-size: 1.7rem; color: var(--orange-soft); }
@media print { .ticket__ref { background: #fff; border-color: #999; } .ticket__ref strong { color: #111; } .ticket__ref span { color: #555; } }
.partner--dark img { background: #1b1a1a; padding: 0; }
.partner span { max-width: 14rem; text-align: center; }
.partners__list { align-items: flex-end; }
.partner--dark img { height: 78px; }
.partners--ticket .partner--dark img { height: 62px; }

/* ticket on paper: black on white, one page */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; background-image: none !important; }
  .wrap { max-width: 150mm; padding: 0; }
  .ticket { border: 2px solid #111 !important; border-radius: 12px; box-shadow: none; break-inside: avoid; }
  .ticket .alert--ok { background: #fff; border-color: #999; color: #111; }
  .kv td { color: #111; border-color: #ccc; }
  .partners--ticket { border-top-color: #999; }
  .ticket__kicker { color: #111; }
}
.ticket__id { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: stretch; margin-bottom: 1.1rem; }
.ticket__id .ticket__ref { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.ticket__ref small { display: block; color: var(--cream-mute); font-size: 0.78rem; margin-top: 0.35rem; }
.ticket__qr { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 4px; image-rendering: pixelated; }
@media (max-width: 480px) {
  .ticket__id { grid-template-columns: 1fr; justify-items: center; }
  .ticket__id .ticket__ref { width: 100%; }
  .ticket__qr { width: 180px; height: 180px; }
}
@media print { .ticket__qr { border: 1px solid #999; } .ticket__ref small { color: #555; } }
/* on the ticket and on the payment page, "register now" is noise: the person
   has already registered and is trying to finish paying */
body:has(.ticket) .mobile-cta,
body:has(.pushbox) .mobile-cta { display: none !important; }

/* ---------------- USSD wallet push ---------------- */
.pushbox { border-color: var(--line-warm); background:
  linear-gradient(180deg, rgba(232,135,30,0.10), rgba(20,50,32,0.55)); }
.pushbox__lead { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; }
.pushbox__amount {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.4rem);
  color: var(--orange-soft); text-align: center; margin-bottom: 1rem;
}
.pushbox__networks { color: var(--cream-mute); font-size: 0.82rem; text-align: center; margin-top: 0.8rem; }
.pushstate[hidden] { display: none; }   /* display:flex would otherwise beat the hidden attribute */
.pushstate {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem;
  padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.93rem; line-height: 1.45;
}
.pushstate--wait { background: rgba(232,135,30,0.14); border: 1px solid var(--line-warm); color: var(--orange-pale); }
.pushstate--ok   { background: rgba(47,122,73,0.22); border: 1px solid rgba(80,190,120,0.45); color: #ccf3da; }
.pushstate--fail { background: rgba(190,50,40,0.16); border: 1px solid rgba(230,90,80,0.4); color: #ffd4d0; }
.pushstate__spin {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.9s linear infinite;
}
.pushstate--ok .pushstate__spin, .pushstate--fail .pushstate__spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.manualpay { margin-bottom: 1.2rem; }
.manualpay > summary {
  cursor: pointer; color: var(--orange-soft); font-weight: 600; padding: 0.9rem 1rem;
  border: 1px dashed var(--line-warm); border-radius: 12px; list-style: none;
}
.manualpay > summary::-webkit-details-marker { display: none; }
.manualpay > summary::after { content: " ▾"; }
.manualpay[open] > summary { margin-bottom: 1rem; }
.manualpay[open] > summary::after { content: " ▴"; }

/* ===========================================================
   Registration form — built for a phone in one hand.
   Big tap targets, one decision per step, price always in view.
   Everything works without JavaScript: the picks are real radio
   inputs and the stepper wraps a real number field.
   =========================================================== */
.card--form { padding-top: 1.4rem; }
.form-intro { color: var(--cream-dim); margin-bottom: 1.4rem; line-height: 1.6; }

.step { border: 0; padding: 0; margin: 0 0 1.8rem; }
.step__head {
  display: flex; align-items: center; gap: 0.6rem; padding: 0;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--cream); margin-bottom: 0.9rem;
}
.step__n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem;
  background: var(--orange); color: #2a1503;
}

/* ---- race picker: cards, not a dropdown ---- */
.picks { display: grid; gap: 0.7rem; }
.pick { display: block; cursor: pointer; }
.pick input {
  position: absolute; opacity: 0; width: 0; height: 0;    /* keyboard still reaches it */
}
.pick__box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(11, 31, 19, 0.55);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.12s var(--ease);
}
.pick:hover .pick__box { border-color: var(--line-warm); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--orange-soft); outline-offset: 2px; }
.pick input:checked + .pick__box {
  border-color: var(--orange); background: rgba(232, 135, 30, 0.12);
}
.pick__dist {
  flex: none; min-width: 58px; text-align: center; padding: 0.45rem 0.5rem; border-radius: 10px;
  background: rgba(245, 239, 227, 0.08); color: var(--cream);
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 0.95rem; line-height: 1.1;
}
.pick input:checked + .pick__box .pick__dist { background: var(--orange); color: #2a1503; }
.pick__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pick__title { font-weight: 600; color: var(--cream); }
.pick__note { font-size: 0.82rem; color: var(--cream-mute); }
.pick__price { font-weight: 700; color: var(--orange-soft); white-space: nowrap; font-size: 0.95rem; }

/* ---- shirt sizes as chips ---- */
.field .label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 0.9rem;
  border-radius: 12px; border: 1.5px solid var(--line); background: rgba(11, 31, 19, 0.6);
  font-weight: 600; cursor: pointer; transition: all 0.15s var(--ease);
}
.chip input:checked + span { border-color: var(--orange); background: rgba(232, 135, 30, 0.16); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--orange-soft); outline-offset: 2px; }

/* ---- quantity stepper ---- */
.stepper { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }
.stepper__btn {
  width: 52px; min-height: 52px; font-size: 1.3rem; font-weight: 700; cursor: pointer;
  background: rgba(232, 135, 30, 0.14); color: var(--orange-soft); border: 0;
}
.stepper__btn:hover { background: rgba(232, 135, 30, 0.24); }
.stepper input {
  width: 74px; text-align: center; font-size: 1.1rem; font-weight: 700;
  border: 0; border-radius: 0; background: rgba(11, 31, 19, 0.7); color: var(--cream);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.opt { color: var(--cream-mute); font-weight: 400; font-size: 0.82rem; }
.hint--wide {
  display: block; margin-top: -0.5rem; margin-bottom: 0.4rem;
  color: var(--cream-mute); font-size: 0.8rem;   /* .hint is scoped to .field; this one is not */
}
.form-next { text-align: center; color: var(--cream-mute); font-size: 0.86rem; margin-top: 0.9rem; }

/* ---- sticky total + button (phones) ---- */
.paybar { display: none; }
@media (max-width: 760px) {
  .paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 31, 19, 0.97); border-top: 1px solid var(--line-warm);
    box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.9);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .paybar[hidden] { display: none; }
  .paybar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .paybar__label { display: block; font-size: 0.72rem; color: var(--cream-mute); text-transform: uppercase; letter-spacing: 0.08em; }
  .paybar__sum strong { font-family: "Sora", sans-serif; font-size: 1.2rem; color: var(--orange-soft); }
  .paybar .btn { padding: 0.75em 1.2em; }
  /* the sticky bar replaces the floating register button on this page */
  body:has(#payBar) .mobile-cta { display: none !important; }
  /* keep the WhatsApp button clear of the bar */
  body:has(#payBar) .wa-float { bottom: 5.6rem; }
}

/* ---- how it works ---- */
.howsteps { list-style: none; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.howsteps li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--cream-dim); line-height: 1.55; }
.howsteps span {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232, 135, 30, 0.16); border: 1px solid var(--line-warm);
  color: var(--orange-soft); font-weight: 700; font-size: 0.85rem;
}

@media (max-width: 480px) {
  .pick__box { grid-template-columns: auto 1fr; row-gap: 0.4rem; }
  .pick__price { grid-column: 2; justify-self: start; }
}

/* the sticky header must not cover a step we just scrolled to */
.step { scroll-margin-top: 84px; }

/* ---- payment box: one number to check, one field, one button ---- */
.pushbox { text-align: center; }
.pushbox .section-title { text-align: center; }
.pushbox__amount {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 11vw, 3.1rem);
  color: var(--orange-soft); line-height: 1; margin: 0.2rem 0 1.3rem;
}
.pushbox__label {
  display: block; text-align: left; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-dim); font-weight: 700; margin-bottom: 0.4rem;
}
.pushbox__phone {
  width: 100%; font: 700 clamp(1.4rem, 6vw, 1.7rem)/1.2 "Sora", sans-serif;
  letter-spacing: 0.08em; text-align: center; color: var(--cream);
  background: rgba(11, 31, 19, 0.85); border: 2px solid var(--line-warm);
  border-radius: 14px; padding: 0.7em 0.5em; margin-bottom: 1rem;
}
.pushbox__phone:focus {
  outline: none; border-color: var(--orange-soft);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}
.btn--pay {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.04em; padding: 1em 1.4em;
  box-shadow: 0 16px 40px -14px rgba(232, 135, 30, 0.8);
}
.pushbox__networks { font-size: 0.78rem; margin-top: 0.9rem; }
.pushstate { text-align: left; }

/* ---- consent checkbox + terms page ---- */
.agree {
  display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer;
  padding: 0.9rem 1rem; margin: 0.4rem 0 1.1rem;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 31, 19, 0.45);
  font-size: 0.9rem; line-height: 1.5; color: var(--cream-dim);
}
.agree input {
  flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--orange);
}
.agree a { color: var(--orange-soft); }
.agree:has(input:checked) { border-color: var(--line-warm); background: rgba(232, 135, 30, 0.08); }

.legal__meta { color: var(--cream-mute); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.6rem; }
.legal__h { font-family: "Sora", sans-serif; font-size: 1.05rem; margin: 1.5rem 0 0.6rem; color: var(--cream); }
.legal__list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.legal__list li { color: var(--cream-dim); line-height: 1.6; font-size: 0.94rem; }

/* ---- per-field errors: say it where the problem is ---- */
.fielderr {
  display: block; margin-top: 0.35rem; font-size: 0.85rem; line-height: 1.45;
  color: #ffb3ad; font-weight: 600;
}
.fielderr:empty { display: none; }
.field.is-invalid input,
.field.is-invalid select { border-color: rgba(230, 90, 80, 0.75); }
.field.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(230, 90, 80, 0.18); }
.agree.is-invalid { border-color: rgba(230, 90, 80, 0.6); background: rgba(190, 50, 40, 0.1); }
fieldset.is-invalid .picks { outline: 2px solid rgba(230, 90, 80, 0.5); outline-offset: 6px; border-radius: 16px; }


/* ===========================================================
   Phone-sized screens: the form is the page.
   =========================================================== */
@media (max-width: 760px) {
  /* 16px is the threshold below which iOS zooms into a focused field and
     leaves the person scrolled sideways. */
  .field input, .field select, .field textarea, .stepper input { font-size: 16px; }
  .field .hint, .hint--wide { font-size: 0.85rem; }
  .field label { font-size: 0.95rem; }

  /* a focused field must clear the sticky header */
  .field, .agree, .picks, .stepper { scroll-margin-top: 92px; }

  .card--form { padding-left: 1rem; padding-right: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }   /* one thing per line */
  .agree { font-size: 0.92rem; }
  .agree input { width: 24px; height: 24px; }
  .chip span { min-width: 62px; min-height: 52px; font-size: 1rem; }
  .stepper__btn { width: 58px; min-height: 56px; }
  .stepper input { width: 84px; }
  .btn--xl { padding: 1em 1.4em; }
}

/* Touch feedback: a tap should look like it landed. */
* { -webkit-tap-highlight-color: transparent; }
.pick__box, .chip span, .stepper__btn, .btn { touch-action: manipulation; }
.pick:active .pick__box { transform: scale(0.985); }
.chip:active span, .stepper__btn:active { filter: brightness(1.15); }

/* Submitting: show it is under way and refuse a second tap. */
.btn.is-busy { pointer-events: none; opacity: 0.75; }
