/* GPSA Awards & Scholarships — intake for the J. Kyle Hurdle Scholarship and the
 * Kei Lamberson Outstanding Coach Award. Shares the visual system of the GPSA
 * scoreboard-ads form (gpsa-ads.css): a navy hero, white cards with a red-tick
 * "kicker", the same field/button/panel components. Brand-locked: navy #002366,
 * red #d9242b, Inter. Toasts come from the shared GPSA stylesheet.
 * Canonical source: css.gpsaswimming.org */

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

  --hero-top: #04143a;
  --hero-mid: #062b6e;
  --hero-bot: #0a2150;

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

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

* { 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 ================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 50% -25%, rgba(0, 51, 160, .55), transparent 62%),
    linear-gradient(180deg, var(--hero-top), var(--hero-mid) 58%, var(--hero-bot));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.6px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw-home);
  margin: 0 auto;
  padding: 26px 22px 40px;
}
/* Form pages use the narrower column width so the hero aligns with the form. */
.hero--form .hero-inner { max-width: var(--maxw); }
.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;
}
.hero-back {
  margin-left: auto;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b9c8ee;
  text-decoration: none;
}
.hero-back:hover { color: #fff; }
.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.04;
  font-size: clamp(2rem, 5.5vw, 3rem);
}
.hero-sub {
  margin: 0;
  color: #c4cfea;
  font-size: 1.02rem;
}

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

/* ============================ LANDING CARDS ============================ */
.awards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) { .awards { grid-template-columns: 1fr 1fr; } }

.award-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.award-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.award-card .amount {
  display: inline-block;
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: #fdecec;
  border: 1px solid #f6cfd1;
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 14px;
}
.award-card .desc { margin: 0 0 14px; color: #2c364d; font-size: .96rem; }

.prompt {
  margin: 0 0 16px;
  padding: 12px 15px;
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  background: #f2f6ff;
  color: #2c364d;
  font-style: italic;
  font-size: .95rem;
}
.award-card .meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.award-card .btn { margin-top: auto; }

/* ================================ CARDS ================================ */
.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"],
input[type="date"],
input[type="number"],
select,
textarea {
  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;
}
textarea { min-height: 13rem; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea: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;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Radio / checkbox rows */
.radios { display: flex; gap: 22px; padding-top: 2px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  flex: none;
  cursor: pointer;
}

/* Essay word counter */
.wordcount { font-variant-numeric: tabular-nums; font-weight: 600; }
.wordcount.ok { color: #167a43; }
.wordcount.bad { color: var(--red); }

/* ================================ SUBMIT ================================ */
.turnstile-holder { margin: 4px 0 16px; }
.btn {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  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; }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-dark); }

/* ============================ STATE PANELS ============================ */
.notice {
  background: #fff4f4;
  border: 1px solid #f3c9cb;
  color: var(--red-dark);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: .95rem;
}
.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 auto 10px; color: var(--muted); max-width: 48ch; }
.panel .ref {
  display: inline-block;
  margin: 6px 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  color: var(--navy);
  background: #f2f6ff;
  border: 1px solid #d9e3fb;
  border-radius: 8px;
  padding: 6px 12px;
}
.panel .btn { max-width: 320px; margin: 8px auto 0; }

/* ============================== UTILITY ============================== */
.hidden, [hidden] { display: none !important; }

@media (max-width: 560px) {
  .card, .award-card { padding: 22px 18px; }
  .hero-inner { padding: 22px 18px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
