/* ============================================
   Heights Pool Summer Swim Camp 2026
   Dark Navy + Pool Blue + Gold Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0d1f35;
  --navy-light: #162d4a;
  --navy-mid: #1a3555;
  --pool-blue: #4fc3f7;
  --pool-blue-dark: #039be5;
  --pool-blue-glow: rgba(79, 195, 247, 0.25);
  --gold: #e8b84b;
  --gold-dark: #d4a43a;
  --gold-glow: rgba(232, 184, 75, 0.3);
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);
  --white-05: rgba(255,255,255,0.05);
  --green: #4caf50;
  --green-bg: rgba(76,175,80,0.15);
  --yellow: #ffc107;
  --yellow-bg: rgba(255,193,7,0.15);
  --red: #f44336;
  --red-bg: rgba(244,67,54,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(79,195,247,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--white-90);
  background: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Bubbles Background --- */
.bubbles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79,195,247,0.12), rgba(79,195,247,0.03));
  border: 1px solid rgba(79,195,247,0.08);
  animation: bubble-float linear infinite;
}

@keyframes bubble-float {
  0% {
    transform: translateY(100vh) scale(0.3);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* --- Layout --- */
#app {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  flex: 1 0 auto;
  padding: 0 1rem;
}

.page {
  display: none;
  animation: pageFadeIn 0.5s ease forwards;
}

.page.active {
  display: block;
}

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

/* --- Top Nav --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 31, 53, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-08);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  font-size: 1.5rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--pool-blue);
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--navy-light);
  border-bottom: 1px solid var(--white-08);
  padding: 0.75rem 1rem;
}

.progress-bar.hidden {
  display: none;
}

.progress-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--white-08);
  color: var(--white-30);
  border: 2px solid var(--white-15);
  transition: all var(--transition);
}

.progress-step.active .step-circle {
  background: var(--pool-blue);
  color: var(--navy);
  border-color: var(--pool-blue);
  box-shadow: 0 0 12px var(--pool-blue-glow);
}

.progress-step.completed .step-circle {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.step-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white-30);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.progress-step.active .step-label {
  color: var(--pool-blue);
}

.progress-step.completed .step-label {
  color: var(--gold);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--white-08);
  margin: 0 0.25rem;
  margin-bottom: 1rem;
  border-radius: 2px;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pool-blue);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.75rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.text-gold { color: var(--gold); }
.text-blue { color: var(--pool-blue); }

.hero-body {
  font-size: 1.05rem;
  color: var(--white-70);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy-light);
}

.btn--navy:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--white-70);
  border-color: var(--white-15);
}

.btn--ghost:hover {
  background: var(--white-08);
  color: var(--white);
  border-color: var(--white-30);
}

.btn--outline-blue {
  background: transparent;
  color: var(--pool-blue);
  border-color: var(--pool-blue);
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

.btn--outline-blue:hover,
.btn--outline-blue.active {
  background: var(--pool-blue);
  color: var(--navy);
}

.btn--lg {
  padding: 1rem 2.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }

.btn.disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Focus Outlines (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--pool-blue);
  box-shadow: 0 0 0 3px var(--pool-blue-glow);
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.btn-back-link {
  background: none;
  border: none;
  color: var(--white-50);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: color var(--transition);
}

.btn-back-link:hover {
  color: var(--pool-blue);
}

/* --- Hero Details & Price --- */
.hero-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-70);
  background: var(--white-05);
  border: 1px solid var(--white-08);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.hero-detail-icon {
  font-size: 0.95rem;
}

.hero-detail-sep {
  display: none;
}

.hero-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.hero-price-label {
  font-size: 0.85rem;
  color: var(--white-50);
  font-weight: 500;
}

/* --- Features Section --- */
.features-section {
  padding: 4rem 0 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pool-blue), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--pool-blue);
  box-shadow: 0 12px 40px rgba(79, 195, 247, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--white-50);
  line-height: 1.7;
}

/* --- Details Section --- */
.details-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
}

.details-body {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.details-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-70);
  transition: border-color var(--transition);
}

.detail-chip:hover {
  border-color: var(--pool-blue);
}

.detail-chip-icon {
  font-size: 1.1rem;
}

/* --- Schedule Card --- */
.schedule-card {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: sticky;
  top: 5rem;
}

.schedule-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--white-08);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--white-05);
}

.schedule-item--last {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pool-blue);
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.schedule-activity {
  font-size: 0.9rem;
  color: var(--white-70);
  font-weight: 500;
}

/* --- Bottom CTA --- */
.bottom-cta {
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-radius: var(--radius-xl);
  border: 1px solid var(--white-08);
}

.bottom-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.bottom-cta p {
  color: var(--white-50);
  margin-bottom: 2rem;
}

/* --- Form Card --- */
.form-card {
  background: var(--navy-light);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  margin: 7rem auto 4rem;
  box-shadow: var(--shadow-lg);
}

.form-card--wide {
  max-width: 700px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  text-align: center;
  color: var(--white-50);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* --- Toggle Tabs --- */
.toggle-tabs {
  display: flex;
  background: var(--white-05);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 2rem;
}

.toggle-tab {
  flex: 1;
  padding: 0.65rem;
  border: none;
  background: transparent;
  color: var(--white-50);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition);
}

.toggle-tab.active {
  background: var(--pool-blue);
  color: var(--navy);
  box-shadow: 0 2px 8px var(--pool-blue-glow);
}

/* --- Form Fields --- */
.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white-05);
  border: 1.5px solid var(--white-15);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--white-30);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pool-blue);
  box-shadow: 0 0 0 3px var(--pool-blue-glow);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}

.field .field-hint {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  color: var(--red);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.account-form {
  display: none;
}

.account-form.active {
  display: block;
  animation: pageFadeIn 0.3s ease;
}

/* --- Error Messages --- */
.error-msg {
  background: var(--red-bg);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 1rem 0;
  border: 1px solid rgba(244,67,54,0.2);
}

.error-msg.hidden {
  display: none;
}

/* --- Camper Cards --- */
.camper-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.camper-list.highlight-pulse {
  animation: highlightPulse 0.5s ease 3;
}

@keyframes highlightPulse {
  0%, 100% { outline: none; }
  50% { outline: 3px solid var(--pool-blue); outline-offset: 6px; border-radius: var(--radius); }
}

.camper-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white-05);
  border: 2px solid var(--white-08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.camper-card:hover {
  border-color: var(--white-30);
}

.camper-card.selected {
  border-color: var(--pool-blue);
  background: rgba(79,195,247,0.08);
  box-shadow: 0 0 16px var(--pool-blue-glow);
}

.camper-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pool-blue), var(--pool-blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.camper-info {
  flex: 1;
}

.camper-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.camper-meta {
  font-size: 0.8rem;
  color: var(--white-50);
}

.camper-card.selected .camper-avatar {
  box-shadow: 0 0 8px var(--pool-blue-glow);
}

/* --- Camper Checkbox --- */
.camper-check-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.camper-check-icon {
  font-size: 0.9rem;
  color: transparent;
  transition: color var(--transition);
}
.camper-card.selected .camper-check-box {
  background: var(--pool-blue);
  border-color: var(--pool-blue);
}
.camper-card.selected .camper-check-icon {
  color: var(--navy);
}

/* --- Gender Badge & Picker --- */
.gender-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  margin-top: 0.25rem;
}
.gender-badge--boy {
  background: rgba(79,195,247,0.15);
  color: var(--pool-blue);
}
.gender-badge--girl {
  background: rgba(236,64,122,0.15);
  color: #ec407a;
}
.gender-pick {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.gender-btn {
  background: var(--white-05);
  border: 1px solid var(--white-15);
  color: var(--white-70);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.gender-btn:hover {
  background: var(--white-10);
  color: var(--white);
}

/* --- Buddy Section --- */
.buddy-section {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.buddy-intro {
  font-size: 0.85rem;
  color: var(--white-50);
  margin-bottom: 1rem;
  margin-top: 0;
}

.buddy-parent-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pool-blue);
  margin: 1rem 0 0.5rem;
}
.buddy-parent-label small {
  font-weight: 400;
  color: var(--white-50);
}

.buddy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buddy-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--white-15);
  border-radius: 26px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--pool-blue);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.buddy-options {
  margin-top: 1.25rem;
}

.buddy-options.hidden {
  display: none;
}

.buddy-type-btns {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.buddy-form {
  animation: pageFadeIn 0.3s ease;
}

.buddy-form.hidden {
  display: none;
}

.buddy-surcharge {
  background: var(--gold-glow);
  color: var(--gold);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.buddy-result {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.buddy-result.hidden {
  display: none;
}

.buddy-result.found {
  color: var(--green);
}

.buddy-result.not-found {
  color: var(--red);
}

/* --- Buddy Kid Selector --- */
.buddy-kid-field {
  margin-bottom: 1.15rem;
}
.buddy-kid-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.buddy-kid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.buddy-kid-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--white-15);
  border-radius: var(--radius);
  background: var(--white-05);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.buddy-kid-btn:hover {
  border-color: var(--pool-blue);
  background: rgba(79,195,247,0.08);
}
.buddy-kid-btn.selected {
  border-color: var(--pool-blue);
  background: rgba(79,195,247,0.18);
  color: var(--pool-blue);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(79,195,247,0.15);
}

/* --- Week Grid --- */
.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.week-card {
  background: var(--white-05);
  border: 2px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.week-card:hover:not(.full) {
  border-color: var(--pool-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,195,247,0.1);
}

.week-card.selected {
  border-color: var(--pool-blue);
  background: rgba(79,195,247,0.08);
  box-shadow: 0 0 20px var(--pool-blue-glow);
}

.week-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--pool-blue);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.week-card.full {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.week-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pool-blue);
  margin-bottom: 0.25rem;
}

.week-dates {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.week-days {
  font-size: 0.78rem;
  color: var(--white-50);
  margin-bottom: 0.5rem;
}

.week-spots-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.spots-boys {
  color: #64b5f6;
}

.spots-girls {
  color: #f48fb1;
}

.week-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spots-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spots-badge.open {
  background: var(--green-bg);
  color: var(--green);
}

.spots-badge.few {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.spots-badge.full {
  background: var(--red-bg);
  color: var(--red);
}

.week-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

/* --- Confirm Page --- */
.confirm-hero {
  text-align: center;
  padding: 7rem 2rem 2rem;
}

.confirm-hero h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.confirm-hero p {
  color: var(--white-50);
}

.confirm-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pool-blue);
  margin-bottom: 0.75rem;
}

.summary-card {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
}

.summary-label {
  color: var(--white-50);
}

.summary-value {
  font-weight: 600;
  color: var(--white);
}

.summary-divider {
  border-top: 1px solid var(--white-08);
  margin: 0.5rem 0;
}

/* --- Price Breakdown --- */
.price-breakdown {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--white-70);
}

.price-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--white-15);
}

/* --- Success Screen --- */
.success-screen {
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 550px;
  margin: 0 auto;
}

.success-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0% { transform: scale(0.3) translateY(40px); opacity: 0; }
  60% { transform: scale(1.15) translateY(-10px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.success-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 1rem;
}

.success-body {
  color: var(--white-70);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.success-details {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 2rem;
}

/* --- Utilities --- */
.hidden {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    margin-top: 6rem;
    padding: 2rem 1.5rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .buddy-type-btns {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-body {
    font-size: 0.92rem;
  }

  .hero-details {
    gap: 0.4rem;
  }

  .hero-detail {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-price-amount {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }

  .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .feature-desc {
    font-size: 0.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .bottom-cta {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .bottom-cta h2 {
    font-size: 1.4rem;
  }

  .form-card {
    margin-top: 5rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .btn-row {
    flex-direction: column-reverse;
  }

  .btn-row .btn {
    width: 100%;
  }

  .confirm-hero {
    padding-top: 5rem;
  }

  .success-screen {
    padding-top: 6rem;
  }

  .success-title {
    font-size: 1.8rem;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    position: static;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none !important;
    display: none;
  }

  .page {
    animation: none;
  }

  .success-emoji {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Print --- */
@media print {
  body { background: #fff; color: #000; }
  .bubbles-bg, .top-nav, .progress-bar, .btn-row, .btn { display: none !important; }
  .form-card { box-shadow: none; border: 1px solid #ccc; background: #fff; color: #000; }
  .summary-row, .price-row { color: #333; }
}

/* --- Info Modals (About / Contact) --- */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}

.info-modal {
  background: var(--navy-light);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  color: var(--white-70);
  line-height: 1.7;
  max-height: 85vh;
  overflow-y: auto;
}

.info-modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.info-modal p {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.info-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white-50);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.info-modal-close:hover {
  color: var(--white);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-icon {
  font-size: 1.2rem;
}

/* --- My Registrations --- */
.my-reg-card {
  background: var(--white-05);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.my-reg-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.my-reg-week-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pool-blue);
}

.my-reg-schedule {
  font-size: 0.78rem;
  color: var(--white-50);
}

.my-reg-camper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--white-05);
}

.my-reg-camper-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.my-reg-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-confirmed {
  background: var(--green-bg);
  color: var(--green);
}

.status-cancelled {
  background: var(--red-bg);
  color: var(--red);
}

.btn--sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
}

.btn--danger-outline {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--danger-outline:hover {
  background: var(--red-bg);
}

.empty-msg {
  text-align: center;
  padding: 2rem;
  color: var(--white-50);
  font-size: 0.9rem;
}

/* --- Success Page Buttons --- */
.success-btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* --- Password Reset Success --- */
.success-msg {
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--green-bg);
  border-radius: 6px;
}

/* --- Nav Account Link --- */
.nav-account-link {
  background: var(--pool-blue);
  color: var(--navy) !important;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.nav-account-link:hover {
  background: var(--white);
}
.nav-logout-link {
  color: var(--white-70) !important;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--white-20);
  border-radius: 20px;
  transition: all var(--transition);
}
.nav-logout-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
  border-color: var(--white-50);
}

/* --- Member Dashboard --- */
.dashboard-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
  position: relative;
}
.dashboard-header .btn--sm {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 1.5rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.dash-card {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.dash-card:hover {
  background: var(--white-15);
  border-color: var(--pool-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.dash-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.dash-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.dash-card p {
  font-size: 0.78rem;
  color: var(--white-50);
  line-height: 1.4;
}
.dash-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-badge--done {
  background: var(--green-bg);
  color: var(--green);
}
.dash-badge--pending {
  background: var(--yellow-bg);
  color: var(--yellow);
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-header .btn--sm {
    position: static;
    margin-top: 0.5rem;
  }
}

/* --- Waivers --- */
.waiver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.waiver-card.signed {
  border-color: rgba(76, 175, 80, 0.3);
}
.waiver-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.waiver-card-status {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.waiver-card-status.signed {
  background: var(--green-bg);
  color: var(--green);
}
.waiver-card-status.pending {
  background: var(--yellow-bg);
  color: var(--yellow);
}
.waiver-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.waiver-signed-info {
  font-size: 0.75rem;
  color: var(--green);
}
.waiver-unsigned-info {
  font-size: 0.75rem;
  color: var(--yellow);
}
.waiver-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.waiver-badge--signed {
  background: var(--green-bg);
  color: var(--green);
}

@media (max-width: 600px) {
  .waiver-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* --- Waiver Modal --- */
.waiver-modal-content {
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}
.waiver-text {
  background: var(--white-05);
  border: 1px solid var(--white-15);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--white-70);
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 1.25rem;
}
.waiver-sign-section {
  border-top: 1px solid var(--white-15);
  padding-top: 1rem;
}
.waiver-sign-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.signature-pad-wrapper {
  position: relative;
  border: 2px dashed var(--white-30);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.signature-pad-wrapper canvas {
  cursor: crosshair;
  display: block;
  border-radius: 6px;
}
.signature-pad-wrapper .btn--sm {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  color: var(--navy);
  border-color: var(--navy);
}

/* --- Documents --- */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: all var(--transition);
}
.doc-item:hover {
  background: var(--white-15);
  border-color: var(--pool-blue);
}
.doc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.doc-info {
  flex: 1;
}
.doc-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.doc-info p {
  font-size: 0.75rem;
  color: var(--white-50);
}
.doc-item .btn--sm {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .doc-item {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Spinner --- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  z-index: 101;
}

@media (max-width: 600px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 31, 53, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--white-15);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.4rem 0;
  }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--white-08);
  background: rgba(13, 31, 53, 0.6);
  margin-top: auto;
  padding: 2rem 1.5rem;
  flex-shrink: 0;
}

/* Hide footer when modal is open */
body.modal-open .site-footer {
  display: none;
}

body.modal-open {
  overflow: hidden;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo {
  height: 28px;
  width: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--white-50);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--pool-blue);
}
.footer-copy {
  color: var(--white-30);
  font-size: 0.72rem;
}
