/* ============================================================
   GN Pre-Approval — Multi-Step Form  v1.0.0
   MoveFaster / Digital Glass
   Shares the same .gn-sv-* class structure as the seller
   valuation form so the same CSS covers both.
   ============================================================ */

/* ---- Container ---- */
.gn-sv-wrap {
  max-width: 640px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #2D3748;
}

/* ---- Progress Bar ---- */
.gn-sv-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.gn-sv-progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.gn-sv-progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: #EDF2F7;
  color: #718096;
  border: 2px solid #E2E8F0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.gn-sv-progress-dot.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.gn-sv-progress-dot.done {
  background: #38A169;
  color: #fff;
  border-color: #38A169;
}
.gn-sv-progress-line {
  width: 48px;
  height: 3px;
  background: #E2E8F0;
  transition: background 0.3s ease;
}
.gn-sv-progress-line.done {
  background: #38A169;
}

/* ---- Step Panel ---- */
.gn-sv-step {
  display: none;
  animation: gnSvFadeIn 0.35s ease;
}
.gn-sv-step.active {
  display: block;
}
@keyframes gnSvFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gn-sv-step h2 {
  font-family: "League Spartan", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 0.35rem;
  text-align: center;
}
.gn-sv-step .gn-sv-subtitle {
  font-size: 1rem;
  color: #718096;
  text-align: center;
  margin: 0 0 1.75rem;
}

/* ---- Form Fields ---- */
.gn-sv-field {
  margin-bottom: 1.1rem;
}
.gn-sv-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A5568;
  margin-bottom: 0.35rem;
}
.gn-sv-field input,
.gn-sv-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1.5px solid #CBD5E0;
  border-radius: 8px;
  background: #fff;
  color: #2D3748;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.gn-sv-field input:focus,
.gn-sv-field select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.gn-sv-field input.error,
.gn-sv-field select.error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}
.gn-sv-field .gn-sv-error-msg {
  font-size: 0.8rem;
  color: #E53E3E;
  margin-top: 0.25rem;
  display: none;
}
.gn-sv-field .gn-sv-error-msg.show {
  display: block;
}

/* ---- Two-column row ---- */
.gn-sv-row {
  display: flex;
  gap: 1rem;
}
.gn-sv-row > .gn-sv-field {
  flex: 1;
}

/* ---- Option Cards ---- */
.gn-sv-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.gn-sv-options.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.gn-sv-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid #CBD5E0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  user-select: none;
}
.gn-sv-option:hover {
  border-color: #007bff;
  color: #007bff;
  background: #EBF4FF;
}
.gn-sv-option.selected {
  border-color: #007bff;
  background: #007bff;
  color: #fff;
}

/* ---- Checkbox row ---- */
.gn-sv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #4A5568;
  cursor: pointer;
}
.gn-sv-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #007bff;
}

/* ---- Buttons ---- */
.gn-sv-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.gn-sv-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.gn-sv-btn-primary {
  background: linear-gradient(135deg, #0080ff 0%, #0055d4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.40);
}
.gn-sv-btn-primary:hover {
  background: linear-gradient(135deg, #0066cc 0%, #003fa3 100%);
  transform: translateY(-1px);
}
.gn-sv-btn-primary:disabled {
  background: #A0AEC0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.gn-sv-btn-secondary {
  background: rgba(237, 242, 247, 0.80);
  color: #4A5568;
  flex: 0 0 auto;
  padding: 0.85rem 1.25rem;
}
.gn-sv-btn-secondary:hover {
  background: #E2E8F0;
}

/* ---- Thank You ---- */
.gn-sv-thankyou {
  text-align: center;
  padding: 2rem 1rem;
}
.gn-sv-thankyou .gn-sv-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #38A169;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 32px;
}
.gn-sv-thankyou h2 {
  margin-bottom: 0.5rem;
}
.gn-sv-thankyou p {
  color: #718096;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.gn-sv-thankyou .gn-sv-btn {
  display: inline-block;
  flex: none;
}

/* ---- Spinner ---- */
.gn-sv-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gnSvSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes gnSvSpin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .gn-sv-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .gn-sv-row {
    flex-direction: column;
    gap: 0;
  }
  .gn-sv-step h2 {
    font-size: 1.4rem;
  }
  .gn-sv-progress-line {
    width: 28px;
  }
  .gn-sv-progress-dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
