/* Local Anek Gujarati Font + Google Font Fallback */
@font-face {
  font-family: 'Anek Gujarati';
  src: url('assets/fonts/AnekGujarati.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #7b0d4c;
  --primary-dark: #520732;
  --primary-light: #99135d;
  --primary-gradient: linear-gradient(135deg, #7b0d4c 0%, #a81566 50%, #530937 100%);
  --gold-color: #d4af37;
  --gold-light: #fbe07a;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #aa771c 100%);
  --bg-soft: #fff7fa;
  --bg-gradient: radial-gradient(circle at 10% 20%, #ffeaf3 0%, #fffbfd 45%, #fff2f7 90%);
  --text-main: #2d1822;
  --text-muted: #6b5561;
  --border-color: #f0c3d9;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 4px 10px rgba(123, 13, 76, 0.06);
  --shadow-md: 0 10px 25px rgba(123, 13, 76, 0.12);
  --shadow-lg: 0 20px 40px rgba(123, 13, 76, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Anek Gujarati', sans-serif !important;
}

body {
  background: var(--bg-soft);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ornamental Shapes */
body::before {
  content: '';
  position: fixed;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 21, 102, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------------
   3D INTRO SPLASH SCREEN (Strictly Jinagya Yuva Trust)
------------------------------------------------------------- */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #550837 0%, #30031f 60%, #15010e 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

#three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 24px 16px;
  max-width: 680px;
  width: 92%;
  transform-style: preserve-3d;
  animation: floatContent 4s ease-in-out infinite alternate;
}

@keyframes floatContent {
  0% { transform: translateY(0px) rotateX(0deg); }
  100% { transform: translateY(-8px) rotateX(2deg); }
}

.splash-emblem-wrap {
  position: relative;
  width: 140px;
  height: 145px;
  margin: 0 auto 20px;
  transform-style: preserve-3d;
}

.splash-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 3.5px solid #fbe07a;
  box-shadow: 0 0 35px rgba(251, 224, 122, 0.75), inset 0 0 10px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 6px;
  animation: pulseGold 2s infinite alternate;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 20px rgba(251, 224, 122, 0.5); transform: scale(0.98); }
  100% { box-shadow: 0 0 45px rgba(251, 224, 122, 0.95); transform: scale(1.04); }
}

.splash-3d-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(251, 224, 122, 0.6);
  border-radius: 50%;
  animation: rotate3d 10s linear infinite;
  pointer-events: none;
}

.splash-3d-rings::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px dotted rgba(255, 175, 220, 0.5);
  border-radius: 50%;
  animation: rotate3dRev 8s linear infinite;
}

@keyframes rotate3d {
  0% { transform: translate(-50%, -50%) rotate(0deg) rotateX(45deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) rotateX(45deg); }
}

@keyframes rotate3dRev {
  0% { transform: rotate(0deg) rotateY(45deg); }
  100% { transform: rotate(-360deg) rotateY(45deg); }
}

.splash-title-tag {
  display: inline-block;
  background: var(--gold-gradient);
  color: #3b0522;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.splash-title {
  font-size: 2.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fffbe6 0%, #ffd700 25%, #d4af37 50%, #fbe07a 75%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  letter-spacing: 0.5px;
}

.splash-subtitle {
  font-size: 1.1rem;
  color: #fecada;
  font-weight: 600;
  margin-bottom: 22px;
}

.splash-skip-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  cursor: pointer;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 215, 0, 0.85);
  color: #ffffff;
  padding: 12px 36px;
  border-radius: 40px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.35);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
}

.splash-skip-btn:hover,
.splash-skip-btn:active {
  background: #fbe07a;
  color: #3b0522;
  border-color: #fbe07a;
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 8px 30px rgba(251, 224, 122, 0.65);
}

/* -------------------------------------------------------------
   MAIN CONTAINER & HEADER
------------------------------------------------------------- */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 14px 60px;
}

.main-header {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-color);
  margin-bottom: 20px;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.header-top-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(251, 224, 122, 0.4);
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.ribbon-badge {
  background: var(--gold-gradient);
  color: #420425;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-body {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Header Logo with Interactive 3D Trigger */
.header-logo-box {
  width: 100px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 3px solid #fbe07a;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.header-logo-box:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 224, 122, 0.6);
  border-color: #ffd54f;
}

.header-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-text {
  flex-grow: 1;
}

.header-trust-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-trust-name span {
  color: #ffea79;
}

.header-motto {
  font-size: 1.05rem;
  color: #ffe3ed;
  font-weight: 600;
  margin-top: 3px;
}

.header-beneficiary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 224, 130, 0.4);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffdfba;
  margin-top: 6px;
}

.header-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

/* -------------------------------------------------------------
   STEP PROGRESS INDICATOR (Fully Responsive)
------------------------------------------------------------- */
.steps-container {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.step-item.active {
  opacity: 1;
}

.step-item.completed {
  opacity: 0.9;
}

.step-item.completed .step-number {
  background: var(--success-color);
  color: #fff;
  border-color: var(--success-color);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdf2f7;
  border: 2px solid var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-item.active .step-number {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 21, 102, 0.5);
  border-color: #ffd54f;
}

.step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.step-label small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* -------------------------------------------------------------
   CARD & FORM CONTAINERS
------------------------------------------------------------- */
.form-step-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: relative;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.form-step-card.active-step {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading-wrap {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #fae1ed;
  position: relative;
}

.step-heading-wrap::after {
  content: '✦ ✦ ✦';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 12px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  letter-spacing: 4px;
}

.step-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* -------------------------------------------------------------
   STEP 1: COURSE SELECTION CARDS
------------------------------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}

.course-option-card {
  background: #ffffff;
  border: 2.5px solid #ebd3e0;
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.course-option-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.course-option-card.selected {
  border-color: var(--gold-dark);
  background: linear-gradient(180deg, #fffafd 0%, #fff0f7 100%);
  box-shadow: 0 8px 25px rgba(168, 21, 102, 0.22);
  outline: 2px solid var(--gold-color);
}

.course-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-gradient);
  color: #3b0522;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
}

.course-radio-indicator {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #b8a0ae;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s;
}

.course-option-card.selected .course-radio-indicator {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.course-radio-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.course-option-card.selected .course-radio-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.course-card-header {
  margin-top: 24px;
  margin-bottom: 12px;
}

.course-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}

.course-card-sub {
  font-size: 0.88rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 3px;
}

/* Course Icon Showcase (replaced image preview) */
.course-icon-showcase {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1.5px solid #f1c7dd;
  background: linear-gradient(135deg, #fff5fa 0%, #fce4f1 50%, #fdf2f7 100%);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.course-icon-big {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(123, 13, 76, 0.2));
  animation: iconPulse 2.5s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

.course-icon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.course-icon-tags span {
  background: rgba(123, 13, 76, 0.1);
  color: #7b0d4c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(123, 13, 76, 0.15);
  white-space: nowrap;
}

.course-features-list {
  list-style: none;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.course-features-list li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a3440;
}

.course-features-list li .icon {
  color: var(--primary-light);
  font-size: 0.95rem;
}

.course-pricing-box {
  background: #fff3f8;
  border: 1px solid #f7cfe3;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #644957;
  padding: 2px 0;
}

.price-row.total-row {
  border-top: 1px dashed #e7b5cf;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-row.total-row .price-val {
  color: #940f58;
  font-size: 1.15rem;
}

.refundable-tag {
  font-size: 0.72rem;
  background: #def7ec;
  color: #03543f;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Combo Card */
.course-option-card.combo-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff7fb 0%, #fff 50%, #fff2f9 100%);
  border: 2.5px solid #d4af37;
}

.combo-content-flex {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.combo-info {
  flex: 1;
  min-width: 250px;
}

.combo-pricing-side {
  width: 280px;
}

/* -------------------------------------------------------------
   STEP 2: FORM FIELDS & INPUT GROUPS
------------------------------------------------------------- */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--gold-color);
  padding-left: 10px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3b202f;
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error-color);
  margin-left: 3px;
}

/* 16px font-size prevents mobile browser auto-zoom */
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.8px solid #e2cad7;
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.25s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(168, 21, 102, 0.12);
}

.form-control.is-invalid {
  border-color: #dc2626;
  background-color: #fff8f8;
}

.form-control.is-valid {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.field-error-msg {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 5px;
  display: none;
}

.field-error-msg.visible {
  display: block;
}

.field-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.fullname-preview-box {
  background: #fdf2f7;
  border: 1px dashed #e9b3cf;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-top: -4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-calc-box {
  background: #fff8fb;
  border: 1.5px solid #f3cfde;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.age-display-text {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.15rem;
}

.age-status-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}

.age-status-badge.valid {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
}

.age-status-badge.warning {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
}

.pincode-input-wrap {
  position: relative;
}

.pin-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #e2cad7;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.area-trigger-wrap {
  position: relative;
  display: flex;
}

.area-trigger-input {
  cursor: pointer;
  background-color: #fffafc;
  padding-right: 40px;
}

.area-trigger-btn-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
  pointer-events: none;
}

/* -------------------------------------------------------------
   AREA SELECTION POPUP MODAL (Touch Friendly on Phones)
------------------------------------------------------------- */
.area-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.area-popup-modal.active {
  display: flex;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.area-popup-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--gold-color);
}

.area-popup-header {
  background: var(--primary-gradient);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.area-popup-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.area-popup-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.area-search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.8px solid #e0c2d3;
  border-radius: var(--radius-sm);
  font-size: 16px;
  margin-bottom: 12px;
  outline: none;
}

.area-search-input:focus {
  border-color: var(--primary-color);
}

.area-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.area-chip-item {
  background: #fff5f9;
  border: 1.5px solid #ebd0df;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px; /* Touch target */
}

.area-chip-item:hover, .area-chip-item:active {
  background: #7b0d4c;
  color: #fff;
  border-color: #7b0d4c;
  transform: translateY(-2px);
}

.area-chip-item.selected {
  background: var(--gold-gradient);
  color: #3b0522;
  border-color: var(--gold-dark);
}

.manual-area-section {
  border-top: 1px dashed #e2bad0;
  padding-top: 14px;
  margin-top: 10px;
}

.manual-area-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 42px;
}

/* -------------------------------------------------------------
   STEP 3: PAYMENT & SCREENSHOT
------------------------------------------------------------- */
.payment-summary-card {
  background: linear-gradient(135deg, #7b0d4c 0%, #99135d 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gold-color);
}

.pay-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffeb99;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pay-breakdown-table td {
  padding: 6px 0;
}

.pay-breakdown-table tr.total-pay-row {
  border-top: 1px dashed rgba(255, 235, 153, 0.4);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffe600;
}

.payment-interactive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.scanner-box {
  background: #ffffff;
  border: 2px dashed #e0b8ce;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scanner-qr-frame {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 3px solid #7b0d4c;
  padding: 6px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  position: relative;
}

.scanner-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-proof-box {
  background: #ffffff;
  border: 1.5px solid #ebd3e0;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screenshot-dropzone {
  border: 2.5px dashed #dca5c2;
  border-radius: var(--radius-sm);
  padding: 28px 18px;
  text-align: center;
  background: #fff9fc;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  margin-bottom: 14px;
}

.screenshot-dropzone:hover {
  border-color: var(--primary-color);
  background: #fff0f7;
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.screenshot-preview-wrap {
  display: none;
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--success-color);
  margin-bottom: 14px;
}

.screenshot-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.remove-ss-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

/* -------------------------------------------------------------
   BUTTONS & NAVIGATION
------------------------------------------------------------- */
.form-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f3d4e4;
  gap: 12px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 21, 102, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 21, 102, 0.45);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #3b0522;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  min-height: 48px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
}

.btn-secondary {
  background: #f3e5ee;
  color: var(--primary-dark);
  border: 1px solid #e0c2d3;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.btn-secondary:hover {
  background: #ebd2e2;
}

/* -------------------------------------------------------------
   CLEAN SUCCESS MESSAGE SCREEN (NO IDs DISPLAYED)
------------------------------------------------------------- */
.success-box-simple {
  text-align: center;
  padding: 36px 16px;
  max-width: 580px;
  margin: 0 auto;
}

.success-icon-badge {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  animation: popSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popSuccess {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #065f46;
  line-height: 1.3;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 20px;
}

.success-notice-text {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
  margin: 20px 0;
  line-height: 1.55;
  text-align: left;
}

/* Success Registration ID Cards */
.success-id-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #34d399;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.success-id-card .id-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.success-id-card .id-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: #047857;
  letter-spacing: 1.5px;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 10px;
  border: 2px dashed #10b981;
  display: inline-block;
  font-family: monospace, 'Anek Gujarati', sans-serif;
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS (100% Mobile Optimized)
------------------------------------------------------------- */
@media (max-width: 768px) {
  .app-wrapper {
    padding: 12px 10px 40px;
  }
  .main-header {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .header-body {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-logo-box {
    width: 90px;
    height: 95px;
  }
  .header-trust-name {
    font-size: 1.25rem;
  }
  .header-motto {
    font-size: 0.95rem;
  }
  .header-footer-tags {
    justify-content: center;
    gap: 6px;
  }
  .tag-item {
    font-size: 0.78rem;
    padding: 4px 10px;
  }
  .steps-container {
    padding: 10px 8px;
    gap: 4px;
  }
  .step-label {
    display: none;
  }
  .form-step-card {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .step-title {
    font-size: 1.25rem;
  }
  .course-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .combo-content-flex {
    flex-direction: column;
  }
  .combo-pricing-side {
    width: 100%;
  }
  .form-grid-3, .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .payment-interactive-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .scanner-qr-frame {
    width: 180px;
    height: 180px;
  }
  .form-nav-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-primary, .btn-gold, .btn-secondary {
    width: 100%;
  }
  .splash-title {
    font-size: 1.6rem;
  }
  .splash-subtitle {
    font-size: 0.92rem;
  }
  .splash-emblem-wrap {
    width: 120px;
    height: 125px;
  }
  .splash-3d-rings {
    width: 160px;
    height: 160px;
  }
  .splash-skip-btn {
    bottom: 25px;
    padding: 10px 24px;
    font-size: 0.95rem;
    max-width: 90%;
  }
  .area-grid-list {
    grid-template-columns: 1fr;
  }
  .profile-photo-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px 12px;
  }
  .profile-upload-title {
    justify-content: center;
  }
  .profile-btn-group {
    justify-content: center;
  }
}

/* -------------------------------------------------------------
   PROFILE PHOTO UPLOAD & AUTO-COMPRESSION STYLES
------------------------------------------------------------- */
.profile-photo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fffcfd;
  border: 1.5px dashed #e9b3cf;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
  transition: all 0.2s ease;
}

.profile-photo-card:hover {
  border-color: var(--primary-color);
  background: #fff8fc;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar-box {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fdf2f7;
  border: 2.5px solid var(--primary-color);
  box-shadow: 0 4px 14px rgba(123, 13, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.avatar-placeholder-icon {
  font-size: 2.4rem;
  color: #c98fae;
  user-select: none;
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-camera-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.avatar-camera-btn:hover {
  transform: scale(1.1);
}

.profile-upload-details {
  flex-grow: 1;
}

.profile-upload-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-upload-title .optional-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7b0d4c;
  background: #fdf2f7;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid #f6c8de;
}

.profile-upload-hint {
  font-size: 0.82rem;
  color: #6b5561;
  margin: 4px 0 10px;
  line-height: 1.35;
}

.profile-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-select-photo {
  background: #7b0d4c;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-select-photo:hover {
  background: #99135d;
}

.btn-remove-photo {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compression-status-badge,
.photo-uploaded-badge,
.ss-compress-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ss-compress-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  background: rgba(6, 95, 70, 0.95);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
