/* ============================================================
   SPRINT26 Open Call — visual style
   Black background, white Apfel Grotezk, generous spacing.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Apfel Grotezk';
  src: url('/fonts/ApfelGrotezk-Regular.woff2') format('woff2'),
       url('/fonts/ApfelGrotezk-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apfel Grotezk';
  src: url('/fonts/ApfelGrotezk-Mittel.woff2') format('woff2'),
       url('/fonts/ApfelGrotezk-Mittel.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apfel Grotezk';
  src: url('/fonts/ApfelGrotezk-Fett.woff2') format('woff2'),
       url('/fonts/ApfelGrotezk-Fett.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Apfel Grotezk Brukt — the distressed/italic-like variant.
   Available as `font-family: 'Apfel Grotezk Brukt'` for accents. */
@font-face {
  font-family: 'Apfel Grotezk Brukt';
  src: url('/fonts/ApfelGrotezk-Brukt.woff2') format('woff2'),
       url('/fonts/ApfelGrotezk-Brukt.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Apfel Grotezk', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #fff;
  background-color: #000;
  min-height: 100vh;
}

a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #8300FF; }

strong, b { font-weight: 700; }
em { font-style: normal; font-family: 'Apfel Grotezk Brukt', 'Apfel Grotezk', sans-serif; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border: 1px solid #444;
  border-radius: 3px;
  white-space: nowrap;
}

::selection { background: #8300FF; color: #000; }

/* ---------- Layout ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.form-wrap {
  max-width: 820px;
  margin: 32px auto 0;
}

@media (min-width: 720px) {
  .page { padding: 64px 32px 120px; }
  .form-wrap { margin-top: 48px; }
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 32px;
}
.lang-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lang-btn.active {
  background: #fff;
  color: #000;
}

/* ---------- Intro ---------- */
/* Big speckled title — uses Apfel Grotezk Brukt, the distressed variant. */
.intro .big-title {
  font-family: 'Apfel Grotezk Brukt', 'Apfel Grotezk', sans-serif;
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  margin: 16px 0 24px;
}
.intro .big-title span {
  display: block;
}

.intro .deadline-line {
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.04em;
  margin: 0 0 80px;
}

/* Body of the intro — justified, tight rhythm. */
.intro-body {
  text-align: justify;
  hanging-punctuation: first last;
}
.intro-body p {
  margin: 0 0 14px;
}
.intro-body p.bullet {
  margin-bottom: 10px;
}
.intro-body .schedule {
  margin: 16px 0;
  padding-left: 2rem;
}
.intro-body .schedule p {
  margin: 0 0 14px;
  text-align: left;
}
.intro-body h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  margin: 64px 0 20px;
}

/* Closing emphasis line, centered + bold. */
.intro .closing-statement {
  text-align: center;
  font-weight: 700;
  margin: 56px auto 0;
  font-size: 16px;
  line-height: 1.45;
  max-width: 640px;
}

/* ---------- Form sections ---------- */
.form-wrap section {
  border-top: 1px solid #333;
  padding: 40px 0 8px;
}
.form-wrap section + section {
  margin-top: 24px;
}
.form-wrap section.confirm-section {
  border-top: 1px solid #fff;
  padding: 28px 0 8px;
  margin-top: 24px;
}

.form-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 28px;
  color: #fff;
}

/* ---------- Fields ---------- */
.field {
  margin-bottom: 10px;
}

.field label,
.field .label-as-legend {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

/* Required marker — append a * after the label of required fields. */
.field.required > label::after,
.field.required > .label-as-legend::after {
  content: ' *';
  color: #fff;
}

.field .hint {
  font-size: 14px;
  color: #b9b9b9;
  margin: 0 0 6px;
  line-height: 1.5;
}
.field .hint.optional {
  font-style: normal;
  color: #888;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #555;
  border-radius: 0;
  background: #0a0a0a;
  font: inherit;
  font-size: 16px;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #8300FF;
  background: #000;
}
input::placeholder,
textarea::placeholder {
  color: #666;
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

/* ---------- Radio groups ---------- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 6px;
}
.radio-group.stacked {
  flex-direction: column;
  gap: 12px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
}
/* For long stacked options that may wrap onto 2+ lines, align the dot to the
   center of the FIRST text line (not the middle of the whole block). */
.radio-group.stacked .radio {
  align-items: flex-start;
  line-height: 1.4;
}
.radio-group.stacked .radio input[type="radio"] {
  margin-top: 3px;
}
.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  margin-top: 2px;
  position: relative;
}
/* Inner dot is always present but transparent; flipped to purple on :checked.
   No layout shift between states. */
.radio input[type="radio"]::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}
.radio input[type="radio"]:checked::before {
  background: #8300FF;
}
.radio input[type="radio"]:focus-visible {
  outline: 2px solid #8300FF;
  outline-offset: 2px;
}

/* ---------- Checkbox ---------- */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  background: #000;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-grid;
  place-items: center;
}
.checkbox-field input[type="checkbox"]:checked::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #8300FF;
}

/* ---------- Errors ---------- */
.error-msg {
  margin: 6px 0 0;
  font-size: 14px;
  color: #8300FF;
  font-weight: 700;
  min-height: 1em;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #8300FF;
  background: #0f0118;
}

/* ---------- Submit ---------- */
.submit-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 36px;
  transition: background 0.15s, color 0.15s;
}
.submit-button:hover {
  background: #8300FF;
}
.submit-button:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
}

.status {
  margin-top: 20px;
  font-size: 15px;
  min-height: 22px;
  text-align: center;
}
.status.success {
  color: #8300FF;
  font-weight: 500;
  font-size: 18px;
  padding: 16px;
  border: 1px solid #8300FF;
}
.status.error {
  color: #8300FF;
  font-weight: 700;
}

/* ---------- Honeypot ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding: 32px 18px 80px; }
  .intro h1 { font-size: 22px; }
  .form-wrap section { padding: 28px 0 8px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px; /* iOS doesn't zoom when input is >= 16px */
  }
}
