/* ============================================================
   PLACEMENTS AFRICA – REGISTRATION PAGE STYLES
   ============================================================ */

body.reg-page {
  background: var(--gray-50);
  min-height: 100vh;
}

/* ---- Navbar ---- */
.reg-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.reg-nav-inner {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.reg-logo img { height: 36px; }
.reg-back-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--purple-700); font-weight: 600; font-size: .9rem;
  transition: var(--transition);
}
.reg-back-link:hover { gap: 12px; }

/* ---- Hero strip ---- */
.reg-hero {
  position: relative; overflow: hidden;
  padding: 56px 24px 48px; text-align: center;
}
.reg-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
}
.reg-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.06) 0%, transparent 60%);
}
.reg-hero-content { position: relative; z-index: 1; }
.reg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); padding: 6px 18px; border-radius: 50px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.reg-hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900;
  color: var(--white); margin-bottom: 10px;
}
.reg-hero-content p {
  color: rgba(255,255,255,.8); font-size: 1rem; max-width: 520px; margin: 0 auto;
}

/* ---- Main layout ---- */
.reg-main { padding: 40px 24px 60px; }
.reg-container { max-width: 780px; margin: 0 auto; }

/* ---- Progress bar ---- */
.reg-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 36px;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.rs-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gray-400);
  transition: var(--transition); position: relative;
  box-shadow: var(--shadow-sm);
}
.rs-check {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: var(--green); border-radius: 50%;
  color: var(--white); font-size: .9rem;
}
.reg-step.active .rs-circle {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  border-color: transparent; color: var(--white);
  box-shadow: 0 4px 16px rgba(91,45,142,.35);
}
.reg-step.completed .rs-circle { border-color: var(--green); color: var(--green); }
.reg-step.completed .rs-check { display: flex; }
.reg-step.completed .rs-circle > i { display: none; }
.rs-label {
  font-size: .78rem; font-weight: 700; color: var(--gray-400);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.reg-step.active .rs-label, .reg-step.completed .rs-label { color: var(--purple-700); }
.reg-progress-line {
  flex: 1; height: 2px; background: var(--gray-200);
  margin: 0 8px; margin-bottom: 26px;
  max-width: 120px; transition: background .4s ease;
}
.reg-progress-line.filled { background: linear-gradient(90deg, var(--purple-600), var(--purple-400)); }

/* ---- Card ---- */
.reg-card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100);
  overflow: hidden;
}

/* ---- Form steps ---- */
.reg-form-step { display: none; padding: 40px 44px; }
.reg-form-step.active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.reg-step-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 36px;
  padding-bottom: 24px; border-bottom: 1px solid var(--gray-100);
}
.rsh-num {
  font-size: 2.8rem; font-weight: 900;
  color: var(--purple-100); line-height: 1;
  flex-shrink: 0; margin-top: -4px;
}
.reg-step-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.reg-step-header p { font-size: .9rem; color: var(--gray-500); }

/* ---- Fields grid ---- */
.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field.full { grid-column: span 2; }
.reg-field label { font-size: .88rem; font-weight: 700; color: var(--gray-700); }
.req { color: var(--red); }
.optional { font-weight: 400; color: var(--gray-400); font-size: .82rem; }

.field-wrap {
  position: relative; display: flex; align-items: center;
}
.field-wrap > i {
  position: absolute; left: 14px; color: var(--gray-400);
  font-size: .95rem; pointer-events: none; z-index: 1;
}
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  padding-left: 42px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  width: 100%; transition: var(--transition);
  font-size: .92rem; color: var(--gray-900);
  background: var(--gray-50);
}
.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  border-color: var(--purple-600);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--purple-100);
  outline: none;
}
.field-wrap.select-wrap select { appearance: none; cursor: pointer; }
.field-wrap.select-wrap::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 14px; color: var(--gray-400);
  font-size: .75rem; pointer-events: none;
}
.field-wrap.textarea-wrap { align-items: flex-start; }
.field-wrap.textarea-wrap > i { top: 14px; }
.field-wrap textarea { padding-top: 12px; resize: vertical; min-height: 120px; }

.field-hint { font-size: .78rem; color: var(--gray-400); }
.field-error { font-size: .78rem; color: var(--red); font-weight: 600; min-height: 16px; display: none; }
.field-error.visible { display: block; }
.reg-field.has-error .field-wrap input,
.reg-field.has-error .field-wrap select,
.reg-field.has-error .field-wrap textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* ---- Event selection cards ---- */
.event-select-group { display: flex; flex-direction: column; gap: 12px; }

.event-select-card { cursor: pointer; display: block; }
.event-select-card input { display: none; }

.esc-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 2px solid var(--gray-200); background: var(--gray-50);
  transition: var(--transition); position: relative;
}
.event-select-card:hover .esc-inner { border-color: var(--purple-300); background: var(--white); }
.event-select-card input:checked + .esc-inner {
  border-color: var(--purple-700);
  background: var(--purple-50);
  box-shadow: 0 0 0 3px var(--purple-100);
}

.esc-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  object-fit: cover; object-position: top;
  flex-shrink: 0; border: 1px solid var(--gray-200);
}
.event-select-card input:checked + .esc-inner .esc-thumb { border-color: var(--purple-400); }

.esc-info { flex: 1; min-width: 0; }
.esc-info strong { display: block; font-size: .98rem; font-weight: 800; color: var(--gray-900); margin-bottom: 3px; }
.esc-sub { display: block; font-size: .8rem; color: var(--gray-500); margin-bottom: 8px; line-height: 1.4; }
.esc-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.esc-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600; color: var(--purple-700);
  background: var(--purple-100); padding: 3px 10px; border-radius: 50px;
}
.esc-meta span i { font-size: .7rem; }

.esc-check {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: .85rem; transition: var(--transition);
}
.event-select-card input:checked + .esc-inner .esc-check {
  background: var(--purple-700); border-color: var(--purple-700); color: var(--white);
}

/* ---- ESV Package selector ---- */
.esv-packages {
  animation: stepIn .3s ease;
  background: linear-gradient(135deg, var(--purple-50), #F0EBFF);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-md);
  padding: 20px;
}
.esv-packages > label {
  font-size: .88rem; font-weight: 700; color: var(--purple-800);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.esv-packages > label::before {
  content: ''; display: block;
  width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-400));
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pkg-card { cursor: pointer; position: relative; }
.pkg-card input { display: none; }

.pkg-inner {
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--white); padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.pkg-card:hover .pkg-inner { border-color: var(--purple-400); }
.pkg-card input:checked + .pkg-inner {
  border-color: var(--purple-700);
  background: var(--purple-50);
  box-shadow: 0 0 0 3px var(--purple-100);
}

.pkg-duration {
  font-size: 1rem; font-weight: 800; color: var(--purple-800);
}
.pkg-room {
  font-size: .8rem; color: var(--gray-500); font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.pkg-room i { color: var(--purple-500); }
.pkg-price {
  font-size: 1.3rem; font-weight: 900; color: var(--purple-700);
  margin-top: 4px; line-height: 1;
}
.pkg-price span {
  font-size: .72rem; font-weight: 600; color: var(--gray-400);
}

.pkg-check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: transparent;
  transition: var(--transition);
}
.pkg-card input:checked + .pkg-inner .pkg-check {
  background: var(--purple-700); border-color: var(--purple-700);
  color: var(--white);
}

/* Popular badge */
.pkg-popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), #FBBF24);
  color: var(--purple-900); font-size: .65rem; font-weight: 800;
  padding: 3px 10px; border-radius: 0 0 8px 8px;
  white-space: nowrap; z-index: 1;
}
.pkg-card.popular .pkg-inner {
  border-color: var(--gold);
  padding-top: 22px;
}
.pkg-card.popular:hover .pkg-inner { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.pkg-card.popular input:checked + .pkg-inner { border-color: var(--purple-700); }

@media (max-width: 500px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

/* ---- Radio cards (current status) ---- */
.radio-card-group {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.rc-content {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 18px; border-radius: var(--radius-md);
  border: 2px solid var(--gray-200); background: var(--gray-50);
  font-size: .85rem; font-weight: 600; color: var(--gray-500);
  transition: var(--transition); min-width: 100px; text-align: center;
}
.rc-content i { font-size: 1.3rem; }
.radio-card input:checked + .rc-content {
  border-color: var(--purple-600);
  background: var(--purple-100); color: var(--purple-700);
  box-shadow: 0 4px 12px rgba(91,45,142,.15);
}
.radio-card:hover .rc-content { border-color: var(--purple-300); }

/* ---- Toggle group (Yes/No) ---- */
.toggle-group { display: flex; gap: 16px; }
.toggle-option { cursor: pointer; flex: 1; }
.toggle-option input { display: none; }
.to-content {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-md);
  border: 2px solid var(--gray-200); background: var(--gray-50);
  transition: var(--transition);
}
.to-content i { font-size: 1.4rem; color: var(--gray-400); }
.to-content span { font-weight: 700; font-size: 1rem; color: var(--gray-700); }
.to-content small { font-size: .8rem; color: var(--gray-400); margin-left: auto; }
.toggle-option input:checked + .to-content {
  border-color: var(--purple-600);
  background: var(--purple-100);
}
.toggle-option input:checked + .to-content i { color: var(--purple-700); }
.toggle-option input:checked + .to-content span { color: var(--purple-700); }

/* ---- Checkbox cards (source) ---- */
.checkbox-card-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.checkbox-card { cursor: pointer; }
.checkbox-card input { display: none; }
.cc-content {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 2px solid var(--gray-200); background: var(--gray-50);
  font-size: .82rem; font-weight: 600; color: var(--gray-500);
  transition: var(--transition); min-width: 90px; text-align: center;
}
.cc-content i { font-size: 1.3rem; }
.checkbox-card input:checked + .cc-content {
  border-color: var(--purple-600);
  background: var(--purple-100); color: var(--purple-700);
  box-shadow: 0 4px 12px rgba(91,45,142,.15);
}
.checkbox-card:hover .cc-content { border-color: var(--purple-300); }
.other-input { margin-top: 4px; }

/* ---- Commitment box ---- */
.commitment-box {
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  border: 1px solid var(--purple-200); border-radius: var(--radius-md);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 16px;
}
.cb-icon { font-size: 2rem; color: var(--purple-600); flex-shrink: 0; }
.cb-text h4 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.cb-text p { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }

/* ---- Consent checkboxes ---- */
.consent-check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; padding: 14px 16px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  transition: var(--transition); background: var(--gray-50);
}
.consent-check:hover { border-color: var(--purple-300); }
.consent-check input { display: none; }
.cc-box {
  width: 22px; height: 22px; min-width: 22px; border-radius: 6px;
  border: 2px solid var(--gray-300); display: flex; align-items: center;
  justify-content: center; transition: var(--transition); margin-top: 1px;
}
.cc-box i { font-size: .7rem; color: var(--white); display: none; }
.consent-check input:checked ~ .cc-box {
  background: var(--purple-700); border-color: var(--purple-700);
}
.consent-check input:checked ~ .cc-box i { display: block; }
.consent-check span:last-child { font-size: .88rem; color: var(--gray-700); line-height: 1.55; }

/* ---- Privacy note ---- */
.privacy-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gray-100); border-radius: var(--radius-md);
  padding: 16px; margin-top: 4px;
}
.privacy-note i { color: var(--purple-500); margin-top: 2px; flex-shrink: 0; }
.privacy-note p { font-size: .82rem; color: var(--gray-500); line-height: 1.6; }

/* ---- Step footer ---- */
.reg-step-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--gray-100); gap: 16px;
}
.reg-step-footer .btn { min-width: 160px; justify-content: center; }

/* ---- Success overlay ---- */
.reg-success-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(45,27,78,.85); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.reg-success-overlay.show { display: flex; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reg-success-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 56px 48px; text-align: center; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-xl); animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scaleIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rsc-icon { font-size: 4rem; color: var(--green); margin-bottom: 20px; }
.reg-success-card h2 { font-size: 1.8rem; font-weight: 900; color: var(--gray-900); margin-bottom: 12px; }
.reg-success-card p { color: var(--gray-500); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.rsc-ref {
  background: var(--purple-50); border: 1px solid var(--purple-100);
  border-radius: var(--radius-md); padding: 12px 20px;
  font-size: .9rem; color: var(--gray-700); margin-bottom: 28px;
}
.rsc-ref strong { color: var(--purple-700); font-size: 1.05rem; }
.rsc-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer strip ---- */
.reg-footer {
  text-align: center; padding: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: .84rem; color: var(--gray-400);
  background: var(--white);
}
.reg-footer a { color: var(--purple-600); font-weight: 600; }

/* ---- Submit loading state ---- */
#submitBtn.loading { opacity: .7; pointer-events: none; }
#submitBtn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .reg-form-step { padding: 28px 20px; }
  .reg-fields { grid-template-columns: 1fr; }
  .reg-field.full { grid-column: span 1; }
  .radio-card-group { gap: 8px; }
  .rc-content { min-width: 80px; padding: 10px 12px; }
  .toggle-group { flex-direction: column; }
  .reg-step-footer { flex-direction: column-reverse; }
  .reg-step-footer .btn { width: 100%; }
  .reg-progress-line { max-width: 60px; }
  .reg-success-card { padding: 40px 24px; }
}

/* ============================================================
   REGISTRATION FORM – MOBILE OPTIMIZATIONS
   ============================================================ */

/* ── Tablet (≤ 640px) — extend existing block ── */
@media (max-width: 640px) {
  .reg-main { padding: 28px 20px 48px; }
  .reg-container { padding: 0; }

  /* Progress: tighten circles and line */
  .rs-circle { width: 46px; height: 46px; font-size: .95rem; }
  .rs-label { font-size: .72rem; }
  .reg-progress { margin-bottom: 24px; }

  /* Event select card: reduce thumb */
  .esc-thumb { width: 60px; height: 60px; }
  .esc-inner { gap: 12px; padding: 12px 14px; }
  .esc-info strong { font-size: .9rem; }
  .esc-meta span { font-size: .72rem; padding: 2px 8px; }

  /* ESV packages */
  .esv-packages { padding: 16px; }
  .pkg-inner { padding: 14px 12px; }
  .pkg-price { font-size: 1.1rem; }

  /* Step header */
  .reg-step-header { margin-bottom: 28px; padding-bottom: 18px; }
  .rsh-num { font-size: 2.2rem; }

  /* Footer buttons already stack — ensure they're full-width */
  .reg-step-footer .btn { min-height: 48px; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  .reg-hero { padding: 36px 16px 32px; }
  .reg-hero-content h1 { font-size: 1.4rem; }
  .reg-hero-content p { font-size: .88rem; }
  .reg-hero-badge { font-size: .75rem; padding: 5px 14px; }
  .reg-main { padding: 20px 16px 44px; }

  /* Form card */
  .reg-card { border-radius: var(--radius-lg); }
  .reg-form-step { padding: 20px 16px 24px; }
  .reg-step-header { gap: 10px; margin-bottom: 20px; }
  .rsh-num { font-size: 1.8rem; }
  .reg-step-header h2 { font-size: 1.15rem; }
  .reg-step-header p { font-size: .84rem; }

  /* Progress bar */
  .rs-circle { width: 40px; height: 40px; font-size: .85rem; }
  .rs-label { font-size: .66rem; letter-spacing: 0; }
  .reg-progress-line { max-width: 36px; }

  /* Event selection: stack vertically on very small screens */
  .esc-inner { flex-wrap: wrap; padding: 0; gap: 0; overflow: hidden; }
  .esc-thumb {
    width: 100%; height: 120px;
    border-radius: 0; border-bottom: 1px solid var(--gray-200);
    object-position: center 20%;
  }
  .esc-info { padding: 12px 14px 10px; width: 100%; }
  .esc-info strong { font-size: .92rem; }
  .esc-sub { font-size: .76rem; margin-bottom: 6px; }
  .esc-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; }

  /* Radio cards — 2-column grid */
  .radio-card-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rc-content { min-width: unset; padding: 12px 8px; font-size: .78rem; }
  .rc-content i { font-size: 1.1rem; }

  /* Checkbox cards */
  .checkbox-card-group { gap: 8px; }
  .cc-content { min-width: 68px; padding: 10px 8px; font-size: .74rem; }
  .cc-content i { font-size: 1rem; }

  /* Toggle (yes/no) */
  .to-content { padding: 14px 16px; }
  .to-content small { display: none; } /* hide description text on tiny screens */

  /* Commitment box */
  .commitment-box { flex-direction: column; gap: 10px; padding: 14px; }
  .cb-icon { font-size: 1.6rem; }
  .cb-text h4 { font-size: .9rem; }
  .cb-text p { font-size: .82rem; }

  /* Consent label */
  .consent-check span:last-child { font-size: .82rem; }

  /* Step footer buttons */
  .reg-step-footer { padding-top: 20px; gap: 10px; }
  .reg-step-footer .btn { padding: 12px 20px; font-size: .9rem; }

  /* Success overlay */
  .reg-success-card { padding: 32px 16px; }
  .rsc-icon { font-size: 2.8rem; margin-bottom: 12px; }
  .reg-success-card h2 { font-size: 1.35rem; }
  .reg-success-card p { font-size: .9rem; }
  .rsc-actions { flex-direction: column; gap: 10px; }
  .rsc-actions .btn { width: 100%; justify-content: center; }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
  .rs-label { display: none; }
  .reg-progress-line { max-width: 24px; }
  .rs-circle { width: 36px; height: 36px; font-size: .78rem; }
  .rsh-num { display: none; }
  .reg-form-step { padding: 16px 14px 20px; }
  .reg-step-header h2 { font-size: 1.05rem; }
  .radio-card-group { grid-template-columns: repeat(2, 1fr); }
}

/* ── RM Location picker ── */
.rm-location-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.rm-loc-card {
  cursor: pointer;
  display: block;
}
.rm-loc-card input[type="radio"] { display: none; }

.rm-loc-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--gray-200, #E5E7EB);
  border-radius: 14px;
  background: #fff;
  transition: all .2s ease;
}
.rm-loc-card:hover .rm-loc-inner { border-color: var(--purple, #5B2D8E); background: #faf7ff; }
.rm-loc-card input:checked + .rm-loc-inner {
  border-color: var(--purple, #5B2D8E);
  background: var(--purple-pale, #F5F3FF);
  box-shadow: 0 0 0 3px rgba(91,45,142,.12);
}

.rm-loc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple-lt, #EDE9FE);
  color: var(--purple, #5B2D8E);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rm-loc-card input:checked + .rm-loc-inner .rm-loc-icon {
  background: var(--purple, #5B2D8E);
  color: #fff;
}

.rm-loc-info { flex: 1; }
.rm-loc-info strong { display: block; font-size: .95rem; font-weight: 700; color: #1a1a2e; }
.rm-loc-info span   { display: block; font-size: .8rem; color: #6b7280; margin-top: 2px; }

.rm-loc-check {
  font-size: 1.2rem;
  color: var(--gray-200, #E5E7EB);
  transition: color .2s ease;
}
.rm-loc-card input:checked + .rm-loc-inner .rm-loc-check { color: var(--purple, #5B2D8E); }

@media (max-width: 480px) {
  .rm-location-group { grid-template-columns: 1fr; }
  .rm-loc-inner { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════════
   PAYMENT OVERLAY
   ══════════════════════════════════════════════════════ */
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 5, 25, .75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.pay-overlay.show { opacity: 1; pointer-events: all; }

/* ── Panel ── */
.pay-panel {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.pay-header { text-align: center; margin-bottom: 24px; }
.pay-lock {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #5B2D8E, #8B5CF6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem; color: #fff;
}
.pay-header h2 { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.pay-summary   { font-size: .9rem; color: #5B2D8E; font-weight: 700; }

/* ── Tabs ── */
.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
}
.pay-tab {
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .2s ease;
}
.pay-tab.active { background: #fff; color: #5B2D8E; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* ── Method bodies ── */
.pay-method-body { display: flex; flex-direction: column; gap: 16px; }

/* Network selector */
.net-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.net-opt { cursor: pointer; }
.net-opt input[type="radio"] { display: none; }
.net-inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  transition: all .2s ease;
}
.net-inner img { height: 28px; object-fit: contain; }
.net-inner strong { font-size: .72rem; color: #374151; }
.net-opt input:checked + .net-inner {
  border-color: #5B2D8E;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(91,45,142,.12);
}

/* Fields */
.pay-field { display: flex; flex-direction: column; gap: 6px; }
.pay-field label { font-size: .82rem; font-weight: 700; color: #374151; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pay-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.pay-input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: .85rem;
  pointer-events: none;
}
.pay-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: #1a1a2e;
  background: #f9fafb;
  outline: none;
  transition: border-color .2s ease;
}
.pay-input-wrap input:focus { border-color: #5B2D8E; background: #fff; }

.pay-error {
  font-size: .76rem;
  color: #ef4444;
  display: none;
}

/* Pay button */
.pay-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #5B2D8E, #8B5CF6);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(91,45,142,.35);
  transition: all .25s ease;
}
.pay-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,45,142,.45); }
.pay-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.pay-back-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .85rem;
  color: #9ca3af;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  transition: color .2s ease;
}
.pay-back-link:hover { color: #5B2D8E; }

.pay-error-msg {
  display: none;
  background: #fff1f1;
  border: 1.5px solid #fca5a5;
  color: #b91c1c;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pay-secure-note {
  text-align: center;
  font-size: .72rem;
  color: #9ca3af;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ── Waiting panel ── */
.pay-waiting {
  background: #fff;
  border-radius: 20px;
  padding: 48px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.pay-spinner {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #5B2D8E;
}
.pay-waiting h3 { font-size: 1.15rem; font-weight: 800; color: #1a1a2e; }
.pay-waiting p  { font-size: .875rem; color: #6b7280; line-height: 1.6; }
.pay-timer-wrap {
  background: #f5f3ff;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 700;
  color: #5B2D8E;
}
#payTimer { font-size: 1.1rem; }
.pay-cancel-btn {
  background: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: .85rem;
  color: #6b7280;
  cursor: pointer;
  margin-top: 4px;
  transition: all .2s ease;
}
.pay-cancel-btn:hover { border-color: #5B2D8E; color: #5B2D8E; }

/* ── Mobile ── */
@media (max-width: 520px) {
  .pay-panel   { padding: 24px 18px 20px; border-radius: 20px 20px 0 0; }
  .pay-overlay { align-items: flex-end; padding: 0; }
  .pay-waiting { border-radius: 20px 20px 0 0; padding: 36px 18px; }
  .net-group   { grid-template-columns: 1fr 1fr 1fr; }
  .net-inner   { padding: 10px 6px; }
  .net-inner strong { font-size: .66rem; }
  .pay-row     { grid-template-columns: 1fr 1fr; }
}

/* ── Network brand badges (replaces logo images) ── */
.net-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .03em;
  color: #fff;
  flex-shrink: 0;
}
.net-mtn    { background: #FFCC00; color: #1a1a1a; }
.net-telecel { background: #E3000B; }
.net-at     { background: #ED1C24; }

.net-inner {
  flex-direction: column;
  gap: 6px;
}

/* ════════════════════════════════════════════════════════════
   OTP PANEL
   ════════════════════════════════════════════════════════════ */

.pay-otp-panel {
  padding: 32px 28px 24px;
}

.otp-field {
  margin: 24px 0 8px;
}

.otp-subtitle {
  color: #ffffff !important;
}

.otp-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-digit {
  width: 62px;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  caret-color: #5b2d8e;
  -webkit-text-fill-color: #1a1a2e;
}

.otp-digit:focus {
  border-color: #5b2d8e;
  box-shadow: 0 0 0 3px rgba(91,45,142,.12);
  background: #ffffff;
}

.otp-digit:not(:placeholder-shown) {
  border-color: #5b2d8e;
  background: #f5f3ff;
  color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
}

#otpError {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .85rem;
  color: #dc2626;
  min-height: 20px;
}
#otpError.visible { display: block; }

.otp-resend-wrap {
  text-align: center;
  margin: 18px 0 4px;
  font-size: .85rem;
  color: var(--gray-500);
}

#otpResendTimer strong {
  color: var(--purple-700);
  font-weight: 700;
}

.otp-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--purple-700);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.otp-resend-btn:hover { background: var(--purple-50, #f5f3ff); }

@media (max-width: 420px) {
  .otp-digit {
    width: 56px;
    height: 58px;
    font-size: 1.4rem;
    border-radius: 10px;
  }
  .otp-inputs { gap: 10px; }
}
