/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e8f0fe 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1a1a2e;
}

/* ════════════════════════════════════════
   PRELOADER
════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e7ff;
  border-top-color: #0a509f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════
   STICKY HEADER — LOGO FIX
════════════════════════════════════════ */
.sticky-banner {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(10, 80, 159, 0.12);
  z-index: 1000;
  padding: 0;              /* remove all padding */
  margin: 0;
  line-height: 0;          /* removes gap below image */
}

.sticky-banner .logo {
  width: 100%;
  display: block;
}

.sticky-banner .logo img {
  width: 100%;             /* full width stretch */
  height: auto;
  display: block;          /* removes inline gap */
  object-fit: cover;
}
/* ════════════════════════════════════════
   BANNER SLIDER
════════════════════════════════════════ */
.banner-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.banner-slide {
  display: none;
  width: 100%;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════ */
main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 24px 16px 32px;
  flex-grow: 1;
}

.form-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════
   FORM HEADER
════════════════════════════════════════ */
.form-header {
  background: linear-gradient(135deg, #0a509f 0%, #1a6fc4 100%);
  border-radius: 20px 20px 0 0;
  padding: 28px 28px 24px;
  text-align: center;
  color: #ffffff;
}

.form-header-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  backdrop-filter: blur(4px);
}

.form-header-icon i {
  font-size: 24px;
  color: #f0b542;
}

.form-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 400;
}

/* ════════════════════════════════════════
   FORM CONTAINER
════════════════════════════════════════ */
.form-container {
  background: #ffffff;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(10, 80, 159, 0.12);
}

.user-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ════════════════════════════════════════
   FIELD GROUPS & LABELS
════════════════════════════════════════ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: #5a6a85;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Side-by-side row (expiry + CVV) */
.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field-group {
  flex: 1;
}

/* ════════════════════════════════════════
   INPUT FIELDS
════════════════════════════════════════ */
.input-container {
  position: relative;
  width: 100%;
}

.input-container > i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0a509f;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.input-container input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid #e0e7f5;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #1a1a2e;
  background: #f8faff;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -moz-appearance: textfield;
  appearance: none;
}

.input-container input::-webkit-inner-spin-button,
.input-container input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-container input::placeholder {
  color: #b0bdd0;
  font-weight: 400;
}

.input-container input:focus {
  border-color: #0a509f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 80, 159, 0.1);
}

/* ════════════════════════════════════════
   SELECT DROPDOWN
════════════════════════════════════════ */
.select-container {
  position: relative;
  width: 100%;
}

.select-container > i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0a509f;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a6a85;
  font-size: 12px;
  pointer-events: none;
}

.select-container select {
  width: 100%;
  padding: 13px 40px 13px 42px;
  border: 1.5px solid #e0e7f5;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #1a1a2e;
  background: #f8faff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}

.select-container select:focus {
  border-color: #0a509f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 80, 159, 0.1);
}

/* ════════════════════════════════════════
   SUBMIT BUTTON
════════════════════════════════════════ */
.user-form button[type="submit"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0b542 0%, #e09a20 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 16px rgba(240, 181, 66, 0.4);
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.user-form button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 181, 66, 0.5);
}

.user-form button[type="submit"]:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════
   SECURITY NOTE
════════════════════════════════════════ */
.form-note {
  text-align: center;
  font-size: 12px;
  color: #8a9ab5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note i {
  color: #27ae60;
  font-size: 11px;
}

/* ════════════════════════════════════════
   TRUST BADGES
════════════════════════════════════════ */
.trust-badges {
  background: #ffffff;
  border-top: 1px solid #f0f4ff;
  border-radius: 0 0 20px 20px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 8px 32px rgba(10, 80, 159, 0.08);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #5a6a85;
}

.badge i {
  font-size: 18px;
  color: #0a509f;
}

.badge span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  width: 100%;
  margin-top: auto;
}

footer img {
  width: 100%;
  display: block;
}

/* ════════════════════════════════════════
   VERIFICATION OPTION CARDS (verify page)
════════════════════════════════════════ */
.verify-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.verify-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border: 1.5px solid #e0e7f5;
  border-radius: 12px;
  background: #f8faff;
  text-decoration: none;
  color: #1a1a2e;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.2s;
}

.verify-card:hover {
  border-color: #0a509f;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(10, 80, 159, 0.12);
  transform: translateY(-2px);
}

.verify-card:active {
  transform: translateY(0);
}

.verify-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a509f 0%, #1a6fc4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-icon i {
  font-size: 20px;
  color: #f0b542;
}

.verify-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.verify-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.verify-sub {
  font-size: 12px;
  color: #8a9ab5;
  font-weight: 400;
}

.verify-arrow {
  color: #c0cce0;
  font-size: 13px;
  transition: color 0.2s, transform 0.2s;
}

.verify-card:hover .verify-arrow {
  color: #0a509f;
  transform: translateX(3px);
}

/* ════════════════════════════════════════
   CARD PREVIEW (debit/credit page)
════════════════════════════════════════ */
.card-preview {
  background: linear-gradient(135deg, #0a509f 0%, #1a3a6e 100%);
  padding: 22px 24px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.card-preview::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.card-preview::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 20px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.card-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-chip i {
  font-size: 28px;
  color: #f0b542;
  opacity: 0.9;
}

.card-type-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.card-number-display {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 18px;
  font-family: 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.95);
}

.card-preview-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.card-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 2px;
}

.card-value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
}

.card-network {
  display: flex;
  align-items: center;
  position: relative;
  width: 44px;
}

.card-circle-1,
.card-circle-2 {
  font-size: 28px;
  position: absolute;
}

.card-circle-1 {
  color: #e74c3c;
  opacity: 0.85;
  right: 16px;
}

.card-circle-2 {
  color: #f0b542;
  opacity: 0.85;
  right: 0;
}

/* CVV hint icon */
.cvv-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bdd0;
  font-size: 14px;
  cursor: help;
}

/* ════════════════════════════════════════
   PIN PAGE
════════════════════════════════════════ */
.pin-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px 0 10px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c0cce0;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pin-dot.filled {
  background: #0a509f;
  border-color: #0a509f;
  transform: scale(1.15);
}

.pin-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bdd0;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.pin-toggle:hover {
  color: #0a509f;
}

/* ════════════════════════════════════════
   STATUS / PROCESSING PAGE
════════════════════════════════════════ */
.status-card {
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(10, 80, 159, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-title {
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #1a1a2e;
  margin: 16px 0 8px;
}

.status-sub {
  font-size: 14px;
  color: #8a9ab5;
  line-height: 1.6;
  margin-bottom: 20px;
}

.status-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon {
  font-size: 36px;
  position: relative;
  z-index: 2;
}

.connecting-ring .status-icon {
  color: #0a509f;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #0a509f;
  border-right-color: rgba(10, 80, 159, 0.3);
  animation: orbit 1s linear infinite;
}

.ring-2 {
  inset: 10px;
  border-top-color: #f0b542;
  border-right-color: rgba(240, 181, 66, 0.3);
  animation: orbit 1.5s linear infinite reverse;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.pulse-icon {
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.92); }
}

.progress-bar-wrap {
  background: #e8f0fe;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin: 0 0 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a509f, #1a6fc4);
  border-radius: 99px;
  transition: width 0.8s ease, background 0.4s ease;
}

.progress-label {
  font-size: 12px;
  color: #8a9ab5;
  font-style: italic;
}

.error-ring .status-icon {
  color: #e74c3c;
}

.error-title {
  color: #e74c3c;
}

.error-reasons {
  background: #fff5f5;
  border: 1px solid #fde0e0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c0392b;
  font-weight: 500;
}

.reason-item i {
  font-size: 13px;
  color: #e74c3c;
  min-width: 16px;
}

.retry-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0a509f 0%, #1a6fc4 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(10, 80, 159, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.retry-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 80, 159, 0.4);
}

.secondary-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: #5a6a85;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  border: 1.5px solid #e0e7f5;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.secondary-btn:hover {
  border-color: #0a509f;
  color: #0a509f;
  background: #f0f5ff;
}
