:root {
  --red: #b5262d;
  --red-dark: #8f1820;
  --red-soft: #fff0ef;
  --ink: #282521;
  --muted: #746e66;
  --border: #e7dfd5;
  --sand: #f6f1e9;
  --blue: #247f9a;
  --blue-soft: #e8f6fa;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #fbf8f3;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: #fbf8f3; }
button, input, select, textarea { font: inherit; }
.parent-header { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: auto; padding: 24px 22px; background: var(--red); box-shadow: 0 0 0 100vmax var(--red); clip-path: inset(0 -100vmax); }
.parent-header img { width: 170px; max-height: 66px; object-fit: contain; object-position: left center; }
.parent-header a { color: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.parent-header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }
.language-switch button { min-width: 34px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.language-switch button.active { background: white; color: var(--red); }
.parent-main { width: min(960px, calc(100% - 28px)); margin: 0 auto 70px; }
.parent-hero { position: relative; padding: 36px 12px 28px; background: var(--red); color: white; text-align: center; box-shadow: 0 0 0 100vmax var(--red); clip-path: inset(0 -100vmax); }
.parent-hero > span { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.parent-hero h1 { margin: 10px 0 8px; font: 700 clamp(34px, 6vw, 58px)/1 "Fraunces", serif; }
.parent-hero p { max-width: 660px; margin: auto; color: white; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 620px; margin: 28px auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.steps span { padding: 9px 5px; color: #ffd5d1; font-size: 10px; }
.steps .active { background: white; color: var(--red); font-weight: 700; }
#parentEnrollmentForm { display: grid; gap: 18px; }
.parent-card, .success-card { min-width: 0; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: 0 14px 45px rgba(54,39,28,.08); }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
.section-heading > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--red); color: white; font-weight: 700; }
.section-heading h2 { margin: 0; font: 700 23px/1.1 "Fraunces", serif; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.child-heading button { margin-left: auto; padding: 9px 12px; border: 0; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 700; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
label > span, .wide-label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { min-height: 90px; resize: vertical; }
.secondary-guardian { padding: 12px 14px; border-radius: 11px; background: var(--sand); }
.secondary-guardian summary { color: var(--red); font-size: 11px; font-weight: 700; cursor: pointer; }
.secondary-guardian .form-grid { margin-top: 14px; }
.parent-child { position: relative; margin-top: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: #fdfbf8; }
.parent-child:first-child { margin-top: 0; }
.parent-child-title { display: flex; justify-content: space-between; margin-bottom: 16px; }
.parent-child-title strong { font: 700 18px "Fraunces", serif; }
.parent-child-title button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.authorization-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.authorization { padding: 12px; border-radius: 11px; background: white; }
.authorization > span { text-transform: none; line-height: 1.35; }
.authorization > span b { color: var(--red); }
.yes-no { display: flex; gap: 14px; margin-top: 8px; }
.yes-no label { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.yes-no input { width: auto; min-height: auto; }
.formula-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.formula-grid label { cursor: pointer; }
.formula-grid input { position: absolute; opacity: 0; }
.formula-grid span { display: grid; gap: 3px; height: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 12px; text-transform: none; }
.formula-grid small { color: var(--muted); }
.formula-grid input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.club-choice-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.club-choice-guide > div { display: grid; gap: 4px; padding: 13px 14px; border-radius: 12px; background: var(--sand); }
.club-choice-guide strong { color: var(--red); font-size: 11px; }
.club-choice-guide small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.calendar-instruction { display: grid; gap: 4px; margin: 18px 0 4px; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 0 11px 11px 0; background: var(--red-soft); }
.calendar-instruction strong { color: var(--red); font-size: 12px; }
.calendar-instruction span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.parent-pricing-guide { margin: 16px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: white; }
.pricing-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--sand); }
.pricing-guide-heading > div { display: grid; gap: 3px; }
.pricing-guide-heading strong { font-size: 12px; }
.pricing-guide-heading small { color: var(--muted); font-size: 9px; }
.pricing-guide-heading > span { padding: 5px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 9px; font-weight: 700; }
.pricing-guide-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.parent-pricing-guide table { width: 100%; min-width: 560px; border-collapse: collapse; }
.parent-pricing-guide th, .parent-pricing-guide td { padding: 11px 14px; border-top: 1px solid var(--border); font-size: 10px; text-align: left; }
.parent-pricing-guide thead th { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.parent-pricing-guide tbody th { font-weight: 700; }
.parent-pricing-guide td { color: var(--red); font-weight: 700; white-space: nowrap; }
.parent-pricing-guide .sibling-price { background: var(--blue-soft); }
.parent-pricing-guide .sibling-price td { color: var(--blue); }
.parent-pricing-guide > p { margin: 0; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; line-height: 1.45; }
fieldset { display: flex; gap: 18px; margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
fieldset legend { padding: 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
fieldset label { display: flex; align-items: center; gap: 6px; font-size: 11px; }
fieldset input, .swimming-option input, .consent input { width: auto; min-height: auto; }
.swimming-option, .consent { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; background: var(--blue-soft); }
.swimming-option span { margin: 0; color: var(--blue); text-transform: none; }
.swimming-option small { display: block; margin-top: 3px; }
.swimming-only { display: grid; grid-template-columns: 220px 1fr; gap: 14px; margin-top: 16px; }
.swimming-only[hidden] { display: none; }
.parent-swimming-request { margin-top: 18px; padding: 16px; border: 1px solid #b9dde8; border-radius: 14px; background: #f5fbfd; }
.swimming-request-heading { display: grid; gap: 3px; margin-bottom: 12px; }
.swimming-request-heading strong { color: var(--blue); font-size: 12px; }
.swimming-request-heading small, .parent-swimming-request > p { color: var(--muted); font-size: 9px; line-height: 1.45; }
.parent-swimming-request > p { margin: 10px 0 0; }
.swimming-pricing-guide { margin-bottom: 12px; padding: 13px; border: 1px solid #cce5ec; border-radius: 11px; background: white; }
.swimming-pricing-guide > strong { display: block; margin-bottom: 9px; color: var(--blue); font-size: 11px; }
.swimming-pricing-guide > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.swimming-pricing-guide span { display: grid; gap: 2px; padding: 9px; border-radius: 8px; background: var(--blue-soft); }
.swimming-pricing-guide b { color: var(--blue); font-size: 9px; }
.swimming-pricing-guide small { color: var(--muted); font-size: 9px; }
.swimming-pricing-guide .swimming-sibling-price { background: #fff2d9; }
.swimming-pricing-guide .swimming-sibling-price b { color: #9a6500; }
.swimming-estimate { display: grid; align-content: center; gap: 3px; padding: 12px 14px; border-radius: 10px; background: white; }
.swimming-only .swimming-estimate { grid-column: 1 / -1; }
.swimming-estimate span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.swimming-estimate strong { color: var(--blue); font: 700 22px "Fraunces", serif; }
.swimming-estimate small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.calendar-heading { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 24px 0 12px; }
.calendar-heading button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: white; cursor: pointer; }
.parent-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.parent-calendar span { padding: 5px; color: var(--muted); font-size: 9px; font-weight: 700; text-align: center; }
.parent-calendar button { aspect-ratio: 1.2; border: 1px solid var(--border); border-radius: 9px; background: white; cursor: pointer; }
.parent-calendar button.selected { border-color: var(--red); background: var(--red); color: white; font-weight: 700; }
.parent-calendar button:disabled { opacity: .25; cursor: default; }
.selected-dates { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.selected-dates button { border: 0; background: none; color: var(--red); font-weight: 700; cursor: pointer; }
.date-period-panel { margin-top: 16px; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: #fdfbf8; }
.date-period-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.date-period-toolbar > div { display: grid; gap: 3px; }
.date-period-toolbar small { color: var(--muted); font-size: 9px; }
.date-period-toolbar label { color: var(--muted); font-size: 9px; font-weight: 700; }
.date-period-toolbar select { min-height: 36px; margin-top: 4px; padding: 6px 30px 6px 9px; }
.date-period-list { display: grid; gap: 7px; }
.date-period-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(3, auto); gap: 7px; align-items: center; padding: 9px; border-radius: 10px; background: white; }
.date-period-row strong { font-size: 10px; text-transform: capitalize; }
.date-period-row button { min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.date-period-row button.selected { border-color: var(--red); background: var(--red); color: white; }
.estimate { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 18px; margin-top: 18px; padding: 16px; border-radius: 13px; background: var(--sand); }
.estimate > div:first-child { display: grid; gap: 3px; }
.estimate span { font-size: 11px; font-weight: 700; }
.estimate > strong { color: var(--red); font: 700 24px "Fraunces", serif; }
.estimate small { max-width: 420px; color: var(--muted); }
.deposit-estimate { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 15px; margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--border); }
.deposit-estimate span { color: var(--muted); font-size: 10px; }
.deposit-estimate strong { color: var(--blue); font: 700 20px "Fraunces", serif; }
.wide-label { display: block; }
.rules-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--ink); text-decoration: none; }
.rules-link span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.rules-link strong { color: var(--red); font-size: 11px; }
.consent { margin-top: 16px; background: var(--sand); font-size: 11px; line-height: 1.45; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.submit-row p { max-width: 500px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.submit-row button, .success-card button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--red); color: white; font-weight: 700; cursor: pointer; }
.submit-row button:disabled { opacity: .6; }
.form-message { margin: 12px 0 0; color: var(--red); font-size: 11px; text-align: right; }
.success-card { max-width: 680px; margin: 30px auto; text-align: center; }
.success-card img { width: 92px; }
.success-card > span { display: block; margin-top: 12px; color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.success-card h2 { font: 700 34px "Fraunces", serif; }
.success-card p { color: var(--muted); line-height: 1.6; }
.success-children { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.success-children span { padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 700; }
@media (max-width: 700px) {
  .parent-header img { width: 135px; }
  .parent-header-actions { gap: 8px; }
  .parent-header a { font-size: 10px; }
  .steps { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .form-grid, .authorization-grid, .formula-grid, .club-choice-guide, .swimming-only { grid-template-columns: 1fr; }
  .swimming-pricing-guide > div { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: auto; }
  .section-heading { flex-wrap: wrap; }
  .child-heading button { width: 100%; margin-left: 47px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row button { width: 100%; }
  .estimate { grid-template-columns: 1fr; }
  .deposit-estimate { grid-column: auto; }
  .date-period-toolbar { align-items: stretch; flex-direction: column; }
  .date-period-row { grid-template-columns: 1fr 1fr 1fr; }
  .date-period-row strong { grid-column: 1 / -1; }
}
