/* ============================================================
   Quiz: digital maturity assessment — 2 formats (A: conversational, B: classic)
   ============================================================ */
:root {
    --q-pink:    #ED1374;
    --q-pink-2:  #f04a8f;
    --q-orange:  #f26a2e;
    --q-grad:    linear-gradient(135deg, #ED1374 0%, #f26a2e 100%);
    --q-grad-h:  linear-gradient(135deg, #c40e60 0%, #d85a25 100%);
    --q-bg:      #faf7fa;
    --q-text:    #1f2937;
    --q-muted:   #6b7280;
    --q-border:  #e5e7eb;
    --q-card-bg: #ffffff;
    --q-shadow:  0 4px 14px rgba(0,0,0,0.06);
    --q-shadow-lg: 0 12px 36px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
body.quiz-body {
    margin: 0;
    font-family: 'Source Sans Pro', system-ui, sans-serif;
    color: var(--q-text);
    background: var(--q-bg);
    min-height: 100vh;
    display: flex; flex-direction: column;
    line-height: 1.5;
}
a { color: var(--q-pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header / footer ===== */
.quiz-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 32px;
    background: #fff;
    border-bottom: 1px solid var(--q-border);
}
.quiz-back img { height: 36px; display: block; }
.quiz-header-meta { font-size: 13px; color: var(--q-muted); font-weight: 600; }
.quiz-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--q-muted);
}
.quiz-footer p { margin: 0; }

/* ===== Progress bar (Format A) ===== */
.quiz-progress {
    height: 4px;
    background: var(--q-border);
}
.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--q-grad);
    transition: width 350ms cubic-bezier(.4,0,.2,1);
}

/* ===== Main ===== */
.quiz-main {
    flex: 1;
    display: flex; flex-direction: column;
    padding: 32px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.quiz-loading {
    margin: auto;
    text-align: center;
    color: var(--q-muted);
}
.quiz-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--q-border);
    border-top-color: var(--q-pink);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: q-spin 800ms linear infinite;
}
@keyframes q-spin { to { transform: rotate(360deg); } }

/* ============================================================
   FORMAT A — Conversational (Typeform / Paperform style)
   One question per screen, big titles, fade transitions
   ============================================================ */
.fa-intro {
    text-align: center;
    margin: auto;
    max-width: 640px;
    padding: 40px 20px;
}
.fa-intro .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 19, 116, 0.08);
    color: var(--q-pink);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 18px;
}
.fa-intro h1 {
    font-size: 42px; line-height: 1.15;
    margin: 0 0 20px;
    font-weight: 700;
}
.fa-intro .lead {
    font-size: 18px; color: var(--q-muted);
    margin: 0 0 32px;
}
.fa-intro .meta {
    display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
    font-size: 14px; color: var(--q-muted);
    margin-bottom: 32px;
}
.fa-intro .meta span i { color: var(--q-pink); margin-right: 6px; }

.fa-start-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    background: var(--q-grad);
    color: #fff;
    border: none; border-radius: 999px;
    font-size: 16px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(237,19,116,0.3);
    transition: transform 180ms ease, box-shadow 180ms ease;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.fa-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(237,19,116,0.4);
}

/* Question screen */
.fa-screen {
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 0;
}
.fa-screen.is-active {
    display: flex;
    animation: fa-fade-in 350ms ease both;
}
@keyframes fa-fade-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fa-q-num {
    font-size: 13px; font-weight: 700;
    color: var(--q-pink); letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.fa-q-text {
    font-size: 28px; line-height: 1.3;
    margin: 0 0 28px;
    font-weight: 700;
}
.fa-options {
    display: flex; flex-direction: column; gap: 12px;
}
.fa-option {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: var(--q-card-bg);
    border: 2px solid var(--q-border);
    border-radius: 12px;
    font-size: 16px; font-family: inherit;
    cursor: pointer; text-align: left;
    transition: border-color 150ms ease, transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
}
.fa-option:hover {
    border-color: var(--q-pink-2);
    transform: translateX(4px);
    box-shadow: var(--q-shadow);
}
.fa-option .letter {
    width: 32px; height: 32px;
    border: 2px solid var(--q-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    color: var(--q-muted);
    flex-shrink: 0;
    transition: all 150ms ease;
}
.fa-option:hover .letter,
.fa-option.is-selected .letter {
    background: var(--q-grad);
    color: #fff;
    border-color: transparent;
}
.fa-option.is-selected {
    border-color: var(--q-pink);
    background: rgba(237,19,116,0.04);
}
.fa-option .text { flex: 1; }
.fa-option .check {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--q-pink);
    opacity: 0;
    transition: opacity 150ms ease;
}
.fa-option.is-selected .check { opacity: 1; }

.fa-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--q-border);
}
.fa-back, .fa-next {
    padding: 10px 22px;
    border: 2px solid var(--q-border);
    background: #fff;
    color: var(--q-muted);
    border-radius: 999px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.fa-back:hover { border-color: var(--q-muted); color: var(--q-text); }
.fa-next:disabled { opacity: 0.4; cursor: not-allowed; }
.fa-next:not(:disabled) {
    background: var(--q-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(237,19,116,0.25);
}
.fa-next:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(237,19,116,0.35);
}
.fa-back:disabled { opacity: 0; pointer-events: none; }

/* ============================================================
   FORMAT B — Classic single-page (PDF style)
   All questions on one scrollable page, traditional checkbox layout
   ============================================================ */
.fb-wrap {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}
.fb-intro {
    background: var(--q-grad);
    color: #fff;
    padding: 40px 36px;
    border-radius: 18px;
    box-shadow: var(--q-shadow-lg);
    margin-bottom: 24px;
}
.fb-intro h1 {
    font-size: 32px; line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 700;
}
.fb-intro .sub { font-size: 18px; opacity: 0.95; margin: 0 0 16px; font-weight: 600; }
.fb-intro p { font-size: 15px; opacity: 0.92; margin: 0 0 10px; line-height: 1.6; }
.fb-intro p:last-child { margin-bottom: 0; }

.fb-question {
    background: var(--q-card-bg);
    border-radius: 14px;
    box-shadow: var(--q-shadow);
    padding: 24px 28px;
    margin-bottom: 18px;
}
.fb-question .fb-q-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: var(--q-grad);
    color: #fff;
    border-radius: 50%;
    font-weight: 700; font-size: 14px;
    margin-right: 12px;
}
.fb-question .fb-q-text {
    display: inline;
    font-size: 17px; font-weight: 700;
    line-height: 1.4;
}
.fb-options {
    margin: 16px 0 0 44px;
    display: flex; flex-direction: column; gap: 8px;
}
.fb-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--q-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
    font-size: 15px;
    user-select: none;
}
.fb-option:hover { border-color: var(--q-pink-2); background: #fffafd; }
.fb-option input { margin: 0; cursor: pointer; accent-color: var(--q-pink); }
.fb-option.is-checked {
    border-color: var(--q-pink);
    background: rgba(237,19,116,0.04);
    font-weight: 600;
}

.fb-submit-row {
    margin-top: 24px;
    text-align: center;
}
.fb-submit-btn {
    padding: 16px 48px;
    background: var(--q-grad);
    color: #fff;
    border: none; border-radius: 999px;
    font-size: 16px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(237,19,116,0.3);
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: inline-flex; align-items: center; gap: 10px;
}
.fb-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(237,19,116,0.4); }

/* ============================================================
   RESULT screen — shared by both formats
   ============================================================ */
.qr-screen {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    animation: fa-fade-in 400ms ease both;
}
.qr-emoji {
    font-size: 80px;
    margin-bottom: 12px;
    display: inline-block;
    animation: qr-bounce 700ms ease both;
}
@keyframes qr-bounce {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.qr-score-circle {
    width: 180px; height: 180px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: conic-gradient(var(--q-pink) calc(var(--score) * 1%), var(--q-border) 0);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.qr-score-circle::before {
    content: '';
    position: absolute; inset: 12px;
    background: #fff;
    border-radius: 50%;
}
.qr-score-circle .num {
    position: relative;
    font-size: 48px; font-weight: 700;
    color: var(--q-pink);
}
.qr-score-circle .pct { font-size: 22px; opacity: 0.7; }
.qr-tier {
    font-size: 13px; font-weight: 700;
    color: var(--q-pink); letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.qr-title { font-size: 28px; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.qr-message {
    font-size: 16px; color: var(--q-muted);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Per-dimension breakdown (Format A only) */
.qr-dims {
    text-align: left;
    background: var(--q-card-bg);
    border-radius: 14px;
    box-shadow: var(--q-shadow);
    padding: 22px 26px;
    margin: 0 auto 28px;
    max-width: 560px;
}
.qr-dims h3 { margin: 0 0 14px; font-size: 16px; color: var(--q-muted); text-transform: uppercase; letter-spacing: 1px; }
.qr-dim {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px;
}
.qr-dim:last-child { margin-bottom: 0; }
.qr-dim .label { flex: 1; font-size: 14px; font-weight: 600; }
.qr-dim .bar-wrap {
    flex: 1.5;
    height: 10px;
    background: var(--q-border);
    border-radius: 5px;
    overflow: hidden;
}
.qr-dim .bar {
    height: 100%;
    background: var(--q-grad);
    border-radius: 5px;
    transition: width 800ms cubic-bezier(.4,0,.2,1);
}
.qr-dim .pct { width: 44px; text-align: right; font-size: 13px; font-weight: 700; color: var(--q-muted); }

/* Lead capture (shared) */
.qr-lead {
    background: var(--q-card-bg);
    border-radius: 14px;
    box-shadow: var(--q-shadow);
    padding: 26px 28px;
    margin: 0 auto;
    max-width: 540px;
    text-align: left;
}
.qr-lead h3 { margin: 0 0 4px; font-size: 18px; }
.qr-lead .sub { color: var(--q-muted); font-size: 14px; margin: 0 0 16px; }
.qr-lead-fields {
    display: grid; gap: 10px;
}
.qr-lead-fields input {
    width: 100%; height: 44px;
    padding: 6px 14px;
    border: 1.5px solid var(--q-border);
    border-radius: 8px;
    font-size: 15px; font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.qr-lead-fields input:focus {
    border-color: var(--q-pink);
    box-shadow: 0 0 0 3px rgba(237,19,116,0.12);
}
.qr-lead-submit {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: var(--q-grad);
    color: #fff;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform 150ms ease;
}
.qr-lead-submit:hover { transform: translateY(-1px); }
.qr-lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.qr-lead .status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.qr-lead .status.is-ok    { display: block; background: #dcfce7; color: #166534; }
.qr-lead .status.is-err   { display: block; background: #fee2e2; color: #991b1b; }

.qr-restart {
    display: inline-block;
    margin-top: 24px;
    color: var(--q-muted);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    background: none; border: none; font-family: inherit;
}
.qr-restart:hover { color: var(--q-text); }

/* ============================================================
   CATALOG (tree-style landing) — minden quiz kártya, kategorizálva
   ============================================================ */
.cat-wrap {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.cat-hero {
    text-align: center;
    padding: 40px 20px 32px;
}
.cat-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 19, 116, 0.08);
    color: var(--q-pink);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.cat-hero h1 {
    font-size: 38px; line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 700;
}
.cat-hero p { font-size: 17px; color: var(--q-muted); margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }

.cat-group { margin-bottom: 36px; }
.cat-group h2 {
    font-size: 18px; font-weight: 700;
    color: var(--q-pink);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cat-group-intro {
    font-size: 14px; color: var(--q-muted);
    margin: 0 0 16px;
}
.cat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px;
    background: var(--q-card-bg);
    border: 2px solid var(--q-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    font-family: inherit;
}
.cat-card:hover:not(.is-disabled) {
    border-color: var(--q-pink-2);
    transform: translateY(-3px);
    box-shadow: var(--q-shadow-lg);
}
.cat-card.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #f9fafb;
}
.cat-card-icon {
    font-size: 34px;
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #fed7aa 100%);
    border-radius: 12px;
}
.cat-card-body { flex: 1; min-width: 0; }
.cat-card-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--q-text); }
.cat-card-body p  { margin: 0 0 10px; font-size: 13px; color: var(--q-muted); line-height: 1.4; }
.cat-card-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: var(--q-muted);
    font-weight: 600;
}
.cat-card-meta i { color: var(--q-pink); margin-right: 4px; }
.cat-card-coming {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: #fbbf24;
    color: #78350f;
    border-radius: 6px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cat-card-arrow {
    color: var(--q-pink);
    font-size: 18px;
    align-self: center;
    flex-shrink: 0;
}

/* Back link — közös a quiz oldalakon */
.cat-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--q-muted);
    background: none; border: none;
    font-family: inherit; font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 14px;
    transition: color 150ms ease;
}
.cat-back-link:hover { color: var(--q-pink); }

/* Module recommendations (Format D) */
.qr-mods {
    text-align: left;
    background: var(--q-card-bg);
    border-radius: 14px;
    box-shadow: var(--q-shadow);
    padding: 22px 26px;
    margin: 0 auto 28px;
    max-width: 560px;
}
.qr-mods h3 { margin: 0 0 14px; font-size: 16px; color: var(--q-muted); text-transform: uppercase; letter-spacing: 1px; }
.qr-mod {
    padding: 12px 0;
    border-bottom: 1px solid var(--q-border);
}
.qr-mod:last-child { border-bottom: none; }
.qr-mod-name {
    font-weight: 700; font-size: 15px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 6px;
    margin-bottom: 2px;
}
.qr-mod-count {
    background: var(--q-grad);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}
.qr-mod-desc { font-size: 13px; color: var(--q-muted); }

/* Placeholder ("coming soon" quiz) */
.placeholder-wrap { max-width: 600px; margin: 0 auto; width: 100%; }
.placeholder-card {
    text-align: center;
    background: var(--q-card-bg);
    border-radius: 16px;
    padding: 50px 32px;
    box-shadow: var(--q-shadow);
}
.placeholder-card .big-emoji { font-size: 72px; display: block; margin-bottom: 12px; }
.placeholder-card h1 { margin: 0 0 10px; font-size: 26px; }
.placeholder-card p { color: var(--q-muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.placeholder-card p.muted { font-size: 13px; }

/* Bottom actions (result screen) */
.qr-bottom-actions {
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
    margin-top: 22px;
}

/* ============================================================
   FORMAT E — Scenarios
   ============================================================ */
.sc-wrap { max-width: 820px; margin: 0 auto; width: 100%; }
.sc-hero { text-align: center; padding: 28px 20px 32px; }
.sc-hero .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 19, 116, 0.08);
    color: var(--q-pink);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
}
.sc-hero h1 { font-size: 32px; margin: 0 0 10px; line-height: 1.2; }
.sc-hero p  { color: var(--q-muted); font-size: 16px; margin: 0; }
.sc-cards { display: flex; flex-direction: column; gap: 14px; }
.sc-card {
    display: flex; align-items: center; gap: 18px;
    padding: 22px;
    background: var(--q-card-bg);
    border: 2px solid var(--q-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.sc-card:hover {
    border-color: var(--q-pink);
    transform: translateY(-2px);
    box-shadow: var(--q-shadow-lg);
}
.sc-icon {
    font-size: 40px;
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #fed7aa 100%);
    border-radius: 14px;
    flex-shrink: 0;
}
.sc-body { flex: 1; min-width: 0; }
.sc-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--q-text); }
.sc-body p  { margin: 0; font-size: 14px; color: var(--q-muted); line-height: 1.55; }
.sc-pick {
    flex-shrink: 0;
    font-size: 13px; font-weight: 700;
    color: var(--q-pink);
    text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--q-pink);
    border-radius: 999px;
    transition: all 150ms ease;
}
.sc-card:hover .sc-pick { background: var(--q-grad); color: #fff; border-color: transparent; }

/* ============================================================
   FORMAT F — ROI Calculator
   ============================================================ */
.roi-wrap { max-width: 980px; margin: 0 auto; width: 100%; }
.roi-hero { text-align: center; padding: 28px 20px 28px; }
.roi-hero .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 19, 116, 0.08);
    color: var(--q-pink);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
}
.roi-hero h1 { font-size: 32px; margin: 0 0 10px; line-height: 1.2; }
.roi-hero p  { color: var(--q-muted); font-size: 16px; margin: 0; max-width: 600px; margin: 0 auto; }
.roi-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}
.roi-inputs {
    background: var(--q-card-bg);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--q-shadow);
}
.roi-input { margin-bottom: 18px; }
.roi-input:last-child { margin-bottom: 0; }
.roi-input label { display: block; font-size: 13px; font-weight: 700; color: var(--q-text); margin-bottom: 8px; }
.roi-input-row {
    display: flex; align-items: center; gap: 10px;
}
.roi-input-row input[type=range] {
    flex: 1;
    accent-color: var(--q-pink);
    cursor: pointer;
}
.roi-input-row input[type=number] {
    width: 85px;
    padding: 6px 10px;
    border: 1.5px solid var(--q-border);
    border-radius: 6px;
    font-size: 14px; font-family: inherit;
    text-align: right;
    -moz-appearance: textfield;
}
.roi-input-row input[type=number]::-webkit-outer-spin-button,
.roi-input-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-input-row input[type=number]:focus { border-color: var(--q-pink); outline: none; }
.roi-unit {
    font-size: 11px; color: var(--q-muted);
    font-weight: 600;
    min-width: 90px;
    text-align: left;
}
.roi-result-live {
    background: var(--q-grad);
    color: #fff;
    padding: 24px 22px;
    border-radius: 14px;
    box-shadow: var(--q-shadow-lg);
    position: sticky; top: 80px;
}
.roi-r-block {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.roi-r-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.roi-r-block-saving {
    background: rgba(255,255,255,0.12);
    margin: 0 -22px 18px;
    padding: 14px 22px;
    border-radius: 0;
}
.roi-r-label { display: block; font-size: 13px; opacity: 0.9; font-weight: 600; margin-bottom: 4px; }
.roi-r-value { display: block; font-size: 26px; font-weight: 700; }
.roi-r-detail { font-size: 13px; opacity: 0.9; }
.roi-r-detail > div {
    display: flex; justify-content: space-between;
    padding: 4px 0;
}
.roi-r-detail strong { color: #fff; }
.roi-submit-row { margin-top: 24px; text-align: center; }
@media (max-width: 800px) {
    .roi-grid { grid-template-columns: 1fr; }
    .roi-result-live { position: static; }
    .roi-input-row { flex-wrap: wrap; }
    .roi-input-row input[type=range] { width: 100%; flex: none; }
    .roi-unit { min-width: auto; }
}

/* ============================================================
   FORMAT G — Industry picker
   ============================================================ */
.ind-wrap { max-width: 800px; margin: 0 auto; width: 100%; }
.ind-hero { text-align: center; padding: 28px 20px 28px; }
.ind-hero .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 19, 116, 0.08);
    color: var(--q-pink);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
}
.ind-hero h1 { font-size: 32px; margin: 0 0 10px; line-height: 1.2; }
.ind-hero p  { color: var(--q-muted); font-size: 16px; margin: 0; }
.ind-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.ind-card {
    display: flex; align-items: center; gap: 14px;
    padding: 22px;
    background: var(--q-card-bg);
    border: 2px solid var(--q-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.ind-card:hover {
    border-color: var(--q-pink);
    transform: translateY(-2px);
    box-shadow: var(--q-shadow-lg);
}
.ind-icon {
    font-size: 32px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #fed7aa 100%);
    border-radius: 12px;
    flex-shrink: 0;
}
.ind-name {
    flex: 1; min-width: 0;
    font-size: 15px; font-weight: 700; color: var(--q-text);
    line-height: 1.3;
}
.ind-arrow {
    color: var(--q-pink);
    font-size: 16px;
    align-self: center;
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .quiz-header { padding: 14px 18px; }
    .quiz-back img { height: 28px; }
    .quiz-main { padding: 20px 14px; }
    .fa-intro h1 { font-size: 30px; }
    .fa-intro .lead { font-size: 16px; }
    .fa-q-text { font-size: 22px; }
    .fa-option { padding: 14px 16px; font-size: 15px; }
    .fb-intro { padding: 28px 22px; }
    .fb-intro h1 { font-size: 24px; }
    .fb-question { padding: 18px 18px; }
    .fb-options { margin-left: 0; }
    .qr-emoji { font-size: 60px; }
    .qr-score-circle { width: 140px; height: 140px; }
    .qr-score-circle .num { font-size: 38px; }
    .qr-title { font-size: 22px; }
}
