﻿/* ===== MEDCONNECT REGISTRATION — REFINED ===== */
:root {
  --blue-primary: #1a6db5;
  --blue-mid:     #3b82f6;
  --teal:         #0d9488;
  --text-dark:    #0f172a;
  --text-mid:     #475569;
  --text-light:   #94a3b8;
  --red:          #dc2626;
  --red-light:    #fef2f2;
  --green:        #16a34a;
  --green-light:  #f0fdf4;
  --green-border: #86efac;
  --white:        #ffffff;
}

/* Reset canvas */
body::before { display: none; }
#bubble-canvas { display: none; }
.bg-canvas { display: none; }
body { background: #071828; color: rgba(255,255,255,0.85); min-height: 100vh; }

/* Page background — toned-down overlay (~30% less intense) */
.reg-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 24px 52px;
  overflow-x: hidden;
  background-image: url('/assets/img/657374785_2162253977924042_3338057669175855037_n%20copy.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.reg-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(5,16,28,0.62);
}
.reg-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(7,24,40,0.42) 0%, rgba(7,24,40,0.04) 100%);
}

/* Wrapper — slightly narrower for better balance */
.reg-wrapper { position: relative; z-index: 1; width: 100%; max-width: 860px; }

/* Navbar */
.navbar {
  background: rgba(7,24,40,0.60) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(45,212,191,0.08) !important;
}
.navbar.scrolled { background: rgba(7,24,40,0.92) !important; }
.btn-nav-back {
  margin-left: auto;
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.20);
  transition: background 0.2s, border-color 0.2s;
}
.btn-nav-back:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.38); }

/* Page header — tighter, more unified */
.reg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 4px;
  animation: fade-up 0.4s ease both;
}
.patient-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.reg-page-header-text { display: flex; flex-direction: column; gap: 2px; }
.reg-page-title { font-size: clamp(16px,2.2vw,21px); font-weight: 800; color: #fff; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }
.reg-page-sub { font-size: 12.5px; color: rgba(255,255,255,0.70); margin: 0; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Step indicator — more compact, less tall */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 48px;
  background: rgba(8,28,48,0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid rgba(45,212,191,0.10);
  box-shadow: 0 3px 14px rgba(0,0,0,0.20);
  animation: fade-up 0.42s ease 0.06s both;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.38);
  border: 2px solid rgba(255,255,255,0.13);
  transition: all 0.3s ease;
  position: relative; z-index: 1;
}
.step-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.42); text-align: center; white-space: nowrap; transition: color 0.3s; }
.step-line { flex: 1; height: 1.5px; background: rgba(255,255,255,0.10); margin: 0 6px; margin-bottom: 20px; border-radius: 2px; transition: background 0.3s; }
.step-item.active .step-dot { background: linear-gradient(135deg,var(--blue-primary),var(--blue-mid)); color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(26,109,181,0.32); }
.step-item.active .step-label { color: var(--blue-mid); font-weight: 700; }
.step-item.done .step-dot { background: linear-gradient(135deg,#16a34a,#22c55e); color: #fff; border-color: transparent; }
.step-item.done .step-label { color: #22c55e; }
.step-item.done + .step-line { background: #86efac; }

/* Card — reduced padding, less heavy */
.reg-card {
  background: rgba(8,28,48,0.70);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 18px;
  padding: 32px 48px 30px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  margin-bottom: 14px;
  animation: fade-up 0.46s ease 0.10s both;
}
.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(45,212,191,0.15); }
.card-icon-wrap { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg,var(--blue-primary),var(--blue-mid)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 3px 14px rgba(26,109,181,0.26); }
.card-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 3px; line-height: 1.2; }
.card-sub { font-size: 12.5px; color: rgba(255,255,255,0.62); line-height: 1.5; }

/* Form sections */
.form-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: #2dd4bf; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.82); margin-bottom: 5px; }
.req { color: #f87171; font-size: 11px; }
.opt { color: var(--text-light); font-weight: 400; font-size: 10px; }
.auto-label { color: var(--text-light); font-weight: 400; font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group-full { margin-bottom: 14px; }

/* Inputs */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input,
.input-wrap select {
  width: 100%; height: 44px; padding: 0 14px 0 38px;
  border: 1.5px solid rgba(255,255,255,0.14); border-radius: 10px;
  font-size: 13.5px; font-family: inherit; color: #fff;
  background: rgba(255,255,255,0.09);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s; outline: none;
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.32); }
.input-wrap input:hover, .input-wrap select:hover { border-color: rgba(255,255,255,0.28); }
.input-wrap input:focus, .input-wrap select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.20); background: rgba(255,255,255,0.13); }
.input-wrap input.invalid, .input-wrap select.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.14); }
.input-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.38); pointer-events: none; display: flex; align-items: center; width: 15px; height: 15px; z-index: 1; }
.input-icon svg { width: 14px; height: 14px; display: block; }
.field-error { display: block; font-size: 11px; color: #fca5a5; margin-top: 4px; min-height: 15px; line-height: 1.3; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px; }
.select-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid rgba(255,255,255,0.38); pointer-events: none; }

/* Buttons — slightly less tall, better proportioned */
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 26px; border-radius: 10px; border: none; cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit; background: linear-gradient(135deg,var(--blue-primary),var(--blue-mid)); color: #fff; box-shadow: 0 3px 14px rgba(26,109,181,0.24); transition: opacity 0.2s, transform 0.15s; }
.btn-submit:hover:not(:disabled) { opacity: 0.90; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-back-step { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.78); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.btn-back-step:hover { border-color: #3b82f6; background: rgba(255,255,255,0.13); color: #fff; }
.btn-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.32); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }

/* Alert */
.alert { display: none; padding: 11px 15px; border-radius: 9px; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.alert.error   { display: block; background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.alert.success { display: block; background: var(--green-light); color: var(--green); border: 1px solid var(--green-border); }

/* OTP step — tighter, less oversized */
#otp-email-panel .form-group { margin-bottom: 20px; }
#otp-email-panel .form-group label { font-size: 13px; margin-bottom: 8px; }
#otp-email-panel .input-wrap input { height: 50px; font-size: 14.5px; border-radius: 11px; padding: 0 16px 0 44px; }
#otp-email-panel .input-icon { left: 14px; }
#otp-email-panel .input-icon svg { width: 18px; height: 18px; }
#btn-send-otp { width: 100%; height: 50px; font-size: 15px; border-radius: 11px; margin-top: 6px; }
#otp-code-panel .input-wrap input { height: 52px; font-size: 20px; border-radius: 11px; }
#btn-verify-otp { height: 50px; font-size: 14px; border-radius: 11px; }
#step0 .reg-card { padding: 36px 48px 40px; min-height: auto; display: flex; flex-direction: column; justify-content: center; }
#step0 .card-header { margin-bottom: 28px; padding-bottom: 20px; }
#step0 .card-title { font-size: 17px; }
#step0 .card-sub { font-size: 13px; margin-top: 3px; }
.otp-sent-note { background: rgba(22,163,74,0.13); border: 1px solid rgba(134,239,172,0.22); color: #86efac; border-radius: 9px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; line-height: 1.5; }

/* Step 2 */
.step2-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1.5px solid rgba(45,212,191,0.15); }
.step2-header-icon { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg,var(--teal),#0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 3px 12px rgba(13,148,136,0.24); }
.step2-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.step2-sub { font-size: 12.5px; color: rgba(255,255,255,0.62); }
.bago-confirmed-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: var(--green-light); border: 1px solid var(--green-border); color: var(--green); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.step2-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); }

/* Consent */
.consent-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.consent-text { font-size: 12.5px; color: rgba(255,255,255,0.65); line-height: 1.72; margin-bottom: 12px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 11px 14px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.13); background: rgba(255,255,255,0.05); transition: border-color 0.2s; }
.consent-label:hover { border-color: var(--blue-mid); }
.consent-label.invalid { border-color: var(--red); }
.consent-label input[type="checkbox"] { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--blue-mid); flex-shrink: 0; cursor: pointer; }
.consent-check-text { font-size: 12px; color: rgba(255,255,255,0.80); line-height: 1.62; }

/* OCR */
.ocr-upload-area { border: 2px dashed rgba(255,255,255,0.16); border-radius: 12px; padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: rgba(255,255,255,0.04); }
.ocr-upload-area:hover, .ocr-upload-area.drag-over { border-color: var(--blue-mid); background: rgba(255,255,255,0.08); }
.ocr-upload-icon { color: #93c5fd; margin-bottom: 8px; }
.ocr-upload-title { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.ocr-upload-sub { font-size: 12px; color: rgba(255,255,255,0.42); }
.ocr-choose-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 18px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.ocr-choose-btn:hover { background: rgba(255,255,255,0.13); }
.ocr-preview-wrap { margin-top: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.04); padding: 12px; }
.ocr-preview-img { max-width: 100%; max-height: 200px; border-radius: 7px; display: block; margin: 0 auto; }
.ocr-filename { display: none; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.52); margin-top: 7px; }
.ocr-filename.visible { display: flex; }
.ocr-actions { display: flex; gap: 9px; margin-top: 12px; }
.ocr-status { margin-top: 10px; padding: 10px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; display: none; }
.ocr-status.scanning { display: block; background: rgba(59,130,246,0.13); color: #93c5fd; border: 1px solid rgba(59,130,246,0.28); }
.ocr-status.success  { display: block; background: rgba(22,163,74,0.13); color: #86efac; border: 1px solid rgba(134,239,172,0.28); }
.ocr-status.error    { display: block; background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.ocr-result-box { margin-top: 12px; border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; overflow: hidden; }
.ocr-result-header { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 12.5px; font-weight: 700; }
.ocr-result-header--pass { background: rgba(22,163,74,0.13); color: #86efac; }
.ocr-result-header--warn { background: rgba(180,83,9,0.13); color: #fbbf24; }
.ocr-result-header--fail { background: rgba(220,38,38,0.13); color: #fca5a5; }
.ocr-check-list { list-style: none; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.ocr-check-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; }
.ocr-check-item.pass { color: #86efac; }
.ocr-check-item.warn { color: #fbbf24; }
.ocr-check-item.fail { color: #fca5a5; }
.ocr-check-item.skip { color: rgba(255,255,255,0.38); }
.ocr-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 700; margin-left: auto; }
.ocr-badge--pass { background: rgba(22,163,74,0.18); color: #86efac; border: 1px solid rgba(134,239,172,0.28); }
.ocr-badge--warn { background: rgba(180,83,9,0.18); color: #fbbf24; border: 1px solid rgba(251,191,36,0.28); }
.ocr-badge--fail { background: rgba(220,38,38,0.18); color: #fca5a5; border: 1px solid rgba(252,165,165,0.28); }
.ocr-review-note { padding: 8px 16px; background: rgba(180,83,9,0.10); border-top: 1px solid rgba(251,191,36,0.18); font-size: 11.5px; color: #fbbf24; display: flex; flex-wrap: wrap; gap: 5px; }
.ocr-review-note span { background: rgba(251,191,36,0.09); border-radius: 4px; padding: 2px 7px; }
.address-grid.ocr-locked { opacity: 0.6; pointer-events: none; }
.address-lock-notice { display: flex; align-items: center; gap: 7px; background: rgba(22,163,74,0.13); border: 1px solid rgba(134,239,172,0.22); color: #86efac; border-radius: 9px; padding: 9px 14px; font-size: 12px; font-weight: 600; margin-top: 9px; }

/* Step 1 CTA */
.step1-cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-proceed { width: 100%; max-width: 380px; height: 46px; font-size: 14.5px; }
.btn-proceed-ready { background: linear-gradient(135deg,var(--teal),#0ea5e9) !important; box-shadow: 0 3px 16px rgba(13,148,136,0.28) !important; }
.step1-cta-hint { font-size: 12px; color: rgba(255,255,255,0.42); text-align: center; }
.step1-cta-hint--ready { color: #2dd4bf; font-weight: 600; }

/* Textarea */
textarea { width: 100%; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,0.14); border-radius: 10px; font-size: 13px; font-family: inherit; color: #fff; background: rgba(255,255,255,0.09); resize: vertical; min-height: 80px; outline: none; transition: border-color 0.18s, box-shadow 0.18s; }
textarea::placeholder { color: rgba(255,255,255,0.32); }
textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.20); }

/* Footer */
.card-footer-link { text-align: center; font-size: 13px; color: rgba(255,255,255,0.52); margin-top: 5px; }
.card-footer-link a { color: #2dd4bf; font-weight: 600; text-decoration: none; }
.card-footer-link a:hover { text-decoration: underline; }
.emergency-note { display: flex; align-items: flex-start; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 12px 16px; font-size: 12.5px; color: rgba(255,255,255,0.62); margin-top: 12px; }
.single-column-layout { display: flex; flex-direction: column; gap: 14px; }

/* OCR section helpers */
.ocr-section { margin-top: 4px; }
.ocr-section-header { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.80); margin-bottom: 6px; }
.ocr-desc { font-size: 12px; color: rgba(255,255,255,0.50); margin-bottom: 12px; line-height: 1.5; }
.btn-ocr-browse { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 18px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-decoration: none; }
.btn-ocr-browse:hover { background: rgba(255,255,255,0.13); }
.btn-ocr-scan { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 9px; border: none; cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit; background: linear-gradient(135deg,var(--blue-primary),var(--blue-mid)); color: #fff; box-shadow: 0 2px 10px rgba(26,109,181,0.22); transition: opacity 0.2s; }
.btn-ocr-scan:hover { opacity: 0.88; }
.btn-ocr-clear { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.70); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s; }
.btn-ocr-clear:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ocr-preview-label { font-size: 11.5px; color: rgba(255,255,255,0.50); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.ocr-pdf-indicator { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.ocr-pdf-badge { background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; margin-right: 6px; }
.ocr-pdf-name { font-size: 12px; color: rgba(255,255,255,0.70); }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.30); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.readonly-field { opacity: 0.65; cursor: default; }

/* Dark card overrides */
.reg-card .form-group label,
.reg-card .form-section-title,
.reg-card .form-group-full label { color: rgba(255,255,255,0.85) !important; }
.reg-card .field-error { color: #fca5a5; }
.reg-card .input-wrap input,
.reg-card .input-wrap select,
.reg-card textarea {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #fff !important;
}
.reg-card .input-wrap input::placeholder { color: rgba(255,255,255,0.32) !important; }
.reg-card .input-wrap input:focus,
.reg-card .input-wrap select:focus {
  background: rgba(255,255,255,0.13) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.22) !important;
}
.reg-card .input-icon { color: rgba(255,255,255,0.38) !important; }

/* Step indicator overrides */
.step-indicator {
  background: rgba(8,28,48,0.58) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(45,212,191,0.10) !important;
}
.step-label { color: rgba(255,255,255,0.42) !important; }
.step-item.active .step-label { color: #3b82f6 !important; }
.step-item.done .step-label { color: #4ade80 !important; }
.step-line { background: rgba(255,255,255,0.10) !important; }
.form-section { border-bottom-color: rgba(255,255,255,0.07) !important; }
.form-section-title { color: #2dd4bf !important; }

/* Consent */
.consent-box { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.10) !important; }
.consent-text { color: rgba(255,255,255,0.62) !important; }
.consent-check-text { color: rgba(255,255,255,0.82) !important; }
.consent-label { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.13) !important; }

/* Step 2 */
.step2-title { color: #fff !important; }
.step2-sub { color: rgba(255,255,255,0.62) !important; }
.step2-header { border-bottom-color: rgba(45,212,191,0.13) !important; }
.step2-actions { border-top-color: rgba(255,255,255,0.07) !important; }

/* OCR */
.ocr-upload-area { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.16) !important; }
.ocr-upload-title { color: rgba(255,255,255,0.82) !important; }
.ocr-upload-sub { color: rgba(255,255,255,0.42) !important; }

/* Back button */
.btn-back-step { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.18) !important; color: rgba(255,255,255,0.78) !important; }
.btn-back-step:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; }

/* CTA */
.step1-cta { border-top-color: rgba(255,255,255,0.07) !important; }
.step1-cta-hint { color: rgba(255,255,255,0.42) !important; }

/* Inline style overrides from view */
.reg-card .card-title { color: #fff !important; }
.reg-card .card-sub   { color: rgba(255,255,255,0.62) !important; }
.reg-card .card-header { border-bottom: 1px solid rgba(45,212,191,0.15) !important; }
.reg-card .form-section { border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
.reg-card .form-section-title { color: #2dd4bf !important; }
.reg-card textarea { background: rgba(255,255,255,0.09) !important; border: 1.5px solid rgba(255,255,255,0.14) !important; color: #fff !important; }
.reg-card textarea::placeholder { color: rgba(255,255,255,0.32) !important; }
.emergency-note { background: rgba(180,83,9,0.13) !important; border-color: rgba(251,191,36,0.22) !important; color: #fbbf24 !important; }

/* Responsive — tablet */
@media (max-width: 768px) {
  .reg-page { padding: 68px 16px 44px; }
  .reg-wrapper { max-width: 100%; }
  .step-indicator { padding: 13px 18px; }
  .step-dot { width: 30px; height: 30px; font-size: 12px; }
  .step-label { font-size: 9px; white-space: normal; max-width: 62px; }
  .reg-card { padding: 22px 20px 20px; border-radius: 15px; }
  #step0 .reg-card { padding: 26px 20px 30px; min-height: auto; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 12px; }
  .address-grid { grid-template-columns: 1fr; gap: 12px; }
  .step2-actions { flex-direction: column; gap: 10px; }
  .step2-actions .btn-back-step, .step2-actions .btn-submit { width: 100%; justify-content: center; }
  .btn-proceed { max-width: 100%; }
  .reg-page-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Responsive — mobile */
@media (max-width: 640px) {
  .reg-page         { padding: 64px 12px 40px; }
  .reg-card         { padding: 18px 14px 18px; border-radius: 14px; }
  .card-header      { margin-bottom: 18px; padding-bottom: 14px; }
  .card-title       { font-size: 15px; }
  .card-sub         { font-size: 12px; }
  .form-row,
  .form-row-3       { grid-template-columns: 1fr; gap: 10px; }
  .btn-submit       { height: 46px; font-size: 13.5px; }
  .btn-back-step    { height: 42px; font-size: 12.5px; }
  .step-indicator   { padding: 11px 12px; gap: 4px; }
  .step-dot         { width: 28px; height: 28px; font-size: 11px; }
  .step-label       { font-size: 8.5px; max-width: 54px; }
  .step-line        { flex: 1; min-width: 10px; }
  .ocr-upload-area  { padding: 20px 14px; }
  .ocr-upload-title { font-size: 13px; }
  .ocr-upload-sub   { font-size: 11.5px; }
  .consent-text     { font-size: 12px; }
  .consent-check-text { font-size: 11.5px; }
  .step2-header     { gap: 10px; }
  .step2-title      { font-size: 15px; }
  .step2-sub        { font-size: 12px; }
  .bago-confirmed-badge { font-size: 10px; padding: 4px 10px; }
  .patient-only-badge   { font-size: 9.5px; }
  #step0 .reg-card  { padding: 22px 14px 26px; }
  #otp-email-panel .input-wrap input { height: 48px; font-size: 14px; }
  #btn-send-otp     { height: 48px; font-size: 14px; }
}

@media (max-width: 380px) {
  .reg-page         { padding: 60px 10px 34px; }
  .reg-card         { padding: 14px 12px 14px; }
  .btn-submit       { height: 44px; font-size: 13px; }
  .step-dot         { width: 26px; height: 26px; font-size: 10px; }
  .step-label       { font-size: 8px; max-width: 46px; }
}
