/* ============================================================
   TWT World Cup sealed-bid microsite
   Palette: Stadium Night #062546 · Brand Navy #0a3b70 ·
   Trophy Gold #CBB000 · Dark Gold #9A8603 · Kickoff Cream #f7f5e7
   Type: Barlow Condensed (display) · Source Serif 4 (body)
   ============================================================ */

:root {
  --night: #062546;
  --navy: #0a3b70;
  --navy-soft: #10498a;
  --gold: #CBB000;
  --gold-dark: #9A8603;
  --gold-bright: #e8cf1a;
  --cream: #f7f5e7;
  --white: #ffffff;
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; }

a { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.8rem 1.8rem;
  font-size: 1.15rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

.btn-gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 2px 12px rgba(203, 176, 0, 0.35);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }

.btn-big { font-size: 1.35rem; padding: 1rem 2.4rem; }
.btn-small { font-size: 1rem; padding: 0.5rem 1.1rem; }
.btn-full { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--cream);
  border-bottom: 1px solid rgba(10, 59, 112, 0.12);
}
.topbar-logo img { width: 150px; height: auto; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-deadline {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .topbar-deadline { display: none; }
}

/* ---------- Hero / fixture card ---------- */
.hero {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--navy) 0%, var(--night) 60%),
    var(--night);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.hero-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero-offer {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 auto 2rem;
  max-width: 900px;
}
.hero-offer em {
  font-style: normal;
  color: var(--gold-bright);
}

.fixture {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.8rem, 3vw, 1.6rem);
}
.fixture-team { display: grid; justify-items: center; gap: 0.4rem; }
.fixture-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6.5vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
}
.fixture-vs {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  text-transform: lowercase;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  color: var(--gold);
  padding-top: 0.35rem;
}
.flagbar { display: flex; width: clamp(80px, 20vw, 150px); height: 5px; border-radius: 3px; overflow: hidden; }
.flagbar i { flex: 1; }
.flagbar-fr i:nth-child(1) { background: #0055A4; }
.flagbar-fr i:nth-child(2) { background: #ffffff; }
.flagbar-fr i:nth-child(3) { background: #EF4135; }
.flagbar-es i:nth-child(1) { background: #AA151B; }
.flagbar-es i:nth-child(2) { background: #F1BF00; }
.flagbar-es i:nth-child(3) { background: #AA151B; }

.hero-meta {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}
.hero-meta strong { color: var(--white); }

.charity-ribbon {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--gold);
  color: var(--night);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.45;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  max-width: 760px;
}
.charity-ribbon strong { color: var(--night); }

.countdown-block { margin: 2.4rem auto 2.2rem; }
.countdown-label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.7rem;
}
.countdown {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(0.4rem, 2vw, 0.9rem);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(203, 176, 0, 0.45);
  border-radius: 10px;
  padding: 0.9rem clamp(1rem, 3vw, 1.6rem) 0.7rem;
}
.countdown-cell { display: grid; justify-items: center; min-width: clamp(3rem, 10vw, 4.4rem); }
.countdown-cell span {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1;
  color: var(--gold-bright);
}
.countdown-cell small {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}
.countdown-sep {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 0.2rem;
}
.countdown.closed .countdown-cell span { color: #e05252; }

.hero-trust {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Stat strip ---------- */
.strip { background: var(--gold); }
.strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(6, 37, 70, 0.18);
}
.stat {
  background: var(--gold);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--night);
}
.stat-desc {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(6, 37, 70, 0.85);
}
@media (max-width: 720px) {
  .strip-inner { grid-template-columns: 1fr; }
  .stat { padding: 1.15rem 1.4rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 4.5rem) 1.25rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy {
  background: var(--night);
  color: var(--white);
}
.section-navy h2 { color: var(--white); }
.section-navy a { color: var(--gold-bright); }

.section-cream h2, .section-white h2 { color: var(--navy); }

.callout {
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1.2rem;
  margin: 1.4rem 0;
  background: rgba(203, 176, 0, 0.08);
  font-size: 1.15rem;
}
.section-navy .callout strong { color: var(--gold-bright); }

.section p + p { margin-top: 1rem; }

.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.2rem; }
.section-navy .fineprint { color: rgba(255, 255, 255, 0.6); }

/* ---------- Seats ---------- */
.seatview { margin: 1.6rem 0; }
.seatview img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(6, 37, 70, 0.25);
}
.seatview figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
.seat-details {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}
.seat-details li {
  padding: 0.7rem 0 0.7rem 1.8rem;
  position: relative;
  border-bottom: 1px solid rgba(10, 59, 112, 0.12);
}
.seat-details li:last-child { border-bottom: none; }
.seat-details li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.step { text-align: left; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.step h3 { color: var(--navy); margin-bottom: 0.4rem; }
.step p { font-size: 0.98rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Bid form ---------- */
.form-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(1.6rem, 5vw, 2.8rem);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.form-card h2 { color: var(--navy); padding-right: 5.5rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.6rem; }

.seal {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--gold-dark);
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  max-width: 7.5rem;
  text-align: center;
  transform: rotate(6deg);
  opacity: 0.85;
}

.field { margin-bottom: 1.15rem; text-align: left; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #c6cdd6;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
}
input:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 59, 112, 0.18);
}
input.invalid { border-color: #c0392b; }

.field-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 0;
}
.field-error:empty { display: none; }

.field-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover { background: rgba(10, 59, 112, 0.08); }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.chip.selected {
  background: var(--navy);
  color: var(--gold-bright);
}

.amount-wrap { position: relative; }
.amount-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 1.05rem;
}
#amount { padding-left: 1.7rem; }
/* hide number spinners — this is money, not a quantity */
#amount::-webkit-outer-spin-button, #amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#amount { -moz-appearance: textfield; appearance: textfield; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-legal {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
}

#submit-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-result { text-align: center; padding: 1rem 0; }
.form-result h3 { color: var(--navy); font-size: 1.8rem; margin-bottom: 0.7rem; }
.form-result p { margin-bottom: 1rem; }
.form-result-error h3 { color: #c0392b; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid rgba(10, 59, 112, 0.15);
  padding: 0.9rem 0;
}
summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: none;
  color: var(--navy);
  cursor: pointer;
  list-style-position: outside;
}
summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
details p { margin-top: 0.6rem; padding-left: 1.1rem; }

.share-block {
  margin-top: 2.5rem;
  text-align: center;
  background: var(--white);
  border: 1.5px solid rgba(10, 59, 112, 0.15);
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
}
.share-block h3 { color: var(--navy); margin-bottom: 0.5rem; }
.share-block p { margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--cream);
  text-align: center;
  padding: 2.5rem 1.25rem 6.5rem; /* bottom padding clears sticky CTA */
  border-top: 1px solid rgba(10, 59, 112, 0.12);
}
.footer img { margin: 0 auto 1rem; width: 180px; }
.footer p { max-width: 560px; margin: 0 auto 0.7rem; font-size: 0.95rem; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--night);
  color: var(--white);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  z-index: 50;
}
.sticky-cta-text { display: grid; line-height: 1.3; }
.sticky-cta-text strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; }
.sticky-cta-text span { font-size: 0.8rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.sticky-cta .btn { white-space: nowrap; }

@media (max-width: 820px) {
  .sticky-cta.visible { display: flex; }
}
