/* ==========================================================================
   IBIS Education Finance Assistance - Modern Design System
   Theme: #E27A01 (IBIS Brand Orange) & Pure White Only
   ========================================================================== */

:root {
  /* Primary Brand Orange & White */
  --primary-brand: #E27A01;
  --primary-brand-hover: #c96c00;
  --primary-brand-dark: #b86200;
  --primary-brand-light: #fff7ed;
  --primary-brand-tint: #ffedd5;
  --primary-brand-border: #fed7aa;

  /* Pure White & Clean Canvas */
  --color-white: #ffffff;
  --bg-main: #fbfbfb;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;

  /* Typography */
  --text-main: #262930;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  --text-brand: #E27A01;

  /* Borders & Focus */
  --border-light: #e5e7eb;
  --border-focus: #E27A01;

  /* Status Colors */
  --status-pending-bg: #fff7ed;
  --status-pending-text: #c2410c;
  --status-pending-border: #fed7aa;

  --status-approved-bg: #ecfdf5;
  --status-approved-text: #047857;
  --status-approved-border: #a7f3d0;

  --status-rejected-bg: #fef2f2;
  --status-rejected-text: #b91c1c;
  --status-rejected-border: #fecaca;

  /* Shadows & Glow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(226, 122, 1, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(226, 122, 1, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -8px rgba(226, 122, 1, 0.16);
  --shadow-orange-btn: none;
  --shadow-orange-btn-hover: none;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Compatibility Tokens */
  --primary-navy: #E27A01;
  --primary-dark: #c96c00;
  --primary-blue: #E27A01;
  --accent-cyan: #E27A01;
  --accent-cyan-light: #fff7ed;
  --accent-cyan-glow: rgba(226, 122, 1, 0.25);
  --color-yellow-orange: #E27A01;
  --color-black-rich: #1f2937;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-title-group h1, .kpi-number, .ref-number-pill strong {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   Layout & Navigation (Clean White with #E27A01 Accent)
   -------------------------------------------------------------------------- */
.navbar-ibis {
  background: #ffffff;
  border-bottom: 2px solid #E27A01;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 10px rgba(226, 122, 1, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Hero / Page Header (#E27A01 Background with White Text, Reduced Spacing)
   -------------------------------------------------------------------------- */
.form-hero-banner {
  background: linear-gradient(135deg, #E27A01 0%, #ed8205 50%, #d46e00 100%);
  color: #ffffff;
  padding: 1.35rem 1.25rem 2.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 15%;
  width: 70%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.65rem;
}

.hero-brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.22rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.hero-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Multi-Step Wizard
   -------------------------------------------------------------------------- */
.form-wizard-container {
  max-width: 900px;
  margin: -1.6rem auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.wizard-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -5px rgba(226, 122, 1, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  border-top: 4px solid #E27A01;
  overflow: hidden;
}

.wizard-progress-header {
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  padding: 1.1rem 1.75rem;
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  list-style: none;
}

.stepper-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2.5px;
  background: #f1f5f9;
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  cursor: pointer;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6b7280;
  transition: color var(--transition-fast);
  display: block;
}

.stepper-step.active .step-circle {
  background: #E27A01;
  border-color: #E27A01;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(226, 122, 1, 0.4);
  transform: scale(1.08);
  font-weight: 800;
}

.stepper-step.active .step-label {
  color: #E27A01;
  font-weight: 700;
}

.stepper-step.completed .step-circle {
  background: #E27A01;
  border-color: #c96c00;
  color: #ffffff;
  font-weight: 800;
}

.stepper-step.completed .step-label {
  color: #E27A01;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Form Content & Fields
   -------------------------------------------------------------------------- */
.wizard-form-body {
  padding: 2rem 2.25rem;
}

.section-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.section-pane.active {
  display: block;
}

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

.section-header-box {
  margin-bottom: 1.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #fff7ed;
  color: #E27A01;
  border: 1.5px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.section-title-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.section-title-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.col-full {
  grid-column: 1 / -1;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.4rem;
}

.required-asterisk {
  color: #E27A01;
  margin-left: 2px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.95rem;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #E27A01;
  box-shadow: 0 0 0 3px rgba(226, 122, 1, 0.2);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fffaf0;
}

.invalid-feedback {
  display: block;
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Radio & Option Pills (#E27A01 & White Design System) */
.options-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.option-pill-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
}

.option-pill-label:hover {
  background: #fffaf5;
  border-color: #E27A01;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.option-pill-label:active {
  transform: translateY(0);
}

/* Custom Styled Radio Button Indicator */
.option-pill-label input[type="radio"],
.consent-card-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  margin: 0;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
}

.option-pill-label input[type="radio"]::before,
.consent-card-label input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #E27A01;
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-pill-label:hover input[type="radio"],
.consent-card-label:hover input[type="radio"] {
  border-color: #E27A01;
  box-shadow: none !important;
}

/* Active / Checked State */
.option-pill-label:has(input[type="radio"]:checked) {
  background: #fff7ed;
  border-color: #E27A01;
  border-width: 1.5px;
  color: #9a3412;
  font-weight: 600;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.option-pill-label:has(input[type="radio"]:checked) input[type="radio"],
.consent-card-label:has(input[type="radio"]:checked) input[type="radio"] {
  border-color: #E27A01;
  background: #ffffff;
  box-shadow: none !important;
}

.option-pill-label:has(input[type="radio"]:checked) input[type="radio"]::before,
.consent-card-label:has(input[type="radio"]:checked) input[type="radio"]::before {
  transform: scale(1);
}

/* Accessible Focus Visible */
.option-pill-label input[type="radio"]:focus-visible,
.consent-card-label input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Declaration Consent Radio Cards (#E27A01 & White, Zero Shadow)
   -------------------------------------------------------------------------- */
.consent-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.consent-card-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem 1.35rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
}

.consent-card-label:hover {
  border-color: #E27A01;
  background: #fffaf5;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.consent-card-label:active {
  transform: translateY(0);
}

.consent-card-label:has(input[type="radio"]:checked) {
  background: #fff7ed;
  border-color: #E27A01;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.consent-card-label input[type="radio"] {
  margin-top: 2px;
}

.consent-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.consent-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: #fff7ed;
  color: #E27A01;
  border: 1px solid #fed7aa;
  transition: all 0.2s ease;
}

.consent-card-label:has(input[type="radio"]:checked) .consent-badge-icon {
  background: #E27A01;
  color: #ffffff;
  border-color: #E27A01;
}

.consent-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.2s ease;
}

.consent-card-label:has(input[type="radio"]:checked) .consent-card-title {
  color: #9a3412;
}

.consent-card-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.consent-card-label:has(input[type="radio"]:checked) .consent-card-desc {
  color: #7c2d12;
}

/* --------------------------------------------------------------------------
   Aadhaar Document Upload Dropzone (#E27A01 & White)
   -------------------------------------------------------------------------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.aadhaar-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: #ffffff;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}

.aadhaar-dropzone:hover,
.aadhaar-dropzone.dragover {
  border-color: #E27A01;
  background: #fffaf5;
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff7ed;
  color: #E27A01;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  transition: transform var(--transition-fast);
}

.aadhaar-dropzone:hover .dropzone-icon {
  transform: scale(1.1);
  color: #ffffff;
  background: #E27A01;
  border-color: #E27A01;
}

.dropzone-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

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

.dropzone-btn {
  margin-top: 0.75rem;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #E27A01;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.preview-container {
  display: none;
  width: 100%;
  text-align: center;
  position: relative;
}

.preview-img {
  max-width: 100%;
  max-height: 140px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.file-info-bar {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #E27A01;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-remove-file {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  margin-top: 4px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Declaration Box (#E27A01 & White)
   -------------------------------------------------------------------------- */
.declaration-card {
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-left: 4px solid #E27A01;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
}

.declaration-text {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   Wizard Footer & Navigation Buttons
   -------------------------------------------------------------------------- */
.wizard-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 1.1rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-ibis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.68rem 1.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-ibis-primary {
  background: #E27A01;
  color: #ffffff;
  box-shadow: none !important;
}

.btn-ibis-primary:hover {
  background: #c96c00;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.btn-ibis-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  box-shadow: none !important;
}

.btn-ibis-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
  box-shadow: none !important;
}

.btn-ibis-success {
  background: #E27A01;
  color: #ffffff;
  box-shadow: none !important;
}

.btn-ibis-success:hover {
  background: #c96c00;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none !important;
}

/* Universal Button & Pill Shadow Removal */
button,
.btn-ibis,
.btn-ibis-primary,
.btn-ibis-secondary,
.btn-ibis-success,
.btn-action,
.btn-portal-link,
.dropzone-btn,
.btn-remove-file,
.tab-switch-btn {
  box-shadow: none !important;
}

button:hover,
button:active,
button:focus,
.btn-ibis:hover,
.btn-ibis:active,
.btn-ibis:focus,
.btn-ibis-primary:hover,
.btn-ibis-primary:active,
.btn-ibis-primary:focus,
.btn-ibis-secondary:hover,
.btn-ibis-secondary:active,
.btn-ibis-secondary:focus,
.btn-ibis-success:hover,
.btn-ibis-success:active,
.btn-ibis-success:focus,
.btn-action:hover,
.btn-action:active,
.btn-action:focus,
.btn-portal-link:hover,
.btn-portal-link:active,
.btn-portal-link:focus,
.dropzone-btn:hover,
.dropzone-btn:active,
.dropzone-btn:focus,
.btn-remove-file:hover,
.btn-remove-file:active,
.btn-remove-file:focus,
.tab-switch-btn:hover,
.tab-switch-btn:active,
.tab-switch-btn:focus {
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Confirmation / Success Page
   -------------------------------------------------------------------------- */
.success-container {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.success-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -5px rgba(226, 122, 1, 0.1);
  border: 1px solid var(--border-light);
  border-top: 4px solid #E27A01;
  padding: 2.5rem 2.25rem;
  text-align: center;
}

.success-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff7ed;
  color: #E27A01;
  border: 2px solid #fed7aa;
  font-size: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 25px rgba(226, 122, 1, 0.25);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ref-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fffaf5;
  border: 1.5px dashed #E27A01;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}

.ref-number-pill strong {
  font-size: 1.35rem;
  font-family: monospace;
  color: #E27A01;
  letter-spacing: 0.05em;
}

.summary-table {
  width: 100%;
  text-align: left;
  margin: 1.75rem 0;
  border-collapse: collapse;
}

.summary-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.summary-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.summary-table td:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.steps-timeline {
  display: flex;
  justify-content: space-between;
  margin: 1.75rem 0;
  text-align: center;
  gap: 10px;
}

.step-box {
  flex: 1;
  background: #fdfaf7;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fed7aa;
}

.step-box i {
  font-size: 1.15rem;
  color: #E27A01;
  margin-bottom: 0.25rem;
  display: block;
}

.step-box span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  display: block;
}

/* --------------------------------------------------------------------------
   Admin Dashboard Styling (#E27A01 & White Theme)
   -------------------------------------------------------------------------- */
.admin-body {
  background: #fdfaf7;
}

.admin-header {
  background: #ffffff;
  color: #1f2937;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #E27A01;
}

.admin-layout-container {
  max-width: 1400px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 3px solid #E27A01;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-fast);
}

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

.kpi-info h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.kpi-info .kpi-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f2937;
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.kpi-blue .kpi-icon { 
  background: #fff7ed; 
  color: #E27A01; 
  border: 1px solid #fed7aa;
}
.kpi-amber .kpi-icon { 
  background: #fff7ed; 
  color: #c2410c; 
  border: 1px solid #fed7aa;
}
.kpi-emerald .kpi-icon { 
  background: #ecfdf5; 
  color: #059669; 
  border: 1px solid #a7f3d0;
}
.kpi-rose .kpi-icon { 
  background: #fef2f2; 
  color: #dc2626; 
  border: 1px solid #fecaca;
}

/* Filter & Action Toolbar */
.toolbar-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.search-input-wrap {
  position: relative;
  min-width: 250px;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  padding-left: 2.25rem;
}

.toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Data Table with #E27A01 Header and White Body */
.table-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table thead {
  background: #E27A01;
  color: #ffffff;
}

.data-table th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #fffaf5;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.badge-approved {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border: 1px solid var(--status-approved-border);
}

.badge-rejected {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border: 1px solid var(--status-rejected-border);
}

/* Action Buttons */
.btn-action {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  color: #374151;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action:hover {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #E27A01;
}

.btn-action-approve {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.btn-action-approve:hover {
  background: #d1fae5;
}

.btn-action-reject {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-action-reject:hover {
  background: #fee2e2;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(226, 122, 1, 0.2);
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-top: 4px solid #E27A01;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #E27A01;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #fafafa;
}

/* Aadhaar Preview in Modal */
.aadhaar-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.aadhaar-preview-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  background: #fffaf5;
}

.aadhaar-preview-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E27A01;
  margin-bottom: 0.5rem;
}

.aadhaar-preview-card img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #fed7aa;
  background: white;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.aadhaar-preview-card img:hover {
  transform: scale(1.02);
}

/* Lightbox overlay for full-size inspection */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 35px rgba(0,0,0,0.7);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .form-grid,
  .upload-grid,
  .kpi-grid,
  .aadhaar-modal-grid {
    grid-template-columns: 1fr;
  }
  
  .wizard-form-body {
    padding: 1.25rem 1rem;
  }
  
  .wizard-footer {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  .wizard-footer button {
    width: 100%;
    justify-content: center;
  }
  
  .stepper-step .step-label {
    display: none;
  }
  
  .stepper-nav::before {
    left: 20px;
    right: 20px;
  }
  
  .toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-content h1 {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   Print Styles for Official Receipts
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar-ibis,
  footer,
  .no-print,
  .receipt-actions-toolbar,
  .success-top-card,
  .admin-sidebar,
  .btn-action,
  .btn-ibis {
    display: none !important;
  }
  .success-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .official-receipt-card {
    border: 1px solid #94a3b8 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem !important;
    margin: 0 !important;
  }
}

