/* ==========================================================================
   2nd OCTOBER MAHATMA GANDHI JAYANTI - KHADI SELFIE CAMPAIGN STYLESHEET
   Aesthetics: Khadi Linen, Patriotic Tricolor & Royal Gold
   ========================================================================== */

:root {
  --primary-saffron: #F37021;
  --saffron-light: #FF9933;
  --saffron-subtle: #FFF2E6;
  --khadi-green: #138808;
  --green-light: #20BF55;
  --green-subtle: #E8F5E9;
  --navy-blue: #0C2340;
  --navy-light: #1D3557;
  --gold-primary: #C99700;
  --gold-accent: #E5B22D;
  --gold-light: #FFF9E6;

  --bg-cream: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-khadi-card: #FDFBF7;
  --text-dark: #1E232A;
  --text-muted: #5F6B7A;
  --text-light: #FFFFFF;
  --border-khadi: #E7DECE;
  --border-gold: #DFCA88;

  --shadow-sm: 0 2px 8px rgba(12, 35, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 35, 64, 0.09);
  --shadow-lg: 0 16px 40px rgba(12, 35, 64, 0.14);
  --shadow-gold: 0 8px 25px rgba(201, 151, 0, 0.25);

  --font-heading: 'Cinzel', 'Rozha One', 'Georgia', serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(#d3c8b4 0.75px, transparent 0.75px), radial-gradient(#e5dbcb 0.75px, #FAF7F2 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* ==========================================================================
   TOP BANNER & NAVIGATION
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #F37021, #0C2340 50%, #138808);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.top-notice-bar span.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-khadi);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-blue);
}

.brand-charkha {
  width: 44px;
  height: 44px;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--navy-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--primary-saffron);
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--primary-saffron);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-saffron), #E65100);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.45);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 70px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: calc(85vh - 80px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron-subtle);
  border: 1px solid rgba(243, 112, 33, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--primary-saffron);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-blue);
  margin-bottom: 18px;
}

.hero-title .highlight-saffron {
  color: var(--primary-saffron);
  background: linear-gradient(120deg, #F37021, #FF9933);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-green {
  color: var(--khadi-green);
  background: linear-gradient(120deg, #138808, #20BF55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-primary-selfie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #F37021, #C75000);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(243, 112, 33, 0.38);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary-selfie::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: all 0.75s ease;
}

.btn-primary-selfie:hover::after {
  left: 120%;
}

.btn-primary-selfie:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.48);
}

.btn-share-campaign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  color: #128C7E;
  border: 1.5px solid #25D366;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-share-campaign:hover {
  background: #E8F5E9;
  transform: translateY(-2px);
}

/* Hero Gandhi Visual Card */
.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gandhi-card-inner {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  width: 100%;
}

.gandhi-card-inner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--border-gold);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.gandhi-portrait-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1416 / 1767;
  object-fit: contain;
  border-radius: 14px;
  border: 3.5px solid var(--border-gold);
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 10px 25px rgba(12, 35, 64, 0.22);
  background: #ffffff;
}

.quote-bubble {
  background: var(--khadi-green);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 12px;
  position: relative;
}

.quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--khadi-green) transparent;
}

.gandhi-tribute-text {
  font-family: var(--font-heading);
  color: var(--navy-blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 14px;
}

.card-seal-badge {
  position: absolute;
  top: -24px;
  right: -14px;
  width: 80px;
  height: 80px;
  animation: floatBadge 4s ease-in-out infinite;
}

/* ==========================================================================
   LIVE STATS COUNTERS
   ========================================================================== */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-khadi);
  border-bottom: 1px solid var(--border-khadi);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-right: 1px solid var(--border-khadi);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--saffron-subtle);
  color: var(--primary-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-item:nth-child(2) .stat-icon {
  background: var(--green-subtle);
  color: var(--khadi-green);
}

.stat-item:nth-child(3) .stat-icon {
  background: var(--gold-light);
  color: var(--gold-primary);
}

.stat-item:nth-child(4) .stat-icon {
  background: rgba(12, 35, 64, 0.08);
  color: var(--navy-blue);
}

.stat-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-blue);
  line-height: 1.1;
}

.stat-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   HOW IT WORKS (3 SIMPLE STEPS)
   ========================================================================== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  background: var(--gold-light);
  color: #926C00;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border: 1px solid var(--border-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy-blue);
  font-weight: 700;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 12px auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-khadi);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary-saffron);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(243, 112, 33, 0.4);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 12px auto 20px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px dashed var(--border-gold);
}

.step-card h4 {
  font-size: 1.25rem;
  color: var(--navy-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   WHY KHADI MATTERS (खादी का महत्व)
   ========================================================================== */
.why-khadi-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-khadi);
  border-bottom: 1px solid var(--border-khadi);
  padding: 70px 0;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason-card {
  background: var(--bg-khadi-card);
  border: 1px solid var(--border-khadi);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  transition: var(--transition);
}

.reason-card:hover {
  border-color: var(--primary-saffron);
  box-shadow: var(--shadow-sm);
}

.reason-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.reason-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.reason-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   COMMUNITY WALL OF FAME (LIVE KHADI SELFIES)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-khadi);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-photo-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  background: #EAE6DF;
  overflow: hidden;
}

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

.gallery-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(12, 35, 64, 0.85);
  color: #FFE082;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-meta {
  padding: 12px 14px;
}

.gallery-meta h5 {
  font-size: 0.95rem;
  color: var(--navy-blue);
  font-weight: 600;
}

.gallery-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PLEDGE BANNER
   ========================================================================== */
.pledge-banner {
  background: linear-gradient(135deg, #0C2340 0%, #1A365D 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin: 40px auto;
  max-width: 1152px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.pledge-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F37021, #ffffff, #138808);
}

.pledge-content h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #FFE082;
}

.pledge-content p {
  font-size: 1rem;
  color: #E2E8F0;
  line-height: 1.6;
}

.pledge-action {
  text-align: right;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #081628;
  color: #B2BEC3;
  padding: 50px 24px 24px;
  border-top: 4px solid var(--primary-saffron);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #B2BEC3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-saffron);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
}

/* ==========================================================================
   MODAL EXPERIENCE: SELFIE CAMERA & REGISTRATION FLOW
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-khadi);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-khadi-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy-blue);
  line-height: 1.2;
}

.modal-title-group span {
  font-size: 0.76rem;
  color: var(--primary-saffron);
  font-weight: 600;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
}

/* FLOW STEPS (Step 1: Camera, Step 2: Form, Step 3: Certificate) */
.flow-step {
  display: none;
}

.flow-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* --- STEP 1: CAMERA VIEWPORT --- */
.camera-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1416 / 1767;
  background: #111111;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--border-gold);
  transition: all 0.3s ease;
}

.camera-wrapper.frame-portrait {
  max-width: 400px;
  aspect-ratio: 1416 / 1767;
}

#cameraVideo,
#photoCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* transform is handled by JS per facing mode — no CSS mirror here */
}

#capturedPhoto {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: none;
}

/* Khadi Frame Image Overlay */
.camera-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 5;
}

/* Fallback Frame Overlays */
.camera-frame-overlay {
  display: none;
}

.frame-top-bar {
  background: rgba(12, 35, 64, 0.94);
  color: #FFE082;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.frame-bottom-bar {
  background: linear-gradient(180deg, rgba(12, 35, 64, 0.88) 0%, rgba(0, 0, 0, 0.96) 100%);
  color: #ffffff;
  padding: 12px 10px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-gold);
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.frame-bottom-bar .frame-tagline {
  font-size: 0.94rem;
  font-weight: 700;
  color: #FF9933;
  margin-bottom: 2px;
}

.frame-bottom-bar .frame-sub {
  font-size: 0.78rem;
  color: #E2E8F0;
  font-weight: 500;
}

/* Countdown Overlay — Simple 1, 2, 3 with no background */
.countdown-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.countdown-overlay.active {
  opacity: 1;
  visibility: visible;
}

.countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.countdown-number {
  font-family: var(--font-heading), 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.countdown-number.pop-anim {
  animation: countdownPop 0.8s ease-out;
}

.countdown-subtext {
  display: none;
}

@keyframes countdownPop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Flash Effect */
.camera-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}

.camera-flash.flash-anim {
  animation: flashEffect 0.35s ease-out;
}

/* Timer Hint & Badges */
.camera-timer-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 153, 51, 0.12);
  border: 1px solid rgba(255, 153, 51, 0.4);
  color: var(--primary-saffron);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin: 10px auto 0;
}

.shutter-timer-label {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.shutter-btn.counting {
  border-color: #e53935;
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.6);
  animation: shutterPulse 0.6s infinite alternate;
}

.shutter-btn.counting .shutter-btn-inner {
  background: #e53935;
}

@keyframes shutterPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

/* Camera Frame Picker */
.frame-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.frame-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-khadi);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}

.frame-btn.active {
  background: var(--navy-blue);
  color: #ffffff;
  border-color: var(--navy-blue);
}

/* Camera Controls Bar */
.camera-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(243, 112, 33, 0.4);
}

.shutter-btn-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-saffron);
  transition: var(--transition);
}

.shutter-btn:hover .shutter-btn-inner {
  transform: scale(0.9);
  background: #E65100;
}

.cam-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-khadi-card);
  border: 1px solid var(--border-khadi);
  color: var(--navy-blue);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cam-icon-btn:hover {
  background: #EDE6D8;
  transform: scale(1.05);
}

.photo-preview-actions {
  display: none;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 16px auto 0;
}

.photo-preview-actions.active {
  display: flex;
}

.btn-secondary {
  flex: 1;
  background: var(--bg-khadi-card);
  border: 1px solid var(--border-khadi);
  color: var(--text-dark);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-accent {
  flex: 1.2;
  background: linear-gradient(135deg, var(--khadi-green), #0B6B00);
  border: none;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(19, 136, 8, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(19, 136, 8, 0.45);
}

/* Upload photo fallback link */
.upload-fallback-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
}

.upload-fallback-link label {
  color: var(--navy-blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* --- STEP 2: FORM DETAILS --- */
.form-step-container {
  max-width: 420px;
  margin: 0 auto;
}

.captured-thumb-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-khadi-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-khadi);
  margin-bottom: 20px;
}

.thumb-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--gold-accent);
}

.thumb-text h5 {
  font-size: 0.95rem;
  color: var(--navy-blue);
  font-weight: 600;
}

.thumb-text p {
  font-size: 0.78rem;
  color: var(--khadi-green);
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-blue);
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C9BAE;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-khadi);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-saffron);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.pledge-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin: 18px 0;
  user-select: none;
}

.pledge-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--khadi-green);
  margin-top: 2px;
}

.btn-submit-form {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-saffron), #D65A00);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(243, 112, 33, 0.45);
}

.btn-submit-form:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- STEP 3: THANK YOU & CERTIFICATE --- */
.thank-you-container {
  text-align: center;
}

.celebration-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
  animation: bounce 1.5s infinite;
}

.thank-you-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.thank-you-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Thank You Photo Card Preview */
.thank-you-photo-card {
  width: 100%;
  max-width: 460px;
  margin: 18px auto 22px;
  background: #f8f4ec;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-gold);
  padding: 10px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.thank-you-selfie-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1416 / 1767;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 10px;
  border: 1px solid var(--border-gold);
  background: #f0ece0;
}

.thank-you-badge {
  display: inline-block;
  background: var(--navy-blue);
  color: #FFE082;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.thank-you-success-text {
  font-size: 0.82rem;
  color: var(--khadi-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cert-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-download-cert {
  background: linear-gradient(135deg, var(--gold-primary), #A67C00);
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-download-cert:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-whatsapp-share {
  background: #25D366;
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp-share:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

.btn-back-home {
  width: 100%;
  background: var(--bg-khadi-card);
  border: 1px solid var(--border-khadi);
  color: var(--navy-blue);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-home:hover {
  background: #EDE6D8;
}

/* ==========================================================================
   CONFETTI CANVAS
   ========================================================================== */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-blue);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1200;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes flashEffect {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
    gap: 30px;
  }

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

  .hero-subtitle {
    margin: 0 auto 24px;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

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

  .pledge-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }

  .pledge-action {
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .top-notice-bar {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .navbar-container {
    padding: 10px 16px;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
    /* Mobile menu simplification */
  }

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

  .btn-primary-selfie {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .btn-share-campaign {
    width: 100%;
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-khadi);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .reasons-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    border-radius: var(--radius-md);
  }

  .cert-actions-grid {
    grid-template-columns: 1fr;
  }
}