/* Drivers' Draw competition page. Colours are the old live page's own (acs.gain.guru, 29 Sep 2026).
   System fonts: no request leaves the site for a font. */
:root {
  --bg: hsl(0 0% 7%);
  --card: hsl(0 0% 11%);
  --panel: hsl(0 0% 16%);
  --border: hsl(0 0% 20%);
  --text: hsl(0 0% 95%);
  --muted: hsl(0 0% 60%);
  --gold: hsl(43 96% 56%);
  --gold-dark: hsl(38 80% 40%);
  --danger: hsl(0 84% 66%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--gold); }
h1, h2, h3, .pill, .brand, button { text-transform: uppercase; letter-spacing: .02em; }
h2:focus { outline: none; }
[hidden] { display: none !important; }
.preview { margin: 0; padding: 8px 16px; background: var(--gold); color: hsl(0 0% 5%); font-weight: 700; text-align: center; }

/* The cookie notice sits in the page flow at the very top, so it never covers the form or the
   footer. One rule styles both buttons: neither stands out. */
.cookie { padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--border); text-align: center; font-size: 14px; }
.cookie:focus { outline: none; }
.cookie p { margin: 0 0 10px; }
.cookie-actions { display: flex; gap: 12px; max-width: 420px; margin: 0 auto; }
.cookie button { flex: 1 1 0; min-height: 44px; padding: 8px 12px; font-size: 16px; background: transparent; color: var(--text); border: 1px solid hsl(0 0% 45%); }

.hero { position: relative; padding: 32px 16px 48px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(hsl(0 0% 7% / .55), var(--bg)); }
.hero > * { position: relative; z-index: 1; }
.hero > .hero-bg { position: absolute; z-index: 0; }
.brand { font-weight: 800; color: var(--gold); margin: 0 0 20px; }
.pill {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--gold); border-radius: 999px;
  background: hsl(43 96% 56% / .15); color: var(--gold); font-size: 14px; font-weight: 700;
}
h1 { font-size: clamp(36px, 9vw, 68px); line-height: 1.05; margin: 20px 0 12px; font-weight: 800; }
h1 span { color: var(--gold); }
.sub { max-width: 520px; margin: 0 auto; color: hsl(0 0% 78%); font-size: 18px; }
.closes { margin: 20px auto 28px; font-weight: 700; }

.card {
  max-width: 512px; margin: 0 auto; padding: 24px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 0 30px hsl(43 96% 56% / .12);
}
.card h2 { margin: 0 0 8px; font-size: 26px; text-align: center; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--gold); }
.card p { margin: 0 0 16px; }
.center { text-align: center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid hsl(0 0% 45%); border-radius: 8px;
}
input::placeholder { color: hsl(0 0% 72%); opacity: 1; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.error { min-height: 0; margin: 4px 0 0; color: var(--danger); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin: 4px 0 16px; font-size: 14px; color: hsl(0 0% 85%); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.panel { padding: 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.panel p:last-child { margin-bottom: 0; }
.small { font-size: 12px; color: var(--muted); }
button {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 18px; font-weight: 800;
  border-radius: 8px; border: 0; cursor: pointer; color: hsl(0 0% 5%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
button.outline { background: transparent; color: var(--text); border: 1px solid hsl(0 0% 45%); }
.actions { display: flex; flex-direction: column; gap: 12px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { max-width: 512px; margin: 16px auto 0; font-size: 12px; color: hsl(0 0% 72%); }
.fine a, footer a, .doc > p > a { display: inline-block; padding: 14px 4px; margin: -14px 0; }

.doc { max-width: 760px; margin: 0 auto; padding: 32px 16px 16px; }
.doc h1 { font-size: 34px; text-align: left; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; color: var(--gold); }
.doc .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.doc li { margin-bottom: 6px; }

footer {
  margin-top: 32px; padding: 40px 16px; border-top: 1px solid var(--border);
  text-align: center; font-size: 12px; line-height: 1.6; color: hsl(0 0% 72%);
}
footer p { max-width: 860px; margin: 0 auto 16px; }
footer nav a { margin: 0 2px; }

@media (min-width: 640px) { .actions { flex-direction: row; } }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 0; } .card { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
