/* ============================================
   Revenue Snapshot questionnaire — page-specific styles
   Extends css/style.css. Reuses brand tokens, .btn, .field,
   .form-card, .form-success, .form-error, .eyebrow, .hero-note.
   ============================================ */

.nav-help{
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-help:hover{ color: var(--green-deep); }
@media (max-width: 560px){ .nav-help{ font-size: 12.5px; } }

/* ---------- Hero ---------- */
.snap-hero-inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.snap-hero-inner h1{
  font-size: clamp(30px, 4.6vw, 44px);
  margin-top: 16px;
}
.snap-lead{
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--green-deep);
}
.snap-hero-inner p{
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.snap-hero-inner .hero-note{
  justify-content: center;
  margin-top: 24px;
}

/* ---------- Form section / card ---------- */
.qform-wrap{
  max-width: 640px;
  margin: 0 auto;
}
.form-card{ position: relative; }

/* ---------- Progress ---------- */
.progress-wrap{ margin-bottom: 28px; }
.progress-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.progress-track{
  height: 6px;
  border-radius: 999px;
  background: var(--paper-alt);
  overflow: hidden;
}
.progress-fill{
  height: 100%;
  border-radius: 999px;
  background: var(--green-bright);
  transition: width 0.3s ease;
}

/* ---------- Step heading ---------- */
.qstep-head{ margin-bottom: 22px; }
.qstep-head h2{
  font-size: 22px;
  color: var(--ink);
}
.qstep-head h2:focus{ outline: none; }
.qstep-head p{
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.qstep{ animation: qstep-in 0.25s ease; }
@keyframes qstep-in{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- Secondary / optional fields ---------- */
.field-secondary label{ color: var(--ink-faint); }
.hint{ font-weight: 400; color: var(--ink-faint); }

/* ---------- Question groups ---------- */
.q-group{ margin-bottom: 26px; }
.q-group:last-of-type{ margin-bottom: 0; }
.q-label{
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.req{ color: var(--gold); }
.q-hint{
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: -4px 0 10px;
}

.choice-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice-grid--narrow{ grid-template-columns: repeat(2, 1fr); }
.choice-grid--stack{ grid-template-columns: 1fr; }

.choice{ display: block; position: relative; }
.choice input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.choice-label{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.choice-check{
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.choice input[type="checkbox"] + .choice-label .choice-check{ border-radius: 5px; }
.choice input:checked + .choice-label{
  border-color: var(--green-bright);
  background: rgba(34,197,94,0.07);
  color: var(--green-deep);
  font-weight: 600;
}
.choice input:checked + .choice-label .choice-check{
  border-color: var(--green-bright-2);
  background: var(--green-bright);
}
.choice input:checked + .choice-label .choice-check::after{
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 8px;
  border: solid #06210F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.choice input:focus-visible + .choice-label{
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
.choice input:disabled + .choice-label{
  opacity: 0.45;
  cursor: not-allowed;
}

.group-error{
  display: none;
  font-size: 11.5px;
  color: #DC2626;
  margin-top: 8px;
}
.q-group.has-error .group-error{ display: block; }
.q-group.has-error .q-label{ color: #DC2626; }

@media (max-width: 560px){
  .choice-grid, .choice-grid--narrow{ grid-template-columns: 1fr; }
}

/* ---------- Step actions ---------- */
.qstep-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 560px){
  .qstep-actions{ flex-direction: column-reverse; }
  .qstep-actions .btn{ width: 100%; }
  .qstep-actions span{ display: none; }
}

/* ---------- Expectation box ---------- */
.expect-box{
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  border: 1px solid var(--border-soft);
}
.expect-box h3{
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}
.expect-box ol{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.expect-box li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.expect-num{
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.reassurance{
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- Success state ---------- */
.form-success p strong{ color: var(--green-deep); }
.snap-return{ margin-top: 22px; }

@media (max-width: 560px){
  .form-card{ padding: 24px 20px; }
}
