/* ==========================================================================
   GARDEN SOCIETY DIGITAL REGISTRATION FORM - PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --primary: #12372A;
  --primary-light: #1a5c42;
  --primary-dark: #0d2a1f;
  --accent: #C6A15B;
  --accent-light: #d4b77a;
  --accent-dark: #b8933f;
  --bg: #F8F7F3;
  --bg-card: #ffffff;
  --text: #111111;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-focus: #C6A15B;
  --success: #10b981;
  --error: #ef4444;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.12);
  --shadow-brand: 0 4px 20px rgba(18,55,42,0.25);
  --shadow-gold: 0 4px 20px rgba(198,161,91,0.25);
  --shadow-glow: 0 0 40px rgba(18,55,42,0.08);
  --font-body: 'Noto Sans Bengali', 'Inter', sans-serif;
  --font-heading: 'Noto Sans Bengali', 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;

  /* Legacy aliases */
  --primary-medium: var(--primary-light);
  --accent-glow: rgba(198,161,91,0.15);
  --neutral-dark: var(--text);
  --neutral-muted: var(--text-muted);
  --neutral-light: var(--bg);
  --border-color: var(--border);
  --transition-smooth: var(--transition);
}

/* Reset & Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

p { margin-bottom: 0; line-height: inherit; }

/* Override main site styles that break form layout */
.grid-2, .grid-3, .grid-1 {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
}

.grid-2 {
  grid-template-columns: 1fr !important;
}

.grid-3 {
  grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-col-span-2-desktop {
    grid-column: span 2;
  }
}

.dob-selects-row {
  display: flex;
  gap: 0.75rem;
}

.dob-selects-row select {
  flex: 1;
  min-width: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--neutral-dark);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

body > section,
body > header,
body > footer {
  width: 100%;
}

/* ==========================================================================
   INTRO / WELCOME SCREEN
   ========================================================================== */
#intro-screen {
  animation: introFadeIn 0.6s ease-out;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
  margin-bottom: 2rem;
}

.intro-card-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198,161,91,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.intro-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.intro-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.intro-icon-wrap svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.intro-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.intro-project-info {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: left;
}

.intro-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.intro-info-icon svg {
  width: 18px;
  height: 18px;
}

.intro-project-info p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.intro-project-info strong {
  color: var(--accent-light);
  font-weight: 700;
}

/* Section Titles */
.intro-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.intro-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.intro-title-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Benefits Grid */
.intro-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .intro-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .intro-benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.intro-benefit-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.intro-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.intro-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(18,55,42,0.08), rgba(18,55,42,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.intro-benefit-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.intro-benefit-icon.gold {
  background: linear-gradient(135deg, rgba(198,161,91,0.12), rgba(198,161,91,0.04));
}
.intro-benefit-icon.gold svg {
  color: var(--accent);
}

.intro-benefit-icon.green {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
}
.intro-benefit-icon.green svg {
  color: var(--success);
}

.intro-benefit-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.intro-benefit-card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

/* Process Steps */
.intro-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.intro-process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.intro-process-step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.intro-process-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
}

.intro-process-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.intro-process-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.intro-process-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, var(--accent), rgba(198,161,91,0.3));
  margin-left: 1.1rem;
}

/* Stats Bar */
.intro-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.intro-stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.intro-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: 500;
}

.intro-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* CTA Button */
.intro-cta-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.intro-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 60px;
  padding: 1rem 2rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(18,55,42,0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.intro-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.intro-cta-btn:hover::before {
  left: 100%;
}

.intro-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(18,55,42,0.4);
}

.intro-cta-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.intro-cta-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.intro-cta-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 2px;
}

.intro-cta-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.intro-cta-btn:hover .intro-cta-arrow {
  transform: translateX(4px);
}

.intro-cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Footer Button Group */
.footer-btn-group {
  display: flex;
  gap: 0.75rem;
}

.footer-btn-group .btn {
  flex: 1;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline .btn-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .footer-btn-group {
    flex-direction: column-reverse;
  }
  .footer-btn-group .btn {
    width: 100%;
  }
}

/* Background Organic Decorative Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--primary-light), rgba(18,55,42,0.3));
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(198,161,91,0.15), rgba(212,183,122,0.1));
  bottom: -200px;
  left: -150px;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

/* Header — reset when cms.js navbar is rendered inside */
.app-header:has(#navbar) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: block !important;
  gap: 0 !important;
  box-shadow: none !important;
  border: none !important;
  position: static !important;
  overflow: visible !important;
}
.app-header:has(#navbar)::before,
.app-header:has(#navbar)::after {
  display: none !important;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(198,161,91,0.05) 100%);
  pointer-events: none;
}

.app-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 0 4px 4px 0;
}

.logo-container {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 5px;
  box-shadow: var(--shadow-brand);
}

.logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.subtitle {
  color: var(--neutral-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2px;
}

.header-badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold);
}

/* Stepper Navigation */
.stepper {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.6);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 90px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  border: 2px solid transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 2;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.step-line {
  flex-grow: 1;
  height: 3px;
  background: linear-gradient(90deg, #e5e7eb, #d1d5db);
  margin: 0 -10px;
  margin-bottom: 24px;
  z-index: 1;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(198,161,91,0.4);
  transform: scale(1.1);
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

.step.completed .step-number {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(18,55,42,0.3);
}

.step.completed .step-label {
  color: var(--primary-light);
}

.step.completed + .step-line {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Card General Styling */
.form-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slideFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-card:hover {
  box-shadow: var(--shadow-xl);
}

.form-card:hover::before {
  opacity: 1;
}

.form-card.active {
  display: block;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 1.5rem;
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-brand);
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
}

.card-header p {
  color: var(--neutral-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

/* Forms Grid Layouts */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-col-span-2-desktop {
    grid-column: span 2;
  }
}

.dob-selects-row {
  display: flex;
  gap: 0.75rem;
}

.dob-selects-row select {
  flex: 1;
  min-width: 0;
}

/* Highlighted Percentage Input inside Nominee Grid */
.nominee-grid .nominee-grid-span-2:has(.nominee-input-percentage) {
  background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(198,161,91,0.05));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: -0.25rem 0;
}

.nominee-grid .nominee-grid-span-2:has(.nominee-input-percentage) label {
  font-size: 0.9rem;
  color: #166534;
}

.nominee-grid .nominee-grid-span-2 .nominee-input-percentage {
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #166534;
  border: 2px solid rgba(16,185,129,0.3);
  background-color: white;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.nominee-grid .nominee-grid-span-2 .nominee-input-percentage:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  background-color: white;
}

/* Inputs and Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

label.required::after {
  content: ' *';
  color: var(--error);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background-color: rgba(248,247,243,0.6);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--neutral-dark);
  outline: none;
  transition: var(--transition-smooth);
}

input::placeholder,
textarea::placeholder {
  color: #adb5bd;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(198,161,91,0.15) !important;
  outline: none;
  background-color: white;
}

/* Prefix Input */
.input-prefix-container {
  display: flex;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background-color: rgba(248,247,243,0.6);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.input-prefix-container:focus-within {
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(198,161,91,0.15);
}

.input-prefix {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-right: 1px solid rgba(198,161,91,0.2);
  padding: 0.8rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  user-select: none;
}

.input-prefix-container input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  background-color: transparent !important;
}

/* Read Only / Calculated Fields */
.read-only-input {
  background-color: rgba(248,247,243,0.8) !important;
  color: var(--neutral-muted);
  cursor: not-allowed;
  font-weight: 600;
}

.highlighted-input {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: white !important;
  border-color: var(--primary) !important;
  font-weight: 700;
}

/* Textareas */
textarea {
  resize: vertical;
}

/* Checkboxes */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-container label {
  font-weight: 500;
  color: var(--neutral-muted);
  cursor: pointer;
  line-height: 1.35;
}

.checkbox-container.declaration-check label {
  color: var(--neutral-dark);
  font-weight: 600;
}

/* Error states */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
.form-group.has-error .input-prefix-container {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
  background-color: rgba(254,242,242,0.8);
}

.form-group.has-error label {
  color: var(--error);
  font-weight: 600;
}

.error-msg {
  color: var(--error);
  font-size: 0.76rem;
  font-weight: 500;
  min-height: 16px;
  display: block;
  margin-top: 2px;
}

.block-error {
  text-align: center;
  font-size: 0.88rem;
  margin: 1rem 0;
  font-weight: 600;
}

/* Utility margins/padding */
.mt-4 { margin-top: 1.5rem; }
.my-2 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.m-0 { margin: 0 !important; }
.font-bold { font-weight: 700; }
.text-success { color: var(--primary-medium) !important; }

/* Sections Divider */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle-description {
  font-size: 0.82rem;
  color: var(--neutral-muted);
  margin-bottom: 1.25rem;
  padding-left: 0.8rem;
}

/* File Upload Drag-and-Drop Area */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: rgba(248,247,243,0.5);
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(198,161,91,0.04);
  box-shadow: 0 0 0 3px rgba(198,161,91,0.1);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.upload-icon {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.upload-dropzone:hover .upload-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-dark);
}

.browse-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--neutral-muted);
}

/* Preview Image in Upload */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 150px;
}

.img-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.remove-file-btn {
  position: absolute;
  top: -8px;
  right: 0px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.remove-file-btn:hover {
  transform: scale(1.1);
}

.remove-file-btn svg {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  box-shadow: var(--shadow-brand);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(18,55,42,0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(18,55,42,0.03);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow-left {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.btn-secondary:hover .btn-arrow-left {
  transform: translateX(-3px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-submit-icon {
  width: 18px;
  height: 18px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ml-auto {
  margin-left: auto;
}

/* Dynamic Nominee List */
.nominee-item-card {
  background: rgba(248,247,243,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  animation: slideFadeIn 0.3s ease forwards;
}

.nominee-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  padding-bottom: 0.6rem;
}

.nominee-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

/* Nominee Grid */
.nominee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nominee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nominee-grid-span-2 {
    grid-column: span 2;
  }
}

/* Declaration Text Box */
.declaration-text-box {
  background: rgba(248,247,243,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  border-left-width: 4px;
  border-left-color: var(--primary);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.declaration-text-box h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.declaration-text-box p {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Digital Signature Canvas Layout */
.signature-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-sig-btn {
  background: none;
  border: none;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.clear-sig-btn:hover {
  background-color: rgba(239,68,68,0.08);
}

.signature-canvas-container {
  width: 100%;
  height: 200px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.signature-canvas-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.signature-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #adb5bd;
  font-size: 0.85rem;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.placeholder-draw-icon {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   REVIEW & PREVIEW AREA (A4 PAPER STYLE RECEIPT)
   ========================================================================== */
.review-paper {
  background-color: white;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
}

/* Draft stamp overlay */
.review-draft-stamp {
  display: inline-block;
  border: 3px solid #ffc107;
  color: #ff9800;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transform: rotate(-3deg);
  margin-top: 5px;
  text-transform: uppercase;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.review-logo-container {
  width: 60px;
  height: 60px;
}

.review-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.review-title-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.review-subtitle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neutral-muted);
  letter-spacing: 1px;
  margin-top: 3px;
}

.review-photo-box {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 100px;
  height: 120px;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: var(--neutral-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  z-index: 5;
}

.review-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.review-photo-box img.active {
  display: block;
}

.photo-placeholder-text {
  font-size: 0.65rem;
  color: #adb5bd;
  text-align: center;
  font-weight: 600;
}

/* Review Grid Details */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.review-section-span-2 {
  grid-column: span 2;
}

.review-sec-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 0.3rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.review-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--neutral-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.review-value {
  font-size: 0.88rem;
  color: var(--neutral-dark);
  font-weight: 500;
  word-break: break-word;
}

.block-address {
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Review Nominees Table */
.review-nominees-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.review-nominees-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.review-nominees-table th,
.review-nominees-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.78rem;
}

.review-nominees-table th {
  background-color: rgba(248,247,243,0.8);
  font-weight: 700;
  color: var(--neutral-dark);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.review-nominees-table tr:last-child td {
  border-bottom: none;
}

.review-nominee-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.review-nominee-thumb-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: white;
  font-weight: 600;
  text-align: center;
}

/* Signatures in Review */
.declaration-review-text {
  font-size: 0.78rem;
  color: var(--neutral-muted);
  line-height: 1.4;
  background-color: rgba(248,247,243,0.6);
  padding: 0.8rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.review-signature-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
}

.review-sig-block,
.review-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
  text-align: center;
}

.review-sig-block img {
  max-width: 140px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
  background-color: rgba(248,247,243,0.8);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.review-date-block span:first-child {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--neutral-dark);
}

.sig-line {
  width: 100%;
  height: 1px;
  background-color: rgba(0,0,0,0.3);
  margin-bottom: 5px;
}

.review-sig-block span,
.review-date-block span:last-child {
  font-size: 0.7rem;
  color: var(--neutral-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Adjustments for floating photo box on tablet/mobile views */
@media (max-width: 767px) {
  .review-paper {
    padding: 1.5rem;
  }
  .review-photo-box {
    position: static;
    margin: 1rem auto;
    float: none;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-section-span-2 {
    grid-column: span 1;
  }
  .review-signature-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

/* ==========================================================================
   SUCCESS SCREEN SYSTEM
   ========================================================================== */
.success-screen {
  animation: slideFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.success-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Animated Checkmark */
.success-checkmark-wrapper {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(18,55,42,0.3);
}

.checkmark-circle {
  width: 48px;
  height: 48px;
  position: relative;
}

.checkmark-stem {
  width: 4px;
  height: 24px;
  background-color: white;
  position: absolute;
  left: 26px;
  top: 10px;
  transform: rotate(45deg);
  border-radius: 2px;
  animation: drawStem 0.25s ease-out forwards;
}

.checkmark-kick {
  width: 14px;
  height: 4px;
  background-color: white;
  position: absolute;
  left: 15px;
  top: 26px;
  transform: rotate(45deg);
  border-radius: 2px;
  animation: drawKick 0.15s ease-out 0.25s forwards;
  opacity: 0;
}

@keyframes drawStem {
  from { height: 0; top: 34px; left: 14px; }
  to { height: 24px; top: 10px; left: 26px; }
}

@keyframes drawKick {
  from { width: 0; top: 20px; left: 9px; opacity: 1; }
  to { width: 14px; top: 26px; left: 15px; opacity: 1; }
}

.success-card h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
}

.success-lead-text {
  color: var(--neutral-muted);
  max-width: 550px;
  font-size: 0.95rem;
}

/* Receipt Details */
.receipt-meta-box {
  width: 100%;
  max-width: 480px;
  background: rgba(248,247,243,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  padding-bottom: 0.5rem;
}

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

.receipt-label {
  font-weight: 600;
  color: var(--neutral-muted);
}

.receipt-value {
  font-weight: 700;
  color: var(--primary);
}

.success-note {
  font-size: 0.8rem;
  color: var(--neutral-muted);
}

.success-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* Payment Screen */
.payment-screen {
  animation: slideFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.payment-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.payment-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, rgba(18,55,42,0.03), rgba(198,161,91,0.03));
}

.payment-icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: pulse-glow 2s infinite;
  box-shadow: var(--shadow-brand);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18,55,42,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(18,55,42,0); }
}

.payment-icon { width: 26px; height: 26px; }

.payment-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}

.payment-header p {
  color: var(--neutral-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.payment-amount-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.payment-amount-label { font-size: 0.9rem; font-weight: 500; opacity: 0.85; }
.payment-amount-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); }

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}

@media (min-width: 768px) {
  .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
}

.payment-method-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.payment-method-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.bank-header { background: linear-gradient(135deg, #1a5276, #2e86c1); }
.banglaqr-header { background: linear-gradient(135deg, #0d6e3a, #1a9e54); justify-content: space-between; }

.method-icon { width: 20px; height: 20px; }

.method-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }

.detail-row { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.6rem; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.detail-label { font-size: 0.7rem; text-transform: uppercase; color: var(--neutral-muted); font-weight: 600; letter-spacing: 0.3px; }
.detail-value { font-size: 0.88rem; color: var(--neutral-dark); font-weight: 600; }
.account-number { font-family: monospace; font-size: 0.95rem; letter-spacing: 0.5px; color: var(--primary); }

.qr-section { display: flex; justify-content: center; padding-top: 0.5rem; }

.bangla-qr-image {
  width: 220px;
  height: 220px;
  background: white;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bangla-qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.bangla-qr-info {
  text-align: left;
}

.bangla-qr-desc {
  font-size: 0.85rem;
  color: var(--neutral-dark);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.bangla-qr-steps h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.bangla-qr-steps-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.bangla-qr-steps ol {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bangla-qr-steps li {
  font-size: 0.78rem;
  color: var(--neutral-dark);
  line-height: 1.5;
}

.bangla-qr-steps li strong {
  color: var(--primary);
  font-weight: 700;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  background: white;
  border: 2px dashed rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.qr-inner {
  width: 80px;
  height: 80px;
  background: rgba(248,247,243,0.8);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-icon { width: 40px; height: 40px; color: var(--neutral-muted); }
.qr-label { font-size: 0.75rem; font-weight: 700; color: var(--neutral-dark); text-align: center; }
.qr-sub-label { font-size: 0.6rem; color: var(--neutral-muted); text-align: center; }

.payment-instructions {
  margin: 0 2.5rem 2rem;
  background: rgba(248,247,243,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.instructions-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--neutral-muted);
  line-height: 1.6;
}

.instructions-list li strong { color: var(--neutral-dark); }

.payment-actions {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background-color: rgba(248,247,243,0.4);
}

/* Payment Success Modal */
.payment-success-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.payment-success-modal.hidden {
  display: none !important;
}
.payment-success-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.payment-success-checkmark {
  width: 80px; height: 80px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkBounce 0.6s ease 0.2s both;
}
.payment-success-checkmark svg circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle 0.6s ease forwards;
}
.payment-success-checkmark svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.4s ease 0.5s forwards;
}
.payment-success-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #12372A;
  margin: 0 0 0.5rem;
}
.payment-success-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.payment-success-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #12372A, #1a5c42);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(18,55,42,0.3);
}
.payment-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18,55,42,0.4);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes checkBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Locked payment form state */
.payment-locked-msg {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  margin: 1rem 0;
}
.payment-locked-msg h4 {
  color: #12372A;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.payment-locked-msg p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.payment-locked-msg a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #12372A;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Loading Overlay & Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18,55,42,0.92), rgba(13,42,31,0.95));
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.spinner-container {
  width: 64px;
  height: 64px;
  position: relative;
  margin-bottom: 2rem;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% {
    transform: scale(0.0);
  } 50% {
    transform: scale(1.0);
  }
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.loading-subtext {
  font-size: 0.88rem;
  max-width: 450px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* Footer Styling */
.app-footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--neutral-muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--primary-medium);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE - MOBILE FIRST
   ========================================================================== */

/* === MOBILE BASE (default) === */
.form-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.stepper {
  padding: 0.75rem;
  gap: 0.15rem;
  border-radius: var(--radius-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.step {
  min-width: 56px;
}

.step-number {
  width: 34px;
  height: 34px;
  font-size: 0.75rem;
}

.step-label {
  font-size: 0.55rem;
  white-space: nowrap;
}

.card-header {
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  font-size: 1.1rem;
}

.card-footer {
  flex-direction: column-reverse;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

.card-footer .btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.input-prefix {
  font-size: 0.85rem;
  padding: 0 0.6rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.declaration-text-box {
  padding: 1rem;
  max-height: 260px;
  font-size: 0.78rem;
  line-height: 1.6;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.signature-canvas-container {
  height: 150px;
  border-radius: var(--radius-lg);
}

.review-paper {
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.review-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.review-item {
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0.15rem;
}

.review-label {
  font-size: 0.7rem;
}

.review-value {
  font-size: 0.82rem;
}

.review-nominee-table {
  font-size: 0.72rem;
}

.review-nominee-table th,
.review-nominee-table td {
  padding: 0.4rem 0.3rem;
}

.review-span-2,
.review-section-span-2 {
  grid-column: 1 / -1;
}

.review-header {
  flex-direction: column;
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.review-logo {
  width: 60px;
  height: 60px;
}

.review-photo-box {
  width: 90px;
  height: 100px;
  margin: 0 auto 1rem;
}

.success-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-xl);
}

.success-card h2 {
  font-size: 1.4rem;
}

.success-lead-text {
  font-size: 0.88rem;
}

.success-actions {
  flex-direction: column;
  gap: 0.75rem;
}

.success-actions .btn {
  width: 100%;
}

.receipt-meta-box {
  padding: 1rem;
}

.receipt-row {
  font-size: 0.8rem;
}

.payment-header {
  flex-direction: column;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.payment-amount-box {
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}

.payment-amount-value {
  font-size: 1.4rem;
}

.payment-methods-grid {
  grid-template-columns: 1fr;
  padding: 1.25rem;
  gap: 1rem;
}

.payment-instructions {
  padding: 1.25rem;
}

.payment-actions {
  flex-direction: column-reverse;
  gap: 0.75rem;
  padding: 1.25rem;
}

.payment-actions .btn {
  width: 100%;
}

.loading-text {
  font-size: 1.2rem;
}

.loading-subtext {
  font-size: 0.8rem;
  padding: 0 1rem;
}

/* Touch-friendly minimum tap targets */
.btn,
.intro-cta-btn,
input[type="checkbox"] + label,
.checkbox-container label {
  min-height: 44px;
}

/* === TABLET (480px+) === */
@media (min-width: 480px) {
  .form-card {
    padding: 1.5rem;
  }

  .stepper {
    gap: 0.3rem;
    padding: 0.875rem 1.25rem;
  }

  .step {
    min-width: 68px;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }

  .step-label {
    font-size: 0.62rem;
  }

  .card-header h2 {
    font-size: 1.2rem;
  }

  .declaration-text-box {
    max-height: 300px;
  }

  .signature-canvas-container {
    height: 180px;
  }

  .success-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .success-actions .btn {
    width: auto;
  }

  .payment-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .payment-actions .btn {
    width: auto;
  }
}

/* === TABLET LANDSCAPE / SMALL DESKTOP (768px+) === */
@media (min-width: 768px) {
  .form-card {
    padding: 2rem 2.5rem;
    border-radius: var(--radius-2xl);
  }

  .stepper {
    padding: 1rem 2rem;
    border-radius: var(--radius-2xl);
  }

  .step {
    min-width: 80px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .card-header {
    flex-direction: row;
    text-align: left;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .card-header h2 {
    font-size: 1.35rem;
  }

  .card-footer {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 1.5rem;
  }

  .card-footer .btn {
    width: auto;
    padding: 0.8rem 2rem;
  }

  .form-group label {
    font-size: 0.88rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .declaration-text-box {
    padding: 1.5rem;
    max-height: 340px;
    font-size: 0.85rem;
  }

  .signature-canvas-container {
    height: 200px;
  }

  .review-paper {
    padding: 2rem;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .review-item {
    padding: 0.6rem 0;
  }

  .review-label {
    font-size: 0.78rem;
  }

  .review-value {
    font-size: 0.9rem;
  }

  .review-header {
    flex-direction: row;
    text-align: left;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .review-logo {
    width: 70px;
    height: 70px;
  }

  .review-photo-box {
    width: 100px;
    height: 110px;
    margin: 0;
  }

  .success-card {
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
  }

  .success-card h2 {
    font-size: 1.8rem;
  }

  .success-lead-text {
    font-size: 0.95rem;
  }

  .payment-header {
    flex-direction: row;
    text-align: left;
    padding: 2rem 2.5rem;
  }

  .payment-amount-box {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
  }

  .payment-amount-value {
    font-size: 1.8rem;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 2.5rem;
  }

  .payment-instructions {
    padding: 2rem 2.5rem;
  }

  .payment-actions {
    flex-direction: row;
    justify-content: flex-end;
    padding: 1.5rem 2.5rem;
  }

  .payment-actions .btn {
    width: auto;
  }
}

/* === LARGE DESKTOP (1024px+) === */
@media (min-width: 1024px) {
  .form-card {
    padding: 2.5rem 3rem;
  }

  .stepper {
    padding: 1.25rem 3rem;
  }
}

/* ==========================================================================
   PRINT MEDIA STYLES - A4
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 18mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body {
    background: white;
    padding: 0;
    margin: 0;
    color: #111;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide everything non-printable */
  .app-header, .stepper, .form-card, .card-footer,
  #intro-screen, .bg-shape, .loading-overlay,
  .payment-screen, .success-screen,
  .app-footer, .mobile-sticky-cta,
  .social-share-sidebar, .scroll-top-btn,
  .whatsapp-float, .hero, #scroll-progress,
  #page-loader, .footer-btn-group,
  .card-header .card-icon-wrapper,
  .checkbox-container, .section-title,
  .section-subtitle-description, .section-header-row,
  .upload-dropzone, #form-container,
  #registration-form, .stepper, .card-header p {
    display: none !important;
  }

  /* Show only the review paper */
  #step-4, .review-paper, #printable-review-area {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: white !important;
  }

  .review-header {
    border-bottom: 3px double #12372A;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .review-header h2 {
    font-size: 16pt;
    color: #12372A;
    margin: 0 0 3px 0;
  }

  .review-subtitle {
    font-size: 10pt;
    color: #666;
    margin: 0;
  }

  .review-draft-stamp {
    display: none !important;
  }

  .review-photo-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
  }

  .review-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
    font-size: 10pt;
  }

  .review-section-span-2 {
    grid-column: 1 / -1;
    margin-top: 12px;
    margin-bottom: 6px;
  }

  .review-sec-title {
    font-size: 11pt;
    font-weight: 700;
    color: #12372A;
    border-bottom: 2px solid #12372A !important;
    padding-bottom: 4px;
    margin: 0;
  }

  .review-item {
    padding: 3px 0;
    border-bottom: 1px solid #eee;
  }

  .review-label {
    font-size: 9pt;
    color: #666;
  }

  .review-value {
    font-size: 10pt;
    color: #111;
    font-weight: 600;
  }

  .review-span-2 {
    grid-column: 1 / -1;
  }

  .review-nominee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-top: 4px;
  }

  .review-nominee-table th {
    background-color: #f0f0f0 !important;
    color: #111 !important;
    border: 1px solid #ccc;
    padding: 5px 6px;
    font-size: 9pt;
    text-align: left;
  }

  .review-nominee-table td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    vertical-align: top;
  }

  .block-address {
    font-size: 8.5pt;
    max-width: 150px;
  }

  #val-signature-img {
    max-height: 50px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
  }

  .sig-line {
    border-bottom: 1px solid #333;
    width: 140px;
    margin: 20px 0 4px 0;
  }

  .declaration-review-text {
    border-left: 3px solid #12372A;
    padding: 8px 12px;
    background-color: #f9f9f9;
    font-size: 9pt;
    margin: 8px 0;
    page-break-inside: avoid;
  }
}
