/* ═══════════════════════════════════════════════════════
   KID INDIA SUMMER CAMP — STYLESHEET
   Theme: Vibrant Indian Cultural · Saffron + Green + Navy
   ═══════════════════════════════════════════════════════ */

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

:root {
  --saffron:      #E8621A;
  --saffron-light:#FFF3E0;
  --saffron-dark: #BF4E0F;
  --green:        #1A7A45;
  --green-light:  #E8F5EE;
  --green-dark:   #145E34;
  --navy:         #1C2E6B;
  --navy-light:   #EEF1FB;
  --cream:        #fdf6ee;
  --text:         #1A1A2E;
  --muted:        #6B7280;
  --border:       #E5D6C3;
  --white:        #ffffff;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --radius:       14px;
  --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1C2E6B 0%, #2D4A8A 40%, #7B2D0E 80%, #E8621A 100%);
  padding: 4rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-mandala {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-mandala::before,
.hero-mandala::after {
  content:'';
  position:absolute;
  border-radius:50%;
  border: 1px solid rgba(255,255,255,0.05);
  inset: 40px;
}
.hero-mandala::after { inset: 80px; }

.hero-ornament {
  position: absolute;
  width: 200px; height: 200px;
  opacity: 0.07;
  background: radial-gradient(circle, #FFD700, transparent 70%);
}
.top-left  { top:-40px; left:-40px; }
.top-right { top:-40px; right:-40px; }

.hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

.logo-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,200,100,0.5);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(232,98,26,0.4);
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 20px rgba(232,98,26,0.3); }
  to   { box-shadow: 0 0 50px rgba(255,165,0,0.6); }
}

.pre-title {
  color: rgba(255,220,150,0.9);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.main-title span {
  color: #FFD166;
  display: block;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-dates {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.05em;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2rem;
}
.hero-badges span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  backdrop-filter: blur(4px);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), #FF8C42);
  color: white;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(232,98,26,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,98,26,0.55); }

.hero-wave { position: absolute; bottom:0; left:0; right:0; line-height:0; }
.hero-wave svg { width:100%; height:60px; display:block; }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert {
  max-width: 860px; margin: 1.5rem auto;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
}
.alert-success { background: #D1FAE5; border-left: 4px solid #10B981; color: #065F46; }
.alert-error   { background: #FEE2E2; border-left: 4px solid #EF4444; color: #991B1B; }

/* ── INFO STRIP ─────────────────────────────────────────── */
.info-strip {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--cream);
}
.info-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  min-width: 180px;
  transition: transform 0.2s;
}
.info-card:hover { transform: translateY(-2px); }
.info-icon { font-size: 1.6rem; }
.info-card strong { display:block; font-size:0.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; }
.info-card div { font-size: 0.9rem; font-weight: 500; }

/* ── MAIN LAYOUT ────────────────────────────────────────── */
main { padding: 1rem 1rem 3rem; }

.form-wrapper {
  max-width: 860px; margin: 0 auto;
}

.form-heading {
  text-align: center; padding: 2rem 0 1.5rem;
}
.om-symbol {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 2.5rem;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(232,98,26,0.25);
}
.form-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.form-heading p { color: var(--muted); font-size: 0.9rem; }

/* ── FORM SECTIONS ──────────────────────────────────────── */
.form-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.form-section:hover { box-shadow: var(--shadow-lg); }

.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 0.95rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid;
}
.section-label.saffron { color: var(--saffron-dark); border-color: var(--saffron); }
.section-label.green   { color: var(--green-dark);   border-color: var(--green);   }
.section-label.navy    { color: var(--navy);          border-color: var(--navy);    }

.section-num {
  background: currentColor;
  color: white !important;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items:center; justify-content:center;
  font-weight: 700; flex-shrink: 0;
  filter: brightness(1.2);
}

.optional { font-weight: 400; font-size: 0.8rem; color: var(--muted); }

.sub-group {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin: 0.8rem 0 0.5rem;
}

/* ── FIELD GRIDS ────────────────────────────────────────── */
.field-grid { display: grid; gap: 1rem; }
.col2  { grid-template-columns: repeat(2, 1fr); }
.col3  { grid-template-columns: repeat(3, 1fr); }
.col4  { grid-template-columns: repeat(4, 1fr); }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--saffron);
  background: white;
  box-shadow: 0 0 0 3px rgba(232,98,26,0.12);
}
.field textarea { resize: vertical; min-height: 60px; }
.field select { cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: #B0B8C1; }

.field-note {
  font-size: 0.78rem; color: var(--muted);
  background: var(--saffron-light);
  border-left: 3px solid var(--saffron);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.8rem;
}

.req { color: var(--saffron); font-weight: 700; }

/* ── WAIVER SECTION ─────────────────────────────────────── */
.waiver-section {}
.waiver-scroll {
  max-height: 260px;
  overflow-y: auto;
  background: #F8F9FB;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #374151;
}
.waiver-scroll h4 {
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
  margin: 0.8rem 0 0.3rem;
}
.waiver-scroll h4:first-child { margin-top: 0; }
.waiver-scroll ul { padding-left: 1.2rem; }
.waiver-scroll ul li { margin-bottom: 0.25rem; }
.waiver-scroll::-webkit-scrollbar { width: 5px; }
.waiver-scroll::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.waiver-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── POLICY SECTION ─────────────────────────────────────── */
.policy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.policy-block {
  background: #F8F9FB;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.8rem;
}
.policy-block h4 {
  font-size: 0.83rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.6rem;
}
.policy-block ol { padding-left: 1.2rem; line-height: 1.7; color: #374151; }
.policy-block li { margin-bottom: 0.3rem; }

/* ── AGREEMENT SECTION ───────────────────────────────────── */
.agreement-section {}

.agreement-checks { display: flex; flex-direction: column; gap: 0.7rem; }

.check-label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.85rem; cursor: pointer;
  padding: 0.75rem 1rem;
  background: #F8F9FB;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.check-label:hover { border-color: var(--saffron); background: var(--saffron-light); }
.check-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--saffron); cursor: pointer;
}
.check-label input:checked + span { color: var(--text); }

/* ── SUBMIT ──────────────────────────────────────────────── */
.submit-area {
  text-align: center; padding: 2rem 0 1rem;
}
.submit-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--saffron) 0%, #FF8C42 50%, var(--saffron-dark) 100%);
  color: white;
  padding: 1rem 3rem;
  border: none; border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(232,98,26,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(232,98,26,0.5); }
.submit-btn:active { transform: translateY(0); }
.btn-icon { font-size: 1.2rem; }
.submit-note {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1.9;
}
.footer-mandala { font-size: 2rem; margin-bottom: 0.5rem; }
.footer-title { font-family:'Playfair Display',serif; color:white; font-size:1.2rem; font-weight:700; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .col3, .col4 { grid-template-columns: 1fr 1fr; }
  .col2 { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .form-section { padding: 1.2rem 1.1rem; }
  .main-title { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .col3, .col4 { grid-template-columns: 1fr; }
  .info-strip { flex-direction: column; align-items: center; }
}

/* ── VALIDATION STATES ────────────────────────────────────── */
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #EF4444;
  background: #FFF5F5;
}
.field .err-msg {
  font-size: 0.72rem; color: #EF4444;
  display: none;
}
.field input.invalid ~ .err-msg,
.field select.invalid ~ .err-msg { display: block; }

/* ── LOADING ─────────────────────────────────────────────── */
.submit-btn.loading .btn-text::after {
  content: '…';
  animation: dots 1.2s steps(3,end) infinite;
}
@keyframes dots {
  0%,20%  { content:'…'; }
  40%     { content:'.. '; }
  60%     { content:'.  '; }
  80%,100%{ content:'   '; }
}
