:root {
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  /* Placeholder background — swap in a real HVAC-unit photo before launch, e.g.:
     background-image: linear-gradient(rgba(10,15,25,0.55), rgba(10,15,25,0.55)), url('hero.jpg'); */
  background:
    linear-gradient(rgba(10, 15, 25, 0.55), rgba(10, 15, 25, 0.55)),
    radial-gradient(circle at 30% 20%, #2b3646 0%, #0f1620 60%, #05080c 100%);
  background-size: cover;
  background-position: center;
}

.survey-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -28px -28px 20px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.25s ease;
}

.brand-mark {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 14px;
}

.survey-step h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.3;
}

.survey-step h2 {
  font-size: 17px;
  margin: 0 0 16px;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}
.choice-btn:hover { border-color: var(--primary); }
.choice-btn.selected {
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.06);
  font-weight: 600;
}
.choice-btn::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice-btn.selected::after {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.choice-btn.selected-warning {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
  font-weight: 600;
}
.choice-btn.selected-warning::after {
  border-color: #dc2626;
  background: #dc2626;
  box-shadow: inset 0 0 0 3px #fff;
}
.choice-warning {
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.survey-step label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.survey-step input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.privacy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.nav-btn {
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.nav-btn.prev {
  background: transparent;
  color: var(--muted);
}
.nav-btn.next {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
}
.nav-btn.next:hover { background: var(--primary-hover); }
.nav-btn.next:disabled {
  background: #a8c7fa;
  cursor: not-allowed;
}
.nav-btn.next.warning { background: #dc2626; }
.nav-btn.next.warning:hover { background: #b91c1c; }

.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 12px;
}

.confirmation h2 { color: var(--ink); }

.trust-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.trust-bar .stars { color: #f59e0b; font-size: 14px; margin-right: 6px; }
.trust-bar .rating { font-weight: 700; font-size: 14px; }
.trust-bar .testimonial {
  margin: 8px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* Belt-and-suspenders: guarantees [hidden] always wins over any future display rule,
   regardless of selector specificity or source order. A missing version of this exact
   rule caused a real bug in the B2B build (see docs/superpowers/plans/2026-08-10-b2b-lead-funnel.md Task 6). */
[hidden] { display: none !important; }
