/* GPSA Scoreboard Ads — submission form.
 * Direction: the ad lives on a big dark LED scoreboard, so the page is built around a
 * "scoreboard" motif — a dark navy→black hero with an LED dot-grid, tight uppercase Inter
 * display type, GPSA red as the live accent, and the placement picker rendered as glowing
 * board panels at the true 9:4 / 9:8 shapes. Brand-locked: navy #002366, red #d9242b, Inter.
 * Toasts come from the shared GPSA stylesheet; everything else is owned here. */

:root {
  --navy: #002366;
  --blue: #0033a0;
  --red: #d9242b;
  --red-dark: #b81e24;

  --board-top: #020814;
  --board-mid: #061634;
  --board-bot: #0a2150;

  --bg: #e9edf6;
  --card: #ffffff;
  --line: #d9e0ee;
  --text: #111a30;
  --muted: #59627a;
  --glow: #3f6bff;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 26, 48, .06), 0 12px 30px -14px rgba(16, 26, 48, .22);
  --maxw: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================ HERO / SCOREBOARD ============================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 50% -20%, rgba(0, 51, 160, .55), transparent 62%),
    linear-gradient(180deg, var(--board-top), var(--board-mid) 55%, var(--board-bot));
}
/* LED dot-grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 15px 15px;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px 40px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: #fff;
}
.hero-wordmark {
  font-weight: 800;
  letter-spacing: .14em;
  font-size: .8rem;
  text-transform: uppercase;
  color: #cdd8f5;
}
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd7d9;
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(217, 36, 43, .7);
  animation: pulse 2.2s infinite;
}
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7fa0ff;
  margin-bottom: 12px;
}
.hero-title {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  text-transform: uppercase;
}
.hero-title .accent { color: #6f93ff; }
.hero-sub {
  margin: 0;
  max-width: 46ch;
  color: #c4cfea;
  font-size: 1.02rem;
}
.price-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.price-chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 12, 30, .55);
  border: 1px solid rgba(127, 160, 255, .22);
  box-shadow: inset 0 0 22px rgba(63, 107, 255, .12);
}
.price-chip .label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9db4ee;
}
.price-chip .amt {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-deadline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffd7d9;
}
.hero-deadline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* ================================ LAYOUT ================================ */
.wrap {
  max-width: var(--maxw);
  margin: -20px auto 0;
  padding: 0 22px 64px;
  position: relative;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 18px;
}
.card > .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 4px;
}
.card > .kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.card > h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.card > .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
}

/* ================================ FIELDS ================================ */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label,
.legend-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .92rem;
}
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }
.hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd6e6;
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { padding: 9px 12px; }
input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 35, 102, .14);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2359627a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Custom check/radio rows */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 2px 0;
}
.check input { margin-top: 3px; }
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  flex: none;
  cursor: pointer;
}
#advertiser-contact {
  border-left: 3px solid var(--line);
  padding-left: 16px;
  margin-top: 14px;
}

/* ========================= PLACEMENT — THE BOARD ========================= */
.board-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.placement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  color: #dfe7fb;
  cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 51, 160, .35), transparent 70%),
    linear-gradient(180deg, #071026, #030913);
  border: 1px solid rgba(120, 150, 230, .28);
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.placement-card:hover { transform: translateY(-2px); border-color: rgba(127, 160, 255, .55); }
.placement-card:focus-within { box-shadow: 0 0 0 3px rgba(63, 107, 255, .4); }
.placement-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 10px 30px -12px rgba(217, 36, 43, .6);
}
.placement-card.selected::after {
  content: "✓ Selected";
  position: absolute;
  top: 10px; right: 12px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd7d9;
}
.screen-wrap {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen {
  border-radius: 4px;
  background: linear-gradient(135deg, #12388f, #0a2160);
  box-shadow: inset 0 0 18px rgba(111, 147, 255, .5), 0 0 20px rgba(63, 107, 255, .35);
  outline: 1px solid rgba(150, 180, 255, .5);
}
.screen-full { width: 176px; height: 78px; }  /* 9:4 */
.screen-half { width: 88px; height: 78px; }   /* 9:8 */
.placement-name {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.placement-price {
  color: #ff9ea2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.placement-meta {
  font-size: .78rem;
  color: #93a6d6;
  font-variant-numeric: tabular-nums;
}
.placement-template {
  font-size: .78rem;
  color: #9db8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 184, 255, .4);
  width: fit-content;
}
.placement-template:hover { color: #fff; }

/* ======================= ARTWORK DROP-ZONE ======================= */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 170px;
  padding: 24px;
  text-align: center;
  border: 2px dashed #c3cfe6;
  border-radius: 12px;
  background: #f6f9ff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover { background: #eef3ff; border-color: #9db3e0; }
.dropzone:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 35, 102, .14); }
.dropzone.dragover { background: #e7efff; border-color: var(--navy); }
.dropzone.has-file { border-style: solid; border-color: #1f9d57; background: #f0faf3; }
.dz-icon { width: 38px; height: 38px; color: #7f8aa6; }
.dropzone.has-file .dz-icon-selected { color: #1f9d57; }
.dz-prompt { margin: 0; font-size: .95rem; color: var(--muted); }
.dz-prompt strong { color: var(--navy); }
.dropzone.has-file .dz-prompt strong { color: #167a43; }
.dz-name { margin: 0; font-size: .8rem; color: var(--muted); }
.dropzone.has-file .dz-name { color: #167a43; font-weight: 600; }

/* ===================== DARK-BACKGROUND REQUIREMENT ===================== */
.led-warning {
  display: flex;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 12px;
  color: #fbeff0;
  background: linear-gradient(180deg, #1a0608, #24090c);
  border: 1px solid rgba(217, 36, 43, .45);
}
.led-warning .mark {
  flex: none;
  font-size: 1.3rem;
  line-height: 1.3;
}
.led-warning strong { color: #fff; }
.led-warning p { margin: 0; font-size: .9rem; color: #f0d6d8; }

/* Artwork tips — a dark card that demonstrates the rule it states. */
.tips {
  margin-top: 18px;
  border-radius: 12px;
  padding: 18px 20px;
  color: #dbe4fb;
  background: linear-gradient(180deg, #060e22, #030812);
  border: 1px solid rgba(120, 150, 230, .28);
}
.tips h3 {
  margin: 0 0 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fa9ea;
}
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.tips .yes, .tips .no { flex: none; font-weight: 800; }
.tips .yes { color: #57d996; }
.tips .no { color: #ff7b80; }

/* ================================ PAYMENT ================================ */
.pay-box {
  border-radius: 11px;
  padding: 14px 16px;
  background: #f5f8ff;
  border: 1px solid #d9e3fb;
  font-size: .95rem;
}
#pay-team-label { color: var(--navy); font-weight: 600; }
.pay-note {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--muted);
}

/* ================================ SUBMIT ================================ */
.turnstile-holder { margin-bottom: 16px; min-height: 0; }
.btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 11px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.progress-wrap { margin-top: 16px; }
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress-track {
  height: 10px;
  background: #e4e9f4;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--glow));
  transition: width .2s ease;
}

/* ============================ STATE PANELS ============================ */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  text-align: center;
}
.panel .big { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.panel h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.5rem; }
.panel p { margin: 0; color: var(--muted); }
.receipt {
  text-align: left;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.receipt .row { display: flex; justify-content: space-between; gap: 16px; }
.receipt dt { color: var(--muted); font-weight: 600; }
.receipt dd { margin: 0; text-align: right; }
#success-ad-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
#success-amount { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.pay-callout {
  margin-top: 16px;
  text-align: left;
  background: #f5f8ff;
  border: 1px solid #d9e3fb;
  border-radius: 11px;
  padding: 14px 16px;
}
.pay-callout .h { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ============================== HELP BAR ============================== */
.helpbar {
  max-width: var(--maxw);
  margin: 8px auto 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: .85rem;
  display: grid;
  gap: 8px;
}
.helpbar a { font-weight: 600; }

/* ============================== UTILITY ============================== */
.hidden { display: none !important; }
/* Visually hidden but still keyboard-focusable (for the placement radios). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(217, 36, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 36, 43, 0); }
}

@media (max-width: 560px) {
  .board-pick { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .hero-inner { padding: 22px 18px 36px; }
}

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