/* FLUXDIGITAL — Register page styles */
.reg-root { min-height: 100vh; display: flex; justify-content: center; padding: 34px 20px; position: relative; z-index: 2; }
.reg-card { width: 560px; max-width: 100%; padding: 36px 32px 26px; min-width: 0; }

/* ---- stepper ---- */
.wiz-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.wiz-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--muted);
  background: var(--line); border: 2px solid var(--line); transition: all 0.25s ease;
}
.wiz-step.is-on .wiz-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.wiz-step.is-done .wiz-dot { background: var(--green); border-color: var(--green); color: #062018; }
.wiz-lab { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wiz-step.is-on .wiz-lab { color: var(--teal); }
.wiz-step.is-done .wiz-lab { color: var(--green-deep); }
.wiz-line { flex: 1; height: 2px; border-radius: 1px; background: var(--line); margin: 0 6px; margin-bottom: 22px; transition: background 0.25s ease; }
.wiz-line.is-on { background: var(--teal); }

/* ---- wizard panels ---- */
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: flux-fade-up 0.35s ease both; }
.wiz-head h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.wiz-head p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.wiz-next[disabled] { opacity: 0.55; pointer-events: none; }
.wiz-btns { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* ---- detected summary (step 1) ---- */
.wiz-detected {
  background: var(--teal-tint); border: 1px solid rgba(14,124,134,0.18); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px; animation: flux-fade-up 0.4s ease both;
}
.wiz-detected-note { font-size: 0.72rem; color: var(--muted); margin-top: 8px; }

/* ---- review panel (step 3) ---- */
.wiz-review {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px;
}

.wiz-detected-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.wiz-detected-row:last-child { border-bottom: none; }
.wiz-detected-row span { font-size: 0.76rem; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.wiz-detected-row b { font-size: 0.84rem; color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }

#regBtn.disabled, #regBtn[disabled] { opacity: 0.6; pointer-events: none; }

/* CNIC upload zone */
.ocr-zone {
  position: relative; overflow: hidden;
  border: 1.8px dashed #bfd8d2; border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfa, #eef7f3);
  padding: 22px 16px; text-align: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ocr-zone:hover { border-color: var(--teal); background: #f0f9f5; }
.ocr-zone:active { transform: scale(0.995); }
.ocr-zone.has-image { border-style: solid; border-color: var(--green); }
.ocr-zone.has-ok { border-color: var(--green); background: linear-gradient(180deg, #f2fcf8, #e7f9f0); }
.ocr-zone.has-error { border-color: var(--danger); background: linear-gradient(180deg, #fdf6f5, #fbe8e7); border-style: dashed; }
.ocr-zone.has-warn { border-color: var(--amber); background: linear-gradient(180deg, #fdf9f0, #fbf1dc); border-style: solid; }

.flux-field--ocr { background: var(--bg); color: var(--text); }
.flux-field--ocr:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }

.flux-cnic-note {
  font-size: 0.76rem; font-weight: 600; line-height: 1.5; border-radius: 10px;
  padding: 8px 12px; display: block;
}
.flux-cnic-note--ok { background: var(--green-bg); color: var(--green-deep); }
.flux-cnic-note--err { background: var(--danger-bg); color: var(--danger); }
.flux-cnic-note--warn { background: var(--amber-bg); color: #9a6a00; }
.ocr-ic {
  width: 46px; height: 46px; border-radius: 14px; color: var(--teal);
  background: var(--teal-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.ocr-ic svg { width: 22px; height: 22px; }
.ocr-title { font-weight: 700; font-size: 14px; color: var(--text); }
.ocr-sub { font-size: 11.5px; color: var(--muted); }
.ocr-preview { max-height: 190px; max-width: 100%; border-radius: 12px; margin-top: 8px; box-shadow: var(--shadow-card); }
.ocr-actions { display: flex; gap: 8px; margin-top: 12px; }
.ocr-actions .ocr-btn + .ocr-btn { margin-top: 0; }
.ocr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.4px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 12px; padding: 9px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all 0.16s ease; flex-wrap: wrap; justify-content: center;
}
.ocr-btn svg { width: 15px; height: 15px; }
.ocr-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-tint); transform: translateY(-1px); }
.ocr-repick { margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--teal); background: none; border: none; cursor: pointer; }
.ocr-zone.busy { pointer-events: none; opacity: 0.75; }
.ocr-load { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12.5px; color: var(--teal); font-weight: 600; }
.ocr-spin { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--teal); animation: flux-spin 0.7s linear infinite; display: inline-block; }

/* green flash when the CNIC number is auto-pasted */
.flux-field--hit {
  animation: flux-field-glow 1.1s ease !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px var(--green-tint) !important;
  background: var(--green-bg) !important;
}
@keyframes flux-field-glow {
  0%, 100% { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); background: var(--green-bg); }
  40% { box-shadow: 0 0 0 7px var(--green-tint); }
}

.flux-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flux-label .opt { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.flux-field--plain { padding-left: 14px; }
.flux-field--plain::placeholder { color: #a9c0bc; }
.flux-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.flux-check input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.flux-check a { color: var(--teal); font-weight: 600; text-decoration: none; }

.reg-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.reg-actions .flux-btn { display: inline-flex; }
.reg-actions .flux-btn svg { width: 17px; height: 17px; }

.reg-success { text-align: center; padding: 10px 4px; }
.reg-success-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 12px auto 16px; max-width: 34ch; }
.reg-success-code { font-size: 0.85rem; color: var(--teal); background: var(--teal-tint); border-radius: 12px; padding: 10px 0; margin-bottom: 6px; font-weight: 600; }
.reg-success .dl-check { margin-bottom: 4px; }

@media (max-width: 520px) {
  .flux-grid { grid-template-columns: 1fr; }
  .reg-card { padding: 28px 20px 20px; }
}