/* ================================================================
   kundtest.css – Shared quiz/slider styles for kundtest pages
   ================================================================ */

:root {
  --quiz-low-color: #34d399;
  --quiz-low-glow: 0 0 18px #34d399, 0 0 36px #34d399, 0 0 70px rgba(52, 211, 153, 0.55);
  --quiz-low-pct-glow: 0 0 10px rgba(52, 211, 153, 0.55), 0 0 22px rgba(52, 211, 153, 0.38);
  --quiz-mid-color: #e1a235;
  --quiz-mid-glow: 0 0 18px #e1a235, 0 0 36px #f4c471, 0 0 70px rgba(245, 158, 11, 0.55);
  --quiz-mid-pct-glow: 0 0 10px rgba(225, 162, 53, 0.5), 0 0 22px rgba(244, 196, 113, 0.34);
  --quiz-high-color: #f472b6;
  --quiz-high-glow: 0 0 18px #f472b6, 0 0 36px #f472b6, 0 0 70px rgba(244, 114, 182, 0.55);
  --quiz-high-pct-glow: 0 0 10px rgba(244, 114, 182, 0.5), 0 0 22px rgba(244, 114, 182, 0.34);
  --slider-track-bg: #2c3443;
}

html.theme-light {
  --quiz-low-color: #15803d;
  --quiz-low-glow: 0 0 8px rgba(21, 128, 61, 0.25), 0 0 16px rgba(21, 128, 61, 0.16);
  --quiz-low-pct-glow: 0 0 5px rgba(21, 128, 61, 0.22), 0 0 10px rgba(21, 128, 61, 0.14);
  --quiz-mid-color: #b45309;
  --quiz-mid-glow: 0 0 8px rgba(180, 83, 9, 0.22), 0 0 16px rgba(180, 83, 9, 0.14);
  --quiz-mid-pct-glow: 0 0 5px rgba(180, 83, 9, 0.2), 0 0 10px rgba(180, 83, 9, 0.12);
  --quiz-high-color: #be185d;
  --quiz-high-glow: 0 0 8px rgba(190, 24, 93, 0.24), 0 0 16px rgba(190, 24, 93, 0.16);
  --quiz-high-pct-glow: 0 0 5px rgba(190, 24, 93, 0.22), 0 0 10px rgba(190, 24, 93, 0.14);
  --slider-track-bg: #9aa3b5;
}

/* Layout */
.test-panel-center { display: flex; align-items: center; justify-content: center; }
.test-panel-center .content-box { width: min(1120px, 100%); margin-left: auto; margin-right: auto; }
#test-container { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 980px; margin-left: auto; margin-right: auto; text-align: center; }

/* Questions */
.quiz-q { display: flex; flex-direction: column; gap: 0.7rem; width: 100%; align-items: center; }
.quiz-q + .quiz-q { margin-top: 2.8rem; }
.q-text {
  white-space: normal;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  text-align: center;
  max-width: 100%;
}

/* Slider row */
.slider-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; }
.slider-lbl { font-size: 0.75rem; font-weight: 700; color: var(--text-soft); min-width: 24px; text-align: center; }
.slider-val { font-size: 0.82rem; font-weight: 700; color: var(--text-soft); min-width: 38px; text-align: right; font-family: "Montserrat", sans-serif; text-shadow: 0 0 3px rgba(0, 212, 255, 0.35); }

/* Neon slider */
.neon-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 5px; border-radius: 999px;
  --slider-fill-color: hsla(0, 62%, 52%, 0.35);
  --slider-fill-shadow: hsla(0, 62%, 52%, 0.06);
  --slider-fill-pct: 1.5%;
  background: linear-gradient(to right,
    var(--slider-fill-color) 0%,
    var(--slider-fill-color) var(--slider-fill-pct),
    var(--slider-track-bg) var(--slider-fill-pct),
    var(--slider-track-bg) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 1px var(--slider-fill-shadow);
  outline: none; cursor: pointer;
}
.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 1px var(--slider-fill-color), 0 0 4px var(--slider-fill-shadow);
  cursor: pointer; transition: box-shadow .15s;
}
.neon-slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 2px var(--slider-fill-color), 0 0 5px var(--slider-fill-shadow);
}
.neon-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
  background: #fff;
  box-shadow: 0 0 1px var(--slider-fill-color), 0 0 4px var(--slider-fill-shadow);
  cursor: pointer;
}
.neon-slider::-moz-range-track {
  height: 5px; border-radius: 999px;
  background: var(--slider-track-bg);
}

/* Result display */
#quiz-result {
  margin-top: 3rem; text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.result-pct {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 900; line-height: 1;
  font-family: "Montserrat", sans-serif;
  transition: color .3s, text-shadow .3s;
}
.result-label {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700; margin: 0.5rem 0 1rem;
  transition: color .3s, text-shadow .3s;
}
.result-desc {
  max-width: 560px; margin: 0 auto 1.5rem;
  font-size: 0.95rem; color: var(--text-soft); line-height: 1.6;
}

/* Need level colors */
.need-low .result-pct { color: var(--quiz-low-color); text-shadow: var(--quiz-low-pct-glow); }
.need-low .result-label { color: var(--quiz-low-color); text-shadow: var(--quiz-low-glow); }
.need-mid .result-pct { color: var(--quiz-mid-color); text-shadow: var(--quiz-mid-pct-glow); }
.need-mid .result-label { color: var(--quiz-mid-color); text-shadow: var(--quiz-mid-glow); }
.need-high .result-pct { color: var(--quiz-high-color); text-shadow: var(--quiz-high-pct-glow); }
.need-high .result-label { color: var(--quiz-high-color); text-shadow: var(--quiz-high-glow); }

/* Scope buttons & dropdown (förändring) */
.btn-row { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.3rem; }
.toggle-btn {
  padding: 0.5rem 1.6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04); color: var(--text-soft); font-weight: 600;
  font-size: 0.88rem; cursor: pointer; transition: all .2s;
}
.toggle-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
html.theme-light .toggle-btn { border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.03); }
html.theme-light .toggle-btn.active { background: var(--accent); color: #fff; }
.sector-dropdown {
  width: 100%; max-width: 480px; padding: 0.55rem 0.9rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15); background: #1e1e2a;
  color: var(--text); font-size: 0.88rem; cursor: pointer; margin-top: 0.3rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.sector-dropdown option { background: #1e1e2a; color: #e2e2e8; }
html.theme-light .sector-dropdown { border-color: rgba(0,0,0,0.18); background: #fff; }
html.theme-light .sector-dropdown option { background: #fff; color: #1a1a2e; }

/* NIS2 badge */
.nis2-badge {
  display: inline-block; margin-top: 1rem; padding: 0.35rem 1rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
}
.nis2-badge.applies { background: rgba(244,114,182,0.15); color: var(--quiz-high-color); border: 1px solid rgba(244,114,182,0.3); }
.nis2-badge.not-applies { background: rgba(52,211,153,0.12); color: var(--quiz-low-color); border: 1px solid rgba(52,211,153,0.25); }

/* Responsive */
@media (max-width: 760px) {
  #test-container { max-width: 100%; }
  .quiz-q + .quiz-q { margin-top: 2.1rem; }
  .slider-row { flex-wrap: wrap; row-gap: 0.5rem; }
  .slider-row .neon-slider { flex: 1 1 100%; min-width: 0; }
  .slider-row .slider-lbl,
  .slider-row .slider-val { min-width: auto; }
  .sector-dropdown { max-width: 100%; }
}

/* === Radio button questions (AI diagnosis) === */
.scale-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center;
  font-size: 0.78rem; color: var(--text-soft); font-weight: 600; margin-top: 0.5rem;
}
.radio-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  margin-top: 0.3rem; max-width: 640px; width: 100%;
}
.radio-opt {
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.5rem 0.6rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all .2s; text-align: center;
}
.radio-opt:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); }
.radio-opt.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.radio-opt input[type="radio"] { display: none; }
html.theme-light .radio-opt { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.03); }
html.theme-light .radio-opt:hover { border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.06); }
html.theme-light .radio-opt.active { background: var(--accent); color: #fff; }

.quiz-incomplete {
  margin-top: 2rem; text-align: center; font-weight: 600;
  color: var(--text-soft); font-size: 0.95rem;
}

/* Quiz grid: 3 columns on wide screens */
@media (min-width: 901px) {
  .quiz-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Quiz card 3 (AI diagnosis) */
:root { --quiz-color-3: #f59e0b; --quiz-color-3-dim: rgba(245, 158, 11, 0.35); }
html.theme-light { --quiz-color-3: #d97706; --quiz-color-3-dim: rgba(217, 119, 6, 0.25); }
.quiz-card--3 { border-color: var(--quiz-color-3-dim); }
.quiz-card--3 .courseicon { color: var(--quiz-color-3); filter: drop-shadow(0 0 12px var(--quiz-color-3)) drop-shadow(0 0 30px var(--quiz-color-3)) drop-shadow(0 0 55px var(--quiz-color-3)); }
.quiz-card--3:hover { border-color: var(--quiz-color-3); box-shadow: 0 8px 25px var(--quiz-color-3-dim), 0 0 15px var(--quiz-color-3-dim); }
.quiz-card--3:hover .open-hint { color: var(--quiz-color-3); text-shadow: 0 0 10px var(--quiz-color-3); }

/* Quiz card 4 (Produktsäkerhet) */
:root { --quiz-color-4: #22d97a; --quiz-color-4-dim: rgba(34, 217, 122, 0.35); }
html.theme-light { --quiz-color-4: #16a34a; --quiz-color-4-dim: rgba(22, 163, 74, 0.25); }
.quiz-card--4 { border-color: var(--quiz-color-4-dim); }
.quiz-card--4 .courseicon { color: var(--quiz-color-4); filter: drop-shadow(0 0 8px var(--quiz-color-4)) drop-shadow(0 0 20px var(--quiz-color-4)) drop-shadow(0 0 35px var(--quiz-color-4)); }
.quiz-card--4:hover { border-color: var(--quiz-color-4); box-shadow: 0 8px 25px var(--quiz-color-4-dim), 0 0 15px var(--quiz-color-4-dim); }
.quiz-card--4:hover .open-hint { color: var(--quiz-color-4); text-shadow: 0 0 10px var(--quiz-color-4); }

/* Quiz card 5 (ISO 27001) */
:root { --quiz-color-5: #8b5cf6; --quiz-color-5-dim: rgba(139, 92, 246, 0.35); }
html.theme-light { --quiz-color-5: #7c3aed; --quiz-color-5-dim: rgba(124, 58, 237, 0.25); }
.quiz-card--5 { border-color: var(--quiz-color-5-dim); }
.quiz-card--5 .courseicon { color: var(--quiz-color-5); filter: drop-shadow(0 0 12px var(--quiz-color-5)) drop-shadow(0 0 30px var(--quiz-color-5)) drop-shadow(0 0 55px var(--quiz-color-5)); }
.quiz-card--5:hover { border-color: var(--quiz-color-5); box-shadow: 0 8px 25px var(--quiz-color-5-dim), 0 0 15px var(--quiz-color-5-dim); }
.quiz-card--5:hover .open-hint { color: var(--quiz-color-5); text-shadow: 0 0 10px var(--quiz-color-5); }

/* Quiz card 6 (Agent-organisation) */
:root { --quiz-color-6: #06b6d4; --quiz-color-6-dim: rgba(6, 182, 212, 0.35); }
html.theme-light { --quiz-color-6: #0891b2; --quiz-color-6-dim: rgba(8, 145, 178, 0.25); }
.quiz-card--6 { border-color: var(--quiz-color-6-dim); }
.quiz-card--6 .courseicon { color: var(--quiz-color-6); filter: drop-shadow(0 0 12px var(--quiz-color-6)) drop-shadow(0 0 30px var(--quiz-color-6)) drop-shadow(0 0 55px var(--quiz-color-6)); }
.quiz-card--6:hover { border-color: var(--quiz-color-6); box-shadow: 0 8px 25px var(--quiz-color-6-dim), 0 0 15px var(--quiz-color-6-dim); }
.quiz-card--6:hover .open-hint { color: var(--quiz-color-6); text-shadow: 0 0 10px var(--quiz-color-6); }

/* Quiz card 7 (Risk & konsekvens) */
:root { --quiz-color-7: #ef4444; --quiz-color-7-dim: rgba(239, 68, 68, 0.35); }
html.theme-light { --quiz-color-7: #dc2626; --quiz-color-7-dim: rgba(220, 38, 38, 0.25); }
.quiz-card--7 { border-color: var(--quiz-color-7-dim); }
.quiz-card--7 .courseicon { color: var(--quiz-color-7); filter: drop-shadow(0 0 12px var(--quiz-color-7)) drop-shadow(0 0 30px var(--quiz-color-7)) drop-shadow(0 0 55px var(--quiz-color-7)); }
.quiz-card--7:hover { border-color: var(--quiz-color-7); box-shadow: 0 8px 25px var(--quiz-color-7-dim), 0 0 15px var(--quiz-color-7-dim); }
.quiz-card--7:hover .open-hint { color: var(--quiz-color-7); text-shadow: 0 0 10px var(--quiz-color-7); }

.radio-row--5 { grid-template-columns: repeat(5, 1fr); max-width: 720px; }
@media (max-width: 500px) {
  .radio-row { grid-template-columns: repeat(2, 1fr); }
  .radio-row--5 { grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
  .radio-row--5 .radio-opt { padding: 0.45rem 0.2rem; font-size: 0.72rem; }
}

/* ================================================================
   Risk-matris (kundtest_risk) — 5×5 heat-map + topp-3-lista
   ================================================================ */
.risk-area-block { margin-top: 2.8rem; }
.risk-area-block h3 {
  font-size: 1rem; color: var(--accent); margin: 0 0 0.3rem;
  text-align: center; font-weight: 700;
}
.risk-area-block .risk-area-desc {
  font-size: 0.82rem; color: var(--text-soft); text-align: center;
  margin: 0 auto 1rem; max-width: 560px; line-height: 1.45;
}
.risk-area-block .quiz-q { margin-top: 1rem; }
.risk-area-block .quiz-q:first-of-type { margin-top: 0; }

.risk-matrix-wrap {
  max-width: 560px; margin: 2rem auto 1rem;
  display: flex; flex-direction: column; align-items: center;
}
.risk-matrix-wrap svg { width: 100%; max-width: 520px; height: auto; display: block; }
.risk-axis-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text-soft);
  text-align: center; margin-top: 0.4rem;
}

.risk-top3 {
  max-width: 640px; margin: 1.5rem auto 0.5rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.risk-top3 h3 {
  text-align: center; margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--text);
}
.risk-top3-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.75rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.risk-top3-rank {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  font-family: "Montserrat", sans-serif;
}
.risk-top3-body { flex: 1; min-width: 0; }
.risk-top3-body .r-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0 0 0.2rem; }
.risk-top3-body .r-meta { font-size: 0.78rem; color: var(--text-soft); }
html.theme-light .risk-top3-item { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }

/* Riskfärger (matchar heat-map-celler) */
.risk-band-low    { background: #16a34a; }
.risk-band-mid    { background: #eab308; color: #1a1a2e; }
.risk-band-high   { background: #ea580c; }
.risk-band-crit   { background: #dc2626; }

/* Result scale / category legend */
.result-scale {
  max-width: 600px; margin: 1.5rem auto 1.5rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.scale-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.9rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  opacity: 0.5; transition: all .3s;
}
.scale-row.active {
  opacity: 1; border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}
.scale-indicator { font-size: 1.3rem; flex-shrink: 0; }
.scale-range {
  font-size: 0.78rem; font-weight: 700; color: var(--text-soft);
  min-width: 40px; font-family: "Montserrat", sans-serif;
}
.scale-text { display: flex; flex-direction: column; gap: 0.15rem; }
.scale-text strong { font-size: 0.85rem; color: var(--text); }
.scale-text span { font-size: 0.78rem; color: var(--text-soft); }
html.theme-light .scale-row { border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
html.theme-light .scale-row.active { border-color: rgba(0,0,0,0.18); background: rgba(0,0,0,0.05); }

/* ================================================================
   Prisuppskattning
   ================================================================ */
.price-estimate {
  margin-top: 24px; padding: 20px; border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
}
html.theme-light .price-estimate {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.05);
}
.price-estimate h4 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.price-range { font-size: 1.4rem; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.price-detail { font-size: 0.85rem; color: var(--text-soft); margin: 0 0 4px; }
.price-note { font-size: 0.78rem; color: var(--text-soft); margin: 0; font-style: italic; }

/* ================================================================
   Skicka resultat-modal
   ================================================================ */
.send-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
}
.send-modal-content {
  background: var(--card-bg, #1a2233); border-radius: 16px; padding: 28px;
  width: 90%; max-width: 420px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
html.theme-light .send-modal-content { background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.send-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.send-modal-header h3 { margin: 0; font-size: 1.1rem; color: var(--text); }
.send-modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-soft); line-height: 1;
}
.send-field { margin-bottom: 12px; }
.send-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-soft); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.send-field input {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; font-size: 0.9rem; background: rgba(255,255,255,0.06);
  color: var(--text); outline: none; box-sizing: border-box;
}
html.theme-light .send-field input {
  border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.03);
}
.send-field input:focus { border-color: var(--quiz-low-color); }
.send-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Skickat-meddelande */
.send-success {
  margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e; font-size: 0.9rem; text-align: center;
}
html.theme-light .send-success { color: #166534; }

/* Vidare kontakt-sektion */
.vidare-kontakt {
  margin-top: 20px; padding: 16px 18px; border-radius: 10px;
  background: rgba(8, 145, 178, 0.08); border: 1px solid rgba(8, 145, 178, 0.25);
}
html.theme-light .vidare-kontakt {
  background: #f0f9ff; border-color: #bae6fd;
}
.vidare-kontakt h4 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.vidare-kontakt p { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Quiz-kort toggle (visa fler / färre) ── */
.quiz-cards--hidden {
  display: none !important;
}
.btn-toggle-quizzes {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto 8px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-soft, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast, 0.18s ease);
}
.btn-toggle-quizzes:hover {
  border-color: var(--accent, #06b6d4);
  color: var(--accent, #06b6d4);
}
html.theme-light .btn-toggle-quizzes {
  border-color: rgba(0, 0, 0, 0.15);
  color: #475569;
}
html.theme-light .btn-toggle-quizzes:hover {
  border-color: #0891b2;
  color: #0891b2;
}
.btn-toggle-quizzes .toggle-arrow {
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
}
.btn-toggle-quizzes .toggle-arrow.rotated {
  transform: rotate(180deg);
}

/* ── Lead Gate (email-formulär före AI-analys) ── */
.lead-gate {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.06);
  text-align: center;
}
html.theme-light .lead-gate {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.lead-gate h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--text);
}
.lead-gate > p {
  font-size: 0.9rem;
  color: var(--text-soft, #94a3b8);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}
.lead-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 1.2rem auto 0;
}
.lead-gate-form input {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
}
html.theme-light .lead-gate-form input {
  border-color: #cbd5e1;
  background: #fff;
  color: #1e293b;
}
.lead-gate-form input:focus {
  outline: none;
  border-color: var(--accent, #06b6d4);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}
.lead-gate-form .btn-primary {
  margin-top: 0.5rem;
}
.lead-gate-note {
  font-size: 0.75rem;
  color: var(--text-soft, #64748b);
  margin-top: 0.75rem;
}

/* ── Teaser (hook före lead gate) ── */
.analysis-teaser {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent, #06b6d4);
  background: rgba(6, 182, 212, 0.06);
  font-size: 0.9rem;
  color: var(--text-soft, #94a3b8);
  line-height: 1.5;
}
html.theme-light .analysis-teaser {
  background: #f0f9ff;
  color: #334155;
}

/* ── Staplad knapp-layout (ikon ovanpå text) för quiz-sidor ── */
#quiz-result .cta-buttons .btn-primary,
#quiz-result .cta-buttons .btn-secondary {
  flex-direction: column !important;
  align-items: center;
  gap: 4px !important;
  text-align: center;
  padding: 12px 18px;
  line-height: 1.3;
}
#quiz-result .cta-buttons .btn-primary i[data-lucide],
#quiz-result .cta-buttons .btn-secondary i[data-lucide] {
  width: 20px;
  height: 20px;
}

/* === Reflektionsblock per case (risk-quiz) === */
.risk-case-reflect-block {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(56, 189, 248, 0.45);
  border-radius: 6px;
}
.risk-case-reflect-intro {
  margin: 0 0 12px;
  font-size: 0.92em;
  opacity: 0.85;
}
.risk-reflect-label {
  display: block;
  margin: 10px 0 4px;
  font-size: 0.88em;
  font-weight: 600;
}
.risk-reflect {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}
.risk-reflect:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.85);
}
.risk-reflect-nudge {
  margin: 6px 0 14px;
  padding: 8px 12px;
  font-size: 0.85em;
  opacity: 0.78;
  font-style: italic;
}
.theme-light .risk-case-reflect-block {
  background: rgba(15, 23, 42, 0.03);
  border-left-color: rgba(2, 132, 199, 0.55);
}
.theme-light .risk-reflect {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.35);
  color: #0f172a;
}
.theme-light .risk-reflect:focus {
  border-color: rgba(2, 132, 199, 0.8);
  background: #fff;
}
