* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f5f8;
  color: #111;
}

.page {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.quiz-card,
.results-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

h1,
h2,
h3 {
  color: #050230;
}

.quiz-card h1 {
  margin-bottom: 8px;
}

.quiz-card > p {
  color: #555;
  margin-bottom: 25px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.step-pill {
  display: inline-block;
  background: #eef2ff;
  color: #27347a;
  font-weight: 900;
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.quiz-step h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.question {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 22px rgba(7, 19, 47, 0.06);
}

.question > label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #07132f;
  margin-bottom: 14px;
  line-height: 1.4;
}

.question select,
.question input,
.lead-form-box input {
  width: 100%;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  color: #07132f;
}

.question select:focus,
.question input:focus,
.lead-form-box input:focus {
  outline: none;
  border-color: #068b45;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(6, 139, 69, 0.12);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.insight {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 3px solid #247414;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-stack,
.radio-stack {
  display: grid;
  gap: 10px;
}

.checkbox-stack label,
.radio-stack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: 0.2s;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-stack label:hover,
.radio-stack label:hover {
  border-color: #1ac036;
  background: #f0fdf4;
}

.checkbox-stack input,
.radio-stack input {
  width: auto;
  margin-top: 3px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button,
.slo-button {
  width: 100%;
  display: block;
  background: #050230;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.back-button {
  background: #e2e8f0;
  color: #07132f;
}

.hidden {
  display: none;
}

.results-card {
  text-align: center;
}

.score-box {
  width: 140px;
  height: 140px;
  border: 10px solid #050230;
  border-radius: 50%;
  margin: 20px auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-box span {
  font-size: 42px;
  font-weight: bold;
  color: #050230;
}

.score-box small {
  font-size: 20px;
}

.score-green {
  border-color: #18a34a;
}

.score-green span,
.score-green small {
  color: #18a34a;
}

.score-yellow {
  border-color: #e0a500;
}

.score-yellow span,
.score-yellow small {
  color: #e0a500;
}

.score-red {
  border-color: #d62828;
}

.score-red span,
.score-red small {
  color: #d62828;
}

.locked-results {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 24px;
  min-height: auto;
  overflow: hidden;
}

.blurred-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}

.info-grid div {
  background: #f7f8fa;
  padding: 18px;
  border-radius: 10px;
}

.info-grid h3 {
  margin-top: 0;
}

.info-grid p {
  color: #444;
  line-height: 1.5;
}

.lead-form-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 360px;
  transform: translate(-50%, -50%);
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 5;
}

.lead-form-box h3 {
  margin-top: 0;
}

.lead-form-box p {
  color: #555;
  line-height: 1.5;
}

.lead-form-box input {
  margin-bottom: 12px;
}

.unlocked .blurred-content {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.unlocked .lead-form-box {
  display: none;
}

.slo-button {
  margin-top: 25px;
  background: #087b3e;
}

@media (max-width: 768px) {
  .page {
    width: min(100% - 24px, 420px);
    padding: 24px 0;
  }

  .quiz-card,
  .results-card {
    padding: 20px;
    border-radius: 16px;
  }

  .vehicle-grid,
  .button-row {
    grid-template-columns: 1fr;
  }

  .question {
    padding: 18px;
    margin-bottom: 24px;
  }

  .question > label {
    font-size: 16px;
  }

  .insight {
    font-size: 13px;
  }

  .locked-results {
    padding: 14px;
    min-height: auto;
    height: auto;
  }

  .blurred-content {
    max-height: 360px;
    overflow: hidden;
  }

  .info-grid {
    gap: 12px;
  }

  .info-grid div {
    padding: 14px;
  }

  .lead-form-box {
    width: calc(100% - 28px);
    max-width: 300px;
    padding: 20px;
    border-radius: 16px;
  }

  .lead-form-box h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .lead-form-box p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .lead-form-box input {
    padding: 12px;
    font-size: 14px;
  }

  .lead-form-box button {
    padding: 13px;
    font-size: 14px;
  }
}