/* =============================================================================
   Online Exam Registration Wizard & Admit Card Styles — Kazi Nazrul Academy
   File: pages/css/exam-registration.css
   Authoritative design matching KNA tokens: Plus Jakarta Sans, Sky/Navy palette
   ============================================================================= */

:root {
  --reg-brand: #0ea5e9;
  --reg-brand-accent: #0284c7;
  --reg-brand-dark: #0369a1;
  --reg-brand-light: #e0f2fe;
  --reg-slate-900: #0f172a;
  --reg-slate-800: #1e293b;
  --reg-slate-700: #334155;
  --reg-slate-600: #475569;
  --reg-slate-500: #64748b;
  --reg-slate-200: #e2e8f0;
  --reg-slate-100: #f1f5f9;
  --reg-slate-50:  #f8fafc;
  --reg-emerald: #10b981;
  --reg-emerald-light: #f0fdf4;
  --reg-amber: #d97706;
  --reg-amber-light: #fffbeb;
  --reg-rose: #e11d48;
  --reg-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --reg-radius-sm: 8px;
  --reg-radius-md: 12px;
  --reg-radius-lg: 18px;
  --reg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --reg-shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  --reg-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}

.exam-reg-page {
  font-family: var(--reg-font);
  background: var(--reg-slate-50);
  color: var(--reg-slate-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.exam-reg-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 18px 60px;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: calc(100vh - var(--kna-portal-h-height, 66px));
}

/* Guard: hide footer completely while registration page is in loading state */
.exam-reg-page.portal-loading .kna-portal-footer,
.portal-loading .kna-portal-footer {
  display: none !important;
}

/* User Status Bar */
.exam-user-header {
  background: #ffffff;
  border: 1px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  box-shadow: var(--reg-shadow-sm);
}

.exam-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--reg-brand-light) 0%, #bae6fd 100%);
  color: var(--reg-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.exam-user-email {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--reg-slate-800);
}

.exam-user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-reg-outline {
  padding: 8px 15px;
  min-height: 42px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-sm);
  color: var(--reg-slate-700);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--reg-font);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-reg-outline:hover {
  background: var(--reg-slate-100);
  color: var(--reg-slate-900);
}

/* Wizard Stepper Progress Header */
.exam-wizard-card {
  background: #ffffff;
  border: 1px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-lg);
  box-shadow: var(--reg-shadow-lg);
  overflow: hidden;
}

.exam-stepper-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--reg-slate-200);
  padding: 26px 24px 20px;
}

.exam-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.exam-stepper-line {
  position: absolute;
  top: 20px;
  left: 45px;
  right: 45px;
  height: 3px;
  background: var(--reg-slate-200);
  z-index: 1;
}

.exam-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: default;
  text-align: center;
}

.exam-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--reg-slate-200);
  color: var(--reg-slate-500);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.exam-step-item.active .exam-step-circle {
  background: var(--reg-brand-accent);
  border-color: var(--reg-brand-accent);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.25);
}

.exam-step-item.completed .exam-step-circle {
  background: var(--reg-emerald);
  border-color: var(--reg-emerald);
  color: #ffffff;
}

.exam-step-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--reg-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.exam-step-sub {
  font-size: 0.7rem;
  color: var(--reg-slate-400);
  margin-top: 1px;
}

.exam-step-item.active .exam-step-label {
  color: var(--reg-brand-accent);
}

.exam-step-item.completed .exam-step-label {
  color: var(--reg-emerald);
}

/* Step Content Form Area */
.exam-wizard-body {
  padding: 34px 38px 40px;
}

.exam-section-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--reg-slate-100);
}

.exam-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--reg-slate-900);
}

.exam-section-title i {
  color: var(--reg-brand-accent);
  font-size: 1.25rem;
}

.exam-label-optional {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--reg-slate-500);
  margin-left: 4px;
}

/* Grid Layouts */
.exam-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exam-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.exam-grid-full {
  grid-column: 1 / -1;
}

.exam-field-group {
  margin-bottom: 18px;
  min-width: 0;
}

.exam-field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--reg-slate-700);
  margin-bottom: 6px;
}

.exam-field-label .req {
  color: #dc2626;
  margin-left: 2px;
  font-weight: 800;
}

.exam-input, .exam-select, .exam-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--reg-font);
  font-size: 0.92rem;
  color: var(--reg-slate-900);
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-sm);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exam-input:focus, .exam-select:focus, .exam-textarea:focus {
  border-color: var(--reg-brand-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.exam-input.is-invalid, .exam-select.is-invalid, .exam-textarea.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fffafb;
}

/* Calendar Datepicker Integration */
.exam-input.kna-calendar-input {
  cursor: pointer !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%230ea5e9' d='M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h352V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 42px !important;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.exam-input.kna-calendar-input:hover {
  border-color: var(--reg-brand-accent) !important;
}

.exam-input.kna-calendar-input:focus,
.exam-input.kna-calendar-input.active {
  border-color: var(--reg-brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16) !important;
  outline: none !important;
}

.exam-input.kna-calendar-input.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fffafb !important;
}

.flatpickr-calendar {
  z-index: 999999 !important;
}

.exam-field-hint {
  font-size: 0.76rem;
  color: var(--reg-slate-500);
  margin-top: 5px;
  display: block;
}

.exam-field-error {
  font-size: 0.76rem;
  color: #dc2626;
  font-weight: 700;
  margin-top: 5px;
  display: none;
}

/* File Upload Dropzones */
.exam-upload-zone {
  border: 2px dashed var(--reg-slate-300);
  border-radius: var(--reg-radius-md);
  padding: 24px 18px;
  text-align: center;
  background: var(--reg-slate-50);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.exam-upload-zone:hover {
  border-color: var(--reg-brand-accent);
  background: #f0f9ff;
}

.exam-upload-icon {
  font-size: 2rem;
  color: var(--reg-brand-accent);
  margin-bottom: 8px;
}

.exam-upload-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--reg-slate-800);
  margin: 0 0 4px;
}

.exam-upload-sub {
  font-size: 0.76rem;
  color: var(--reg-slate-500);
  margin: 0;
}

.exam-preview-thumb-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--reg-slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.exam-preview-thumb-wrap:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.exam-preview-thumb-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--reg-slate-200);
  background: #f1f5f9;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
  display: block;
}

.exam-preview-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.exam-doc-pdf-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 1.6rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.exam-doc-pdf-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}

.exam-preview-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exam-preview-filename {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--reg-slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}

.exam-preview-status {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exam-preview-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-file-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease;
  line-height: 1.4;
  border: 1px solid transparent;
}

.btn-file-inspect {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-file-inspect:hover {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}

.btn-file-change {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-file-change:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* Review Step Cards */
.exam-review-card {
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-md);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--reg-shadow-sm);
}

.exam-review-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--reg-slate-900);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--reg-slate-100);
  padding-bottom: 10px;
}

.exam-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.exam-review-item {
  display: flex;
  flex-direction: column;
}

.exam-review-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--reg-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.exam-review-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--reg-slate-800);
}

.exam-declaration-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--reg-radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exam-declaration-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--reg-brand-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.exam-declaration-text {
  font-size: 0.86rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* Wizard Step Action Buttons */
.exam-wizard-footer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--reg-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-wizard-prev {
  padding: 11px 22px;
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-sm);
  color: var(--reg-slate-700);
  font-family: var(--reg-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-wizard-prev:hover {
  background: var(--reg-slate-100);
  border-color: var(--reg-slate-300);
  color: var(--reg-slate-900);
}

.btn-wizard-next {
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--reg-brand) 0%, var(--reg-brand-accent) 100%);
  border: none;
  border-radius: var(--reg-radius-sm);
  color: #ffffff;
  font-family: var(--reg-font);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
  transition: all 0.2s ease;
}

.btn-wizard-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.38);
}

.btn-submit-application {
  padding: 13px 32px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--reg-font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-submit-application:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-submit-application:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-application:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Confirmation Card & Actions */
.exam-success-card {
  background: #ffffff;
  border: 1px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-lg);
  box-shadow: var(--reg-shadow-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
}

.exam-success-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--reg-slate-100);
  margin-bottom: 24px;
}

.exam-success-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dash-primary {
  padding: 11px 22px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff !important;
  font-family: var(--reg-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-dash-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.btn-dash-secondary {
  padding: 11px 20px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  color: #0369a1 !important;
  font-family: var(--reg-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-dash-secondary:hover:not(:disabled) {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7 !important;
  transform: translateY(-1.5px);
}

.btn-reg-outline {
  padding: 11px 20px;
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: 10px;
  color: var(--reg-slate-700) !important;
  font-family: var(--reg-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-reg-outline:hover {
  background: var(--reg-slate-50);
  border-color: var(--reg-slate-300);
  color: var(--reg-slate-900) !important;
  transform: translateY(-1.5px);
}

.exam-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
  margin-bottom: 6px;
}

.exam-success-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--reg-slate-900);
}

.exam-success-meta-box {
  background: var(--reg-slate-50);
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-md);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* =============================================================================
   ADMIT CARD PRINT STYLES & LAYOUT
   ============================================================================= */
.admit-card-screen-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding: 10px 0 24px;
}

.admit-card-page {
  width: 720px;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  box-sizing: border-box;
  font-family: var(--reg-font);
  color: #0f172a;
  position: relative;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.admit-card-border {
  border: 2px solid #0f172a;
  padding: 20px 22px 20px 22px;
  box-sizing: border-box;
  background: #ffffff;
  position: relative;
}

.admit-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 10px;
}

.admit-header-logo-cell {
  width: 80px;
  vertical-align: middle;
}

.admit-logo-cell-left {
  text-align: left;
}

.admit-logo-cell-right {
  text-align: right;
}

.admit-header-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.admit-logo-left {
  margin-right: auto;
}

.admit-logo-right {
  margin-left: auto;
}

.admit-header-center-cell {
  vertical-align: middle;
  text-align: center;
  padding: 0 10px;
}

.admit-school-title {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.admit-school-sub {
  margin: 4px 0 8px;
  font-size: 9.5px;
  color: #475569;
  line-height: 1.4;
  font-weight: 500;
}

.admit-card-pill-wrap {
  display: flex;
  justify-content: center;
}

.admit-card-pill {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Candidate Particulars & Photo Table Layout */
.admit-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.admit-details-info-cell {
  vertical-align: top;
  padding: 0 16px 0 0;
}

.admit-details-photo-cell {
  vertical-align: top;
  width: 135px;
  text-align: center;
  padding: 0;
}

.admit-details-grid {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.admit-info-table {
  width: 100%;
  flex: 1;
  border-collapse: collapse;
}

.admit-info-table td {
  padding: 6.5px 8px;
  font-size: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.admit-info-label {
  font-weight: 800;
  color: #475569;
  width: 185px;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.admit-info-val {
  font-weight: 700;
  color: #0f172a;
  font-size: 12px;
}

.admit-photo-box {
  width: 130px;
  height: 165px;
  border: 1.5px solid #0f172a;
  padding: 2px;
  background: #ffffff;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admit-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admit-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.admit-schedule-table th, .admit-schedule-table td {
  border: 1px solid #0f172a;
  padding: 9px 8px;
  font-size: 11px;
  text-align: center;
}

.admit-schedule-table th {
  background: #f1f5f9;
  font-weight: 800;
  text-transform: uppercase;
}

.admit-rules-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #f8fafc;
}

.admit-rules-box h5 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
}

.admit-rules-box ol {
  margin: 0;
  padding-left: 20px;
  font-size: 9.5px;
  color: #334155;
  line-height: 1.55;
}

/* Footer Table: Dual QR Codes & Dual Signatures (Robust Table Layout) */
.admit-footer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed #cbd5e1;
}

.admit-footer-qr-cell {
  vertical-align: bottom;
  width: 45%;
  padding: 0;
}

.admit-footer-sig-cell {
  vertical-align: bottom;
  width: 55%;
  text-align: right;
  padding: 0;
}

.admit-qr-table {
  border-collapse: collapse;
}

.admit-qr-unit {
  vertical-align: top;
  text-align: center;
  padding: 0;
}

.admit-qr-gap {
  width: 18px;
}

.admit-qr-canvas {
  width: 80px;
  height: 80px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px;
  background: #ffffff;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.admit-qr-canvas img,
.admit-qr-canvas svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.admit-qr-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  margin-top: 6px;
}

.admit-sig-table {
  border-collapse: collapse;
  margin-left: auto;
}

.admit-sig-unit {
  vertical-align: bottom;
  text-align: center;
  width: 155px;
  padding: 0 6px;
}

.admit-sig-gap {
  width: 16px;
}

.admit-sig-space {
  height: 56px;
  width: 100%;
}

.admit-sig-line {
  border-top: 1.5px solid #0f172a;
  width: 155px;
  margin: 0 auto 6px;
  display: block;
}

.admit-sig-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.admit-security-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.admit-sec-notice {
  font-size: 8.5px;
  color: #334155;
  line-height: 1.4;
}

.admit-sec-contact {
  font-size: 8px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Legacy fallback classes */
.admit-qr-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.admit-qr-group {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.admit-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admit-signatures {
  display: flex;
  gap: 32px;
}

.admit-sig-box {
  width: 145px;
  border-top: 1px solid #0f172a;
  text-align: center;
  padding-top: 5px;
  font-size: 9.5px;
  font-weight: 800;
  color: #0f172a;
}

/* =============================================================================
   PRINT OPTIMIZATIONS (Single-Page A4 Guarantee)
   ============================================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide entire interactive web UI during printing */
  #portal-header-placeholder,
  #portal-footer-placeholder,
  .exam-user-header,
  .exam-wizard-card,
  .exam-success-header,
  .exam-success-meta-box,
  .exam-wizard-footer,
  .kna-auth-loader,
  .lightbox-overlay,
  .btn-wizard-prev,
  .btn-wizard-next,
  .btn-submit-application,
  .btn-dash-primary,
  .btn-dash-secondary,
  .btn-reg-outline,
  .exam-dash-container,
  .dash-main,
  .dash-modal-overlay,
  .dash-modal {
    display: none !important;
  }

  .exam-reg-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .exam-success-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  #successSection {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #dashAdmitCardPrintWrapper {
    display: block !important;
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    opacity: 1 !important;
    width: 100% !important;
    pointer-events: auto !important;
  }

  #admitCardPrintZone,
  #dashboardAdmitCardZone {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .admit-card-border {
    border: 2px solid #000000 !important;
    padding: 12px 16px 12px !important;
    background: #ffffff !important;
  }
}

/* Seat Roll Pill Badge */
.dash-seat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.06);
  line-height: 1.2;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */
@media (max-width: 768px) {
  .exam-reg-container {
    padding: 24px 16px 50px;
  }
  .exam-wizard-body {
    padding: 24px 18px;
  }
  .exam-grid-3, .exam-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .exam-review-grid {
    grid-template-columns: 1fr;
  }
  .exam-stepper-wrap {
    padding: 20px 14px 16px;
  }
  .exam-step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .exam-step-label {
    font-size: 0.7rem;
    max-width: 70px;
    text-align: center;
  }
  .exam-step-sub {
    display: none;
  }
  .btn-reg-outline {
    min-height: 42px;
    padding: 8px 14px;
  }
}

@media (max-width: 640px) {
  .exam-reg-container {
    padding: 18px 12px 44px;
  }
  .exam-user-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .exam-user-info {
    justify-content: flex-start;
  }
  .exam-user-nav {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .exam-user-nav .btn-reg-outline {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }
  .exam-wizard-card {
    border-radius: var(--reg-radius-md);
  }
  .exam-stepper-line {
    top: 17px;
    left: 28px;
    right: 28px;
  }
  .exam-stepper-wrap {
    padding: 16px 10px 14px;
  }
  .exam-step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    margin-bottom: 6px;
  }
  .exam-step-label {
    font-size: 0.65rem;
    line-height: 1.2;
    max-width: 62px;
  }
  .exam-wizard-body {
    padding: 20px 14px;
  }
  .exam-wizard-footer {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .btn-wizard-next,
  .btn-wizard-prev,
  .btn-submit-application {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.92rem;
  }
  .kna-select-trigger,
  .exam-input,
  .exam-select {
    min-height: 46px;
    font-size: max(0.92rem, 16px);
  }
}

@media (max-width: 480px) {
  .exam-reg-container {
    padding: 14px 10px 36px;
  }
  .exam-stepper-wrap {
    padding: 14px 6px 12px;
  }
  .exam-stepper-line {
    top: 16px;
    left: 20px;
    right: 20px;
    height: 2px;
  }
  .exam-step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    border-width: 2px;
  }
  .exam-step-label {
    font-size: 0.62rem;
    max-width: 54px;
    letter-spacing: -0.01em;
  }
  .exam-wizard-body {
    padding: 16px 12px;
  }
  .exam-section-title {
    font-size: 1.05rem;
  }
  .exam-review-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .exam-reg-container {
    padding: 10px 6px 28px;
  }
  .exam-stepper-wrap {
    padding: 12px 4px 10px;
  }
  .exam-step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
  }
  .exam-step-label {
    font-size: 0.58rem;
    max-width: 48px;
  }
  .exam-wizard-body {
    padding: 14px 8px;
  }
}

/* =============================================================================
   10. LIGHTBOX PHOTO & DOCUMENT PREVIEW MODAL
   ============================================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: lbFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-overlay.active {
  display: flex !important;
}

body.modal-open {
  overflow: hidden !important;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-container {
  position: relative;
  max-width: min(88vw, 680px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lbScaleIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lbScaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-img-frame {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-caption i {
  color: #38bdf8;
}

.lightbox-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fee2e2;
  color: #ef4444;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* =============================================================================
   11. KNA CUSTOM SELECT COMPONENT INTEGRATION
   ============================================================================= */
.kna-native-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
}

.kna-custom-select {
  position: relative;
  user-select: none;
  font-family: var(--reg-font);
  display: inline-block;
  vertical-align: middle;
  min-width: 140px;
  box-sizing: border-box;
}

.kna-custom-select.kna-select--form,
.exam-field-group > .kna-custom-select {
  display: block;
  width: 100%;
}

.kna-custom-select.is-open {
  z-index: 1000;
}

.kna-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid var(--reg-slate-200);
  border-radius: var(--reg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--reg-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  font-family: inherit;
  box-sizing: border-box;
  text-align: left;
  color: var(--reg-slate-900);
}

.kna-select-trigger:hover,
.kna-custom-select.is-open .kna-select-trigger {
  border-color: var(--reg-brand-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.kna-select-trigger:focus-visible {
  outline: none;
  border-color: var(--reg-brand-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.kna-custom-select.disabled .kna-select-trigger,
.kna-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--reg-slate-50);
  border-color: var(--reg-slate-200);
  pointer-events: none;
}

.kna-custom-select.is-invalid .kna-select-trigger {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
  background-color: #fffafb;
}

.kna-select-trigger-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.kna-select-trigger-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--reg-brand-light);
  color: var(--reg-brand-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.kna-select-label-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--reg-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.kna-select-value-text,
.kna-select-trigger-text {
  font-weight: 700;
  color: var(--reg-slate-900);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kna-select-chevron,
.kna-select-arrow {
  color: var(--reg-slate-400);
  font-size: 0.75rem;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.kna-custom-select.is-open .kna-select-chevron,
.kna-custom-select.is-open .kna-select-arrow {
  transform: rotate(180deg);
  color: var(--reg-brand-accent);
}

.kna-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(380px, 94vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--reg-radius-md);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 2000;
  padding: 6px;
  display: none;
  flex-direction: column;
  animation: knaMenuSlideDown 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.kna-custom-select.dropup .kna-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  animation-name: knaMenuSlideUp;
}

.kna-custom-select.is-open .kna-select-menu {
  display: flex;
}

@keyframes knaMenuSlideDown {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes knaMenuSlideUp {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kna-select-menu-header {
  padding: 8px 10px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--reg-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  margin-bottom: 4px;
}

.kna-select-options {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kna-select-options::-webkit-scrollbar {
  width: 5px;
}

.kna-select-options::-webkit-scrollbar-thumb {
  background: var(--reg-slate-300);
  border-radius: 999px;
}

.kna-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--reg-radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--reg-slate-700);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
  width: 100%;
  box-sizing: border-box;
}

.kna-select-option:hover,
.kna-select-option.is-focused {
  background: #f0f9ff;
  color: var(--reg-brand-accent);
  outline: none;
}

.kna-opt-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--reg-slate-100);
  color: var(--reg-slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.kna-select-option:hover .kna-opt-icon,
.kna-select-option.is-focused .kna-opt-icon {
  background: var(--reg-brand-light);
  color: var(--reg-brand-accent);
}

.kna-opt-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kna-opt-check {
  font-size: 0.74rem;
  color: var(--reg-brand-accent);
  opacity: 0;
  transition: opacity 0.14s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.kna-select-option.active,
.kna-select-option.is-selected {
  background: #f0f9ff;
  color: var(--reg-brand-dark);
  font-weight: 700;
}

.kna-select-option.active .kna-opt-icon,
.kna-select-option.is-selected .kna-opt-icon {
  background: var(--reg-brand-accent);
  color: #ffffff;
}

.kna-select-option.active .kna-opt-check,
.kna-select-option.is-selected .kna-opt-check {
  opacity: 1;
}

.kna-select-empty {
  padding: 14px;
  text-align: center;
  color: var(--reg-slate-400);
  font-size: 0.82rem;
}
