/* ============================================================
   Ama Computer Academy — Enrollment Page CSS
   File: css/enroll.css
   Design: Navy (#0d2a5e) + Gold (#f59e0b) — matches index.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d2a5e;
  --navy-dark:  #091d42;
  --navy-mid:   #163a7a;
  --gold:       #f59e0b;
  --gold2:      #fbbf24;
  --gold-dark:  #d97706;
  --white:      #ffffff;
  --off:        #f8fafc;
  --gray:       #64748b;
  --gray-light: #e2e8f0;
  --danger:     #ef4444;
  --success:    #22c55e;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(13,42,94,0.10);
  --shadow-lg:  0 8px 40px rgba(13,42,94,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #eef3ff 0%, #e8f0fe 50%, #fef3c7 100%);
  min-height: 100vh;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.6;
}

/* ── HEADER ───────────────────────────────────────────────── */
.enroll-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 20px 16px 18px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.header-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: contain;
  background: var(--white);
  margin-bottom: 10px;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.25);
}

.header-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.header-info > p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.header-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.header-contact a:hover { color: var(--gold); }

.header-contact a.btn-home {
  color: var(--gold);
  font-weight: 500;
  border: 1px solid rgba(245,158,11,0.4);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── STEP BAR ──────────────────────────────────────────────── */
.step-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,42,94,0.07);
}

.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: 2px solid var(--gray-light);
}

.step-item span {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s;
}

.step-item.active .step-circle {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
}

.step-item.active span { color: var(--gold-dark); font-weight: 600; }

.step-item.done .step-circle {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.step-item.done span { color: var(--navy); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-light);
  margin-bottom: 18px;
  transition: background 0.3s;
  min-width: 20px;
}

.step-line.done { background: var(--navy); }

/* ── MAIN LAYOUT ──────────────────────────────────────────── */
.enroll-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 12px 40px;
}

/* ── STEP SECTIONS ────────────────────────────────────────── */
.step-section { display: none; }
.step-section.active { display: block; }

/* ── FORM CARD ────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(13,42,94,0.07);
}

/* ── FORM SECTIONS ────────────────────────────────────────── */
.form-section {
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--gray-light);
}

.form-section:last-of-type { border-bottom: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
}

.section-title i {
  color: var(--gold);
  font-size: 15px;
}

/* ── FORM ROWS ────────────────────────────────────────────── */
.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row.col2 { grid-template-columns: repeat(2, 1fr); }
.form-row.col3 { grid-template-columns: repeat(3, 1fr); }
.form-row.col4 { grid-template-columns: repeat(4, 1fr); }

/* ── FORM GROUPS ──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.req { color: var(--danger); }

/* ── FORM CONTROLS ────────────────────────────────────────── */
.form-control {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  background: var(--off);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 44px;
  line-height: 44px;
  width: 100%;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
}

/* date/time input — browser default override */
input[type="date"].form-control,
input[type="time"].form-control {
  padding: 0 10px;
  line-height: normal;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-control:read-only {
  background: #f1f5f9;
  color: var(--gray);
  cursor: not-allowed;
}

.form-control.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d2a5e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  color: #1e293b;
}

select.form-control option {
  color: #1e293b;
  font-weight: 500;
  background: #ffffff;
}

select.form-control option:first-child {
  color: #94a3b8;
}

.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: uppercase; }

/* ── FORM ACTION AREA ─────────────────────────────────────── */
.form-action {
  padding: 20px;
  text-align: center;
  background: linear-gradient(to bottom, #fff, #fef9ee);
}

.form-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--navy-dark);
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

.btn-primary:disabled {
  background: var(--gray-light);
  color: var(--gray);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 50px;
  padding: 11px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── PREVIEW HEADER ───────────────────────────────────────── */
.preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.preview-header > i {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.preview-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.preview-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ── PREVIEW CONTENT ──────────────────────────────────────── */
#previewContent { padding: 0; }

/* Course Banner */
.pv-course-banner {
  display: flex;
  gap: 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  padding: 16px 20px;
  border-bottom: 3px solid var(--gold);
}

.pv-course-left, .pv-course-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pv-course-right {
  text-align: right;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 16px;
}

.pv-course-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.pv-course-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}

.pv-batch-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

/* Sections wrapper */
.pv-sections-wrap {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pv-section {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pv-section-head {
  background: linear-gradient(to right, #f8fafc, #fff);
  border-bottom: 1px solid var(--gray-light);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pv-section-head i { color: var(--gold); }

.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.preview-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-right: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.preview-item:nth-child(3n) { border-right: none; }

.preview-item.highlight {
  grid-column: span 3;
  background: #fef9ee;
  border-bottom: 1px solid #fde68a;
}

.preview-item .p-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.preview-item .p-val {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
}

.preview-item.highlight .p-val {
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
}

/* Confirm note */
.pv-confirm-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 20px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #1e40af;
}

.pv-confirm-note i { color: #3b82f6; flex-shrink: 0; margin-top: 1px; }

/* Step 2 actions */
.step2-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  justify-content: flex-end;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.step2-actions button {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

@media (max-width: 480px) {
  .step2-actions {
    flex-direction: column;
  }
  .step2-actions button {
    width: 100%;
    min-width: unset;
  }
  .step2-actions .btn-secondary { order: 2; }
  .step2-actions .btn-primary   { order: 1; }
}

/* ── DOCUMENTS STEP ───────────────────────────────────────── */
.doc-counter-wrap {
  padding: 12px 20px 4px;
}

.doc-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,42,94,0.06);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(13,42,94,0.12);
}

.doc-counter span { color: var(--gold-dark); font-size: 15px; font-weight: 700; }

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 20px;
}

.doc-item { display: flex; flex-direction: column; gap: 6px; }

.doc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.doc-label i { color: var(--gold); font-size: 13px; }
.doc-label small { color: var(--gray); font-size: 10px; margin-left: auto; }

.doc-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  cursor: pointer;
  background: var(--off);
  transition: all 0.2s;
  min-height: 80px;
  text-align: center;
}

.doc-upload-box:hover {
  border-color: var(--gold);
  background: #fef9ee;
}

.doc-upload-box input[type="file"] { display: none; }

.doc-upload-box i {
  font-size: 22px;
  color: var(--gray);
  transition: color 0.2s;
}

.doc-upload-box:hover i { color: var(--gold); }

.doc-upload-box .upload-text {
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
}

.doc-upload-box .upload-fname {
  font-size: 10px;
  color: var(--success);
  font-weight: 600;
  word-break: break-all;
  display: none;
}

.doc-upload-box.uploaded {
  border-color: var(--success);
  background: #f0fdf4;
}

.doc-upload-box.uploaded i { color: var(--success); }
.doc-upload-box.uploaded .upload-fname { display: block; }
.doc-upload-box.uploaded .upload-text { display: none; }

/* Step 3 Actions */
.step3-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--gray-light);
  gap: 10px;
}

.btn-save-all {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35);
  animation: pulse-green 2s infinite;
  transition: all 0.25s;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 14px rgba(34,197,94,0.35); }
  50% { box-shadow: 0 4px 22px rgba(34,197,94,0.6); }
}

.btn-save-all:hover { transform: translateY(-2px); }

/* ── PAYMENT STEP ─────────────────────────────────────────── */
.payment-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}

.qr-side {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.qr-box { text-align: center; }

#qrImage {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  border: 4px solid var(--white);
  display: block;
  margin: 0 auto 12px;
}

.upi-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 7px 14px;
  margin-bottom: 8px;
}

.upi-id i { color: var(--gold); }
.upi-id span { color: var(--white); font-size: 13px; }
.upi-id strong { color: var(--gold); }

.qr-note {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.pay-form-side { padding: 20px; }

.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.pay-tab {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-light);
  background: var(--off);
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.pay-tab.active {
  border-color: var(--gold);
  background: #fef9ee;
  color: var(--navy);
}

.field-hint {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-hint i { color: var(--gold); }

.btn-confirm {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
}

.pay-later-info {
  display: flex;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.pay-later-info i { color: #3b82f6; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.pay-later-info p { font-size: 13px; color: #1e40af; }

/* ── SUCCESS POPUP ────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,29,66,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.popup-box {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(9,29,66,0.3);
}

.popup-icon {
  font-size: 52px;
  color: var(--success);
  margin-bottom: 12px;
  animation: pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.popup-box > p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.app-no-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(135deg, #eef3ff, #fef3c7);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  letter-spacing: 2px;
  margin: 10px 0 14px;
  display: inline-block;
}

.popup-note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.popup-note strong { color: var(--navy); }

.popup-contacts {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.popup-contacts a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-contacts a:first-child {
  background: var(--navy);
  color: var(--white);
}

.popup-contacts a:last-child {
  background: #22c55e;
  color: var(--white);
}

.btn-home-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-home-popup:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── LOADING OVERLAY ──────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,29,66,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  backdrop-filter: blur(3px);
}

.loading-spinner {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.loading-spinner i {
  font-size: 22px;
  color: var(--gold);
}

/* ── DOCUMENT INSTRUCTION BOX ────────────────────────────── */
.doc-instruction {
  display: flex;
  gap: 12px;
  margin: 14px 20px 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.doc-instr-icon {
  font-size: 18px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-instr-text {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.6;
}

.doc-instr-text strong { color: #1e3a8a; }

.doc-instr-text ul {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
}

.doc-instr-text li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.doc-instr-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 11px;
  top: 2px;
}

/* ── PARTIAL UPLOAD WARNING ───────────────────────────────── */
.partial-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #9a3412;
}

.partial-warn i {
  color: #f97316;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.partial-warn strong { color: #7c2d12; }

/* ── BACK TO DOCS BUTTON (in header) ─────────────────────── */
.btn-back-docs-header {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-back-docs-header:hover {
  background: rgba(245,158,11,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* Pay header flex layout */
.pay-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

/* ── PAYMENT INSTRUCTION BOX ──────────────────────────────── */
.pay-instruction {
  display: flex;
  gap: 10px;
  margin: 0 0 0 0;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  border-left: none;
  border-top: none;
  border-right: none;
  border-radius: 0;
  padding: 14px 20px;
}

.pay-instr-icon {
  font-size: 17px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.pay-instr-text {
  font-size: 12px;
  color: #14532d;
  line-height: 1.6;
}

.pay-instr-text strong { color: #166534; }

.pay-instr-text ul {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
}

.pay-instr-text li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.pay-instr-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 11px;
  top: 2px;
}

.pay-later-hint { color: #b45309 !important; }
.pay-later-hint::before { color: #f97316 !important; content: "→" !important; }

/* ── FOOTER ───────────────────────────────────────────────── */
.enroll-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.8;
  border-top: 3px solid var(--gold);
}

/* ── RESPONSIVE — TABLET (≤640px) ────────────────────────── */
@media (max-width: 640px) {

  .header-info h1 { font-size: 18px; }
  .header-logo img { width: 60px; height: 60px; }

  .step-bar { gap: 0; }
  .step-circle { width: 30px; height: 30px; font-size: 12px; }
  .step-item span { font-size: 9px; }
  .step-line { min-width: 10px; }

  .enroll-main { padding: 16px 10px 32px; }

  .form-section { padding: 14px 14px 8px; }

  .form-row.col4 { grid-template-columns: repeat(2, 1fr); }
  .form-row.col3 { grid-template-columns: repeat(2, 1fr); }
  .form-row.col2 { grid-template-columns: 1fr; }

  .doc-grid { grid-template-columns: 1fr; }

  .payment-wrap { grid-template-columns: 1fr; }
  .qr-side { padding: 20px; }
  #qrImage { max-width: 160px; }

  .step2-actions { justify-content: stretch; }
  .step2-actions button { flex: 1; justify-content: center; }

  .step3-actions { flex-direction: column; align-items: stretch; }
  .step3-actions button { justify-content: center; }

  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 13px; }

  /* preview responsive */
  .pv-course-banner { flex-direction: column; gap: 10px; }
  .pv-course-right { text-align: left; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 10px; }
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-item.highlight { grid-column: span 2; }
  .preview-item:nth-child(3n) { border-right: 1px solid var(--gray-light); }
  .preview-item:nth-child(2n) { border-right: none; }

  /* step 4 mobile — stack QR then form */
  .payment-wrap { grid-template-columns: 1fr; }
  .qr-side { padding: 20px 16px; }
  #qrImage { max-width: 180px; }

  /* pay header — wrap back button below on mobile */
  .pay-header { flex-wrap: wrap; gap: 10px; }
  .btn-back-docs-header {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  /* pay instruction full width */
  .pay-instruction { padding: 12px 14px; }
}

/* ── RESPONSIVE — SMALL MOBILE (≤380px) ──────────────────── */
@media (max-width: 380px) {
  .header-info h1 { font-size: 16px; }
  .header-contact { gap: 6px 10px; }
  .form-row.col4,
  .form-row.col3 { grid-template-columns: 1fr; }
  .step-item span { display: none; }
  .step-circle { width: 28px; height: 28px; font-size: 11px; }
}