/* =================================================================
   KYC MULTI-STEP FORM - Modern UX/UI v2.0
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Root & Variables --- */
.kyc-form {
  --kyc-primary: #6366f1;
  --kyc-primary-dark: #4f46e5;
  --kyc-primary-light: #ede9fe;
  --kyc-primary-glow: rgba(99, 102, 241, 0.18);
  --kyc-success: #10b981;
  --kyc-danger: #ef4444;
  --kyc-warning: #f59e0b;
  --kyc-text: #1e293b;
  --kyc-text-muted: #64748b;
  --kyc-border: #e2e8f0;
  --kyc-bg: #f8fafc;
  --kyc-white: #ffffff;
  --kyc-radius: 14px;
  --kyc-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --kyc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--kyc-white);
  padding: 0;
  border-radius: 20px;
  border: none;
  box-shadow: var(--kyc-shadow);
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  position: relative;
}

/* ================================================================
   STEPPER / PROGRESS BAR
   ================================================================ */
.kyc-stepper-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 28px 40px 24px;
  position: relative;
  overflow: hidden;
}

.kyc-stepper-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.kyc-stepper-header::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.kyc-stepper-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.kyc-stepper-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin: 0 0 28px;
  font-weight: 400;
}

.kyc-steps-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  z-index: 1;
}

.kyc-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
}

.kyc-step-item:last-child {
  flex: 0 0 auto;
}

.kyc-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: var(--kyc-transition);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.kyc-step-dot svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: none;
}

.kyc-step-item.completed .kyc-step-dot {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,1);
  color: var(--kyc-primary);
}

.kyc-step-item.completed .kyc-step-dot .step-number { display: none; }
.kyc-step-item.completed .kyc-step-dot svg { display: block; }

.kyc-step-item.active .kyc-step-dot {
  background: #fff;
  border-color: #fff;
  color: var(--kyc-primary);
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.kyc-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 2px;
  position: relative;
  overflow: hidden;
  align-self: center;
  margin-top: 15px; /* vertically center connector with the 30px dot */
}

.kyc-step-connector-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.9);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.kyc-step-info {
  margin-top: 6px;
  text-align: center;
}

.kyc-step-label {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: var(--kyc-transition);
  white-space: nowrap;
}

.kyc-step-item.active .kyc-step-label {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.kyc-step-item.completed .kyc-step-label {
  color: rgba(255,255,255,0.7);
}

/* ================================================================
   STEP PANELS - Slide Transition
   ================================================================ */
.kyc-steps-wrapper {
  overflow: hidden;
  position: relative;
}

.kyc-steps-container {
  display: block; /* Simple block layout - show/hide panels */
  width: 100%;
}

.kyc-step-panel {
  display: none;
  width: 100%;
  padding: 28px 40px 36px;
  box-sizing: border-box;
  animation: kycFadeIn 0.3s ease;
  background: #ffffff;
  color: #1e293b;
}

.kyc-step-panel.active {
  display: block;
}

@keyframes kycFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kyc-step-panel-header {
  margin-bottom: 28px;
}

.kyc-step-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.kyc-step-panel-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ================================================================
   FORM FIELDS - Modern Float Label Style
   ================================================================ */
.kyc-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .kyc-field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kyc-field-grid .full-width {
    grid-column: 1 / -1;
  }
}

.kyc-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kyc-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--kyc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.kyc-field > label::after {
  content: none !important; /* Override parent theme asterisk - direct child only */
}

/* Only apply asterisk to the direct label of the field, NOT nested card labels */
.kyc-field.required > label::after {
  content: ' *' !important;
  color: var(--kyc-danger);
  font-size: 14px;
  line-height: 1;
}

.kyc-field input[type="text"],
.kyc-field input[type="tel"],
.kyc-field input[type="date"],
.kyc-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--kyc-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--kyc-text);
  background-color: var(--kyc-bg);
  transition: var(--kyc-transition);
  box-sizing: border-box;
  line-height: 1.5;
  height: auto;
  -webkit-appearance: none;
  appearance: none;
}

.kyc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.kyc-field input:focus,
.kyc-field select:focus {
  outline: none;
  background-color: var(--kyc-white);
  border-color: var(--kyc-primary);
  box-shadow: 0 0 0 3px var(--kyc-primary-glow);
}

.kyc-field input.is-invalid,
.kyc-field select.is-invalid {
  border-color: var(--kyc-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.kyc-field .field-error {
  font-size: 12px;
  color: var(--kyc-danger);
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.kyc-field.has-error .field-error {
  display: block;
}

/* Override intl-tel-input width */
.kyc-field .iti {
  width: 100%;
}
.kyc-field .iti input {
  width: 100% !important;
}

/* ================================================================
   CARD RADIO - Gender / Doc Type
   ================================================================ */
.kyc-card-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kyc-card-option {
  flex: 1;
  min-width: 100px;
}

.kyc-card-option input[type="radio"] {
  /* Use fixed not absolute so it cannot occupy layout space or intercept clicks */
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  top: -9999px;
  left: -9999px;
}

.kyc-card-option label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1.5px solid var(--kyc-border);
  border-radius: 12px;
  background: var(--kyc-bg);
  cursor: pointer;
  text-align: center;
  transition: var(--kyc-transition);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--kyc-text-muted) !important;
  min-height: 70px;
  user-select: none;
}

/* Kill asterisks inside card options — must beat .kyc-form label::after from style.css */
.kyc-form .kyc-card-option label::after,
.kyc-form .kyc-doctype-option label::after {
  content: none !important;
  display: none !important;
}

.kyc-card-option label svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.kyc-card-option input[type="radio"]:checked + label {
  border-color: var(--kyc-primary);
  background: var(--kyc-primary-light);
  color: var(--kyc-primary-dark) !important;
  box-shadow: 0 0 0 2px var(--kyc-primary-glow);
}

.kyc-card-option input[type="radio"]:checked + label svg {
  transform: scale(1.2);
}

.kyc-card-option label:hover {
  border-color: var(--kyc-primary);
  background: var(--kyc-white);
}

/* Doc Type Card with inline icon */
.kyc-doctype-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .kyc-doctype-select {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kyc-doctype-option input[type="radio"] {
  /* Use fixed not absolute so it cannot occupy layout space or intercept clicks */
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  top: -9999px;
  left: -9999px;
}

.kyc-doctype-option label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--kyc-border);
  border-radius: 10px;
  background: var(--kyc-bg);
  cursor: pointer;
  transition: var(--kyc-transition);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--kyc-text-muted) !important;
  user-select: none;
  min-height: 54px;
}

.kyc-doctype-option label::after {
  content: none !important;
}

.kyc-doctype-option label .doc-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--kyc-transition);
}

.kyc-doctype-option label .doc-icon svg {
  width: 16px;
  height: 16px;
}

.kyc-doctype-option input[type="radio"]:checked + label {
  border-color: var(--kyc-primary);
  background: var(--kyc-primary-light);
  color: var(--kyc-primary-dark) !important;
  box-shadow: 0 0 0 2px var(--kyc-primary-glow);
}

.kyc-doctype-option input[type="radio"]:checked + label .doc-icon {
  background: var(--kyc-primary);
}

.kyc-doctype-option input[type="radio"]:checked + label .doc-icon svg {
  stroke: white;
}

.kyc-doctype-option label:hover {
  border-color: var(--kyc-primary);
  background: var(--kyc-white);
}

/* ================================================================
   UPLOAD AREA - Modern Version
   ================================================================ */
.kyc-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  grid-column: 1 / -1;
}

@media (min-width: 600px) {
  .kyc-upload-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kyc-upload-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kyc-upload-item > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--kyc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kyc-upload-zone {
  position: relative;
  width: 100%;
  min-height: 160px;
  border: 2px dashed var(--kyc-border);
  border-radius: 12px;
  background: var(--kyc-bg);
  cursor: pointer;
  overflow: hidden;
  transition: var(--kyc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kyc-upload-zone:hover {
  border-color: var(--kyc-primary);
  background: #f5f3ff;
  transform: translateY(-2px);
}

.kyc-upload-zone.has-file {
  border: 2px solid var(--kyc-success);
}

.kyc-upload-zone.drag-over {
  border-color: var(--kyc-primary);
  background: var(--kyc-primary-light);
}

.kyc-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  z-index: 2;
  position: relative;
  width: 100%;
  height: 100%;
}

.kyc-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kyc-primary-light), #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.kyc-upload-zone:hover .kyc-upload-icon {
  transform: scale(1.1);
}

.kyc-upload-icon svg {
  width: 24px;
  height: 24px;
  color: var(--kyc-primary);
  stroke: var(--kyc-primary);
}

.kyc-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--kyc-primary);
  margin: 0;
}

.kyc-upload-hint {
  font-size: 11px;
  color: var(--kyc-text-muted);
  margin: 0;
}

.kyc-upload-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
  border-radius: 10px;
}

.kyc-upload-zone.has-file .kyc-upload-preview-img {
  display: block;
}

.kyc-upload-zone.has-file .kyc-upload-inner {
  display: none;
}

.kyc-upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.kyc-upload-zone.has-file .kyc-upload-clear {
  display: flex;
}

.kyc-upload-clear:hover {
  background: rgba(239, 68, 68, 0.85);
}

.kyc-upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.kyc-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.kyc-upload-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--kyc-primary);
  margin-bottom: 8px;
}

/* ================================================================
   NAVIGATION BUTTONS
   ================================================================ */
.kyc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px 32px;
  border-top: 1px solid var(--kyc-border);
  gap: 12px;
  position: relative; /* Establish stacking context */
  z-index: 10;        /* Always on top — nothing can cover nav buttons */
}

.kyc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--kyc-transition);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.kyc-btn-prev {
  background: var(--kyc-bg);
  color: var(--kyc-text-muted);
  border: 1.5px solid var(--kyc-border);
}

.kyc-btn-prev:hover {
  background: var(--kyc-border);
  color: var(--kyc-text);
}

.kyc-btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.kyc-btn-next {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  margin-left: auto;
}

.kyc-btn-next:hover {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.kyc-btn-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  margin-left: auto;
}

.kyc-btn-submit:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.kyc-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.kyc-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Step counter info */
.kyc-step-counter {
  font-size: 12px;
  color: var(--kyc-text-muted);
  font-weight: 500;
}

/* ================================================================
   MESSAGE BOX
   ================================================================ */
.kyc-message-box {
  display: none;
  margin: 0 40px 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.kyc-message-box.is-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.kyc-message-box.is-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ================================================================
   REJECTED BANNER
   ================================================================ */
.kyc-rejected-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.kyc-rejected-banner svg {
  width: 20px;
  height: 20px;
  stroke: #ea580c;
  fill: none;
  flex-shrink: 0;
}

.kyc-rejected-banner p {
  margin: 0;
  font-size: 13px;
  color: #9a3412;
  font-weight: 500;
}

/* ================================================================
   APPROVED STATE - ID Card
   ================================================================ */
.kyc-approved-wrapper {
  padding: 36px 40px;
}

.kyc-verified-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 14px;
  margin-bottom: 28px;
}

.kyc-verified-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--kyc-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kyc-verified-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.kyc-verified-text h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
}

.kyc-verified-text p {
  margin: 0;
  font-size: 13px;
  color: #047857;
}

.kyc-id-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 28px;
  color: white;
}

.kyc-id-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.kyc-id-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.kyc-id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.kyc-id-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.kyc-id-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 6px;
  opacity: 0.9;
}

.kyc-id-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.kyc-id-field label {
  display: block !important;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kyc-id-field label::after {
  content: none !important;
}

.kyc-id-field span {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  .kyc-stepper-header {
    padding: 24px 20px 28px;
  }

  .kyc-step-panel {
    padding: 24px 20px;
  }

  .kyc-nav {
    padding: 16px 20px 24px;
  }

  .kyc-message-box {
    margin: 0 20px 16px;
  }

  .kyc-approved-wrapper {
    padding: 24px 20px;
  }

  .kyc-step-label {
    display: none;
  }
}

@media (max-width: 700px) {
  .kyc-step-label {
    display: none;
  }
  .kyc-step-dot {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .kyc-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .kyc-id-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Spinner animation */
@keyframes kyc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kyc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: kyc-spin 0.7s linear infinite;
}

/* ================================================================
   STEP 6 — REVIEW CARD & TERMS
   ================================================================ */
.kyc-review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.kyc-review-section {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.kyc-review-section:last-child { border-bottom: none; }

.kyc-review-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.kyc-review-section-title svg { flex-shrink: 0; }

.kyc-review-grid { display: flex; flex-direction: column; gap: 8px; }

.kyc-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.kyc-review-row span {
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.kyc-review-row strong {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* Terms block */
.kyc-terms-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kyc-term-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.5;
}
.kyc-term-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.kyc-term-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.kyc-term-check input:checked + .kyc-term-box {
  background: #4f46e5;
  border-color: #4f46e5;
}
.kyc-term-check input:checked + .kyc-term-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.kyc-term-text {
  font-size: 14px;
  color: #374151;
}
.kyc-term-text a {
  color: #4f46e5;
  text-decoration: underline;
}
.kyc-term-text a:hover { color: #3730a3; }

/* ================================================================
   STEP 5→6 CONNECTOR EXTRA SPACING
   ================================================================ */
/* The connector between step 5 and step 6 (the 5th connector = nth-child(10)) */
.kyc-steps-track .kyc-step-item[data-step="5"] + .kyc-step-connector {
  margin: 0 8px;
  flex: 1.5;
}

/* Nav bar: white background so it blends with white panels */
.kyc-form > [class*="kyc-nav"],
.kyc-nav-wrap,
.kyc-form-footer {
  background: #ffffff;
}

/* ================================================================
   PHONE COUNTRY CODE SELECTOR
   ================================================================ */
.kyc-phone-input-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.kyc-phone-code-select {
  flex: 0 0 auto;
  width: 110px;
  min-width: 110px;
  padding: 10px 8px;
  border: 1.5px solid var(--kyc-border, #d1d5db);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--kyc-bg-alt, #f9fafb);
  font-size: 14px;
  color: var(--kyc-text, #1e293b);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  padding-right: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kyc-phone-code-select:focus {
  outline: none;
  border-color: var(--kyc-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.kyc-phone-input-row input[type="tel"] {
  flex: 1;
  border: 1.5px solid var(--kyc-border, #d1d5db);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--kyc-text, #1e293b);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kyc-phone-input-row input[type="tel"]:focus {
  outline: none;
  border-color: var(--kyc-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

@media (max-width: 480px) {
  .kyc-phone-code-select {
    width: 95px;
    min-width: 95px;
    font-size: 13px;
  }
  .kyc-phone-input-row input[type="tel"] {
    font-size: 14px;
  }
}
