/* =============================================================
   POPUP OVERLAY (form quiz)
   ============================================================= */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--white);
  display: none; opacity: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
}
.popup-overlay.is-open {
  display: block; opacity: 1;
}
.popup-container {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 24px 48px;
  animation: popup-in 0.25s ease-out;
  overflow: visible;
}
@keyframes popup-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.popup-content {
  width: 100%; max-width: 560px;
  margin: auto 0;
  padding: 16px 0;
  display: flex; flex-direction: column;
  align-items: stretch;
  overflow: visible;
}
.form-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.form-logo-image {
  display: block; height: 44px; width: auto;
}
/* PHASE PROGRESS DOTS */
.phase-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 32px;
}
.phase-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ink-300);
  transition: all 0.3s ease;
}
.phase-dot.is-active {
  width: 32px; background: var(--brand-primary);
}
.phase-dot.is-complete {
  background: var(--brand-primary);
}
/* FORM STEP */
.form-step {
  text-align: center;
  animation: step-in 0.3s ease;
}
@keyframes step-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.form-step[hidden] {
  display: none;
}
.step-heading {
  font-size: 26px; font-weight: 700; color: var(--ink-900);
  margin: 0 0 8px; line-height: 1.25;
}
.step-subhead {
  font-size: 15px; color: var(--ink-500);
  margin: 0 0 28px; line-height: 1.5;
}
.step-helper {
  font-size: 13px; color: var(--ink-500);
  margin: 16px 0 0;
}
.step-trust {
  font-size: 12px; color: var(--ink-700);
  margin: 8px 0 0; font-weight: 500;
}
.step-actions-row {
  display: flex; justify-content: center;
  margin-top: 24px;
}
.step-actions-row-double {
  gap: 12px; flex-wrap: wrap;
}
/* Step 1 (address) — compact layout so map + buttons fit viewport */
.form-step[data-step="1"] .step-heading {
  font-size: 22px; margin-bottom: 2px;
}
.form-step[data-step="1"] .step-subhead {
  margin-bottom: 8px; font-size: 14px;
}
.form-step[data-step="1"] {
  overflow: visible; padding-bottom: 320px;
}
.form-step[data-step="1"] .address-input-wrapper {
  overflow: visible; min-height: 60px;
}
/* Address map (satellite view shown after address picked) */
.address-map-wrapper {
  margin: 8px 0 0;
  animation: consent-fade-in 0.35s ease-out;
}
.address-map {
  width: 100%; height: calc(100vh - 520px); min-height: 160px; max-height: 400px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  background:
  linear-gradient(135deg, rgba(13,124,138,0.08) 0%, rgba(248,146,29,0.06) 100%),
  repeating-linear-gradient(45deg, #e5e7eb 0, #e5e7eb 1px, transparent 1px, transparent 12px),
  #f3f4f6;
}
.address-map-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  text-align: center; padding: 24px;
}
.address-map-label {
  font-size: 14px; font-weight: 600; color: var(--ink-900);
  text-align: center; margin: 8px 0 0;
}
/* Secondary "Change" button styled as outline */
.continue-btn-secondary {
  background: transparent;
  border: 2px solid var(--ink-300);
  color: var(--ink-700);
  font-size: 15px; font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.continue-btn-secondary:hover {
  background: var(--ink-50);
  border-color: var(--ink-500);
  color: var(--ink-900);
}
@media (max-width: 480px) {
  .step-actions-row-double {
    flex-direction: column-reverse; align-items: stretch;
  }
  .step-actions-row-double .continue-btn,
  .step-actions-row-double .continue-btn-secondary {
    width: 100%;
  }
  .address-map {
    height: calc(100vh - 460px); min-height: 120px; max-height: 240px;
  }
  /* Address step — empty state (input only): positions the question + input block around mid-
     viewport so the address bar sits in the natural thumb-zone on one-handed use, while still
     leaving a clean gap below the popup logo/progress strip. Browser auto-scrolls input above
     the keyboard on focus, so this only affects the resting (pre-keyboard) position. */
  .form-step[data-step="1"]:has(.address-map-wrapper[hidden]) {
    padding-top: 12vh;
  }
  /* Address step — map-shown state (post-selection): compact layout so Yes/Continue + Change
     both fit above the fold on small Android phones with on-screen 3-button nav. */
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) {
    padding-bottom: 24px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .step-heading {
    font-size: 20px; margin-bottom: 0;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .step-subhead {
    font-size: 13px; margin-bottom: 4px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .address-map-wrapper {
    margin-top: 4px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .address-map {
    max-height: 200px; min-height: 140px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .address-map-label {
    font-size: 13px; margin-top: 4px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .step-trust {
    font-size: 11px; margin-top: 4px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .consent-note {
    margin-top: 8px; padding: 8px 12px; font-size: 12px;
  }
  .form-step[data-step="1"]:has(.address-map-wrapper:not([hidden])) .step-actions-row {
    margin-top: 12px; gap: 8px;
  }
}
.consent-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-left: 3px solid var(--brand-primary);
  border-radius: 8px;
  text-align: left;
  animation: consent-fade-in 0.35s ease-out;
}
.consent-note p {
  font-size: 11px; line-height: 1.45;
  color: var(--ink-700); margin: 0 0 4px;
}
.consent-note p:last-child {
  margin-bottom: 0;
}
.consent-note a {
  color: var(--brand-primary); font-weight: 600; text-decoration: underline;
}
.consent-note strong {
  color: var(--ink-900); font-weight: 700;
}
@keyframes consent-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* STEP INPUT */
.step-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius);
  font-size: 16px; color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.step-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-20);
}
.step-input::placeholder {
  color: var(--ink-500); opacity: 1; font-weight: 400;
}
/* Contact inputs: left-aligned so Chrome recognises the field group for autofill */
.step-input.contact-input {
  text-align: left;
}
.input-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.input-wrapper {
  margin-bottom: 16px;
  position: relative;
}
.input-wrapper-center {
  text-align: center;
}
.input-error {
  font-size: 13px; color: var(--danger);
  margin-top: 6px; min-height: 18px;
  text-align: left;
}
.input-wrapper-center .input-error {
  text-align: center;
}
/* ADDRESS INPUT (quiz) */
.address-input-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.step-input.address-input {
  padding-right: 110px; text-align: left;
}
@media (max-width: 880px) {
  /* Keep the input clear of the on-screen keyboard */
  .address-input { scroll-margin-top: 24px; scroll-margin-bottom: 80px; }
}
.powered-by-google {
  position: absolute; right: 16px; bottom: -22px;
  font-size: 8px; color: var(--ink-400);
  pointer-events: none;
}
.address-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-height: 400px; overflow-y: auto;
  text-align: left;
}
.address-dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-700);
  transition: background 0.1s ease;
}
.address-dropdown-item:last-child {
  border-bottom: none;
}
.address-dropdown-item:hover {
  background: var(--brand-primary-light); color: var(--ink-900);
}
.address-dropdown-item svg {
  color: var(--brand-primary); flex-shrink: 0;
}
.address-dropdown-section-title {
  padding: 8px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink-500); background: var(--ink-50);
}
/* RADIO CARDS */
.radio-cards {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 440px; margin: 0 auto;
}
.radio-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-width: 480px;
}
.radio-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}
.radio-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
}
.radio-card input {
  position: absolute; opacity: 0; pointer-events: none;
}
.radio-card input:checked ~ * {
  color: var(--ink-900);
}
.radio-card:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
  box-shadow: 0 0 0 3px var(--brand-primary-20);
}
.radio-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.radio-card-icon svg {
  width: 22px; height: 22px;
}
.radio-card-text {
  flex: 1; line-height: 1.4;
}
.radio-card-text strong {
  display: block; font-size: 15px; font-weight: 700; color: var(--ink-900);
}
.radio-card-text span {
  display: block; font-size: 13px; color: var(--ink-500); margin-top: 2px;
}
/* REGION CHIPS */
.region-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; max-width: 560px; margin: 0 auto;
}
.region-chip {
  cursor: pointer;
  padding: 12px 8px;
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  text-align: center;
  transition: all 0.15s ease;
  position: relative;
}
.region-chip input {
  position: absolute; opacity: 0; pointer-events: none;
}
.region-chip:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
}
.region-chip:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
}
@media (max-width: 480px) {
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* MOBILE FORM UI — more breathing room, card contrast */
@media (max-width: 640px) {
  .popup-overlay {
    background: var(--ink-50);
  }
  .popup-container {
    padding: 56px 48px 40px;
  }
  .popup-content {
    max-width: 100%; padding: 0;
  }
  .address-map {
    height: calc(100vh - 480px); min-height: 140px; max-height: 280px;
  }
  .form-step {
    padding: 0;
  }
  .step-heading {
    font-size: 22px;
  }
  .radio-cards {
    max-width: 100%; gap: 8px;
  }
  .radio-cards-grid {
    gap: 8px;
  }
  .radio-card {
    padding: 14px 16px; gap: 12px;
    background: var(--white);
    border: 1px solid var(--ink-300);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .radio-card:has(input:checked) {
    box-shadow: 0 0 0 2px var(--brand-primary-20);
  }
  .radio-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
  }
  .radio-card-icon svg {
    width: 18px; height: 18px;
  }
  .radio-card-text strong {
    font-size: 14px;
  }
  .radio-card-text span {
    font-size: 12px;
  }
  .region-chip {
    padding: 10px 6px; font-size: 12px;
    background: var(--white); border-radius: 10px;
    border: 1px solid var(--ink-300);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .slider-wrapper {
    max-width: 100%;
  }
  .continue-btn {
    font-size: 15px; padding: 14px 24px; border-radius: 999px;
  }
  .phase-progress {
    margin-bottom: 24px;
  }
}
/* SLIDER */
.slider-wrapper {
  max-width: 480px; margin: 0 auto;
  text-align: center;
}
.slider-value {
  font-size: 56px; font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 16px; line-height: 1;
}
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  /* --fill is set by quiz.js from the current value */
  background: linear-gradient(to right, var(--brand-primary) var(--fill, 0%), var(--ink-300) var(--fill, 0%));
  border-radius: 999px;
  outline: none;
  margin: 16px 0 0;
  position: relative;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px;
  background: var(--brand-primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(248,146,29,0.4);
  position: relative;
  z-index: 2;
}
.slider::-moz-range-thumb {
  width: 28px; height: 28px;
  background: var(--brand-primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(248,146,29,0.4);
}
/* Tick marks below slider */
.slider-ticks {
  display: flex; justify-content: space-between;
  padding: 0;
  margin-top: 10px;
  position: relative;
}
.slider-ticks span {
  font-size: 11px; font-weight: 500; color: var(--ink-400);
  text-align: center;
  position: relative;
  min-width: 24px;
}
.slider-ticks span::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 6px;
  background: var(--ink-300);
}
/* CONTINUE BUTTON */
.continue-btn {
  background: var(--brand-primary); color: var(--white);
  padding: 16px 36px; border-radius: 999px;
  font-size: 16px; font-weight: 700;
  transition: background 0.15s ease, transform 0.1s ease;
  min-width: 180px;
}
.continue-btn:hover:not(:disabled) {
  background: var(--brand-primary-dark);
}
.continue-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.continue-btn:disabled {
  background: var(--ink-300); cursor: not-allowed;
}
/* SECURE BADGE */
.secure-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-500);
  margin-top: 16px;
}
.secure-badge svg {
  color: var(--success);
}
.otp-secure-row {
  text-align: center; margin-top: 14px;
}
/* SMS / OTP INPUT */
.sms-input {
  width: 280px; max-width: 100%;
  padding: 18px 16px;
  border: 2px solid var(--ink-300);
  border-radius: var(--radius);
  font-size: 32px; font-weight: 700; letter-spacing: 12px;
  text-align: center;
  color: var(--ink-900);
  margin: 0 auto;
  display: block;
}
.sms-input:focus {
  outline: none; border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-20);
}
.sms-helper {
  font-size: 13px; color: var(--ink-500);
  margin: 16px 0;
}
.resend-link {
  color: var(--brand-primary); font-weight: 600;
  text-decoration: underline;
  background: none; padding: 0; margin: 0;
  font-size: inherit;
}
.resend-link:disabled {
  color: var(--ink-300); text-decoration: none; cursor: not-allowed;
}
/* =============================================================
   ANALYSIS ANIMATION SCREEN (step 13)
   ============================================================= */
.analysis-screen {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 0;
}
.analysis-icon {
  width: 56px; height: 56px; margin-bottom: 20px;
}
.analysis-icon svg {
  width: 100%; height: 100%;
}
@keyframes analysis-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.analysis-icon-spin {
  transform-origin: 24px 24px;
  animation: analysis-spin 3s linear infinite;
}
.analysis-checklist {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 360px;
  margin: 24px auto 28px;
  text-align: left;
}
.analysis-item {
  display: flex; align-items: center; gap: 12px;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.analysis-item.is-active {
  opacity: 1;
}
.analysis-item.is-done {
  opacity: 1;
}
.analysis-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}
/* Waiting state — empty circle */
.analysis-item .analysis-check::after {
  content: '';
  display: none;
}
/* Active state — pulsing dot */
.analysis-item.is-active .analysis-check {
  border-color: var(--brand-primary);
  background: var(--brand-primary-10);
}
.analysis-item.is-active .analysis-check::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: analysis-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes analysis-pulse {
  from { opacity: 0.3; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.05); }
}
/* Done state — orange check */
.analysis-item.is-done .analysis-check {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}
.analysis-item.is-done .analysis-check::after {
  content: '';
  display: block;
  width: 6px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
  animation: none;
  border-radius: 0;
  background: none;
}
.analysis-label {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  line-height: 1.4;
}
.analysis-item.is-active .analysis-label {
  color: var(--ink-900); font-weight: 600;
}
.analysis-item.is-done .analysis-label {
  color: var(--ink-900);
}
.analysis-progress {
  width: 100%; max-width: 360px;
  height: 4px; border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
  margin-bottom: 16px;
}
.analysis-progress-bar {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: var(--brand-primary);
  transition: width 4s linear;
}
.analysis-powered {
  font-size: 11px; color: var(--ink-400);
  letter-spacing: 0.3px;
}
/* =============================================================
   SOLAR INSIGHTS RESULTS (step 14)
   ============================================================= */
.solar-results {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 0;
  animation: step-in 0.4s ease;
}
.solar-hero-stat {
  text-align: center; margin-bottom: 32px;
}
.solar-hero-label {
  font-size: 14px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 0 0 8px;
}
.solar-hero-pct {
  display: flex; align-items: baseline; justify-content: center;
  gap: 2px;
}
.solar-pct-number {
  font-size: 80px; font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -2px;
}
.solar-pct-sign {
  font-size: 36px; font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}
.solar-hero-sub {
  font-size: 16px; font-weight: 500;
  color: var(--ink-600, #475569);
  margin: 8px 0 0;
}
.solar-hero-disclaimer {
  font-size: 11px; color: var(--ink-400);
  margin: 10px auto 0; max-width: 360px;
  line-height: 1.5; font-weight: 400;
}
.solar-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; width: 100%; max-width: 520px;
  margin-bottom: 24px;
}
.solar-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.solar-card:hover {
  border-color: var(--brand-primary-30);
  box-shadow: 0 4px 16px rgba(248,146,29,0.08);
}
.solar-card-icon {
  width: 40px; height: 40px;
  background: var(--brand-primary-10);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.solar-card-icon svg {
  width: 20px; height: 20px;
  color: var(--brand-primary);
}
.solar-card-eyebrow {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-400);
}
.solar-card-value {
  font-size: 22px; font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}
.solar-card-desc {
  font-size: 12px; font-weight: 500;
  color: var(--ink-500);
}
.solar-fallback-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  max-width: 520px; width: 100%;
  text-align: left;
  animation: consent-fade-in 0.35s ease-out;
}
.solar-fallback-note[hidden] {
  display: none;
}
.solar-fallback-note svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: #d97706; margin-top: 1px;
}
.solar-fallback-note span {
  font-size: 13px; color: #92400e; line-height: 1.5;
}
.solar-fallback-note strong {
  color: #78350f;
}
/* Mobile responsive */
@media (max-width: 480px) {
  .solar-pct-number {
    font-size: 60px;
  }
  .solar-pct-sign {
    font-size: 28px;
  }
  /* Keep 3-column stat cards on mobile so the Get Free Quotes button is visible without scrolling */
  .solar-cards {
    grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .solar-card {
    padding: 12px 6px; gap: 3px; text-align: center;
  }
  .solar-card-icon {
    width: 30px; height: 30px; border-radius: 8px; margin-bottom: 2px;
  }
  .solar-card-icon svg {
    width: 15px; height: 15px;
  }
  .solar-card-eyebrow {
    font-size: 8.5px; letter-spacing: 0.4px; line-height: 1.2;
  }
  .solar-card-value {
    font-size: 15px;
  }
  .solar-card-desc {
    font-size: 9.5px; line-height: 1.3;
  }
  .analysis-checklist {
    max-width: 100%;
  }
  .analysis-progress {
    max-width: 100%;
  }
  .analysis-label {
    font-size: 13px;
  }
}
/* FORM SUCCESS / THANK YOU */
.form-success {
  text-align: center;
  animation: step-in 0.4s ease;
}
.form-success[hidden] {
  display: none;
}
.success-header {
  margin-bottom: 24px;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: var(--success); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-icon svg {
  width: 44px; height: 44px;
}
@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title {
  font-size: 28px; font-weight: 800; color: var(--ink-900);
  margin: 0 0 12px;
}
.success-subtitle {
  font-size: 15px; color: var(--ink-700);
  margin: 0; line-height: 1.6;
}
.success-reference {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--brand-primary-light);
  border: 1px solid var(--brand-primary-30);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 24px 0;
}
.success-reference-label {
  font-size: 12px; font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.success-reference-id {
  font-size: 16px; font-weight: 800;
  color: var(--brand-primary);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 1px;
}
/* Dynamic answer recap */
.success-recap {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 8px 0;
  margin: 24px 0;
  text-align: left;
}
.success-recap-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 14px;
}
.success-recap-row:last-child {
  border-bottom: none;
}
.success-recap-label {
  color: var(--ink-500);
  font-weight: 500;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.success-recap-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-radius: 6px;
}
.success-recap-icon svg {
  width: 14px; height: 14px;
}
.success-recap-value {
  color: var(--ink-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
/* Confirmation list (next steps) */
.success-confirmation {
  text-align: left;
  margin: 0 0 24px;
}
.success-confirmation-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.success-confirmation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.success-confirmation-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}
.success-confirmation-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 22px; height: 22px;
  background: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.success-confirmation-list li strong {
  color: var(--ink-900);
}
.success-secondary-link {
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid var(--brand-primary);
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--brand-primary);
  transition: all 0.15s ease;
}
.success-secondary-link:hover {
  background: var(--brand-primary); color: var(--white);
}
/* MOBILE POPUP — fullscreen */
@media (max-width: 768px) {
  .popup-container {
    padding: 56px 32px 32px;
  }
  .step-heading {
    font-size: 22px;
  }
}
