/* ============================================================
   उपासक संस्कार शिविर — style.css
   Spiritual-premium design system (FORM agent)
   Palette per SPEC. Fonts: Tiro Devanagari Hindi + Mukta.
   ============================================================ */

:root {
  --cream:   #FFF8EF;
  --pink:    #FBE9F1;
  --rose:    #F5D0E0;
  --maroon:  #7A1F3D;
  --magenta: #A21C7A;
  --purple:  #5B2A86;
  --saffron: #E8930C;
  --gold:    #C9962E;
  --ink:     #3A2230;
  --ok:      #1E7F4F;

  --gold-soft:  #E4C77E;
  --gold-pale:  #F6E8C8;
  --maroon-90:  rgba(122, 31, 61, .9);
  --shadow-soft: 0 10px 34px rgba(122, 31, 61, .10);
  --shadow-deep: 0 18px 60px rgba(122, 31, 61, .18);
  --radius: 18px;
  --radius-lg: 26px;

  --font-head: 'Tiro Devanagari Hindi', 'Mukta', serif;
  --font-body: 'Mukta', 'Tiro Devanagari Hindi', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, canvas { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--maroon); text-decoration: none; }
ul, ol { list-style: none; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  /* pink-marble gradient — CSS only */
  background-image:
    radial-gradient(1100px 620px at 12% -6%,  rgba(251, 233, 241, .95) 0%, rgba(251, 233, 241, 0) 60%),
    radial-gradient(900px 560px  at 96% 8%,   rgba(245, 208, 224, .75) 0%, rgba(245, 208, 224, 0) 62%),
    radial-gradient(1000px 700px at 50% 46%,  rgba(255, 248, 239, .9)  0%, rgba(255, 248, 239, 0) 70%),
    radial-gradient(760px 520px  at 6% 78%,   rgba(246, 232, 200, .55) 0%, rgba(246, 232, 200, 0) 65%),
    radial-gradient(820px 560px  at 92% 88%,  rgba(251, 233, 241, .8)  0%, rgba(251, 233, 241, 0) 60%),
    linear-gradient(160deg, #FFF8EF 0%, #FBE9F1 38%, #FFF4EA 68%, #F9E4EF 100%);
  background-attachment: fixed;
}

.page { position: relative; z-index: 2; }

::selection { background: var(--rose); color: var(--maroon); }

/* ============================================================
   FLOATING PARTICLES — petals & diya glows
   ============================================================ */
.particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.petal {
  position: absolute; top: -6vh;
  width: 14px; height: 20px;
  background: linear-gradient(160deg, var(--rose) 10%, #EDA8C6 60%, var(--magenta) 140%);
  border-radius: 80% 4px 60% 60% / 90% 4px 70% 70%;
  opacity: .5;
  animation: petalFall linear infinite;
  filter: blur(.2px);
}
.petal.p1 { left: 6%;  animation-duration: 21s; animation-delay: 0s;   transform: scale(.8); }
.petal.p2 { left: 17%; animation-duration: 27s; animation-delay: 4s;   transform: scale(1.05); }
.petal.p3 { left: 29%; animation-duration: 24s; animation-delay: 9s;   transform: scale(.7); }
.petal.p4 { left: 41%; animation-duration: 30s; animation-delay: 2s;   transform: scale(.95); }
.petal.p5 { left: 53%; animation-duration: 22s; animation-delay: 12s;  transform: scale(.85); }
.petal.p6 { left: 66%; animation-duration: 28s; animation-delay: 6s;   transform: scale(1.1); }
.petal.p7 { left: 76%; animation-duration: 25s; animation-delay: 15s;  transform: scale(.75); }
.petal.p8 { left: 87%; animation-duration: 23s; animation-delay: 1s;   transform: scale(.9); }
.petal.p9 { left: 95%; animation-duration: 29s; animation-delay: 10s;  transform: scale(.65); }
@keyframes petalFall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  25%  { transform: translate3d(-3vw, 24vh, 0) rotate(95deg); }
  50%  { transform: translate3d(2.5vw, 52vh, 0) rotate(190deg); }
  75%  { transform: translate3d(-2vw, 80vh, 0) rotate(280deg); }
  100% { transform: translate3d(1.5vw, 112vh, 0) rotate(380deg); }
}
.diya {
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #FFE9B0 0%, var(--saffron) 55%, rgba(232, 147, 12, 0) 78%);
  box-shadow: 0 0 18px 7px rgba(232, 147, 12, .28);
  opacity: .55;
  animation: diyaFloat ease-in-out infinite alternate;
}
.diya.d1 { left: 10%; top: 68%; animation-duration: 7s; }
.diya.d2 { left: 84%; top: 34%; animation-duration: 9s; animation-delay: 2s; }
.diya.d3 { left: 58%; top: 82%; animation-duration: 8s; animation-delay: 4s; }
@keyframes diyaFloat {
  0%   { transform: translateY(0) scale(1);      opacity: .38; }
  100% { transform: translateY(-42px) scale(1.25); opacity: .68; }
}

/* ============================================================
   1. ORNAMENT TOP STRIP
   ============================================================ */
.topstrip {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--magenta) 50%, var(--maroon) 100%);
  color: var(--gold-pale);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 14px rgba(122, 31, 61, .35);
  position: relative;
}
.topstrip::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
  opacity: .5;
}
.topstrip .mantra {
  font-family: var(--font-head);
  font-size: clamp(.86rem, 2.5vw, 1.08rem);
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.chip {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 14px; border-radius: 100px;
  background: rgba(255, 248, 239, .14);
  border: 1px solid var(--gold-soft);
  color: var(--gold-pale);
  white-space: nowrap;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 20px clamp(48px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "ॐ";
  position: absolute; right: -4%; top: 4%;
  font-family: var(--font-head);
  font-size: clamp(220px, 34vw, 480px);
  color: var(--maroon);
  opacity: .045;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-inner { max-width: 880px; margin: 0 auto; position: relative; }

.hero-om {
  width: clamp(64px, 9vw, 92px); height: auto;
  margin: 0 auto 18px;
  color: var(--gold);
  animation: omBreathe 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(201, 150, 46, .35));
}
@keyframes omBreathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 4px 10px rgba(201, 150, 46, .25)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 6px 18px rgba(201, 150, 46, .5)); }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(.92rem, 2.4vw, 1.1rem);
  color: var(--purple);
  background: linear-gradient(120deg, rgba(255, 255, 255, .8), rgba(251, 233, 241, .8));
  border: 1px solid var(--rose);
  border-radius: 100px;
  padding: 6px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  letter-spacing: .05em;
}
.hero-epithet {
  font-family: var(--font-head);
  font-size: clamp(.94rem, 2.4vw, 1.16rem);
  color: var(--magenta);
  max-width: 720px;
  margin: 0 auto 10px;
  line-height: 1.85;
}
.hero-sant {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.12rem, 3.2vw, 1.6rem);
  color: var(--maroon);
  margin: 6px auto 4px;
  max-width: 760px;
  line-height: 1.7;
}
.hero-first {
  font-size: clamp(.95rem, 2.4vw, 1.12rem);
  color: var(--purple);
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.35rem, 8vw, 4.6rem);
  line-height: 1.25;
  margin: 6px 0 20px;
  background: linear-gradient(120deg, var(--maroon) 15%, var(--magenta) 48%, var(--purple) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 60px rgba(162, 28, 122, .22);
}

.gold-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 14px auto; max-width: 460px;
}
.gr-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.lotus { width: 44px; height: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(201, 150, 46, .4)); }
.lotus-sm { width: 36px; }

.hero-pills { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 16px; }
.pill {
  display: inline-block;
  padding: 9px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: clamp(.9rem, 2.4vw, 1.05rem);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--maroon);
}
.pill-date { border-width: 2px; font-weight: 700; }
.pill-place { color: var(--ink); }

.deadline-chip {
  display: inline-block;
  margin: 4px 0 26px;
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: clamp(.86rem, 2.3vw, 1rem);
  color: #fff;
  background: linear-gradient(120deg, var(--saffron), #F7B24A);
  box-shadow: 0 8px 24px rgba(232, 147, 12, .4);
  animation: deadlinePulse 2.6s ease-in-out infinite;
}
@keyframes deadlinePulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(232, 147, 12, .4); transform: translateY(0); }
  50%      { box-shadow: 0 10px 32px rgba(232, 147, 12, .62); transform: translateY(-2px); }
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 34px;
  border-radius: 100px;
  border: none; cursor: pointer;
  font-weight: 700; font-size: 1.02rem;
  font-family: var(--font-body);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, opacity .22s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--maroon), var(--magenta) 60%, var(--purple));
  background-size: 200% 200%;
  box-shadow: 0 12px 30px rgba(122, 31, 61, .38);
  animation: ctaShift 6s ease infinite;
  z-index: 0;
}
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* animated gradient border ring */
.btn-primary::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 100px;
  background: conic-gradient(from 0deg, var(--gold), var(--rose), var(--saffron), var(--gold-soft), var(--gold));
  z-index: -1;
  animation: ringSpin 4s linear infinite;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--maroon), var(--magenta) 60%, var(--purple));
  background-size: 200% 200%;
  animation: ctaShift 6s ease infinite;
  z-index: -1;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.btn-primary:hover:not([disabled]) { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(122, 31, 61, .5); }
.btn-primary[disabled]::before { animation-play-state: paused; }

.btn-ghost {
  color: var(--maroon);
  background: rgba(255, 255, 255, .7);
  border: 2px solid var(--maroon);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-tiny {
  padding: 7px 20px; font-size: .88rem;
  background: var(--pink); color: var(--maroon);
  border: 1px solid var(--rose);
}
.btn-tiny:hover { background: var(--rose); }
.btn-arrow { font-weight: 800; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   3. COUNTDOWN
   ============================================================ */
.countdown-wrap {
  text-align: center;
  padding: 8px 20px 30px;
}
.countdown-label {
  font-family: var(--font-head);
  color: var(--purple);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  margin-bottom: 14px;
  letter-spacing: .06em;
}
.countdown {
  display: flex; justify-content: center; align-items: stretch; gap: clamp(6px, 1.6vw, 14px);
  flex-wrap: wrap;
}
.cd-box {
  min-width: clamp(70px, 17vw, 108px);
  padding: 14px 10px 12px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(251, 233, 241, .75));
  border: 1px solid rgba(201, 150, 46, .55);
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
  overflow: hidden;
}
.cd-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--gold));
}
.cd-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.cd-cap { font-size: .82rem; font-weight: 600; color: var(--magenta); letter-spacing: .05em; }
.cd-sep {
  align-self: center;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--gold);
  animation: sepBlink 1s steps(2) infinite;
}
@keyframes sepBlink { 50% { opacity: .25; } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(48px, 7vw, 90px) 20px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 52px); color: var(--gold); }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4.6vw, 2.4rem);
  color: var(--maroon);
  margin-top: 10px;
  line-height: 1.45;
}
.section-head .lotus-sm { margin: 0 auto; }
.section-sub { color: var(--magenta); font-size: .98rem; margin-top: 8px; font-weight: 500; }

/* ============================================================
   4. RULES
   ============================================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  counter-reset: rule;
}
.rule-card {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(245, 208, 224, .9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.rule-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--magenta));
  opacity: 0; transition: opacity .3s;
}
.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
  border-color: var(--gold-soft);
}
.rule-card:hover::before { opacity: 1; }
.rule-no {
  flex: none;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--magenta));
  box-shadow: 0 6px 14px rgba(122, 31, 61, .35), inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.rule-card p { font-size: .98rem; line-height: 1.7; padding-top: 5px; }

/* ============================================================
   5. दैनिक चर्या TIMELINE
   ============================================================ */
.charya-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: start;
}
.charya-group {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(201, 150, 46, .4);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 26px 24px 20px;
  position: relative;
  overflow: hidden;
}
.charya-group::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--magenta));
}
.charya-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--maroon);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gold-soft);
}
.charya-icon { font-size: 1.25rem; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: "";
  position: absolute; left: 3px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--rose));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 7px 0 7px 14px;
}
.timeline li::before {
  content: "";
  position: absolute; left: -19px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--gold));
  box-shadow: 0 0 0 3px rgba(201, 150, 46, .22);
}
.tl-time {
  display: inline-block;
  font-weight: 800;
  font-size: .82rem;
  color: var(--magenta);
  background: var(--pink);
  border: 1px solid var(--rose);
  padding: 1px 10px;
  border-radius: 100px;
  margin-bottom: 3px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tl-text { display: block; font-size: .95rem; line-height: 1.6; }

/* ============================================================
   6. WIZARD
   ============================================================ */
.register { scroll-margin-top: 24px; }
.wizard-card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(201, 150, 46, .5);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(24px, 4.5vw, 46px);
  position: relative;
  overflow: hidden;
}
.wizard-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--magenta), var(--purple), var(--gold));
  background-size: 300% 100%;
  animation: wizTop 8s linear infinite;
}
@keyframes wizTop { to { background-position: 300% 0; } }

/* progress */
.wiz-progress { margin-bottom: 34px; }
.wiz-bar {
  height: 6px; border-radius: 100px;
  background: var(--pink);
  overflow: hidden;
  margin: 0 26px 14px;
}
.wiz-bar-fill {
  display: block; height: 100%; width: 16%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--magenta));
  transition: width .55s cubic-bezier(.6, 0, .2, 1);
}
.wiz-steps { display: flex; justify-content: space-between; }
.wiz-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; text-align: center;
}
.wiz-dot {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--magenta);
  background: #fff;
  border: 2px solid var(--rose);
  transition: all .4s ease;
}
.wiz-cap { font-size: .82rem; font-weight: 600; color: var(--ink); opacity: .65; transition: opacity .3s; }
.wiz-step.is-active .wiz-dot {
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--magenta));
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(162, 28, 122, .4);
  transform: scale(1.1);
}
.wiz-step.is-active .wiz-cap { opacity: 1; color: var(--maroon); font-weight: 700; }
.wiz-step.is-done .wiz-dot {
  color: #fff; background: var(--ok); border-color: var(--ok);
}

/* panes */
.wiz-pane { display: none; }
.wiz-pane.is-active { display: block; animation: paneIn .45s ease both; }
@keyframes paneIn {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wiz-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 30px; flex-wrap: wrap;
}

/* honeypot — visually removed */
.hp-field {
  position: absolute !important;
  left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* step 1 recap */
.recap {
  background: linear-gradient(150deg, var(--pink), rgba(255, 255, 255, .7));
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.recap-title {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.recap-list li {
  position: relative;
  padding: 4px 0 4px 26px;
  font-size: .95rem;
}
.recap-list li::before {
  content: "❀";
  position: absolute; left: 2px; top: 4px;
  color: var(--gold);
  font-size: .9rem;
}
.recap-note { margin-top: 10px; font-size: .88rem; color: var(--magenta); }
.recap-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--purple); font-weight: 600; }

/* checkbox cards */
.check-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--rose);
  background: rgba(255, 255, 255, .75);
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
  margin-bottom: 14px;
  user-select: none;
}
.check-card:hover { border-color: var(--gold); }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: none;
  width: 26px; height: 26px; margin-top: 2px;
  border-radius: 8px;
  border: 2px solid var(--magenta);
  background: #fff;
  position: relative;
  transition: all .25s ease;
}
.check-box::after {
  content: "";
  position: absolute; left: 7px; top: 2px;
  width: 7px; height: 13px;
  border: solid #fff; border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .22s cubic-bezier(.5, 1.6, .5, 1);
}
.check-card input:checked ~ .check-box {
  background: linear-gradient(135deg, var(--ok), #2AA36A);
  border-color: var(--ok);
  box-shadow: 0 4px 12px rgba(30, 127, 79, .35);
}
.check-card input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }
.check-card input:checked ~ .check-text { color: var(--maroon); }
.check-card input:focus-visible ~ .check-box { outline: 3px solid var(--saffron); outline-offset: 2px; }
.check-text { font-size: .98rem; line-height: 1.7; font-weight: 500; }
.check-card.is-error { border-color: #C43B3B; background: #FFF3F3; }

/* ---------- Step 2 form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.field { position: relative; }
.field-full { grid-column: 1 / -1; }

.field input,
.field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border-radius: 14px;
  border: 2px solid var(--rose);
  background: rgba(255, 255, 255, .85);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(162, 28, 122, .12);
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* floating labels */
.field label {
  position: absolute; left: 17px; top: 17px;
  font-size: 1rem; color: #8a6577;
  pointer-events: none;
  transition: all .2s ease;
  background: transparent;
  line-height: 1.3;
  max-width: calc(100% - 30px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--magenta);
  letter-spacing: .03em;
}
.field-label-static {
  display: block;
  font-size: .88rem; font-weight: 700;
  color: var(--magenta);
  margin-bottom: 10px;
  letter-spacing: .03em;
}
.field-help { font-size: .8rem; color: var(--purple); margin-top: 5px; opacity: .85; }
.field-err {
  font-size: .82rem; font-weight: 600;
  color: #C43B3B;
  margin-top: 5px;
  min-height: 0;
  display: none;
  animation: errIn .25s ease both;
}
.field-err.is-visible { display: block; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.field.is-error input, .field.is-error textarea { border-color: #C43B3B; background: #FFF6F6; }

/* radio pills */
.radio-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 34px;
  border-radius: 100px;
  border: 2px solid var(--rose);
  background: rgba(255, 255, 255, .85);
  font-weight: 600;
  transition: all .25s ease;
}
.radio-pill span::before {
  content: "";
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--rose);
  transition: all .25s;
}
.radio-pill:hover span { border-color: var(--gold); }
.radio-pill input:checked ~ span {
  color: #fff;
  background: linear-gradient(120deg, var(--maroon), var(--magenta));
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(122, 31, 61, .35);
}
.radio-pill input:checked ~ span::before {
  background: var(--gold-pale);
  border-color: #fff;
  box-shadow: inset 0 0 0 2px var(--magenta);
}
.radio-pill input:focus-visible ~ span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.gender-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .88rem;
  color: #7a4d10;
  background: var(--gold-pale);
  border-left: 4px solid var(--saffron);
  animation: errIn .3s ease both;
}

/* ---------- Step 3 ---------- */
.pledge-card {
  position: relative;
  text-align: center;
  padding: 34px 26px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(246, 232, 200, .8), rgba(246, 232, 200, 0) 70%),
    linear-gradient(160deg, #FFFDF8, var(--pink));
  border: 2px solid var(--gold-soft);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .6), var(--shadow-soft);
  margin-bottom: 20px;
  overflow: hidden;
}
.pledge-om {
  width: 54px; margin: 0 auto 6px;
  color: var(--gold);
  opacity: .9;
}
.pledge-heading {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--maroon);
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.pledge-text {
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 2.8vw, 1.22rem);
  line-height: 2;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
}
.pledge-name {
  color: var(--magenta);
  border-bottom: 2px dotted var(--gold);
  padding: 0 6px;
}

/* signature */
.sig-block { margin: 26px 0 8px; }
.sig-label {
  font-size: .9rem; font-weight: 700; color: var(--magenta);
  margin-bottom: 10px; letter-spacing: .03em;
}
.sig-frame {
  position: relative;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)),
    repeating-linear-gradient(45deg, var(--gold-pale) 0 8px, transparent 8px 16px);
  overflow: hidden;
  margin-bottom: 12px;
}
#sigCanvas {
  width: 100%; height: 180px;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.sig-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #b18aa0;
  pointer-events: none;
  transition: opacity .3s;
}
.sig-frame.has-ink .sig-hint { opacity: 0; }

.form-error {
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #FFF1F1;
  border: 1px solid #E8B4B4;
  border-left: 5px solid #C43B3B;
  color: #A32626;
  font-weight: 600;
  font-size: .95rem;
}

/* submit button spinner */
.btn-submit { min-width: 220px; }
.btn-spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading .btn-label { opacity: .75; }
.btn-submit.is-loading { pointer-events: none; }

/* ============================================================
   7. SUCCESS VIEW
   ============================================================ */
.success-view { text-align: center; padding: 20px 6px 10px; animation: paneIn .5s ease both; }
.success-check { width: 96px; margin: 0 auto 18px; }
.success-check svg { width: 100%; }
.sc-circle {
  stroke: var(--ok); stroke-width: 3;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: drawCircle .8s ease-out forwards;
}
.sc-tick {
  stroke: var(--ok); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: drawTick .5s .6s ease-out forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick   { to { stroke-dashoffset: 0; } }

.success-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--ok);
  margin-bottom: 20px;
}
.success-regno-label { font-size: .95rem; color: var(--magenta); font-weight: 600; }
.success-regno {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 9vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--maroon);
  background: linear-gradient(150deg, var(--gold-pale), var(--pink));
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  display: inline-block;
  padding: 10px 40px;
  margin: 10px 0 16px;
  box-shadow: var(--shadow-soft);
}
.success-keep { font-weight: 600; color: var(--ink); }
.success-mail { margin-top: 8px; color: var(--ok); font-weight: 600; }
.success-actions {
  margin-top: 28px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 22px 34px;
  background: linear-gradient(180deg, rgba(122, 31, 61, 0) 0%, rgba(122, 31, 61, .06) 30%, rgba(122, 31, 61, .12) 100%);
  color: var(--ink);
}
.footer .gold-rule { margin-bottom: 26px; }
.footer-line { font-size: .95rem; line-height: 1.9; max-width: 760px; margin: 0 auto 6px; }
.footer-line strong { color: var(--maroon); font-weight: 800; }
.footer-contact a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-admin { margin-top: 22px; }
.footer-admin a {
  font-size: .78rem;
  color: rgba(58, 34, 48, .55);
  border: 1px solid rgba(58, 34, 48, .2);
  padding: 4px 16px;
  border-radius: 100px;
  transition: all .25s;
}
.footer-admin a:hover { color: var(--maroon); border-color: var(--maroon); background: rgba(255, 255, 255, .6); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 140%);
  z-index: 60;
  max-width: min(92vw, 480px);
  padding: 15px 26px;
  border-radius: 14px;
  background: var(--maroon);
  color: #FFF2E6;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 16px 44px rgba(58, 34, 48, .4);
  border: 1px solid var(--gold);
  transition: transform .45s cubic-bezier(.5, 1.4, .5, 1);
  text-align: center;
  pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); }
.toast.is-ok { background: var(--ok); border-color: #6FCF9B; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.35, .9, .35, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
/* stagger inside grids */
.rules-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.rules-grid .reveal:nth-child(3n)   { transition-delay: .16s; }
.charya-groups .reveal:nth-child(2) { transition-delay: .1s; }
.charya-groups .reveal:nth-child(3) { transition-delay: .2s; }
/* no-JS fallback */
.no-js .reveal, .no-observer .reveal { opacity: 1; transform: none; }

/* ============================================================
   PRINT SLIP
   ============================================================ */
.print-slip { display: none; }

@media print {
  body { background: #fff !important; }
  body.printing-slip .page,
  body.printing-slip .particles,
  body.printing-slip .toast { display: none !important; }
  body.printing-slip .print-slip {
    display: block;
    font-family: var(--font-body);
    color: #000;
    padding: 24pt;
  }
  .slip-border {
    border: 2.5pt double var(--maroon);
    border-radius: 8pt;
    padding: 26pt 30pt;
    max-width: 460pt;
    margin: 0 auto;
    text-align: center;
  }
  .slip-om { font-family: var(--font-head); font-size: 22pt; color: var(--gold); }
  .slip-title { font-family: var(--font-head); font-size: 21pt; color: var(--maroon); margin-top: 4pt; }
  .slip-sub { font-size: 9.5pt; color: #444; margin-top: 4pt; }
  .slip-hr { border: none; border-top: 1pt dashed var(--gold); margin: 12pt 0; }
  .slip-table { width: 100%; border-collapse: collapse; text-align: right; }
  .slip-table td { padding: 6pt 8pt; font-size: 11pt; border-bottom: .5pt solid #ddd; text-align: center; vertical-align: top; }
  .slip-table td:first-child { font-weight: 700; color: var(--maroon); white-space: nowrap; width: 32%; }
  .slip-regno { font-family: var(--font-head); font-size: 17pt; font-weight: 700; letter-spacing: .06em; color: var(--maroon); }
  .slip-note { font-weight: 700; font-size: 11pt; margin-top: 4pt; }
  .slip-footer { font-size: 8.5pt; color: #555; margin-top: 10pt; line-height: 1.6; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .wiz-cap { font-size: .72rem; }
  .wiz-bar { margin: 0 18px 12px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .wiz-nav { flex-direction: row; }
  .wiz-nav .btn { flex: 1; min-width: 0; padding-left: 18px; padding-right: 18px; }
  .topstrip { gap: 8px; padding: 8px 10px; }
  .chip { font-size: .66rem; padding: 2px 10px; }
}
@media (max-width: 420px) {
  .cd-sep { display: none; }
  .countdown { gap: 8px; }
  .cd-box { min-width: calc(50% - 8px); }
  .rule-card { padding: 16px; gap: 12px; }
  .success-regno { padding: 8px 20px; }
  .btn { padding: 12px 22px; font-size: .96rem; }
}
@media (min-width: 1440px) {
  .section { max-width: 1240px; }
}

/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .particles { display: none; }
  .reveal { opacity: 1; transform: none; }
}
