/* ============================================================
   modal.css — NEET UG 2026 Admit Card Download Modal
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
/* NO display property here — JS controls it via inline style */
.neet-modal-overlay {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: neetFadeIn 0.2s ease;
}

@keyframes neetFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Modal Box ───────────────────────────────────────────── */
.neet-modal-box {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: neetSlideUp 0.25s ease;
  position: relative;
  z-index: 2147483647;
}

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

/* ── Header ─────────────────────────────────────────────── */
.neet-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #dc3545;
  padding: 16px 20px;
  flex-shrink: 0;
}
.neet-modal-header-left { display: flex; align-items: flex-start; gap: 12px; }
.neet-modal-icon { font-size: 1.7rem; line-height: 1; margin-top: 2px; color: #fff; }
.neet-modal-title { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: #fff; }
.neet-modal-subtitle { margin: 0; font-size: 0.76rem; color: rgba(255,255,255,0.8); }
.neet-modal-close {
  background: none; border: none; color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  padding: 0; opacity: 0.85; transition: opacity 0.15s; flex-shrink: 0;
}
.neet-modal-close:hover { opacity: 1; }

/* ── Tabs ────────────────────────────────────────────────── */
.neet-modal-tabs {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  background: #f8f9fa;
  flex-shrink: 0;
}
.neet-tab-btn {
  flex: 1; background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: 11px 8px; font-size: 0.82rem; font-weight: 600;
  color: #6c757d; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.neet-tab-btn:hover { color: #dc3545; }
.neet-tab-btn.active { color: #dc3545; border-bottom-color: #dc3545; background: #fff; }

/* ── Tab content ─────────────────────────────────────────── */
.neet-tab-content { flex: 1; overflow-y: auto; min-height: 0; }

/* ── Login Wrap ──────────────────────────────────────────── */
.neet-login-wrap {
  padding: 20px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── 2-Step Progress Bar ─────────────────────────────────── */
.neet-progress-bar {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.neet-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.neet-step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: #fff;
  color: #adb5bd;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.neet-step-label {
  font-size: 0.7rem;
  color: #adb5bd;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
}
.neet-progress-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin: 0 8px;
  margin-bottom: 18px; /* align with circle center */
  transition: background 0.3s;
}
/* Active step */
.neet-progress-step.active .neet-step-circle {
  border-color: #dc3545; background: #dc3545; color: #fff;
}
.neet-progress-step.active .neet-step-label { color: #dc3545; }
/* Done step (step 1 after going to step 2) */
.neet-progress-step.done .neet-step-circle {
  border-color: #198754; background: #198754; color: #fff;
}
.neet-progress-step.done .neet-step-circle::before { content: '✓'; font-size: 0.85rem; }
.neet-progress-step.done .neet-step-circle { font-size: 0; } /* hide number */
.neet-progress-step.done .neet-step-label { color: #198754; }
/* Line active */
.neet-progress-line.active { background: #198754; }

/* ── Step title ──────────────────────────────────────────── */
.neet-step-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
}

/* ── Form elements ───────────────────────────────────────── */
.neet-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }

.neet-form-label {
  font-size: 0.8rem; font-weight: 600; color: #343a40;
  display: flex; align-items: center; gap: 5px;
}
.neet-form-label i { color: #dc3545; font-size: 0.9rem; }

.neet-form-input {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid #dee2e6; border-radius: 8px;
  font-size: 0.875rem; color: #212529; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box; outline: none;
}
.neet-form-input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}
.neet-form-input::placeholder { color: #adb5bd; }

.neet-field-error {
  font-size: 0.75rem;
  color: #dc3545;
  min-height: 1em;
  display: block;
}

/* Password toggle */
.neet-input-eye-wrap { position: relative; }
.neet-input-eye-wrap .neet-form-input { padding-right: 42px; }
.neet-eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #6c757d; font-size: 1rem; padding: 0; line-height: 1;
  transition: color 0.15s;
}
.neet-eye-btn:hover { color: #dc3545; }

.neet-forgot-link {
  font-size: 0.78rem; color: #dc3545;
  text-decoration: none; align-self: flex-end; margin-top: 2px;
}
.neet-forgot-link:hover { text-decoration: underline; }

/* ── Captcha row ─────────────────────────────────────────── */
.neet-captcha-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.neet-captcha-img-box { flex-shrink: 0; }
.neet-captcha-img {
  height: 44px; min-width: 110px;
  border: 1.5px solid #dee2e6; border-radius: 6px;
  object-fit: contain; background: #f8f9fa; display: block;
}
.neet-captcha-blocked {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: #dc3545; padding: 4px 0;
}
.neet-captcha-blocked a { color: #dc3545; font-weight: 600; }
.neet-refresh-btn {
  background: #f8f9fa; border: 1.5px solid #dee2e6;
  border-radius: 8px; padding: 9px 10px; cursor: pointer;
  color: #495057; font-size: 1rem; line-height: 1; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.neet-refresh-btn:hover { background: #e9ecef; color: #dc3545; }
.neet-captcha-input { flex: 1; min-width: 100px; }

/* ── Submit button ───────────────────────────────────────── */
.neet-submit-btn {
  width: 100%;
  background: #dc3545; color: #fff; border: none;
  border-radius: 9px; padding: 11px 20px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(220,53,69,0.35);
  margin-top: 4px;
}
.neet-submit-btn:hover { background: #bb2d3b; transform: translateY(-1px); }

/* ── App No badge (step 2) ───────────────────────────────── */
.neet-app-badge {
  display: flex; align-items: center; gap: 8px;
  background: #d1f0dc; border: 1px solid #a7f3c0;
  border-radius: 8px; padding: 8px 12px;
  font-size: 0.82rem; font-weight: 600; color: #166534;
  margin-bottom: 16px;
}
.neet-app-badge i { font-size: 1rem; }
.neet-app-badge span { flex: 1; }
.neet-back-btn {
  background: none; border: 1px solid #166534; border-radius: 6px;
  padding: 3px 10px; font-size: 0.75rem; font-weight: 600;
  color: #166534; cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: background 0.15s;
}
.neet-back-btn:hover { background: rgba(22,101,52,0.1); }

/* ── Login note ──────────────────────────────────────────── */
.neet-login-note {
  margin: 8px 0 0; font-size: 0.75rem; color: #6c757d;
  display: flex; align-items: flex-start; gap: 5px; line-height: 1.5;
}
.neet-login-note i { flex-shrink: 0; margin-top: 1px; color: #20c997; }

/* ── Divider ─────────────────────────────────────────────── */
.neet-login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 4px; color: #adb5bd; font-size: 0.78rem;
}
.neet-login-divider::before,
.neet-login-divider::after { content: ''; flex: 1; height: 1px; background: #e9ecef; }

.neet-portal-link-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px solid #dee2e6; border-radius: 9px;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
  color: #495057; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.neet-portal-link-btn:hover { background: #fff5f5; border-color: #dc3545; color: #dc3545; }

/* ── Body (Steps / Info tabs) ────────────────────────────── */
.neet-modal-body {
  padding: 18px 22px 14px;
  display: flex; flex-direction: column; gap: 14px;
}
.neet-modal-steps {
  background: #f8f9fa; border: 1px solid #e9ecef;
  border-radius: 10px; padding: 14px 16px;
}
.neet-modal-steps-title {
  font-weight: 700; font-size: 0.875rem; color: #212529; margin: 0 0 8px;
}
.neet-modal-ol {
  margin: 0; padding-left: 18px;
  color: #495057; font-size: 0.855rem; line-height: 1.9;
}
.neet-tab-footer-btn { display: flex; justify-content: flex-end; padding-top: 4px; }

.neet-modal-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.neet-modal-info-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: #343a40;
  background: #fff5f5; border: 1px solid #f5c2c7;
  border-radius: 8px; padding: 8px 10px;
}
.neet-modal-info-item i { font-size: 1rem; flex-shrink: 0; color: #dc3545; }

.neet-modal-alert {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 8px; padding: 10px 14px;
  font-size: 0.83rem; color: #664d03;
  display: flex; align-items: flex-start; gap: 8px;
}
.neet-modal-alert i { flex-shrink: 0; margin-top: 2px; color: #e6a817; font-size: 1rem; }

/* ── Footer ─────────────────────────────────────────────── */
.neet-modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 12px 22px 16px;
  border-top: 1px solid #e9ecef; flex-shrink: 0; background: #fff;
}
.neet-modal-btn-secondary {
  background: #f8f9fa; border: 1px solid #dee2e6; color: #495057;
  border-radius: 8px; padding: 8px 18px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s; line-height: 1.5;
}
.neet-modal-btn-secondary:hover { background: #e9ecef; }
.neet-modal-btn-primary {
  background: #dc3545; border: none; color: #fff !important;
  border-radius: 8px; padding: 9px 20px;
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.5;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 10px rgba(220,53,69,0.35);
}
.neet-modal-btn-primary:hover { background: #bb2d3b; transform: translateY(-1px); color: #fff !important; }

/* ── Spinner (captcha refresh) ───────────────────────────── */
@keyframes neetSpin { to { transform: rotate(360deg); } }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 500px) {
  .neet-modal-info-row      { grid-template-columns: 1fr; }
  .neet-modal-box           { border-radius: 10px; max-height: 95vh; }
  .neet-modal-footer        { flex-direction: column-reverse; gap: 8px; }
  .neet-modal-btn-primary,
  .neet-modal-btn-secondary { width: 100%; justify-content: center; text-align: center; }
  .neet-tab-btn             { font-size: 0.75rem; padding: 10px 4px; }
  .neet-login-wrap          { padding: 16px 16px 14px; }
  .neet-captcha-row         { flex-wrap: wrap; }
  .neet-captcha-input       { width: 100%; }
}