/* East Brighton FC — supporter signup
   Palette: club red with white. Sample the exact red from the real logo
   when it arrives and change --red here; nothing else needs touching. */

:root {
  --red: #C8102E;
  --red-dark: #A50D26;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #5A5A5A;
  --hairline: #E5E5E5;
  --field-bg: #FAFAFA;
  --error: #B3261E;
  --radius: 6px;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white);
}
.masthead__logo { width: 32px; height: 36px; display: block; }
.masthead__name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Layout */
.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lede {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* Card */
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 20px;
}

/* Fields */
.field { margin-bottom: 18px; }
.field--narrow input { max-width: 120px; }
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}
.optional { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 16px; /* 16px stops iOS zooming on focus */
  font-family: inherit;
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: var(--white);
}
input[aria-invalid="true"] { border-color: var(--error); }

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
}
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.consent label { margin: 0; font-weight: 400; font-size: 15px; }

/* Honeypot — off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile */
.cf-turnstile { margin-bottom: 18px; }

/* Button */
button {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
button:hover { background: var(--red-dark); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
button[disabled] { opacity: 0.6; cursor: default; }

/* Messages */
.error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 14px;
}
.error--form { margin-top: 14px; font-weight: 600; }
.privacy {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Success */
.done { padding: 12px 0; }
.done h2 { margin: 0 0 6px; font-size: 24px; color: var(--red); }
.done p { margin: 0; }

/* Photo strip */
.photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: var(--radius);
}

@media (min-width: 560px) {
  .page { padding-top: 48px; }
  h1 { font-size: 38px; }
  .card { padding: 28px; }
}
