/* ============================================================
   JSBC - Global Styles
   ============================================================ */

:root {
  --jsbc-primary: #1a3c6e;
  --jsbc-secondary: #ffc107;
  --jsbc-accent: #e63946;
  --jsbc-light: #f4f6fb;
  --jsbc-text: #2c3e50;
  --jsbc-border: #dee2e6;
  --sidebar-width: 240px;
  --topbar-height: 56px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--jsbc-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.jsbc-topbar {
  background: #0d2444;
  color: #b0c4de;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 2px solid var(--jsbc-secondary);
}
.jsbc-topbar a { color: var(--jsbc-secondary); text-decoration: none; }
.jsbc-topbar .topbar-divider { color: #345; }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.jsbc-header {
  background: linear-gradient(135deg, #0d1f3c 0%, var(--jsbc-primary) 50%, #163566 100%);
  border-bottom: 3px solid var(--jsbc-secondary);
  padding: 0;
}

/* Logo */
.jsbc-logo-wrap { display: block; line-height: 0; text-decoration: none; }
.jsbc-logo-img  {
  height: 92px;
  width: 92px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255,193,7,.75);
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
}
.jsbc-logo-wrap:hover .jsbc-logo-img {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* Title block */
.jsbc-title-block { color: #fff; }
.jsbc-title-hindi {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
  color: #ffd54f;
  line-height: 1.3;
  letter-spacing: .3px;
}
.jsbc-title-english {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #fff;
  line-height: 1.3;
}
.jsbc-title-sub {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
  letter-spacing: .3px;
}
.jsbc-portal-badge {
  display: inline-block;
  background: rgba(255,193,7,.18);
  border: 1px solid rgba(255,193,7,.45);
  color: #ffd54f;
  font-size: 11.5px;
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: .3px;
}

/* Accreditation badges */
.jsbc-accred-badge {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

/* ---- Navbar ---- */
.jsbc-navbar {
  background: #1e4a8a;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  min-height: 50px;
  z-index: 1030;
  border-bottom: 2px solid rgba(255,193,7,.4);
}
.jsbc-navbar .navbar-brand { font-size: 15px; }
.jsbc-navbar .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 14px !important;
  color: rgba(255,255,255,.85) !important;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.jsbc-navbar .nav-link:hover,
.jsbc-navbar .nav-link.active {
  color: #ffc107 !important;
  border-bottom-color: #ffc107;
  background: rgba(255,255,255,.06);
}
.jsbc-navbar .navbar-toggler { border-color: rgba(255,255,255,.4); }

/* ---- Footer ---- */
.jsbc-footer {
  background: linear-gradient(135deg, #0d2444 0%, var(--jsbc-primary) 100%);
  margin-top: auto;
}

/* ---- Auth / Public Cards ---- */
.auth-wrapper {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,60,110,.12);
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--jsbc-primary), #0d2444);
  color: #fff;
  padding: 28px 32px 24px;
  text-align: center;
}
.auth-card-header h2 { font-size: 20px; margin: 0; }
.auth-card-header p  { font-size: 13px; opacity: .8; margin: 6px 0 0; }

.auth-card-body { padding: 32px; }

/* ---- Form Styles ---- */
.form-label { font-weight: 500; font-size: 14px; }

.form-control:focus, .form-select:focus {
  border-color: var(--jsbc-primary);
  box-shadow: 0 0 0 .2rem rgba(26,60,110,.15);
}

.btn-jsbc {
  background: var(--jsbc-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .2s;
}
.btn-jsbc:hover  { background: #0d2444; color: #fff; }
.btn-jsbc-warning {
  background: var(--jsbc-secondary);
  color: #212529;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
}

/* ---- OTP Input ---- */
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-inputs input {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  border: 2px solid var(--jsbc-border);
  border-radius: 8px;
  transition: border-color .2s;
}
.otp-inputs input:focus { border-color: var(--jsbc-primary); outline: none; }

/* ---- Status Badges ---- */
.badge { font-size: 12px; padding: 5px 10px; border-radius: 20px; }

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, var(--jsbc-primary) 0%, #0d2444 60%, #162d55 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.hero-section h1 { font-size: 2.2rem; font-weight: 700; }
.hero-section p  { font-size: 1.1rem; opacity: .9; }

/* ---- Feature Cards ---- */
.feature-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feature-icon.blue   { background: #dbeafe; color: var(--jsbc-primary); }
.feature-icon.green  { background: #dcfce7; color: #16a34a; }
.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.purple { background: #f3e8ff; color: #9333ea; }

/* ---- Alert Messages ---- */
.alert-float {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 420px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ---- Step Wizard ---- */
.step-wizard { display: flex; justify-content: center; margin-bottom: 32px; }
.step-wizard .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}
.step-wizard .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--jsbc-border);
}
.step-wizard .step.active::after,
.step-wizard .step.completed::after { background: var(--jsbc-primary); }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jsbc-border);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 1;
}
.step.active   .step-circle { background: var(--jsbc-primary); color: #fff; }
.step.completed .step-circle { background: #16a34a; color: #fff; }
.step-label { font-size: 11px; margin-top: 4px; text-align: center; color: #666; }
.step.active .step-label { color: var(--jsbc-primary); font-weight: 600; }

/* ---- Document Upload Card ---- */
.doc-upload-card {
  border: 2px dashed var(--jsbc-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.doc-upload-card:hover { border-color: var(--jsbc-primary); background: #f0f4ff; }
.doc-upload-card.uploaded { border-color: #16a34a; border-style: solid; background: #f0fff4; }
.doc-upload-card .doc-icon { font-size: 32px; margin-bottom: 8px; }

/* ---- Application Preview ---- */
.preview-section-title {
  background: var(--jsbc-primary);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  margin: 20px 0 12px;
}
.preview-field label { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.preview-field p { font-size: 14px; font-weight: 500; margin: 0; }

/* ---- Print Styles ---- */
@media print {
  .no-print { display: none !important; }
  .panel-sidebar, .panel-topbar, .jsbc-navbar, .jsbc-footer { display: none !important; }
  .panel-content { margin: 0 !important; }
}

/* ============================================================
   HERO SECTION (Redesigned)
   ============================================================ */
.jsbc-hero {
  position: relative;
  background: linear-gradient(135deg, #071730 0%, #0d2444 40%, #1a3c6e 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.jsbc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.jsbc-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,193,7,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-notice-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.4);
  color: #ffd54f;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 14px;
  letter-spacing: .3px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.3px;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 540px;
}

.btn-hero {
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 6px;
  transition: transform .15s, box-shadow .15s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.hero-pill {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
}

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.hero-card-seal {
  display: flex; justify-content: center; margin-bottom: 12px;
}
.hero-card-seal img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffd54f;
  font-family: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
  margin-bottom: 2px;
}
.hero-card-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
}
.hero-card-info {
  text-align: left;
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.jsbc-stats-bar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: relative;
  z-index: 1;
}
.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border-right: 1px solid #f0f2f5;
  text-align: center;
}
.stats-item:last-child { border-right: none; }
.stats-icon { font-size: 26px; margin-bottom: 6px; }
.stats-num  { font-size: 2rem; font-weight: 800; line-height: 1; }
.stats-label{ font-size: 13px; color: #6c757d; margin-top: 3px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--jsbc-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jsbc-primary);
  margin-bottom: 8px;
}
.section-sub {
  color: #6c757d;
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   STEPS TRACK
   ============================================================ */
.steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 991px) { .steps-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps-track { grid-template-columns: 1fr; } }

.step-card-v2 {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.step-card-v2:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,60,110,.12); }

.step-num-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.step-num-badge.bg-warning { color: #212529 !important; }
.step-num-badge.bg-purple {
  background: #9333ea !important; color: #fff !important;
}

.step-icon-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 8px auto 14px;
}
.step-icon-ring.blue   { background: #dbeafe; color: #1d4ed8; }
.step-icon-ring.green  { background: #dcfce7; color: #16a34a; }
.step-icon-ring.orange { background: #ffedd5; color: #ea580c; }
.step-icon-ring.red    { background: #fee2e2; color: #dc2626; }
.step-icon-ring.purple { background: #f3e8ff; color: #9333ea; }

.step-title { font-size: 13.5px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.step-desc  { font-size: 12px; color: #6c757d; line-height: 1.5; margin: 0; }

.step-connector {
  position: absolute;
  top: 32px; right: -8px;
  width: 16px; height: 2px;
  background: #cbd5e1;
  z-index: 1;
}
@media (max-width: 991px) { .step-connector { display: none; } }

/* ============================================================
   FEATURES V2
   ============================================================ */
.feature-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.feature-card-v2:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,60,110,.1); }

.feature-icon-v2 {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feature-icon-v2.blue   { background: #dbeafe; color: #1d4ed8; }
.feature-icon-v2.green  { background: #dcfce7; color: #16a34a; }
.feature-icon-v2.orange { background: #ffedd5; color: #ea580c; }
.feature-icon-v2.purple { background: #f3e8ff; color: #9333ea; }

/* ============================================================
   NOTICE CARDS
   ============================================================ */
.notice-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  height: 100%;
}
.notice-card-header {
  background: #dc2626;
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
}
.notice-card-body { background: #fff; padding: 18px 20px; }
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: #4a5568;
}
.notice-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  border-bottom: 1px dashed #f0f0f0;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--jsbc-primary);
  font-size: 9px;
  top: 8px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.jsbc-cta-section {
  background: linear-gradient(135deg, #0d2444 0%, #1a3c6e 100%);
  padding: 52px 0;
  border-top: 3px solid var(--jsbc-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.jsbc-footer {
  background: linear-gradient(135deg, #071730 0%, #0d2444 100%);
  border-top: 3px solid var(--jsbc-secondary);
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .jsbc-header { text-align: center; }
  .jsbc-header .container > .d-flex { flex-direction: column; gap: 16px; align-items: center; }
  .jsbc-logo-img { height: 72px; width: 72px; }
  .jsbc-title-hindi  { font-size: 17px; }
  .jsbc-title-english{ font-size: 16px; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 576px) {
  .auth-card-body  { padding: 20px; }
  .hero-title      { font-size: 1.5rem; }
  .otp-inputs input{ width: 42px; height: 48px; font-size: 18px; }
  .stats-num       { font-size: 1.6rem; }
  .jsbc-title-hindi  { font-size: 15px; }
  .jsbc-title-english{ font-size: 14px; }
}
