/* Shared step-by-step questionnaire and result blocks for the free tools
   (financial checkup, business diagnostic…). Engine: /assets/quiz.js.
   The risk-profile page predates this file and keeps its own copy. */

.qz-top{ padding: 44px 0 72px; }
.qz-top h1{ font-size: clamp(34px, 4.4vw, 48px); line-height:1.12; margin: 12px 0 12px; }
.qz-top .lede{ font-size: 19px; color: var(--text-muted); max-width: 720px; }
.qz-form{ margin-top: 32px; }
.qz-progress-row{ display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-family:'IBM Plex Mono', monospace; font-size:15px; color: var(--text-muted); margin-bottom:10px; min-height: 42px; }
.qz-back{
  font-family:'IBM Plex Mono', monospace; font-size:15px; color: var(--text-muted);
  background:none; border:1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 9px 16px; cursor:pointer; transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.qz-back:hover:not(:disabled){ color: var(--text); border-color: var(--accent-light); }
.qz-back:disabled{ opacity: 0; pointer-events: none; }
.qz-bar{ height:4px; border-radius:4px; background: var(--rule); overflow:hidden; }
.qz-bar span{ display:block; height:100%; width:0; background: var(--accent-gold); transition: width .35s ease; }

.qz-stage{ position: relative; margin-top: 24px; }
.qz-q{
  display: none;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 130%);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 36px;
}
@media (max-width: 600px){ .qz-q{ padding: 24px 20px; } }
.qz-q.active{ display: block; }
.qz-q.qz-in-next{ animation: qzInNext .38s cubic-bezier(.2,.8,.2,1) both; }
.qz-q.qz-in-prev{ animation: qzInPrev .38s cubic-bezier(.2,.8,.2,1) both; }
.qz-q.qz-out-next{ animation: qzOutNext .24s ease-in both; }
.qz-q.qz-out-prev{ animation: qzOutPrev .24s ease-in both; }
@keyframes qzInNext{ from{ opacity:0; transform: translateX(48px); } to{ opacity:1; transform:none; } }
@keyframes qzInPrev{ from{ opacity:0; transform: translateX(-48px); } to{ opacity:1; transform:none; } }
@keyframes qzOutNext{ to{ opacity:0; transform: translateX(-48px); } }
@keyframes qzOutPrev{ to{ opacity:0; transform: translateX(48px); } }
@media (prefers-reduced-motion: reduce){
  .qz-q.qz-in-next, .qz-q.qz-in-prev, .qz-q.qz-out-next, .qz-q.qz-out-prev{ animation-duration: .01s; }
}
.qz-q fieldset{ border:none; margin:0; padding:0; min-width:0; }
.qz-q legend{ display:flex; gap:16px; align-items:baseline; font-family:'Literata', Georgia, serif; font-size: clamp(22px, 2.6vw, 27px); line-height:1.3; margin-bottom:22px; padding:0; }
.qz-q legend .num{ font-family:'IBM Plex Mono', monospace; font-size:16px; color: var(--accent-gold); flex-shrink:0; }
.qz-sub{ margin: -10px 0 18px; font-size: 17px; color: var(--text-muted); }
.qz-opt{
  display:flex; align-items:center; gap:14px;
  padding: 16px 20px; margin-top: 10px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-muted); font-size: 18px; line-height: 1.4;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.qz-opt:hover{ border-color: var(--accent-light); color: var(--text); }
.qz-opt input{ accent-color: var(--accent-gold); width:20px; height:20px; flex-shrink:0; margin:0; }
.qz-opt:has(input:checked){ border-color: var(--accent-gold); background: var(--accent-gold-soft); color: var(--text); }
.qz-num-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.qz-num-row input, .qz-cur{
  font: 500 24px 'IBM Plex Sans', sans-serif; color: var(--text);
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 16px;
}
.qz-num-row input{ width: 220px; max-width: 100%; font-variant-numeric: tabular-nums; }
.qz-cur{ font-size: 18px; cursor:pointer; }
.qz-cur option{ background: var(--surface); }
.qz-num-row input:focus, .qz-cur:focus{ outline:none; border-color: var(--accent-gold); }
.qz-unit{ font-family:'IBM Plex Mono', monospace; font-size: 18px; color: var(--text-muted); }
.qz-num-row .btn-primary{ border:none; cursor:pointer; }
.qz-hint{ margin-top: 14px; font-size: 16px; color: var(--text-muted); max-width: 680px; }
.qz-hint.err{ color: #E8836F; }
.qz-privacy{ margin-top: 18px; font-size: 15px; color: var(--text-muted); max-width: 720px; }
.qz-multi-next{ margin-top: 20px; }
.qz-multi-next .btn-primary{ border:none; cursor:pointer; }

/* ----- Results ----- */
.qz-result{ padding: 64px 0; border-top: 1px solid var(--rule); animation: qzInNext .5s cubic-bezier(.2,.8,.2,1) both; }
.qz-head{ display:grid; grid-template-columns: 1fr; gap: 28px; align-items:center; margin-top: 18px; }
@media (min-width: 780px){ .qz-head{ grid-template-columns: 210px 1fr; gap: 40px; } }
.qz-head h2{ font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 12px; }
.qz-desc{ color: var(--text-muted); font-size: 19px; max-width: 680px; }
.qz-ring{ position:relative; width: 200px; height: 200px; margin: 0 auto; }
.qz-ring svg{ width:100%; height:100%; transform: rotate(-90deg); display:block; }
.qz-ring-bg{ fill:none; stroke: var(--rule); stroke-width: 14; }
.qz-ring-fg{ fill:none; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 527.79; stroke-dashoffset: 527.79;
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.qz-ring-val{ position:absolute; inset:0; display:grid; place-content:center; text-align:center; }
.qz-ring-val b{ font-family:'Literata', Georgia, serif; font-weight:500; font-size: 58px; line-height:1; font-variant-numeric: tabular-nums; }
.qz-ring-val small{ font-family:'IBM Plex Mono', monospace; font-size: 14px; color: var(--text-muted); margin-top: 6px; }

.qz-h3{ font-size: 28px; margin: 52px 0 18px; }

/* Key numbers under the score (business diagnostic) */
.qz-tiles{ display:grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 720px){ .qz-tiles{ grid-template-columns: repeat(3, 1fr); } }
.qz-tile{ background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px 20px; display:grid; gap: 6px; align-content:start; min-width:0; }
.qz-tile span{ font: 12px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.qz-tile b{ font-family:'Literata', Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qz-tile small{ font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }
.qz-when{ display:block; font: 12px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 6px; }
.qz-zones{ display:grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px){ .qz-zones{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .qz-zones{ grid-template-columns: repeat(3, 1fr); } }
.qz-zone{ background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 130%); border:1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 22px; display:grid; gap: 12px; align-content:start; min-width:0; }
.qz-zone-top{ display:flex; justify-content:space-between; align-items:flex-start; gap: 10px; }
.qz-zone h4{ font-family:'Literata', Georgia, serif; font-weight:500; font-size: 21px; line-height:1.25; }
.qz-zone p{ color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.qz-zone p b{ color: var(--text); font-weight: 500; }
.qz-chip{ flex-shrink:0; font: 12.5px 'IBM Plex Mono', monospace; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.qz-chip.good{ color:#5FD39A; border-color: rgba(95,211,154,.45);  background: rgba(95,211,154,.10); }
.qz-chip.warn{ color:#E8CB6A; border-color: rgba(232,203,106,.45); background: rgba(232,203,106,.10); }
.qz-chip.bad{  color:#F08A78; border-color: rgba(240,138,120,.5);  background: rgba(240,138,120,.12); }
.qz-meter{ height: 6px; border-radius: 6px; background: var(--rule); overflow:hidden; }
.qz-meter i{ display:block; height:100%; width:0; border-radius: 6px; transition: width .9s ease; }

.qz-actions{ list-style:none; counter-reset: qzs; display:grid; gap: 14px; max-width: 860px; }
.qz-actions li{ counter-increment: qzs; display:grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 20px 22px;
  border:1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.qz-actions li::before{ content: counter(qzs); font-family:'Literata', Georgia, serif; font-size: 28px; line-height: 1; color: var(--accent-gold); }
.qz-actions b{ display:block; font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.qz-actions p{ color: var(--text-muted); font-size: 16.5px; line-height: 1.55; }

.qz-cta{ margin-top: 44px; display:flex; flex-direction:column; align-items:flex-start; gap: 18px; font-size: 17px; }
.qz-cta button.btn-primary{ border:none; cursor:pointer; }
.qz-note{ font-size: 15px; color: var(--text-muted); max-width: 720px; }
.qz-restart{ margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.qz-restart button{
  font-family:'IBM Plex Mono', monospace; font-size:15px; color: var(--text-muted);
  background:none; border:1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 10px 18px; cursor:pointer; transition: color .2s ease, border-color .2s ease;
}
.qz-restart button:hover{ color: var(--text); border-color: var(--accent-light); }
.qz-disclaimer{ margin-top: 28px; font-size: 14px; color: var(--text-muted); max-width: 720px; }

/* ----- "How we score" ----- */
.qz-method{ padding: 64px 0 72px; border-top: 1px solid var(--rule); }
.qz-method h2{ font-size: clamp(26px, 3.4vw, 34px); margin: 10px 0 24px; }
.qz-method-grid{ display:grid; grid-template-columns: 1fr; gap: 22px 36px; }
@media (min-width: 780px){ .qz-method-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .qz-method-grid{ grid-template-columns: repeat(3, 1fr); } }
.qz-method-grid h3{ font-size: 20px; margin-bottom: 6px; }
.qz-method-grid p{ color: var(--text-muted); font-size: 16px; }
.qz-method .qz-note{ margin-top: 28px; }
