/* Scorecard questions page: progressive reveal, answer buttons, details form and thank-you. Builds on site.css tokens. */
.progress { display: flex; align-items: center; gap: 16px; }
.progress__label { font-family: var(--label); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.progress__bar { flex: 1; height: 4px; background: rgba(201, 162, 78, 0.25); border-radius: 2px; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s ease; }

[hidden] { display: none !important; }

.qsection { border-top: 2px solid var(--gold); margin-top: 36px; padding-top: 24px; }
.qsection__head { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-bottom: 8px; }
.qsection__num { grid-row: 1 / span 2; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.qsection__name { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.qsection__q { color: var(--on-purple-soft); font-size: 16px; }

.q { display: grid; gap: 12px 24px; grid-template-columns: 1fr; padding: 18px 0; border-top: 1px solid rgba(201, 162, 78, 0.25); scroll-margin-top: 90px; }
.qsection__head + .q { border-top: 0; margin-top: 12px; }
.q__text { margin: 0; font-size: 18px; line-height: 1.5; }
.q__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q__opts label { position: relative; display: block; }
.q__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q__opts span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 12px;
  border: 1px solid rgba(201, 162, 78, 0.5); border-radius: var(--radius);
  font-family: var(--label); font-size: 15px; font-weight: 600; color: var(--on-dark);
  background: rgba(33, 31, 29, 0.35); cursor: pointer; user-select: none;
}
.q__opts span:hover { border-color: var(--gold-light); }
.q__opts input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.q__opts input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.q.is-missing .q__opts span { border-color: #E07A5F; }
.q.is-missing .q__text::after { content: ' Please choose an answer.'; color: #F2B8A7; font-size: 14px; }
@media (min-width: 720px) {
  .q { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; }
}

.is-revealed { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-revealed { animation: none; } }

.details { margin-top: 40px; max-width: 760px; scroll-margin-top: 90px; }
.details__grid { display: grid; gap: 14px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.details__grid > div { display: flex; flex-direction: column; gap: 6px; }
.details input[type="text"], .details input[type="email"], .details input[type="tel"] {
  min-height: 50px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid #8C857A; background: #FFFFFF; color: var(--ink); font: inherit; width: 100%;
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--on-dark-soft); line-height: 1.5; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.consent a { color: var(--gold-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: rgba(224, 122, 95, 0.15); border: 1px solid #E07A5F; color: #F4F1EA; font-size: 15px; }
.details .btn { align-self: flex-start; }
.details .btn[disabled] { opacity: 0.6; cursor: wait; }
