/* Lead form styling — made to look like the old quiz embed on
   injured-in-auto.com (pale panel, progress bar on top, white card,
   blue heading, pale-blue answer tiles with a dot; colours, radius,
   shadow and button style taken from the old quiz's own stylesheet in
   the saved page). Markup lives in
   partials/quiz.html and is pasted into each landing page. */

.lhq {
  container: lhq / inline-size;
  background: #eef2f8;
  text-align: left;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  color: #1d2a44;
}
.lhq-in { padding: 20px 80px 10px; }
.lhq-progress { max-width: 920px; margin: 0 auto 20px; }
.lhq .progress-bar { height: 20px; background: #ececec; border-radius: 3px; overflow: hidden; }
.lhq .progress-fill { height: 100%; width: 0; background: #0a78e6; border-radius: 3px; transition: width .3s ease; min-width: 14%; }
.lhq .progress-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lhq-card {
  background: #fff;
  max-width: 960px;
  margin: 0 auto 10px;
  padding: 30px 28px 34px;
  border-radius: 3px;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .07);
}
.lhq .step { display: none; }
.lhq .step.active { display: block; }
.lhq h2 {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 31px;
  line-height: 1.2;
  color: #335eea;
  text-align: center;
  margin: 18px 0 14px;
}
.lhq .step-help { text-align: center; margin: -4px 0 14px; color: #869ab8; font-size: 16px; }

.lhq .choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.lhq .choice {
  flex: 0 0 calc((100% - 32px) / 3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 74px; padding: 14px 12px;
  background: rgba(51, 94, 234, .1); border: 1px solid transparent; border-radius: 4px;
  font: 400 16px/1.25 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  color: #335eea; text-align: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lhq .choices-2 .choice { flex-basis: calc((100% - 16px) / 2); }
.lhq .choice:hover, .lhq .choice:focus-visible { background: #dbe5fa; border-color: #a9bff3; outline: none; }
.lhq .choice.selected { background: #d4e0fa; border-color: #335eea; }
.lhq .dot { width: 16px; height: 16px; border-radius: 50%; background: #b0c2ff; display: block; }
.lhq .choice.selected .dot { background: #335eea; }

/* multi-select injuries: full-width rows with a checkbox */
.lhq .choices-multi { flex-direction: column; gap: 10px; }
.lhq .choices-multi .choice {
  flex: none; width: 100%; min-height: 0; flex-direction: row; justify-content: flex-start;
  gap: 12px; padding: 14px 16px; text-align: left;
}
.lhq .choices-multi input { width: 18px; height: 18px; accent-color: #335eea; margin: 0; flex: none; }

.lhq textarea, .lhq .field input {
  width: 100%; box-sizing: border-box;
  border: 1px solid #abc1df; border-radius: 4px; background: #fff;
  padding: 15px 10px; font: 400 16px/1.3 Roboto, Arial, sans-serif; color: #161c2d;
}
.lhq textarea:focus, .lhq .field input:focus { outline: none; border-color: #335eea; box-shadow: 0 0 0 3px rgba(51, 94, 234, .15); }
.lhq .field { display: block; margin: 0 0 12px; }
.lhq .field span { display: block; font-size: 15px; font-weight: 600; color: #3a4a6b; margin: 0 0 4px; }
.lhq .field input.invalid { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.lhq .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.lhq .next-btn, .lhq .submit-btn {
  display: block; width: 100%; max-width: 420px; margin: 18px auto 0;
  background: #335eea; color: #fff; border: 0; border-radius: 4px;
  padding: 14px 20px; font: 400 16px/1.2 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  text-transform: uppercase; letter-spacing: 2px; box-shadow: 1px 2px 2px 0 rgba(4, 22, 56, .15); cursor: pointer;
}
.lhq .next-btn:hover, .lhq .submit-btn:hover { background: #2a50d6; }
.lhq .submit-btn:disabled { opacity: .7; cursor: wait; }

.lhq .consent { font-size: 11.5px; line-height: 1.45; color: #5b6780; margin: 10px 0 0; }
.lhq .consent a { color: #335eea; }
.lhq .submit-status { min-height: 1em; margin: 10px 0 0; text-align: center; font-size: 15px; }
.lhq .submit-status.error { color: #d93025; }

/* Narrow placements (phones, or a narrow column on desktop like /a4):
   one answer per row, like the old embed. Uses the form's own width,
   not the screen width. */
@container lhq (max-width: 640px) {
  .lhq-in { padding: 20px 0 10px; }
  .lhq-progress { margin: 6px 16px 16px; }
  .lhq-card { padding: 18px 24px 26px; }
  .lhq h2 { margin: 10px 0 14px; }
  .lhq .choices { gap: 16px; }
  .lhq .choice, .lhq .choices-2 .choice { flex-basis: 100%; min-height: 78px; }
  .lhq .grid-2 { grid-template-columns: 1fr; }
}

/* phones: smaller question heading, like the old embed */
@media (max-width: 767px) {
  .lhq h2 { font-size: 21px; }
}
