/* ==========================================================
   2028 Pullman First Responders Calendar — Sponsor Interest
   ========================================================== */

:root {
  --night: #0a0f1c;
  --night-2: #121a2e;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --amber: #f59e0b;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2rem); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: 600 1rem/1 var(--sans);
  color: #fff; background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(220, 38, 38, .45); outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--red); box-shadow: 0 8px 24px -8px rgba(220, 38, 38, .7); }
.btn--primary:hover:not(:disabled) { background: var(--red-dark); }
.btn--dark { --btn-bg: var(--ink); border-radius: var(--radius-sm); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--block { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  isolation: isolate;
}
.hero__media {
  position: relative;
  height: clamp(300px, 64vw, 70svh);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, .55) 0%, rgba(10, 15, 28, 0) 22%, rgba(10, 15, 28, 0) 55%, rgba(10, 15, 28, .75) 80%, var(--night) 100%);
}
.hero__content {
  position: relative;
  width: min(900px, 100% - 2.5rem);
  margin: clamp(-240px, -14vw, -56px) auto 0;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .3); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); } }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.hero__lead {
  max-width: 640px; margin: 1.1rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.kicker {
  margin-bottom: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section__lead { margin-top: .9rem; font-size: 1.08rem; }
.req { color: var(--red); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; }

/* ---------- Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.fact {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: var(--red); background: var(--red-soft); border-radius: 12px;
}
.fact__icon svg, .notice__icon, .verified svg, .thanks__icon svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fact__icon svg { width: 22px; height: 22px; }
.fact h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.fact p { font-size: .95rem; }

.roles { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.role {
  padding: .5rem 1rem;
  font-size: .9rem; font-weight: 600; color: #fff;
  background: var(--night-2);
  border-radius: 999px;
}
.role::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.role:nth-child(odd)::before { background: var(--red); }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.tier {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tier--featured {
  color: rgba(255, 255, 255, .82);
  background: radial-gradient(120% 120% at 100% 0%, #3b0d12 0%, var(--night) 55%);
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(10, 15, 28, .55);
}
.tier--featured h3 { color: #fff; }
.tier h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; margin-bottom: .75rem; }
.tier__badge {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .75rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px;
}
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
  color: #78350f;
}
.notice strong { color: #78350f; }
.notice__icon { flex: none; width: 24px; height: 24px; color: var(--amber); margin-top: .1rem; }

/* ---------- Form ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.form { padding: clamp(1.25rem, 4vw, 2.5rem); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group + .group { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
legend {
  float: left; width: 100%; /* keeps legend out of the fieldset border */
  display: flex; align-items: center; gap: .7rem;
  padding: 0; margin-bottom: 1.25rem;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.step {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  font-size: .9rem; color: #fff; background: var(--red); border-radius: 50%;
}

.group > legend + * { clear: both; }
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; margin-bottom: .4rem; font-size: .93rem; font-weight: 600; color: var(--ink); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  font: 400 1rem/1.4 var(--sans); /* 16px+ prevents iOS zoom */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
textarea { resize: vertical; min-height: 110px; }
select {
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .85rem center / 18px no-repeat;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 23, 42, .08); }
input:read-only:not([type="radio"]):not([type="checkbox"]) { background: #f8fafc; color: var(--muted); }
.is-invalid, .is-invalid:focus { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12) !important; }
.field-error { margin-top: .35rem; font-size: .85rem; font-weight: 500; color: var(--red-dark); }

.row { display: grid; gap: .75rem; }
.row .field { margin-bottom: 0; }
.row--2 { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.row--3 { grid-template-columns: 1fr 1fr; margin: -.45rem 0 1.1rem; }
.row--3 .field:first-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .row--2 { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: 2fr 1fr 1fr; }
  .row--3 .field:first-child { grid-column: auto; }
}

.hint { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.hint--top { margin: -.75rem 0 1rem; }
.hint--center { text-align: center; }
.fine { margin-top: .6rem; font-size: .75rem; color: #94a3b8; }

/* Phone + verification */
.phone { display: flex; gap: .5rem; }
.phone input { flex: 1; min-width: 0; }
.phone .btn { flex: none; min-height: 50px; padding-inline: 1.1rem; border-radius: var(--radius-sm); }
.code {
  margin-top: 1rem; padding: 1rem;
  background: var(--bg); border: 1px dashed #cbd5e1; border-radius: var(--radius-sm);
  animation: rise .25s ease;
}
#verifyCode { font-size: 1.35rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.verified {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .75rem; padding: .7rem 1rem;
  font-weight: 600; color: var(--green);
  background: var(--green-soft); border: 1px solid #bbf7d0; border-radius: var(--radius-sm);
  animation: rise .25s ease;
}
.verified svg { width: 20px; height: 20px; stroke-width: 3; }
.verified .link { margin-left: auto; font-size: .85rem; color: var(--green); }
.status { min-height: 0; margin-top: .5rem; font-size: .88rem; font-weight: 500; }
.status:empty { display: none; }
.status.is-error { color: var(--red-dark); }
.status.is-ok { color: var(--green); }
.status--center { text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Interest choices */
.choices { display: grid; gap: .75rem; margin-bottom: 1.4rem; }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
  display: flex; flex-direction: column; gap: .25rem; height: 100%;
  padding: 1rem 1.1rem 1rem 3rem;
  border: 1.5px solid #cbd5e1; border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice__body::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.15rem;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #94a3b8; background: #fff;
  transition: border .15s ease;
}
.choice__title { font-weight: 700; color: var(--ink); }
.choice__desc { font-size: .85rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.choice:hover .choice__body { border-color: var(--ink); }
.choice input:checked + .choice__body { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.choice input:checked + .choice__body::before { border: 6px solid var(--red); }
.choice input:focus-visible + .choice__body { outline: 3px solid rgba(220, 38, 38, .4); outline-offset: 2px; }
.choices.is-invalid .choice__body { border-color: var(--red); }

.info {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: -.4rem 0 1.4rem; padding: .85rem 1rem;
  font-size: .88rem; line-height: 1.5; color: #1e3a5f;
  background: #f0f6ff; border: 1px solid #cfe0f7; border-radius: var(--radius-sm);
}
.info svg {
  flex: none; width: 20px; height: 20px; margin-top: .05rem;
  fill: none; stroke: #2563eb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Months */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 560px) { .months { grid-template-columns: repeat(6, 1fr); } }
.month { position: relative; margin: 0; cursor: pointer; }
.month input { position: absolute; opacity: 0; pointer-events: none; }
.month span {
  display: grid; place-items: center; min-height: 44px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff;
  transition: all .15s ease;
}
.month:hover span { border-color: var(--ink); }
.month input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.month input:focus-visible + span { outline: 3px solid rgba(220, 38, 38, .4); outline-offset: 2px; }

.submit { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Thank you */
.thanks { padding: 3rem 1.75rem; text-align: center; animation: rise .35s ease; }
.thanks:focus { outline: none; }
.thanks__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem;
  color: #fff; background: var(--green); border-radius: 50%;
}
.thanks__icon svg { width: 32px; height: 32px; stroke-width: 3; }
.thanks h2 { font-family: var(--display); text-transform: uppercase; font-size: 2.2rem; margin-bottom: .75rem; }
.thanks p { max-width: 480px; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, .75); background: var(--night); font-size: .92rem; }
.footer__small { margin-top: .35rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .phone .btn { padding-inline: .9rem; }
  .verified .link { margin-left: 0; }
}
