/* ==========================================================================
   Siddh Namaskar Mahamantra Kumbh - Sacred Theme Stylesheet
   Inspired by Jinagna Yuva Trust Poster (Gold, Cream, Royal Purple-Maroon)
   ========================================================================== */

:root {
  --bg-ivory: #fff8eb;
  --bg-cream: #fdf1d6;
  --gold-bright: #ffd86b;
  --gold-primary: #d99b1e;
  --gold-deep: #9c6709;
  --maroon-royal: #4b123b;
  --maroon-deep: #2a0822;
  --purple-plum: #661c50;
  --crimson: #a81c24;
  --emerald-dark: #144637;
  --text-dark: #33131d;
  --text-muted: #6c4a4e;
  --card-border: rgba(217, 155, 30, 0.45);
  --shadow-gold: 0 18px 50px rgba(75, 18, 59, 0.16), 0 4px 18px rgba(217, 155, 30, 0.22);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Noto Sans Gujarati', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: radial-gradient(circle at 50% 15%, #fffdf7 0%, var(--bg-ivory) 42%, #f9e4b7 100%);
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
  height: 100vh;
}

/* ==========================================================================
   3D Intro Animation Stage (Full Screen, Zero Skip Option)
   ========================================================================== */
#intro-stage {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 50% 45%, #fffef9 0%, #fff3d4 38%, #f8d88e 74%, #e6b35a 100%);
  overflow: hidden;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.15s;
}

#intro-stage.intro-finished {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

#kumbh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Sacred warm golden ambient aura matching poster background */
.intro-aura-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 250, 224, 0.35) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(162, 92, 14, 0.24) 100%);
}

/* Top Banner on 3D Stage (appears once, then fades away) */
.intro-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 16px 26px 14px;
  margin: 16px auto 0;
  max-width: min(92vw, 760px);
  border-radius: 22px;
  background: rgba(255, 250, 236, 0.86);
  border: 1.5px solid rgba(217, 155, 30, 0.55);
  box-shadow: 0 12px 34px rgba(102, 28, 80, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: none;
  animation: fadeDownIn 0.85s ease forwards;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.intro-header.fade-away {
  opacity: 0;
  transform: translateY(-20px) scale(0.97);
}

.intro-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4b123b, #7a1d54);
  border: 1px solid rgba(255, 216, 107, 0.7);
  color: #ffe9a8;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(75, 18, 59, 0.22);
}

.intro-main-title {
  margin: 10px 0 4px;
  font-size: clamp(1.25rem, 3vw, 2.05rem);
  font-weight: 800;
  color: #4b123b;
}

.intro-subtitle {
  margin: 0;
  color: #7c243b;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  font-weight: 600;
}

/* 3D-Projected Navkar Mantra Layer */
#mantra-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  perspective: 1100px;
}

/* Active Emerging Mantra Card (launches from Kumbh mouth in 3D!) */
.mantra-emergent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.15);
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #541240 0%, #8a1936 100%);
  border: 2.5px solid #ffd86b;
  box-shadow:
    0 0 32px rgba(255, 200, 72, 0.85),
    0 14px 34px rgba(75, 18, 59, 0.38);
  color: #fff8e1;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.2vw, 2.2rem);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  will-change: transform, opacity, left, top;
  transition:
    left 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}

.mantra-emergent .mantra-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe285, #d99b1e);
  color: #4b123b;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mantra-emergent.is-rising {
  opacity: 1;
}

.mantra-emergent.is-docked {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
}

/* Sacred Docked Mantra Mandala Panel (Left & Right Pillars on Desktop, Top Grid on Mobile) */
.mantra-mandala-list {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.mantra-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 13, 48, 0.88), rgba(92, 23, 70, 0.82));
  border: 1px solid rgba(255, 216, 107, 0.58);
  backdrop-filter: blur(8px);
  color: #fff6dc;
  font-size: clamp(0.86rem, 1.35vw, 1.08rem);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(15, 2, 14, 0.48), 0 0 18px rgba(255, 200, 72, 0.2);
  opacity: 0;
  transform: translateY(18px) scale(0.86);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  white-space: nowrap;
}

.mantra-pill.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mantra-pill.all-glow {
  border-color: #ffe694;
  box-shadow: 0 0 28px rgba(255, 214, 102, 0.68), 0 8px 26px rgba(15, 2, 14, 0.5);
}

.mantra-pill-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd86b, #d99b1e);
  color: #3a0b2e;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Desktop radial/pillar placement around the central 3D Kumbh */
@media (min-width: 960px) {
  .mantra-pill[data-idx="0"] { left: 4%; top: 26%; }
  .mantra-pill[data-idx="1"] { left: 3%; top: 39%; }
  .mantra-pill[data-idx="2"] { left: 3%; top: 52%; }
  .mantra-pill[data-idx="3"] { left: 4%; top: 65%; }
  .mantra-pill[data-idx="4"] { left: 7%; top: 78%; }

  .mantra-pill[data-idx="5"] { right: 4%; top: 27%; }
  .mantra-pill[data-idx="6"] { right: 3%; top: 43%; }
  .mantra-pill[data-idx="7"] { right: 3%; top: 59%; }
  .mantra-pill[data-idx="8"] { right: 6%; top: 75%; }
}

/* Tablet / Mobile compact arched layout at top after intro header fades away */
@media (max-width: 959px) {
  .intro-header {
    padding: 12px 14px 10px;
    margin-top: 10px;
  }

  .mantra-mandala-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 7px;
    padding: 22px 12px 0;
  }

  .mantra-pill {
    position: static;
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .mantra-pill-idx {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}

/* Final Blessing Banner inside 3D stage */
.blessing-finale {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%) scale(0.92);
  z-index: 6;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 18, 59, 0.95), rgba(168, 28, 36, 0.95), rgba(75, 18, 59, 0.95));
  border: 2px solid #ffd86b;
  color: #fff6d1;
  font-weight: 700;
  font-size: clamp(0.88rem, 2vw, 1.15rem);
  text-align: center;
  box-shadow: 0 0 36px rgba(217, 155, 30, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  white-space: nowrap;
}

.blessing-finale.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   Registration Form Section (Locked & Hidden until 3D Animation Completes)
   ========================================================================== */
#registration-section {
  position: relative;
  min-height: 100vh;
  padding: 28px 16px 56px;
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

#registration-section.unlocked {
  display: block;
}

#registration-section.visible {
  opacity: 1;
  transform: none;
}

/* Subtle decorative temple-gold radial backdrop */
#registration-section::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 206, 86, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(255, 206, 86, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(102, 28, 80, 0.09) 0%, transparent 50%);
  z-index: 0;
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

/* Royal Poster-inspired Header Banner (Dark Maroon-Purple & Gold Theme, Top-Left Logo) */
.hero-banner {
  text-align: center;
  padding: 28px 24px 24px 124px;
  border-radius: 24px;
  background: linear-gradient(135deg, #430f35 0%, #6b1a50 52%, #3a0c2e 100%);
  border: 2px solid #f2c357;
  box-shadow: 0 18px 46px rgba(67, 15, 53, 0.28), inset 0 0 40px rgba(255, 214, 102, 0.12);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: #fff6de;
  min-height: 120px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f2c357, #fff1b8, #d99b1e, #fff1b8, #f2c357);
}

.hero-logo-corner {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffd86b;
  padding: 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-header-copy {
  text-align: center;
}

.trust-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(255, 248, 224, 0.16);
  color: #ffe8a3;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 216, 107, 0.65);
  margin-bottom: 8px;
}

.hero-title {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 800;
  color: #fff8de;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.3;
}

.hero-ribbon {
  display: inline-block;
  margin: 6px auto 12px;
  padding: 8px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #d89515, #ffe284, #d89515);
  color: #3b0b28;
  font-weight: 800;
  font-size: clamp(1rem, 2.3vw, 1.32rem);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-subline {
  margin: 4px auto 0;
  max-width: 720px;
  font-size: 0.94rem;
  color: #fde8be;
  line-height: 1.65;
}

/* Form Card */
.form-card {
  background: rgba(255, 253, 248, 0.97);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--shadow-gold);
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(217, 155, 30, 0.25);
}

.form-section-title h2 {
  margin: 0;
  font-size: 1.32rem;
  color: var(--maroon-royal);
}

.form-section-title span {
  font-size: 0.85rem;
  color: var(--crimson);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maroon-royal);
}

.required-star {
  color: var(--crimson);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(156, 103, 9, 0.35);
  background: #fffdf8;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--maroon-royal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 155, 30, 0.22);
}

.form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.btn-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--maroon-royal) 0%, var(--crimson) 100%);
  color: #fff5d6;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(102, 28, 80, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(102, 28, 80, 0.36);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: #fff7e2;
  color: var(--maroon-royal);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ffefc4;
}

/* Alerts & Success Receipt */
.alert-error {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1.5px solid #fda4af;
  color: #9f1239;
  font-size: 0.92rem;
}

.alert-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.receipt-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff4d9 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.receipt-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #144637, #1f6f57);
  color: #ffe89e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 22px rgba(20, 70, 55, 0.3);
}

.receipt-details {
  max-width: 560px;
  margin: 20px auto;
  text-align: left;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(217, 155, 30, 0.35);
  padding: 16px 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(217, 155, 30, 0.3);
  font-size: 0.92rem;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row strong {
  color: var(--maroon-royal);
  text-align: right;
}

.reg-id-badge {
  display: inline-block;
  margin: 10px auto 6px;
  padding: 10px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4b123b, #7a1c4f);
  border: 2px solid #ffd86b;
  color: #ffe89e;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 22px rgba(75, 18, 59, 0.25);
}

.receipt-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* Photo Upload & Pincode Controls */
.photo-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed rgba(156, 103, 9, 0.45);
  background: #fffaf0;
}

.photo-preview-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: #fff3d6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon-royal);
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-input-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pincode-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pincode-input-row input {
  flex: 1;
}

.btn-area-lookup {
  appearance: none;
  border: 1.5px solid var(--gold-primary);
  background: linear-gradient(135deg, #fff4d2, #ffe39b);
  color: var(--maroon-royal);
  padding: 0 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-area-lookup:hover {
  background: linear-gradient(135deg, #ffe7a8, #ffd26b);
  transform: translateY(-1px);
}

/* Modals (Pincode Area Popup & Registration Success Popup) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(34, 6, 26, 0.64);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #fffdf8;
  border: 2px solid var(--gold-primary);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(24, 4, 18, 0.42);
  animation: fadeDownIn 0.28s ease;
}

.modal-success {
  text-align: center;
  max-width: 420px;
  padding: 22px 20px;
}

.modal-compact .receipt-icon-sm {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-popup-title {
  margin: 0 0 6px;
  color: var(--maroon-royal);
  font-size: 1.16rem;
}

.reg-id-badge-sm {
  margin: 6px auto 12px;
  padding: 7px 20px;
  font-size: 1.18rem;
}

.receipt-details-compact {
  margin: 0 0 16px;
  padding: 10px 14px;
}

.receipt-details-compact .receipt-row {
  padding: 6px 0;
  font-size: 0.86rem;
}

.form-actions-center {
  justify-content: center;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--maroon-royal);
}

.modal-close-btn {
  appearance: none;
  border: 1px solid rgba(156, 103, 9, 0.35);
  background: #fff5dc;
  color: var(--maroon-royal);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

.modal-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.area-list-container {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.area-option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(217, 155, 30, 0.4);
  background: #fffaf0;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.area-option-btn:hover {
  background: #ffefc4;
  border-color: var(--maroon-royal);
}

.area-option-name {
  font-weight: 800;
  color: var(--maroon-royal);
  font-size: 0.96rem;
}

.area-option-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.area-loading,
.area-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.manual-area-box {
  padding-top: 12px;
  border-top: 1px dashed rgba(217, 155, 30, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manual-area-box label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--maroon-royal);
}

.manual-area-box input {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(156, 103, 9, 0.35);
  font-family: inherit;
  font-size: 0.9rem;
}

/* Inline Compulsory Field Error Styles */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16) !important;
}

.field-error {
  display: none;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}

.field-error.show {
  display: block;
}

/* ==========================================================================
   Full Mobile Responsiveness (3D Intro + Form + Popups + Receipts)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-banner {
    padding: 84px 16px 20px;
    border-radius: 18px;
  }

  .hero-logo-corner {
    top: 12px;
    left: 12px;
    width: 62px;
    height: 62px;
    border-width: 2px;
  }

  .hero-subline {
    font-size: 0.86rem;
  }

  .mantra-emergent {
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    padding: 10px 18px;
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    line-height: 1.35;
  }

  .mantra-emergent .mantra-num {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .modal-card {
    max-height: 88vh;
    overflow-y: auto;
    padding: 18px 16px;
  }

  .receipt-row {
    flex-direction: column;
    gap: 2px;
  }

  .receipt-row strong {
    text-align: left;
  }
}

@media (max-width: 680px) {
  #registration-section {
    padding: 16px 10px 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .pincode-input-row {
    flex-direction: column;
  }

  .btn-area-lookup {
    min-height: 44px;
    padding: 10px 14px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .blessing-finale {
    white-space: normal;
    width: 92%;
    bottom: 8%;
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

@keyframes fadeDownIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
