/* ---- header status chip ---- */
.header-status {
  font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3); padding: 5px 12px; border-radius: 999px;
}

.welcome h2 { border: 0; margin-bottom: 6px; }

/* ---- stepper ---- */
.stepper {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 20px;
}
.step {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px 12px 44px; position: relative; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s;
}
.step:hover:not(.locked) { border-color: var(--brand-2); }
.step.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(20, 54, 92, .12); }
.step.locked { cursor: default; opacity: .6; }
.step-badge {
  position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #eef2f6; color: var(--brand);
}
.step.done .step-badge { background: var(--ok); color: #fff; }
.step.current .step-badge { background: var(--brand); color: #fff; }
.step.awaiting .step-badge { background: var(--accent); color: #1a1205; }
.step-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.step-sub { font-size: 11.5px; color: var(--muted); }
.step.current .step-sub { color: var(--brand-2); font-weight: 600; }
.step.awaiting .step-sub { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .stepper { grid-template-columns: 1fr 1fr; } }

/* ---- read-only details ---- */
.ro-details { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ro-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ro-row:last-child { border-bottom: 0; }
.ro-k { color: var(--muted); }

/* ---- awaiting box + spinner ---- */
.await-box { display: flex; gap: 14px; align-items: flex-start; background: #fbf7ef; border: 1px solid #ecdcc0; border-radius: 10px; padding: 16px; margin-top: 14px; }
.await-box .note { margin: 4px 0 0; }
.spinner { width: 22px; height: 22px; border: 3px solid #e3d3b3; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex: none; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- questionnaire step ---- */
.epq-modebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.epq-modebar-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.epq-modebar .mode-btn { background: #fff; color: var(--brand); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.epq-modebar .mode-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.epq-host .card { border: 0; box-shadow: none; padding: 0 0 8px; margin: 0 0 14px; }
.epq-host .card h2 { font-size: 16px; }

.q-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-msg { font-size: 13px; color: var(--danger); margin: 8px 0 0; }
.missing-box { background: #fbeceb; border: 1px solid #f0c9c6; color: var(--danger); border-radius: 8px; padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.missing-box ul { margin: 6px 0 0 18px; }
