/* ==========================================================================
   NEDS / RSSDI Medical Registration Portal - Theme Stylesheet
   Inspired by North Eastern Diabetes Society (ESTD. 1995)
   ========================================================================== */

:root {
  --primary-maroon: #7e1726;
  --primary-dark: #580d19;
  --primary-light: #9e2336;
  --accent-gold: #c59223;
  --accent-gold-light: #f4e8cb;
  --accent-gold-dark: #916812;
  --crimson-btn: #c71b2d;
  --crimson-btn-hover: #a81322;
  --dark-topbar: #24050a;
  --text-primary: #22252a;
  --text-secondary: #5a626d;
  --text-muted: #838e9d;
  --bg-page: #f8f6f2;
  --bg-card: #ffffff;
  --border-light: #e4dcce;
  --border-subtle: #eee7dc;
  --success-green: #1b8a5a;
  --danger-red: #d32f2f;
  --warning-orange: #d97706;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 6px rgba(40, 5, 10, 0.05);
  --shadow-md: 0 8px 24px rgba(40, 5, 10, 0.08);
  --shadow-lg: 0 16px 40px rgba(40, 5, 10, 0.12);
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-maroon);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--crimson-btn);
}

/* ==========================================================================
   TOP BAR (Black/Deep Burgundy Header)
   ========================================================================== */
.neds-topbar {
  background-color: var(--dark-topbar);
  color: #dfd8d1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 146, 35, 0.25);
}

.neds-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.registry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.registry-badge .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-links a {
  color: #eed7be;
}

.topbar-links a:hover {
  color: #ffffff;
}

.digital-health-pill {
  background: rgba(126, 23, 38, 0.8);
  color: #fff !important;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(197, 146, 35, 0.4);
}

.digital-health-pill:hover {
  background: var(--primary-maroon);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.neds-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.neds-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1.2;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: #3d434c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-maroon);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-maroon);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.social-fb { background: #1877f2; }
.social-x { background: #000000; }
.social-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.btn-become-member {
  background: linear-gradient(135deg, var(--crimson-btn) 0%, var(--primary-maroon) 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 4px 14px rgba(199, 27, 45, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-become-member:hover {
  background: linear-gradient(135deg, var(--crimson-btn-hover) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(199, 27, 45, 0.45);
}

/* ==========================================================================
   PAGE HERO / BANNER
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #f6efe4 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0 30px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-maroon), var(--accent-gold), var(--crimson-btn));
}

.hero-banner .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-subtitle {
  color: var(--accent-gold-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-maroon);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 760px;
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-wrapper {
  margin: 35px auto 60px;
  max-width: 1050px;
}

/* ==========================================================================
   REGISTRATION FORM CARD
   ========================================================================== */
.registration-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-top-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--primary-maroon) 0%, var(--accent-gold) 50%, var(--crimson-btn) 100%);
}

.form-body {
  padding: 40px;
}

/* Section Header Panels */
.form-section {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fbf5ea;
  color: var(--primary-maroon);
  border: 1px solid var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-serif);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-maroon);
}

.section-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Grid Layouts */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}

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

/* Form Groups & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #33383f;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .req {
  color: var(--danger-red);
  font-weight: 700;
}

.form-label .hint-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background-color: #fff;
  border: 1.5px solid #dcd7ce;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--primary-maroon);
  box-shadow: 0 0 0 3px rgba(126, 23, 38, 0.12);
  background-color: #fffdfb;
}

.form-control.is-invalid {
  border-color: var(--danger-red);
  background-color: #fff8f8;
}

.input-hint {
  font-size: 12px;
  color: #7b1e2e;
  margin-top: 4px;
  font-style: italic;
}

.note-box {
  background: #fdfae8;
  border: 1px solid #ebd998;
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: #5c470a;
  line-height: 1.5;
}

.note-box strong {
  color: #402f03;
}

/* Radio Cards (PG Student & Payment Method) */
.radio-group-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fcfbf9;
  border: 1.5px solid #e0d8cc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-card-label:hover {
  background: #f8f3e9;
  border-color: var(--accent-gold);
}

.radio-card-label input[type="radio"] {
  accent-color: var(--primary-maroon);
  width: 17px;
  height: 17px;
}

.radio-card-label.selected {
  border-color: var(--primary-maroon);
  background: #fbf2f3;
  color: var(--primary-maroon);
  font-weight: 600;
}

/* File Upload Box */
.file-upload-card {
  border: 1.5px dashed #cfc7ba;
  background: #fdfbf7;
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.file-upload-card:hover {
  border-color: var(--primary-maroon);
  background: #fff;
}

.file-upload-card input[type="file"] {
  width: 100%;
  font-size: 13px;
  color: var(--text-secondary);
}

.file-upload-card input[type="file"]::file-selector-button {
  background: #efebe4;
  border: 1px solid #d1c7b8;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3b3f46;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.file-upload-card input[type="file"]::file-selector-button:hover {
  background: var(--primary-maroon);
  color: #fff;
  border-color: var(--primary-maroon);
}

.file-limit-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

.img-preview-box {
  margin-top: 8px;
  display: none;
}

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

/* Uploaded Document Status & Badge */
.file-upload-card.has-file {
  border: 1.5px solid #86efac;
  background: #f0fdf4;
}

.uploaded-doc-status-box {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.uploaded-doc-status-box .doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.uploaded-doc-status-box .doc-info {
  flex-grow: 1;
  min-width: 0;
}

.uploaded-doc-status-box .doc-status-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.uploaded-doc-status-box .doc-filename {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploaded-doc-status-box .doc-filename a {
  color: #0284c7;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.uploaded-doc-status-box .doc-filename a:hover {
  color: #0369a1;
}

.uploaded-doc-status-box .doc-hint {
  font-size: 11px;
  color: #64748b;
}

/* Banner for upload policy */
.upload-policy-banner {
  background: #fef7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--warning-orange);
  color: #9a3412;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Payment Method & Auto-Calculated Amount */
.amount-readonly-box {
  position: relative;
}

.amount-readonly-box .currency-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--primary-maroon);
  font-size: 16px;
}

.amount-readonly-box input {
  padding-left: 36px;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-maroon);
  background-color: #f7f3eb !important;
  cursor: not-allowed;
}

.bank-details-link {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

/* Interactive Captcha Card */
.captcha-container {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.recaptcha-mock {
  width: 304px;
  height: 78px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  user-select: none;
}

.recaptcha-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recaptcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.recaptcha-checkbox:hover {
  border-color: #999;
}

.recaptcha-checkbox.checked {
  border-color: #0f9d58;
  background: #0f9d58;
}

.recaptcha-checkbox.checked::after {
  content: "✔";
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}

.recaptcha-label {
  font-size: 14px;
  color: #222;
  font-family: Roboto, helvetica, arial, sans-serif;
}

.recaptcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.recaptcha-logo-icon {
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 4C12.95 4 4 12.95 4 24h6c0-7.73 6.27-14 14-14V4z'/%3E%3Cpath fill='%2334A853' d='M44 24c0 11.05-8.95 20-20 20v-6c7.73 0 14-6.27 14-14h6z'/%3E%3Cpath fill='%23FBBC05' d='M24 44c-11.05 0-20-8.95-20-20h6c0 7.73 6.27 14 14 14v6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.recaptcha-brand-text {
  font-size: 9px;
  color: #555;
  margin-top: 2px;
}

.recaptcha-links {
  font-size: 8px;
  color: #555;
}

.terms-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 18px 0 28px;
  line-height: 1.4;
}

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

/* Action Buttons (Submit & Reset) */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 15px;
}

.btn-submit {
  background: #198754;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background: #157347;
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.4);
  transform: translateY(-1px);
}

.btn-reset {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background: #bb2d3b;
}

/* ==========================================================================
   MODAL DIALOG (Bank Details & Terms)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 8, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: var(--primary-maroon);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
  line-height: 1.6;
}

.bank-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.bank-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.bank-info-table td:first-child {
  font-weight: 600;
  color: var(--primary-maroon);
  width: 38%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.neds-footer {
  background: #180306;
  color: #bfb5aa;
  padding: 40px 0 20px;
  border-top: 4px solid var(--accent-gold);
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  text-align: center;
  padding-top: 18px;
  font-size: 12.5px;
  color: #8c8276;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .form-body {
    padding: 24px 18px;
  }
  .brand-text h1 {
    font-size: 17px;
  }
  .neds-topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MODAL DIALOG POPUP (Bank Details & QR Code)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: var(--primary-maroon);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.modal-body {
  padding: 24px;
  line-height: 1.6;
}

.bank-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.bank-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.bank-info-table td:first-child {
  font-weight: 600;
  color: var(--primary-maroon);
  width: 38%;
}

/* ==========================================================================
   UPI QR PAYMENT CARD (Union Bank of India)
   ========================================================================== */
.upi-qr-wrapper {
  margin-top: 24px;
  grid-column: 1 / -1;
}

.upi-qr-card {
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 58, 112, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
}

.ubi-bank-header {
  background: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #ed232a;
}

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

.ubi-logo-badge {
  font-weight: 900;
  font-size: 24px;
  color: #ed232a;
  letter-spacing: -1.5px;
  line-height: 1;
}

.ubi-names {
  text-align: left;
  line-height: 1.15;
}

.ubi-names .hindi {
  font-size: 14px;
  font-weight: 800;
  color: #003a70;
}

.ubi-names .eng {
  font-size: 11px;
  font-weight: 700;
  color: #003a70;
}

.ubi-tagline {
  font-size: 11px;
  color: #ed232a;
  font-weight: 700;
}

.upi-card-body {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  padding: 24px 20px 20px;
  color: #ffffff;
}

.ubi-beneficiary-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f8fafc;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.qr-code-white-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  max-width: 280px;
}

.qr-scan-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.qr-image-element {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.upi-id-badge {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #003a70;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-block;
  letter-spacing: 0.5px;
  border: 1px dashed #cbd5e1;
}

.upi-supported-apps {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}

.app-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.upi-confirm-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
  text-align: left;
}

.upi-confirm-box .form-label {
  color: #0f172a;
  font-weight: 700;
}

.open-qr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--crimson-btn) 0%, var(--primary-maroon) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(199, 27, 45, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.open-qr-link:hover {
  background: linear-gradient(135deg, var(--crimson-btn-hover) 0%, var(--primary-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(199, 27, 45, 0.35);
}

/* UPI App Direct Link Badges */
.upi-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.upi-app-pill:hover {
  border-color: var(--primary-maroon);
  color: var(--primary-maroon);
  background: #fff8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08);
}

.upi-app-pill img,
.upi-app-pill svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.upi-app-pill.pill-sm {
  padding: 5px 12px;
  font-size: 12px;
  gap: 7px;
}

.upi-app-pill.pill-sm img,
.upi-app-pill.pill-sm svg {
  width: 17px;
  height: 17px;
}

/* =============================================================
   STAGE-BY-STAGE MULTI-STEP WIZARD & PROGRESS BAR
   ============================================================= */
.form-step-wizard {
  margin-bottom: 34px;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--border-light);
}

.step-badge-counter {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.step-badge-counter span {
  background: #fdfaf6;
  border: 1px solid #ebd998;
  padding: 4px 14px;
  border-radius: 20px;
}

.step-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
}

.step-progress-line-bg {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 2px;
}

.step-progress-line-fill {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 4px;
  background: linear-gradient(90deg, #059669 0%, var(--accent-gold) 50%, var(--primary-maroon) 100%);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  border-radius: 2px;
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  text-align: center;
  user-select: none;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-node.active .step-circle {
  border-color: var(--primary-maroon);
  background: var(--primary-maroon);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(115, 21, 38, 0.16);
  transform: scale(1.08);
}

.step-node.completed .step-circle {
  border-color: #059669;
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.step-title {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.3s ease;
}

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

.step-node.completed .step-title {
  color: #059669;
  font-weight: 700;
}

/* Form Steps Visibility */
.form-step {
  display: none;
  animation: fadeInStep 0.35s ease-in-out;
}

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

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

/* Step Navigation Buttons */
.step-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  gap: 16px;
}

.btn-step-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step-prev:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateX(-2px);
}

.btn-step-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--crimson-btn) 0%, var(--primary-maroon) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(199, 27, 45, 0.25);
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-step-next:hover {
  background: linear-gradient(135deg, var(--crimson-btn-hover) 0%, var(--primary-dark) 100%);
  transform: translateX(2px);
  box-shadow: 0 6px 16px rgba(199, 27, 45, 0.35);
}

@media (max-width: 640px) {
  .step-node {
    width: 75px;
  }
  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .step-title {
    font-size: 10.5px;
  }
  .step-progress-line-bg,
  .step-progress-line-fill {
    top: 17px;
    left: 25px;
    right: 25px;
  }
  .step-nav-bar {
    flex-direction: column-reverse;
  }
  .btn-step-prev, .btn-step-next {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   INITIAL ENTRY GATEWAY / RESUME PORTAL
   ============================================================= */
.registration-gateway-box {
  max-width: 640px;
  margin: 10px auto 30px;
  animation: fadeInStep 0.4s ease;
}

.gateway-header {
  text-align: center;
  margin-bottom: 24px;
}

.gateway-icon-circle {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  background: #fbf2f3;
  border: 2px solid #ebd998;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary-maroon);
  box-shadow: 0 4px 14px rgba(115, 21, 38, 0.12);
}

.gateway-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--primary-maroon);
  margin-bottom: 8px;
  font-weight: 700;
}

.gateway-header p {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.5;
}

.gateway-form-card {
  background: #ffffff;
  border: 1.5px solid #ebd998;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gateway-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .gateway-input-grid {
    grid-template-columns: 1fr;
  }
}

.gateway-action-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .gateway-action-row {
    flex-direction: column;
  }
}

.btn-gateway-resume {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--crimson-btn) 0%, var(--primary-maroon) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(199, 27, 45, 0.28);
  transition: all 0.2s ease;
}

.btn-gateway-resume:hover {
  background: linear-gradient(135deg, var(--crimson-btn-hover) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 27, 45, 0.38);
}

.btn-gateway-new {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gateway-new:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.gateway-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gateway-alert.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.gateway-alert.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.gateway-alert.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.gateway-alert.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.gateway-footer-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #1e293b;
}

.password-rules-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11.5px;
}

.rule-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.rule-item i {
  font-size: 9px;
  transition: all 0.2s ease;
}

.rule-item.valid {
  color: #16a34a;
  font-weight: 600;
}

.rule-item.valid i {
  color: #16a34a;
  font-size: 11px;
}
