:root {
  --primary: #254798;
  --primary-dark: #142d5f;
  --accent: #f6ad55;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.hero {
  background: radial-gradient(circle at top right, rgba(66, 92, 168, 0.8), rgba(20, 45, 95, 0.95)), url('https://llamaroofing.com/assets/roof-hero.jpg') center/cover;
  color: #fff;
  padding: 4rem clamp(1rem, 5vw, 6rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero__content h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__content .subtitle {
  font-size: 1.1rem;
  max-width: 38rem;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero__card {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 1.5rem;
  padding: 2rem;
  align-self: center;
  backdrop-filter: blur(12px);
}

.hero__card-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero__card-copy {
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

.zip-form {
  background: rgba(15, 23, 42, 0.55);
  padding: 1.5rem;
  border-radius: 1.5rem;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zip-form label {
  font-size: 0.9rem;
}

.zip-form__controls {
  display: flex;
  gap: 0.75rem;
}

.zip-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.zip-form__error {
  color: #fecaca;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.btn {
  background: var(--accent);
  color: #1f2937;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(246, 173, 85, 0.25);
}

.btn--wide {
  width: 100%;
}

.link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.steps {
  margin: clamp(-4rem, -8vw, -6rem) auto 0;
  background: var(--card);
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.steps__header {
  text-align: center;
}

.steps__badge {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 71, 152, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress {
  margin-top: 1.5rem;
}

.progress__bar {
  height: 0.4rem;
  background: var(--primary);
  border-radius: 999px;
  width: 11%;
  transition: width 0.4s ease;
}

.progress__label {
  color: var(--muted);
  font-size: 0.95rem;
}

.wizard {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wizard__step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  background: #fcfdff;
}

.wizard__step.is-active {
  display: flex;
}

.wizard__step h3 {
  font-size: 1.5rem;
  margin: 0;
}

.wizard__step input[type='text'],
.wizard__step input[type='email'],
.wizard__step input[type='tel'] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.pill {
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill.is-selected {
  background: rgba(37, 71, 152, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.split {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.list-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-inputs input {
  width: 100%;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.note--small {
  font-size: 0.85rem;
}

.legal {
  font-size: 0.8rem;
  color: var(--muted);
}

.links {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--primary);
}

.wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.faq {
  margin: 4rem auto;
  max-width: 1100px;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq h4 {
  margin-bottom: 0.5rem;
}

footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #0b1221;
  color: #c7d2fe;
}

.footer-links {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .wizard__actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .split {
    flex-direction: column;
  }
}
