/* ==========================================================================
   Rotax E10 Test Day — Landing Page
   Corporate Identity cloned from dunkeswellraceway.co.uk (Elementor kit)
   --------------------------------------------------------------------------
   Global colours   : extracted from /wp-content/uploads/elementor/css/post-280.css
   Global fonts     : Yanone Kaffeesatz (headings) / Poppins (text) / Ropa Sans (accent, buttons)
   Button style     : Ropa Sans, uppercase, 15px radius, yellow #FFBA34 on navy #003D6C
   ========================================================================== */

:root {
  /* --- Dunkeswell Raceway global colours (Elementor kit tokens) --- */
  --c-accent:      #003D6C;   /* --e-global-color-accent  (navy)          */
  --c-navy-deep:   #16355D;   /* --e-global-color-9810f09 (deep navy)     */
  --c-yellow:      #FFBA34;   /* --e-global-color-b58d312 (CTA yellow)    */
  --c-red:         #CE2B31;   /* --e-global-color-0109a66 (racing red)    */
  --c-green:       #0CA550;   /* --e-global-color-ad0acb1                 */
  --c-text:        #404040;   /* --e-global-color-text                    */
  --c-grey:        #A4A4A4;   /* --e-global-color-secondary               */
  --c-light:      #CDCDCD;    /* --e-global-color-00e8635                 */
  --c-heading:     #000000;   /* --e-global-color-primary                 */
  --c-white:       #FFFFFF;
  --c-surface:     #F4F6F9;

  /* --- Dunkeswell Raceway global typography --- */
  --font-heading: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;
  --font-body:    "Poppins", "Helvetica Neue", sans-serif;
  --font-accent:  "Ropa Sans", "Arial", sans-serif;

  /* --- Component tokens (buttons on the reference use 15px radius) --- */
  --radius-btn:  15px;
  --radius-card: 15px;
  --radius-field: 10px;
  --shadow-card: 0 10px 30px rgba(0, 61, 108, 0.10);
  --container: 1140px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--c-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin: 0 0 1em; }

a { color: var(--c-accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.section-eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 15px;
  color: var(--c-red);
  margin-bottom: 8px;
  display: block;
}

/* --------------------------------------------------------------------------
   Buttons — cloned from .elementor-button on the reference site
   (Ropa Sans 20px, uppercase, radius 15px)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0;
  line-height: 1;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

.btn-primary { background-color: var(--c-yellow); color: var(--c-accent); }
.btn-primary:hover { background-color: #ffc95e; }

.btn-outline { background-color: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn-outline:hover { background-color: var(--c-white); color: var(--c-accent); }

.btn-block { display: block; width: 100%; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-logo img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a:not(.btn) {
  font-family: var(--font-accent);
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-accent);
}

.site-nav a:not(.btn):hover { color: var(--c-red); }

.site-nav .btn { font-size: 18px; padding: 10px 22px; }

/* --------------------------------------------------------------------------
   Hero — deep navy like the reference hero, checkered flag motif in CSS.
   To use a track photo instead, set it as background-image on .hero.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(63, 85, 165, 0.45), transparent 60%),
    linear-gradient(160deg, var(--c-navy-deep) 0%, var(--c-accent) 55%, #062A4A 100%);
  color: var(--c-white);
  overflow: hidden;
}

.hero::after {                      /* checkered strip along the bottom edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  background:
    conic-gradient(#fff 0 25%, #0b0b0b 0 50%, #fff 0 75%, #0b0b0b 0) 0 0 / 48px 24px;
  opacity: 0.9;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 96px;
  text-align: center;
}

.hero-venue-logo { margin: 0 auto 40px; width: min(420px, 70vw); }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-yellow);
  border: 1px solid rgba(255, 186, 52, 0.55);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 24px;
}

.hero h1 { color: var(--c-white); margin-bottom: 8px; }

.hero h1 .accent { color: var(--c-yellow); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto 28px;
  color: #E8EEF5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta span {
  font-family: var(--font-accent);
  font-size: 17px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 20px;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 56px; }

.hero-collab { opacity: 0.95; }

.hero-collab .collab-label {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D5DEE9;
  margin-bottom: 12px;
}

.hero-collab img {
  height: 74px;
  width: auto;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: 12px;
  padding: 10px 22px;
}

/* --------------------------------------------------------------------------
   Yellow fact strip — the reference uses #FFBA34 section backgrounds heavily
   -------------------------------------------------------------------------- */
.fact-strip { background: var(--c-yellow); }

.fact-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--c-accent);
  font-family: var(--font-accent);
  font-size: 18px;
  text-transform: uppercase;
}

.fact svg { flex: 0 0 26px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 30px;
  border-top: 6px solid var(--c-yellow);
  color: var(--c-text);              /* stays readable inside navy sections */
}

.card h3, .section-navy .card h3 { color: var(--c-accent); }

.card .card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent);
  border-radius: 12px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Navy section variant
   -------------------------------------------------------------------------- */
.section-navy { background: var(--c-accent); color: var(--c-white); }
.section-navy h2, .section-navy h3 { color: var(--c-white); }
.section-navy .section-eyebrow { color: var(--c-yellow); }

/* --------------------------------------------------------------------------
   E10 spotlight — photo + buzzwords ("No Noise. No Limits.")
   -------------------------------------------------------------------------- */
.e10-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.e10-photo { position: relative; margin: 0; }

.e10-photo::before {                 /* offset yellow frame behind the photo */
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radius-card);
  background: var(--c-yellow);
  z-index: 0;
}

.e10-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.e10-copy h2 { color: var(--c-accent); font-size: clamp(2.8rem, 6vw, 4.6rem); }

.buzzwords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 24px 0 32px;
}

.buzzwords li {
  font-family: var(--font-accent);
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-accent);
  border-radius: 999px;
  padding: 9px 20px;
}

.buzzwords li:nth-child(odd) { background: var(--c-navy-deep); }

/* --------------------------------------------------------------------------
   Partner strip
   -------------------------------------------------------------------------- */
.partners { background: var(--c-white); text-align: center; }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 32px;
}

.partner-logos img { height: 84px; width: auto; }

/* --------------------------------------------------------------------------
   Registration form
   -------------------------------------------------------------------------- */
.section-register { background: var(--c-surface); }

.form-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px;
  max-width: 860px;
  margin: 40px auto 0;
}

/* --- Funnel: question steps, then hand-off to the official booking page --- */
.funnel-progress {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0 0 32px;
}

.funnel-progress li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-light);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.funnel-progress li.active { background: var(--c-yellow); transform: scale(1.25); }
.funnel-progress li.done   { background: var(--c-accent); }

.funnel-step { display: none; }

.funnel-step.active { display: block; animation: funnel-fade 0.25s ease; }

@keyframes funnel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.funnel-step h3 { color: var(--c-accent); text-align: center; margin-bottom: 26px; }

.funnel-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.funnel-option {
  font-family: var(--font-accent);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-btn);
  padding: 18px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.funnel-option:hover { background: var(--c-accent); color: var(--c-white); transform: translateY(-2px); }

.funnel-option.wide { grid-column: 1 / -1; }

.funnel-back {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-grey);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.funnel-back:hover { color: var(--c-accent); text-decoration: underline; }

.funnel-final { text-align: center; }

.funnel-final p { max-width: 560px; margin-left: auto; margin-right: auto; }

.funnel-final .btn { margin-top: 8px; }

.funnel-note {
  font-size: 13px;
  color: var(--c-grey);
  margin-top: 18px;
}

.funnel-hint {
  text-align: center;
  font-size: 14px;
  color: var(--c-grey);
  margin: -14px 0 22px;
}

/* Multi-select motivation options (Step 1) */
.funnel-multi { grid-template-columns: 1fr 1fr; }

.funnel-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-accent);
  background: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-btn);
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.funnel-check:hover { transform: translateY(-2px); }

.funnel-check input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-yellow);
  cursor: pointer;
}

.funnel-check.selected { background: var(--c-accent); color: var(--c-white); }

/* Step navigation row */
.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.funnel-nav .btn { margin-left: auto; font-size: 18px; padding: 12px 28px; }

.funnel-nav .funnel-back { margin-top: 0; }

/* Inline validation / qualification messages */
.funnel-error {
  display: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-red);
  background: #FBEAEA;
  border: 1px solid var(--c-red);
  border-radius: var(--radius-field);
  padding: 12px 16px;
  margin: 18px 0 0;
}

.funnel-error.visible { display: block; }

/* Contact fields (Step 3) */
.funnel-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.form-field { display: flex; flex-direction: column; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.form-field label .req { color: var(--c-red); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-text);
  padding: 12px 14px;
  border: 1px solid var(--c-light);
  border-radius: var(--radius-field);
  background: var(--c-white);
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 88px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 0;
  border-color: var(--c-accent);
}

/* Consent block: the LAST step, directly above the submit button */
.consent-block {
  margin-top: 24px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid #E1E7EF;
  border-radius: var(--radius-field);
}

.consent-item { display: flex; gap: 14px; align-items: flex-start; }

.consent-item + .consent-item,
.consent-error + .consent-item { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--c-light); }

.consent-item input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}

.consent-item label {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  cursor: pointer;
}

.consent-item.invalid label { color: var(--c-red); }
.consent-item.invalid input[type="checkbox"] { outline: 2px solid var(--c-red); outline-offset: 2px; }

.consent-error {
  display: none;
  margin: 10px 0 0 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-red);
}

.consent-item.invalid + .consent-error { display: block; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  font-size: 15px;
  font-weight: 500;
}

.form-status.success { display: block; background: #E7F7EE; color: #0A7A3D; border: 1px solid var(--c-green); }
.form-status.error   { display: block; background: #FBEAEA; color: var(--c-red); border: 1px solid var(--c-red); }

/* Honeypot — invisible to humans, tempting for bots */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-navy-deep); color: #C9D6E4; }

.site-footer .container {
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-grid img.footer-logo { width: 240px; margin-bottom: 16px; }

.site-footer h4 { color: var(--c-white); font-size: 1.35rem; }

.site-footer a { color: var(--c-yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 15px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #8FA3B8;
}

/* --------------------------------------------------------------------------
   Legal / privacy page
   -------------------------------------------------------------------------- */
.legal-page { max-width: 860px; margin: 0 auto; padding: 64px 24px 96px; }

.legal-page h1 { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--c-accent); }

.legal-page h2 {
  font-size: 1.9rem;
  color: var(--c-accent);
  margin-top: 1.8em;
  border-bottom: 3px solid var(--c-yellow);
  padding-bottom: 6px;
}

.legal-page ul { padding-left: 22px; }

.legal-block-de {
  margin-top: 2.5em;
  padding: 28px 32px;
  background: var(--c-surface);
  border-left: 6px solid var(--c-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.legal-block-de h2 { margin-top: 0; border-bottom: none; }

.legal-note {
  font-size: 13px;
  color: var(--c-grey);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
  .form-card { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .e10-grid { grid-template-columns: 1fr; gap: 40px; }
  .e10-photo { margin-right: 24px; }
  .e10-photo img { max-height: 420px; }
  .funnel-multi { grid-template-columns: 1fr; }
  .funnel-fields { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
