/* ═══════════════════════════════════════════════════════════════
   RELANTERN — ISO 55000 Intake Diagnostic styles
   ═══════════════════════════════════════════════════════════════ */

#diagnostic-root { max-width: 880px; margin: 0 auto; }

/* ── Progress (sticky) ── */
.diag-progress {
  position: sticky; top: 76px; z-index: 20;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: .7rem .95rem; margin-bottom: 1.1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.diag-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; gap: .75rem; }
.diag-progress-label { font-size: .8rem; font-weight: 700; color: #0f172a; }
.diag-progress-hint { font-size: .72rem; color: #94a3b8; }
.diag-progress-track { height: 6px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.diag-progress-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #06b6d4); border-radius: 6px; transition: width .3s ease; }

/* ── Snapshot CTA actions ── */
.snap-cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Intake form ── */
.diag-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.6rem 1.6rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.diag-section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0 0 .25rem;
}
.diag-num {
  width: 26px; height: 26px; border-radius: 999px;
  background: #2563eb; color: #fff; font-size: .8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.diag-badge, .diag-optional {
  font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  background: #eef2f7; color: #64748b; padding: .2rem .5rem; border-radius: 6px;
}
.diag-optional { background: #f1f5f9; color: #94a3b8; text-transform: uppercase; }
.diag-section-sub { font-size: .82rem; color: #94a3b8; margin: 0 0 1.1rem; }

.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.diag-field { display: flex; flex-direction: column; }
.diag-full { grid-column: 1 / -1; }
.diag-label { font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.diag-iso { font-size: .64rem; font-weight: 600; color: #94a3b8; margin-left: .25rem; }

.diag-input {
  width: 100%; padding: .65rem .8rem; font-size: .9rem; color: #0f172a;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
  transition: border-color .15s, background .15s; font-family: inherit;
}
.diag-input:focus { outline: none; border-color: #2563eb; background: #fff; }
.diag-input.diag-error { border-color: #ef4444; background: #fef2f2; }
select.diag-input { cursor: pointer; }

.diag-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; }
.diag-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .84rem; color: #475569; cursor: pointer; padding: .3rem 0; }
.diag-check input { margin-top: .18rem; width: 15px; height: 15px; flex: none; accent-color: #2563eb; }

.diag-consent { margin: .25rem .2rem 1.25rem; }
.diag-consent .diag-check { font-size: .8rem; }
.diag-consent a { color: #2563eb; }

.diag-actions { text-align: center; }
.diag-actions .btn { display: inline-flex; align-items: center; gap: .5rem; }
.diag-note { font-size: .78rem; color: #94a3b8; margin-top: .7rem; }

/* ── Snapshot results ── */
.snap-wrap { max-width: 880px; margin: 0 auto; }
.snap-badge {
  display: inline-block; background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe;
  font-size: .7rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}
.snap-title { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 1.4rem; }

.snap-hero {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.1rem;
}
.snap-ring { position: relative; width: 140px; height: 140px; flex: none; }
.snap-ring-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 2rem; font-weight: 800;
}
.snap-ring-val span { font-size: .62rem; color: #94a3b8; font-weight: 600; }
.snap-hero-text { flex: 1; min-width: 260px; }
.snap-level { display: inline-block; color: #fff; font-weight: 800; font-size: .72rem; padding: .25rem .6rem; border-radius: 8px; margin-right: .5rem; }
.snap-level-desc { font-size: .78rem; color: #94a3b8; }
.snap-hero-text p { font-size: .92rem; color: #475569; line-height: 1.55; margin: .6rem 0 0; }
.snap-meta { font-size: .74rem !important; color: #94a3b8 !important; }

.snap-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.4rem; margin-bottom: 1.1rem; }
.snap-card h3 { font-size: .92rem; font-weight: 800; color: #0f172a; margin: 0 0 1rem; }
.snap-card-amber { border-color: #fcd34d; }

.snap-dim { margin-bottom: .9rem; }
.snap-dim-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.snap-dim-top span { font-size: .8rem; font-weight: 700; color: #334155; }
.snap-dim-top em { font-size: .62rem; font-weight: 600; color: #94a3b8; font-style: normal; background: #f1f5f9; padding: .1rem .35rem; border-radius: 4px; margin-left: .3rem; }
.snap-dim-top strong { font-size: .82rem; font-weight: 800; }
.snap-track { height: 8px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.snap-fill { height: 100%; border-radius: 6px; transition: width .7s ease; }

.snap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.snap-strengths, .snap-wins { list-style: none; margin: 0; padding: 0; }
.snap-strengths li { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; color: #334155; margin-bottom: .6rem; }
.snap-dot { width: 7px; height: 7px; border-radius: 999px; background: #22c55e; margin-top: .4rem; flex: none; }
.snap-strengths em, .snap-wins em { font-style: normal; font-size: .64rem; color: #94a3b8; margin-left: .25rem; }
.snap-wins li { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .85rem; }
.snap-num { width: 22px; height: 22px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: .1rem; }
.snap-wins strong { font-size: .82rem; color: #0f172a; }
.snap-wins p { font-size: .76rem; color: #64748b; line-height: 1.45; margin: .15rem 0 0; }
.snap-empty { font-size: .82rem; color: #94a3b8; line-height: 1.5; }

.snap-cta { background: linear-gradient(135deg, #1e293b, #0f172a); border-radius: 16px; padding: 1.8rem; text-align: center; margin-top: 1.1rem; }
.snap-cta h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0 0 .4rem; }
.snap-cta p { color: #cbd5e1; font-size: .88rem; line-height: 1.55; max-width: 520px; margin: 0 auto 1.2rem; }

@media (max-width: 640px) {
  .diag-grid, .diag-checks, .snap-cols { grid-template-columns: 1fr; }
  .snap-title { font-size: 1.3rem; }
}

/* ── Print / Save as PDF — isolate the snapshot ── */
@media print {
  body * { visibility: hidden; }
  #diagnostic-root, #diagnostic-root * { visibility: visible; }
  #diagnostic-root { position: absolute; left: 0; top: 0; width: 100%; max-width: none; }
  .snap-print-hide, .navbar, .footer, .cookie-banner, .assess-hero,
  .skip-link, .diag-progress, [id^="widget"], [class*="widget"] { display: none !important; }
  .snap-card, .snap-hero { break-inside: avoid; box-shadow: none; }
  .snap-cta { background: #f1f5f9 !important; }
  .snap-cta h3 { color: #0f172a !important; }
  .snap-cta p { color: #475569 !important; }
}
