/* odoo-quiz.css — the free-build quiz on /odoo-build-plan/.
   Card-based single/multi select, one question per screen. Uses the site tokens
   from odoo-shared.css (:root --accent / --green / --charcoal / --bg-soft).
   Options are real <input type=radio|checkbox> so keyboard + screen readers work
   with no JS; the JS only handles branching, triage and the result screen. */

.qz-section { padding: 0 0 84px; background: var(--bg); }

.qz-card {
  max-width: 780px;
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
  background: #fff;
  border: 1px solid #e4e1dd;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .09);
  padding: 30px 34px 34px;
  /* the nav is fixed, so a bare scrollIntoView parks the question underneath it */
  scroll-margin-top: 88px;
}

@media (max-width: 640px) {
  .qz-card { margin: -30px 16px 0; padding: 24px 20px 28px; border-radius: 16px; }
}

/* ---- progress ---- */
.qz-progress { margin-bottom: 22px; }
.qz-progress-bar {
  height: 5px;
  background: var(--bg-muted);
  border-radius: 100px;
  overflow: hidden;
}
.qz-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 100px;
  transition: width .35s ease;
}
.qz-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9b9690;
}
.qz-back {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #6c6864;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.qz-back:hover { color: var(--accent); }
.qz-back[hidden] { display: none; }

/* ---- step ---- */
#qz-stage fieldset { border: 0; margin: 0; padding: 0; }
#qz-stage legend,
.qz-q {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.25;
  color: var(--charcoal);
  letter-spacing: -.01em;
  padding: 0;
  margin-bottom: 6px;
}
.qz-hint {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #6c6864;
}

/* ---- option cards ---- */
.qz-options { display: grid; gap: 9px; }
.qz-options--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .qz-options--two { grid-template-columns: 1fr; } }

.qz-opt { position: relative; display: block; }
.qz-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.qz-opt span {
  display: block;
  padding: 14px 16px 14px 46px;
  border: 1px solid #d9d6d2;
  border-radius: 11px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.qz-opt span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #cfccc8;
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.qz-opt--check span::before { border-radius: 5px; }
.qz-opt span:hover { border-color: var(--green); background: #fbfdfb; }
.qz-opt input:focus-visible + span {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}
.qz-opt input:checked + span {
  border-color: var(--green-dark);
  background: var(--card-mint);
  box-shadow: inset 0 0 0 1px var(--green-dark);
}
.qz-opt input:checked + span::before {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: inset 0 0 0 3px #fff;
}
.qz-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.qz-opt input:disabled + span:hover { border-color: #d9d6d2; background: #fff; }

/* ---- text + select fields ---- */
.qz-field { margin-bottom: 14px; }
.qz-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 5px;
}
.qz-field input,
.qz-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9d6d2;
  border-radius: 10px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  color: #2b2929;
  background: #fff;
}
.qz-field input:focus,
.qz-field select:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(46, 160, 67, .16);
}
.qz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .qz-row { grid-template-columns: 1fr; } }

.qz-sub-label {
  margin: 22px 0 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
}

/* honeypot — never shown, never announced */
.qz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- actions ---- */
.qz-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qz-count { font-size: 13.5px; color: #9b9690; }
.qz-err {
  display: none;
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--card-pink);
  color: #a2321f;
  font-size: 14px;
}
.qz-err.is-on { display: block; }
.qz-fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #9b9690; }

/* ---- result ---- */
.qz-result[hidden] { display: none; }
.qz-result { scroll-margin-top: 88px; }
.qz-result-eyebrow {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.qz-result h2 {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.18;
  color: var(--charcoal);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.qz-result > p { font-size: 15.5px; line-height: 1.6; color: #5f5b57; margin: 0 0 20px; }

.qz-plan { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid #eceae7; }
.qz-plan li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid #eceae7;
  position: relative;
}
.qz-plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 15px;
  color: var(--green-dark);
  font-weight: 800;
}
.qz-plan b {
  display: block;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 15.5px;
  color: var(--charcoal);
  margin-bottom: 3px;
}
.qz-plan span { font-size: 14px; line-height: 1.5; color: #6c6864; }
.qz-plan em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #9b9690;
}
.qz-note {
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.55;
  color: #5f5b57;
  margin: 0 0 20px;
}
