/* ============================================================
   RACE FOR IMPACT — Athletes prospect microsite
   site-specific styles. RFI tokens live in /styles/rfi-tokens.css
   ============================================================ */

html, body { background: #000; color: #fff; }
body { font-family: "Chakra Petch", system-ui, sans-serif; }

/* ── Buttons ─────────────────────────────────────────────────
   tap-target floor: 64px on mobile. */
.rfi-btn-primary,
.rfi-btn-accent,
.rfi-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  padding: 18px 22px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, background-color .15s ease;
  width: 100%;
}
.rfi-btn-primary  { background: #3759B6; color: #fff; }
.rfi-btn-accent   { background: #97CEFF; color: #000; }
.rfi-btn-ghost    { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #97CEFF; }

.rfi-btn-label {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 19px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.rfi-btn-primary:hover,
.rfi-btn-accent:hover,
.rfi-btn-ghost:hover  { filter: brightness(1.08); }
.rfi-btn-primary:active,
.rfi-btn-accent:active,
.rfi-btn-ghost:active { transform: translateY(1px); filter: brightness(.92); }
.rfi-btn-accent:disabled,
.rfi-btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }

@media (min-width: 640px) {
  .rfi-btn-primary, .rfi-btn-accent, .rfi-btn-ghost { width: auto; }
}

/* ── Form fields ─────────────────────────────────────────────
   On the dark hero/contact band: light-on-dark inputs. */
.rfi-label {
  display: block;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.rfi-input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 0;
  color: #fff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 16px; /* 16px+ stops iOS zoom-on-focus */
  line-height: 1.3;
  transition: border-color .15s ease, background-color .15s ease;
}
.rfi-input::placeholder { color: rgba(255,255,255,0.4); }
.rfi-input:focus {
  outline: none;
  border-color: #97CEFF;
  background: rgba(255,255,255,0.08);
}
.rfi-input:user-invalid { border-color: #ff8a8a; }

.rfi-input-prefix {
  display: flex;
  align-items: center;
}
.rfi-input-prefix > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.18);
  border-right: none;
  color: rgba(255,255,255,0.55);
  font-family: "Chakra Petch", sans-serif;
  font-size: 16px;
}
.rfi-input-prefix > .rfi-input { border-left: none; }

/* Consent checkbox */
.rfi-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #97CEFF;
  margin-top: 2px;
  cursor: pointer;
}

/* Form status messages */
.rfi-form-status { display: none; }
.rfi-form-status[data-state="error"] {
  display: block;
  color: #ffb3b3;
}
.rfi-form-status[data-state="success"] { display: block; }

/* ── Misc ───────────────────────────────────────────────────── */
.rfi-rule { display:block; width:100%; height:4px; background:#97CEFF; border:0; margin:0; }
.rfi-rule--blue { background:#3759B6; }

::selection { background: #97CEFF; color: #000; }

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