 :root {
      --theme-color: #3185ec;
      --brand_color: #0050b2;
      --secondary_color: #171d24;
      --p_color: #4c5267;
      --black_50: #ebebeb;
      --black_100: #d6d9dc;
      --black_500: #6a737c;
      --body_bg: #f7f9fa;
      --bs-white: #fff;
    } 
    
    
 
 /* ── Page shell ── */
    .page-wrap {
      max-width: 720px;
      margin: 48px auto 80px;
      padding: 0 20px;
    }
 
    .page-title {
      font-family: 'Poppins', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: var(--secondary_color);
      margin-bottom: 6px;
      text-align: center;
    }
    .page-subtitle {
      font-size: 15px;
      color: var(--black_500);
      text-align: center;
      margin-bottom: 40px;
    }
 
    /* ── Step progress bar ── */
    .progress-bar-wrap {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      margin-bottom: 48px;
      gap: 0;
    }
    .step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      position: relative;
    }
    .step-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 20px;
      left: calc(50% + 20px);
      right: calc(-50% + 20px);
      height: 2px;
      background: var(--black_50);
      transition: background 0.4s;
    }
    .step-item.completed:not(:last-child)::after {
      background: var(--theme-color);
    }
    .step-circle {
      width: 40px; height: 40px;
      border-radius: 50%;
      border: 2px solid var(--black_100);
      background: #fff;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--black_500);
      transition: all 0.3s;
      position: relative;
      z-index: 1;
    }
    .step-item.active .step-circle {
      border-color: var(--theme-color);
      background: var(--theme-color);
      color: #fff;
      box-shadow: 0 0 0 4px rgba(109,39,229,0.15);
    }
    .step-item.completed .step-circle {
      border-color: var(--theme-color);
      background: var(--theme-color);
      color: #fff;
    }
    .step-label {
      font-size: 11px;
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      color: var(--black_500);
      margin-top: 8px;
      text-align: center;
      white-space: nowrap;
    }
    .step-item.active .step-label { color: var(--theme-color); }
    .step-item.completed .step-label { color: var(--theme-color); }
 
    /* ── Card ── */
    .form-card {
      background: var(--bs-white);
      border-radius: 16px;
      padding: 40px 48px;
      box-shadow: 0 2px 8px rgb(0 0 0 / 6%), 0 8px 32px rgb(0 0 0 / 5%);
    }
 
    .step-heading {
      font-family: 'Poppins', sans-serif;
      font-size: 20px;
      font-weight: 600;
      color: var(--secondary_color);
      margin-bottom: 6px;
    }
    .step-desc {
      font-size: 13px;
      color: var(--black_500);
      margin-bottom: 32px;
    }
    
    .step-labels {
      font-size: 13px;
      color: var(--black_500);
    }
 
    /* ── Fields ── */
    .field-row {
      display: grid;
      gap: 20px;
      margin-bottom: 20px;
    }
    .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
    .field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
    .field-row.cols-1 { grid-template-columns: 1fr; }
 
    .floating-input {
      position: relative;
    }
    .floating-input input,
    .floating-input select {
      width: 100%;
      height: 56px;
      border: 1.5px solid var(--black_50);
      border-radius: 8px;
      background: transparent;
      padding: 16px 16px 0;
      font-size: 14px;
      font-family: 'Roboto', sans-serif;
      color: var(--secondary_color);
      outline: none;
      transition: border-color 0.2s;
      appearance: none;
    }
    .floating-input option {
      color: var(--black_500);
    }
    
    .floating-input select {
      padding-top: 18px;
      cursor: pointer;
    }
    
    .floating-input input:focus,
    .floating-input select:focus {
      border-color: var(--theme-color);
    }
    .floating-input label {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      color: var(--black_500);
      pointer-events: none;
      transition: all 0.2s;
      padding: 0 2px;
    }
    .floating-input input:focus ~ label,
    .floating-input input:not(:placeholder-shown) ~ label,
    .floating-input select:focus ~ label,
    .floating-input select.has-value ~ label {
      top: 10px;
      font-size: 11px;
      color: var(--theme-color);
    }
    .floating-input input::placeholder { color: transparent; }
 
    /* Currency prefix */
    .input-prefix {
      position: relative;
    }
    .input-prefix .prefix-symbol {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 15px;
      color: var(--black_500);
      z-index: 2;
      pointer-events: none;
    }
    .input-prefix input {
      padding-left: 30px !important;
    }
 
    /* ── Upload zones ── */
    .upload-zone {
      border: 2px dashed var(--black_100);
      border-radius: 12px;
      padding: 40px 24px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      background-color: rgba(0, 80, 178, 0.05);
    }
    .upload-zone:hover { border-color: var(--theme-color); background: #f5f0ff; }
    .upload-zone.has-file { border-color: var(--theme-color); border-style: solid; background: #f5f0ff; }
    .upload-zone input[type="file"] {
      position: absolute; inset: 0;
      opacity: 0; cursor: pointer; width: 100%; height: 100%;
    }
    .upload-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(109,39,229,.12), rgba(0,80,178,.12));
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 12px;
    }
    .upload-icon svg { width: 24px; height: 24px; }
    .upload-title {
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--secondary_color);
      margin-bottom: 4px;
    }
    .upload-sub { font-size: 12px; color: var(--black_500); }
    .upload-filename {
      margin-top: 10px;
      font-size: 12px;
      color: var(--theme-color);
      font-weight: 500;
    }
 
    /* ── Navigation buttons ── */
    .btn-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 36px;
      gap: 12px;
    }
    .btn-back {
      padding: 14px 28px;
      border-radius: 8px;
      border: 1.5px solid var(--black_100);
      background: transparent;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--black_500);
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-back:hover { border-color: var(--secondary_color); color: var(--secondary_color); }
    .btn-next {
      padding: 14px 36px;
      border-radius: 8px;
      border: none;
      background: linear-gradient(135deg, var(--theme-color), var(--brand_color));
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      cursor: pointer;
      transition: opacity 0.2s;
      display: flex; align-items: center; gap: 8px;
    }
    .btn-next:hover { opacity: 0.88; }
    .btn-next svg { width: 16px; height: 16px; fill: #fff; }
 
    /* ── Review step ── */
    .review-section {
      margin-bottom: 28px;
    }
    .review-section-title {
      font-family: 'Poppins', sans-serif;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--theme-color);
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1.5px solid #f0e8ff;
    }
    .review-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 24px;
    }
    .review-item label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--black_500);
      margin-bottom: 2px;
    }
    .review-item .review-value {
      font-size: 14px;
      color: var(--secondary_color);
      font-weight: 500;
    }
    .review-item .review-value.masked {
      letter-spacing: 0.12em;
    }
 
    .review-id-images {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 4px;
    }
    .review-id-thumb {
      background-color: rgba(0, 80, 178, 0.05);
      border: 1px solid var(--black_50);
      border-radius: 8px;
      padding: 16px;
      text-align: center;
    }
    .review-id-thumb .id-icon { font-size: 28px; margin-bottom: 6px; }
    .review-id-thumb p {
      font-size: 12px;
      color: var(--black_500);
      font-weight: 500;
    }
    .review-id-thumb .file-name {
      font-size: 11px;
      color: var(--theme-color);
      margin-top: 4px;
      word-break: break-all;
    }
 
    /* ── Security box ── */
    .security-box {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      background: var(--bs-white);
      border: 1.5px solid #d8c8ff;
      border-radius: 12px;
      padding: 20px 22px;
      margin-top: 28px;
      margin-bottom: 28px;
    }
    .security-icon {
      flex-shrink: 0;
      width: 40px; height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--theme-color), var(--brand_color));
      display: flex; align-items: center; justify-content: center;
    }
    .security-icon svg { width: 20px; height: 20px; fill: #fff; }
    .security-text strong {
      display: block;
      font-family: 'Poppins', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--bs-white);
      margin-bottom: 4px;
    }
    .security-text p {
      font-size: 13px;
      color: var(--p_color);
      line-height: 1.55;
    }
 
    /* ── Submit button ── */
    .btn-submit {
      width: 100%;
      padding: 16px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, var(--theme-color), var(--brand_color));
      font-family: 'Poppins', sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      margin-top: 20px;
      transition: opacity 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .btn-submit:hover { opacity: 0.88; }
    .btn-submit svg { width: 18px; height: 18px; fill: #fff; }
 
    /* ── Success screen ── */
    .success-screen {
      text-align: center;
      padding: 20px 0;
    }
    .success-icon-wrap {
      width: 80px; height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, #e8f5e9, #f0fdf4);
      border: 2px solid #a7f3d0;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px;
    }
    .success-icon-wrap svg { width: 40px; height: 40px; fill: #16a34a; }
    .success-title {
      font-family: 'Poppins', sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--secondary_color);
      margin-bottom: 10px;
    }
    .success-msg {
      font-size: 15px;
      color: var(--black_500);
      line-height: 1.6;
    }
    .ref-badge {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 20px;
      background: #f5f0ff;
      border: 1px solid #d8c8ff;
      border-radius: 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--theme-color);
    }
 
    /* ── Responsive ── */
    @media (max-width: 600px) {
      .form-card { padding: 28px 20px; }
      .field-row.cols-2,
      .field-row.cols-3 { grid-template-columns: revert-rule; }
      .review-grid { grid-template-columns: 1fr; }
      .review-id-images { grid-template-columns: 1fr; }
      .step-label { display: none; }
    }
    
    

.loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 90%;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e6f5;
    border-top-color: #3185ec;
    border-radius: 50%;
    margin: 0 auto 22px;
    animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
    to { transform: rotate(360deg); }
}
.loading-modal-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin: 0;
    min-height: 22px;
    transition: opacity 0.3s ease;
}