/* ---------- Palette ----------
   Primary: red + white
   Accent:  Hungarian green
*/
:root {
  --red: #C8102E;
  --red-2: #9E0E25;
  --red-soft: #fdecef;
  --green: #2D6A4F;       /* Hungarian green */
  --green-2: #1B4332;
  --green-soft: #e7f1ec;
  --ink: #1a1a1f;
  --ink-2: #2c2f38;
  --muted: #5b6478;
  --bg: #ffffff;
  --bg-soft: #faf8f6;
  --line: #ececef;
  --shadow-sm: 0 2px 6px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 10px 28px rgba(20, 20, 30, 0.10);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); }

h1, h2, h3 {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Floating logo + socials (overlaid on hero, no pill) ---------- */
.floating-top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 30; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 30px;
}
.floating-logo, .floating-socials { pointer-events: auto; }
.floating-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.floating-logo:hover { transform: translateY(-1px); }
.floating-logo img {
  height: 72px; width: auto; display: block;
  background: transparent;
  mix-blend-mode: multiply;
}

.floating-socials {
  display: flex; flex-direction: row; gap: 14px; align-items: center;
}
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-icon:hover { transform: translateY(-1px); color: var(--accent, #fff); opacity: 0.85; }
.social-icon svg { display: block; width: 28px; height: 28px; }

/* Admin shield — subtler than socials */
.admin-icon { opacity: 0.55; }
.admin-icon:hover { opacity: 1; transform: translateY(-1px); }
.admin-icon svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .admin-icon svg { width: 20px; height: 20px; }
}

/* ---------- Legacy header (used by thanks/404 pages) ---------- */
.site-header {
  background: #fff;
  color: var(--ink);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font-weight: 800; letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.25);
}
.brand-logo {
  height: 48px; width: auto; display: block;
  transition: transform 0.15s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .top { font-size: 0.95rem; }
.brand-text .sub { font-size: 0.72rem; color: var(--green-2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* Compact header CTA button */
.btn-compact {
  padding: 9px 18px; font-size: 0.92rem; min-height: auto;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.22);
}

/* Smooth-scroll anchor offset for sticky header */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink-2); text-decoration: none; padding: 9px 14px;
  border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  position: relative;
}
.nav a:hover { color: var(--red); }
.nav a.active:not(.btn) { color: var(--red); }
.nav a.active:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav .btn { margin-left: 8px; }

.hamburger {
  display: none; background: none; border: 0; color: var(--ink);
  font-size: 1.6rem; cursor: pointer; padding: 4px 8px;
}

@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 8px 14px 14px; display: none;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; width: 100%; }
  .nav a.active:not(.btn)::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px;
  background: var(--red); color: #fff !important; text-decoration: none;
  border-radius: 10px; border: 0; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  font-size: 1rem; letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.25);
}
.btn:hover { background: var(--red-2); box-shadow: 0 8px 18px rgba(158, 14, 37, 0.32); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: #fff; color: var(--ink) !important;
  border: 1.5px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.btn-ghost:hover { background: #f5f5f5; }
.btn-green {
  background: var(--green); box-shadow: 0 6px 14px rgba(45, 106, 79, 0.28);
}
.btn-green:hover { background: var(--green-2); }
.btn-large { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 620px; display: flex; align-items: center;
  padding: 110px 20px 80px;
  background: #1a1a1f;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../../kdfc_grounds_2.png") center/cover no-repeat;
  z-index: 0;
  filter: saturate(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(200,16,46,0.78) 0%, rgba(158,14,37,0.55) 35%, rgba(20,20,30,0.45) 70%, rgba(20,20,30,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.45));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; max-width: var(--max); }
.hero-content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  margin: 0 0 26px; line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  max-width: 820px;
  white-space: nowrap;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--red);
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 99px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 680px; opacity: 0.97; margin: 0 0 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

.hero-tagline, .hero-lunch {
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}
.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin: 0 0 22px;
  opacity: 0.95;
}
.hero-lunch {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin: 6px 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Date cards (icon + readable text) ---------- */
.date-strip {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 36px;
  width: 100%;
}
.date-card {
  background: #fff; color: var(--ink);
  border-radius: 14px;
  padding: 18px 24px;
  min-width: 220px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  border-top: 4px solid var(--red);
}
.date-card .date-line,
.date-card .time-line {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
}
.date-card .date-line {
  font-size: 1.05rem; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.date-card .date-line svg { color: var(--red); flex-shrink: 0; }
.date-card .time-line {
  font-size: 0.92rem; font-weight: 700;
  color: var(--green-2);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.date-card .time-line svg { color: var(--green); flex-shrink: 0; }

/* Decorative bottom green stripe under hero */
.hero-stripe {
  height: 6px; background: var(--green);
  position: relative; z-index: 3;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
}
section h2 .accent { color: var(--red); }
section .section-lead { color: var(--muted); margin: 0 0 36px; max-width: 720px; font-size: 1.02rem; }

.section-soft { background: var(--bg-soft); }

.section-eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 12px;
}

/* ---------- Info cards ---------- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.info-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.info-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
}
.info-card.green::before { background: var(--green); }
.info-card .label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); margin-bottom: 8px; font-weight: 700;
}
.info-card .value { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.info-card .sub { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }

/* ---------- Pills (age groups) ---------- */
.pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px;
}
.pill {
  padding: 11px 20px; border-radius: 99px;
  background: #fff; border: 1.5px solid var(--line);
  cursor: pointer; font-weight: 700; color: var(--ink-2);
  transition: all 0.15s ease;
  font-size: 0.98rem;
}
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.active {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.25);
}
.pill-panel { display: none; }
.pill-panel.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.age-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
}
.age-card h3 { margin-top: 0; color: var(--ink); font-size: 1.4rem; }
.age-card ul { padding-left: 20px; margin-top: 14px; }
.age-card li { margin: 8px 0; }
.age-card li::marker { color: var(--green); }

/* ---------- Coaches ---------- */
.coaches-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.coach-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.coach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.coach-photo {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center top;
  background-repeat: no-repeat;
  background-color: #1a1a1f;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.coach-photo.placeholder {
  background-image:
    linear-gradient(135deg, rgba(200,16,46,0.85), rgba(45,106,79,0.85)),
    url("../../kdfc_grounds_2.png");
}

/* ---------- Single coach feature ---------- */
.coach-feature {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}
.coach-feature-photo {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background-color: #1a1a1f;
  display: block;
}
.coach-feature-body {
  padding: 30px 36px 30px 0;
}
.coach-feature-body h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: var(--ink);
}
.coach-feature-body .coach-role {
  color: var(--red);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.coach-feature-body .coach-bio {
  color: var(--ink-2);
  font-size: 1.02rem;
  margin: 0;
}
.coach-creds {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coach-creds li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}
.coach-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 700px) {
  .coach-feature {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .coach-feature-photo {
    aspect-ratio: 4 / 3;
  }
  .coach-feature-body {
    padding: 22px 22px 26px;
  }
}
.coach-body { padding: 20px 22px 24px; }
.coach-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.coach-role {
  color: var(--red); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 12px;
}
.coach-bio { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Form ---------- */
.form-header {
  max-width: 720px; margin: 0 auto 32px;
  text-align: center;
}
.form-header h2, .form-header .section-eyebrow,
.form-header .section-lead { margin-left: auto; margin-right: auto; }
.form-header .section-lead { max-width: 600px; }

.form-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  border-top: 4px solid var(--red);
}
.form-wrap h3 {
  margin-top: 0; color: var(--ink);
  font-size: 1.1rem; letter-spacing: -0.01em;
}
.form-wrap h3:not(:first-of-type) { margin-top: 28px; }

.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 580px) { .form-row.two { grid-template-columns: 1fr; } }

.field label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem;
  color: var(--ink);
}
.field .hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
.field textarea { min-height: 96px; resize: vertical; }

.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.check {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fff;
  user-select: none; font-weight: 600;
  transition: all 0.15s ease;
}
.check:hover { border-color: var(--green); }
.check input { accent-color: var(--green); width: 18px; height: 18px; }
.check.selected { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }

fieldset.child-block {
  border: 1px dashed #d4d7dd; border-radius: var(--radius);
  padding: 20px 20px 8px; margin-bottom: 16px; position: relative;
  background: var(--bg-soft);
}
fieldset.child-block legend {
  padding: 2px 10px; font-weight: 800; color: #fff;
  background: var(--red); border-radius: 6px;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.child-remove {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0; color: var(--red);
  cursor: pointer; font-size: 0.85rem; font-weight: 700;
}
.child-remove:hover { text-decoration: underline; }
.add-child {
  background: transparent; border: 1.5px dashed var(--green);
  color: var(--green-2); padding: 12px 16px; border-radius: 10px;
  cursor: pointer; font-weight: 700; width: 100%;
  transition: background 0.15s ease;
}
.add-child:hover { background: var(--green-soft); }
.add-child:disabled { cursor: not-allowed; }

.form-error {
  display: none; padding: 13px 16px; border-radius: 10px;
  background: var(--red-soft); color: var(--red-2);
  border: 1.5px solid #f5c6c1; margin-bottom: 18px;
  font-weight: 600;
}
.form-error.show { display: block; }

.consent-row {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.consent-check {
  border: 0 !important; padding: 0 !important; background: transparent !important;
  font-weight: 500;
}

.submit-row { margin-top: 18px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.submit-row .spinner {
  display: none; width: 20px; height: 20px;
  border: 2.5px solid var(--green); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.submit-row.loading .spinner { display: inline-block; }
.submit-row.loading button { opacity: 0.7; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Disabled submit until consent ticked */
.btn:disabled,
.btn[disabled] {
  background: #cfd2d8 !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ---------- Thanks page ---------- */
.thanks-wrap {
  text-align: center; padding: 60px 20px;
}
.thanks-wrap .check-mark {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  margin: 0 auto 24px; font-size: 2.4rem; font-weight: 900;
  box-shadow: 0 12px 28px rgba(45,106,79,0.28);
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band .section-lead { color: rgba(255,255,255,0.92); }
.cta-band .btn-ghost { color: var(--red) !important; background: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #f5f5f5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cdd1d8;
  padding: 36px 0; text-align: center; font-size: 0.92rem;
  border-top: 4px solid var(--green);
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--red); }

/* ============================================================
   Mobile refinements (≤ 760px)
   ============================================================ */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  section h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); }
  section .section-lead { margin-bottom: 28px; font-size: 0.98rem; }

  /* Floating logo + socials — tighter on mobile */
  .floating-top { padding: 16px 16px; }
  .floating-logo img { height: 48px; }
  .floating-socials { gap: 10px; }
  .social-icon svg { width: 24px; height: 24px; }

  /* Hero — extra top padding for floating logo */
  .hero { padding-top: 100px; }

  /* Legacy header (thanks/404) */
  .site-header .container { padding: 10px 16px; }
  .brand-text .top { font-size: 0.88rem; }
  .brand-text .sub { font-size: 0.66rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .brand-logo { height: 40px; }
  .btn-compact { padding: 8px 14px; font-size: 0.85rem; }
  .hamburger { font-size: 1.5rem; padding: 8px 10px; min-width: 44px; }

  /* Date cards — stack on mobile */
  .date-strip { gap: 12px; margin-bottom: 28px; flex-direction: column; align-items: stretch; }
  .date-card { padding: 14px 18px; min-width: 0; width: 100%; }
  .date-card .date-line { font-size: 1rem; }
  .date-card .time-line { font-size: 0.88rem; }

  /* Hero — tighter */
  .hero {
    min-height: 460px;
    padding: 56px 16px 64px;
  }
  .hero h1 {
    /* Auto-scale so each non-wrapping line always fits the viewport.
       4.6vw × 14 chars (longest line "School Holiday") ≈ 64vw — leaves margin. */
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
    line-height: 1.18;
    margin-bottom: 22px;
  }
  .hero .eyebrow {
    font-size: 0.72rem; padding: 6px 12px; margin-bottom: 16px;
  }
  .hero p.lead {
    font-size: 1rem; margin-bottom: 26px;
  }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Buttons */
  .btn { padding: 13px 20px; font-size: 1rem; min-height: 48px; }
  .btn-large { padding: 14px 24px; font-size: 1.02rem; }

  /* Cards */
  .info-grid { gap: 12px; }
  .info-card { padding: 18px; }
  .info-card .value { font-size: 1.1rem; }
  .info-card .sub { font-size: 0.88rem; }

  /* Pills — horizontal scroll on tight screens */
  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px 22px;
    padding: 0 16px 4px;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; padding: 10px 18px; font-size: 0.95rem; }
  .age-card { padding: 22px; }
  .age-card h3 { font-size: 1.2rem; }

  /* Coaches */
  .coaches-grid { gap: 14px; }
  .coach-body { padding: 16px 18px 20px; }
  .coach-body h3 { font-size: 1.05rem; }

  /* Form */
  .form-header { margin-bottom: 24px; }
  .form-wrap { padding: 22px 18px; }
  .form-wrap h3 { font-size: 1rem; }
  .consent-row { padding: 12px 14px; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field input[type="number"],
  .field select,
  .field textarea {
    font-size: 16px;   /* prevents iOS Safari auto-zoom on focus */
    padding: 13px 14px;
  }
  .checks { gap: 10px; flex-direction: column; }
  .checks .check { padding: 14px 16px; font-size: 0.98rem; min-height: 50px; width: 100%; flex: 1 1 100%; }
  fieldset.child-block { padding: 18px 16px 6px; }
  .child-remove { top: 10px; right: 10px; padding: 6px 8px; }
  .submit-row .btn { width: 100%; }

  /* Thanks */
  .thanks-wrap { padding: 36px 12px; }
  .thanks-wrap .check-mark { width: 64px; height: 64px; font-size: 1.9rem; }

  /* Footer */
  .site-footer { padding: 28px 0; font-size: 0.85rem; }
}

/* Very small screens (≤ 380px) — extra squeeze */
@media (max-width: 380px) {
  .brand-text .top { font-size: 0.82rem; }
  .brand-text .sub { display: none; }
  .hero { min-height: 420px; padding: 48px 16px 56px; }
  .hero h1 { font-size: 1.7rem; }
}

/* Touch device tap-target safety */
@media (hover: none) {
  .nav a, .pill, .check, .btn { min-height: 44px; }
  .info-card:hover { transform: none; }
  .coach-card:hover { transform: none; }
}

/* ============================================================
   Admin page (admin.html)
   ============================================================ */
.admin-body {
  background: var(--bg-soft);
  min-height: 100vh;
}

/* PIN gate */
.locked-screen {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #1a1a1f 0%, #2c2f38 100%);
}
.pin-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  width: 100%; max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border-top: 4px solid var(--red);
}
.pin-shield {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.32);
}
.pin-card h2 { margin: 0 0 6px; font-size: 1.4rem; }
.pin-card p { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }
.pin-card #pin-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  font-family: inherit;
  font-weight: 700;
}
.pin-card #pin-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
.pin-card .btn { width: 100%; }
.pin-error {
  display: none;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
}
.pin-error.show { display: block; }
.pin-back {
  display: block; margin-top: 18px;
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
}
.pin-back:hover { color: var(--ink); }

/* Admin shell */
.admin-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.admin-header {
  display: flex;
  align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.admin-header-left {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.admin-home { display: inline-flex; }
.admin-logo { height: 40px; width: auto; display: block; }
.admin-header h1 {
  margin: 0; font-size: 1.15rem; color: #fff;
  letter-spacing: -0.01em;
}
.admin-stats {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 2px;
}
.admin-header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-ghost-dark {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.18) !important; }

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.admin-panel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.admin-panel h2 { margin: 0; font-size: 1.1rem; }
.admin-panel .muted {
  color: var(--muted); font-size: 0.88rem; margin: 0 0 12px;
}
.admin-panel textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  resize: vertical;
  min-height: 70px;
  font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--ink);
}
.admin-panel textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
.admin-actions { margin-top: 12px; display: flex; gap: 10px; }

/* EOI table */
.table-wrap { overflow-x: auto; margin: 0 -22px -18px; }
.eoi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 800px;
}
.eoi-table th {
  text-align: left;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--line);
  background: var(--bg-soft);
  position: sticky; top: 0;
}
.eoi-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.eoi-table tr.row-main:hover td { background: #fafbff; }
.eoi-table tr.row-main.expanded td { background: #f6f8ff; }
.eoi-table td a { color: var(--green-2); text-decoration: none; word-break: break-all; }
.eoi-table td a:hover { text-decoration: underline; }
.eoi-table .empty { text-align: center; color: var(--muted); padding: 32px 14px; }
.eoi-table .empty.error { color: var(--red); }
.eoi-table .expand-btn {
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.eoi-table .expand-btn:hover { border-color: var(--green); color: var(--green-2); }
.eoi-table tr.row-detail td {
  background: #f6f8ff;
  padding: 18px 22px;
  border-top: 0;
}

/* Expanded detail */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 22px;
}
.detail-block h4 {
  margin: 0 0 10px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}
.detail-block > div { font-size: 0.92rem; padding: 3px 0; }
.detail-block .k { color: var(--muted); font-weight: 600; margin-right: 6px; }
.detail-notes { margin-top: 6px; }
.kids-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.kids-table th {
  text-align: left;
  background: var(--bg-soft);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.kids-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.kids-table tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .admin-shell { padding: 12px 12px 40px; }
  .admin-header { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .admin-header-actions { justify-content: stretch; }
  .admin-header-actions .btn { flex: 1; }
  .admin-panel { padding: 18px 16px 14px; }
  .table-wrap { margin: 0 -16px -14px; }
  .eoi-table { font-size: 0.88rem; min-width: 720px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
}
