/* Assessment wizard polish (2026-09-27): numbered stepper, contained export
   steps, per-item price strip and mobile gutters. Loaded last on pricing.html. */

#assessment-wizard { padding-left: 16px; padding-right: 16px; }

/* ---- per-item price strip ---- */
.wizard-price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
  margin: 1.25rem auto 0.75rem;
}
.wizard-price-strip > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.wizard-price-strip strong { font-size: 1.35rem; line-height: 1.2; color: #1d4ed8; }
.wizard-price-strip span { font-size: 0.85rem; line-height: 1.35; color: #475569; }
#assessment-wizard .section-heading p.wizard-price-note { font-size: 0.85rem; color: #64748b; max-width: 40rem; }

/* ---- stepper ---- */
.wizard-steps-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  overflow: visible;
}
.wizard-steps-list .wizard-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  transform: none;
}
/* connector line between circles */
.wizard-steps-list .wizard-step + .wizard-step::before {
  content: "";
  position: absolute;
  top: 16px;
  right: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #e2e8f0;
}
.wizard-steps-list .wizard-step.done + .wizard-step::before,
.wizard-steps-list .wizard-step.done + .wizard-step.active::before { background: #2563eb; }

.ws-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wizard-step.active { background: none; color: #0f172a; }
.wizard-step.active .ws-dot {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}
.wizard-step.done { background: none; color: #1d4ed8; }
.wizard-step.done .ws-dot { border-color: #2563eb; background: #eff6ff; color: transparent; position: relative; }
.wizard-step.done .ws-dot::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 13px;
  border: solid #2563eb;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(0, -1px) rotate(45deg);
}
.ws-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- export instructions: numbered steps inside the card ---- */
#source-instructions h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.export-steps {
  list-style: none;
  counter-reset: export-step;
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.1rem;
  padding: 0;
}
.export-steps li {
  counter-increment: export-step;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #0f172a;
}
.export-steps li::before {
  content: counter(export-step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---- rhythm inside the export panel ---- */
#wizard-step-export > h4 { margin-top: 1.6rem; }
#wizard-step-export .faq-item + .btn,
#wizard-continue-upload { margin-top: 1.25rem; }

/* ---- assisted-assessment banner: keep it inside the page width ---- */
#main-content > aside.pm-customer-success {
  max-width: 1120px;
  margin: 1rem auto 0;
}
@media (max-width: 1152px) {
  #main-content > aside.pm-customer-success { margin-left: 16px; margin-right: 16px; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  .wizard-price-strip { grid-template-columns: 1fr; gap: 0.5rem; }
  .wizard-price-strip > div { flex-direction: row; align-items: baseline; gap: 0.6rem; padding: 0.7rem 0.85rem; text-align: left; }
  .wizard-price-strip strong { font-size: 1.15rem; min-width: 6.5rem; }
  .wizard-steps-list { overflow: visible; flex-wrap: initial; }
  .wizard-steps-list .wizard-step { font-size: 0.68rem; }
  .ws-dot { width: 28px; height: 28px; font-size: 0.8rem; }
  .wizard-steps-list .wizard-step + .wizard-step::before { top: 13px; right: calc(50% + 16px); width: calc(100% - 32px); }
  .assessment-wizard-card { padding: 1rem; }
  .export-steps li { padding: 0.65rem 0.75rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-dot { transition: none; }
}

/* ---- hero secondary CTA: was white-on-white (invisible) on the light pricing hero ---- */
.pricing-hero-starter .pricing-hero-secondary {
  color: #1d4ed8;
  background: #fff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.pricing-hero-starter .pricing-hero-secondary:hover,
.pricing-hero-starter .pricing-hero-secondary:focus-visible {
  color: #1e40af;
  background: #eff6ff;
  border-color: #93c5fd;
}
