/* ============================
   Installment QUERY PAGE — EXTRA STYLES
   ============================ */

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.form-header-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

/* Progress Steps */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px;
}

.ps-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.35s ease;
  border: 2px solid #E5E7EB;
}

.progress-step.active .ps-circle,
.progress-step.done .ps-circle {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}

.progress-step span {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  transition: color 0.3s;
}

.progress-step.active span,
.progress-step.done span {
  color: var(--primary);
}

.progress-line {
  flex: 1;
  height: 3px;
  min-width: 30px;
  background: #E5E7EB;
  border-radius: 2px;
  margin-bottom: 24px;
  transition: background 0.4s ease;
}

.progress-line.done {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Section Titles */
.lq-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin: 28px 0 20px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.25);
  transition: all 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.lq-section-title:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
}

.lq-section-title i {
  font-size: 18px;
}

/* Required star */
.req {
  color: #EF4444;
  margin-left: 3px;
}

/* Labels with icons */
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}

.form-group label i {
  color: var(--primary);
  font-size: 14px;
  width: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================
   Installment TYPE CARD SELECTOR
   ============================ */
.Installment-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

.Installment-type-card {
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  border: 2px solid #E5E7EB;
  background: #FAFAFA;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.Installment-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ltc-inner {
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ltc-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #EDE9FE, #DBEAFE);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.ltc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.ltc-rate {
  font-size: 11px;
  color: var(--text-light);
  background: #F3F4F6;
  padding: 3px 10px;
  border-radius: 20px;
}

.ltc-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: transparent;
  font-size: 18px;
  transition: all 0.25s ease;
  transform: scale(0.5);
}

/* Hover state */
.Installment-type-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
}

.Installment-type-card:hover .ltc-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: scale(1.08);
}

/* Selected state */
.Installment-type-card:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #EDE9FE 0%, #EFF6FF 100%);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15), 0 8px 24px rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
}

.Installment-type-card:has(input:checked) .ltc-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
}

.Installment-type-card:has(input:checked) .ltc-name {
  color: var(--primary);
}

.Installment-type-card:has(input:checked) .ltc-rate {
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.Installment-type-card:has(input:checked) .ltc-check {
  color: var(--primary);
  transform: scale(1);
}

/* ============================
   CHIP SELECTOR (Qual / Occ)
   ============================ */
.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 2px solid #E5E7EB;
  background: #FAFAFA;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip i {
  font-size: 13px;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
}

.chip.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
  transform: translateY(-2px);
}

.chip.selected:hover {
  transform: translateY(-3px);
}

/* ============================
   FILE UPLOAD BOX
   ============================ */
.file-upload-box {
  position: relative;
}

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

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed #C4B5FD;
  border-radius: 14px;
  background: #FAFAFA;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.file-label i {
  font-size: 28px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.file-label span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.file-label small {
  font-size: 12px;
  color: var(--text-light);
}

.file-upload-box:hover .file-label {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.04);
}

.file-upload-box:hover .file-label i {
  transform: translateY(-4px);
}

.file-upload-box.has-file .file-label {
  border-style: solid;
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.file-upload-box.has-file .file-label i {
  color: #10B981;
}

/* ============================
   TERMS CHECKBOX
   ============================ */
.terms-check {
  margin: 28px 0 8px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid #C4B5FD;
  border-radius: 6px;
  background: #fff;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-checkbox:hover .checkmark {
  border-color: var(--primary);
}

.custom-checkbox input:checked~.checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox input:checked~.checkmark::after {
  opacity: 1;
}

.custom-checkbox span {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.custom-checkbox span a {
  color: var(--primary);
  font-weight: 600;
}

.custom-checkbox span a:hover {
  text-decoration: underline;
}

/* ============================
   CIBIL SCORE BOX
   ============================ */
.cibil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cc {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cc.poor {
  background: #FEE2E2;
  color: #DC2626;
}

.cc.fair {
  background: #FEF3C7;
  color: #D97706;
}

.cc.good {
  background: #DBEAFE;
  color: #2563EB;
}

.cc.excellent {
  background: #D1FAE5;
  color: #059669;
}

/* ============================
   PHOTO & SIGNATURE PREVIEW BOX
   ============================ */
.preview-upload-box {
  border: 2px dashed #C4B5FD;
  border-radius: 16px;
  background: #FAFAFA;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  min-height: 180px;
  justify-content: center;
}

.preview-upload-box.has-file {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.03);
}

.pub-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  text-align: center;
}

.pub-placeholder i {
  font-size: 44px;
  color: #C4B5FD;
}

.pub-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.pub-placeholder small {
  font-size: 12px;
}

.pub-preview-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.2);
}

.preview-upload-box.has-file .pub-preview-img {
  display: block;
}

.preview-upload-box.has-file .pub-placeholder {
  display: none;
}

.pub-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.pub-upload-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}

.pub-upload-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(108, 99, 255, 0.4);
}

.pub-change-btn {
  background: #F3F4F6;
  color: var(--text);
  border: 1.5px solid #E5E7EB;
}

.pub-change-btn:hover {
  background: #EDE9FE;
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================
   DOCUMENT SLOTS
   ============================ */
#extraDocsContainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.doc-slot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  animation: fadeSlotIn 0.3s ease;
  padding: 14px;
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
  box-shadow: 0 10px 24px rgba(108, 99, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-slot:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 14px 30px rgba(108, 99, 255, 0.14);
}

@keyframes fadeSlotIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-slot-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.doc-name-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8d2ff;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  color: #4338ca;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(67, 56, 202, 0.08);
}

.doc-name-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

/* File area */
.dua-box {
  border: 1.5px dashed #c7b9ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fcfbff 0%, #f5f2ff 100%);
  position: relative;
  overflow: hidden;
  min-height: 74px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dua-box:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f8f6ff 0%, #eef2ff 100%);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.08);
}

.dua-idle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.dua-idle-row i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.dua-idle-row span {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  display: block;
}

.dua-idle-row small {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.dua-pick-btn {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 14px rgba(108, 99, 255, 0.24);
}

.dua-done-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.dua-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #10b981;
  flex-shrink: 0;
}

.dua-fname {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dua-change-btn {
  background: #ede9fe;
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dua-change-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* The hidden file input covers the whole area */
.doc-file-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  margin: 0;
  padding: 0;
}

.dfa-idle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  pointer-events: none;
}

.dfa-idle i {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.dfa-idle span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: block;
}

.dfa-idle small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
}

.dfa-done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.dfa-done img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid #10B981;
}

.dfa-done-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dfa-done-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dfa-change-btn {
  background: #EDE9FE;
  color: var(--primary);
  border: 1.5px solid rgba(108, 99, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 20;
}

.dfa-change-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Add another document button */
.add-doc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 13px 22px;
  border-radius: 50px;
  border: 2px dashed rgba(108, 99, 255, 0.35);
  background: rgba(108, 99, 255, 0.04);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.add-doc-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  #extraDocsContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .preview-upload-box {
    min-height: 150px;
    padding: 16px 12px;
  }

  .pub-preview-img {
    width: 90px;
    height: 90px;
  }

  .pub-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .dfa-idle {
    padding: 12px 14px;
  }

  .dfa-idle i {
    font-size: 18px;
  }

  .dfa-idle span {
    font-size: 13px;
  }

  .doc-remove-btn {
    margin-top: 48px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .cibil-chips {
    gap: 6px;
  }

  .cc {
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  #extraDocsContainer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .doc-slot {
    flex-direction: column;
  }

  .doc-remove-btn {
    margin-top: 0;
    width: 100%;
    border-radius: 10px;
    height: 38px;
  }
}

/* ============================
   WHATSAPP FLOATING BUTTON
   ============================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
  font-size: 30px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}

.wa-float:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
  background: #1ebe5d;
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  right: 76px;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.7);
    opacity: 0;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* ============================
   RESPONSIVE — Installment-query
   ============================ */

/* Tablet */
@media (max-width: 900px) {
  .Installment-type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* Form section — full width white background */
  .form-section {
    padding: 64px 0 0;
  }

  .form-container {
    padding: 20px 16px 48px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  /* Form header */
  .form-header {
    margin-bottom: 24px;
  }

  .form-header-icon {
    width: 58px;
    height: 58px;
    font-size: 26px;
    border-radius: 16px;
  }

  .form-container h2 {
    font-size: 22px;
  }

  .form-container .subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  /* Progress bar — compact */
  .progress-bar-wrap {
    margin-bottom: 28px;
    overflow-x: visible;
  }

  .progress-step {
    min-width: 56px;
    gap: 6px;
  }

  .ps-circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .progress-step span {
    font-size: 10px;
  }

  .progress-line {
    min-width: 16px;
  }

  /* Section titles */
  .lq-section-title {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 24px 0 16px;
  }

  .lq-section-title:hover {
    transform: none;
  }

  /* Form rows — stack to 1 col */
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    /* prevent iOS zoom */
    padding: 13px 14px;
    border-radius: 10px;
  }

  .cvv-group .password-field {
    position: relative;
  }

  .cvv-group .password-field input {
    padding-right: 46px;
  }

  .password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6C63FF;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  .password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    border-radius: 50%;
  }

  /* Installment type grid — 2x4 on mobile */
  .Installment-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 6px;
  }

  .ltc-inner {
    padding: 14px 8px 12px;
  }

  .ltc-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  .ltc-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .ltc-rate {
    font-size: 10px;
    padding: 2px 8px;
  }

  .ltc-check {
    font-size: 15px;
    top: 6px;
    right: 6px;
  }

  /* Chips */
  .chip-select {
    gap: 8px;
  }

  .chip {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 40px;
  }

  .chip i {
    font-size: 12px;
  }

  /* File upload */
  .file-label {
    padding: 22px 16px;
    gap: 6px;
  }

  .file-label i {
    font-size: 24px;
  }

  .file-label span {
    font-size: 13px;
  }

  .file-label small {
    font-size: 11px;
  }

  /* Terms */
  .terms-check {
    margin: 20px 0 6px;
  }

  .custom-checkbox {
    gap: 12px;
  }

  .custom-checkbox span {
    font-size: 13px;
  }

  .checkmark {
    width: 20px;
    height: 20px;
  }

  /* Submit button */
  .submit-btn {
    font-size: 17px;
    padding: 16px;
    border-radius: 50px;
    margin-top: 20px;
  }

  /* Document slot mobile layout */
  .doc-slot {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-del-btn {
    align-self: flex-end;
    margin-top: 12px;
  }

  /* WhatsApp float */
  .wa-float {
    bottom: 18px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .wa-tooltip {
    display: none;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .form-container {
    margin: 0;
    padding: 16px 12px 28px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    width: 100%;
  }

  .Installment-type-grid {
    gap: 8px;
  }

  .ltc-inner {
    padding: 12px 6px 10px;
  }

  .ltc-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .ltc-name {
    font-size: 11px;
  }

  .ps-circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .progress-step span {
    font-size: 9px;
  }

  .progress-line {
    min-width: 10px;
  }

  .chip {
    padding: 7px 12px;
    font-size: 12px;
  }
}