.elementor-18938 .elementor-element.elementor-element-1ac1e9e{--display:flex;}.elementor-18938 .elementor-element.elementor-element-1ac1e9e:not(.elementor-motion-effects-element-type-background), .elementor-18938 .elementor-element.elementor-element-1ac1e9e > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-18938 .elementor-element.elementor-element-8379e60.elementor-element{--align-self:center;}@media(max-width:767px){.elementor-18938 .elementor-element.elementor-element-1ac1e9e{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-18938 .elementor-element.elementor-element-4109218{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}}/* Start custom CSS for html, class: .elementor-element-4109218 *//* ================================================================
   HOSTILITY INDEX v3.0 — Axis Design
   Fonts : Inter · Fraunces · JetBrains Mono
   Colors: --blue #2B6CB0 · --accent #3AA6FF · --dark #0F172A
================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, input, textarea, select, button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; overflow-x: hidden; }

body {
    background: #0F172A;
    color: #1E293B;
    min-height: 100vh;
    line-height: 1.6;
}

/* ================================================================
   APP SHELL
================================================================ */

.v3-app {
    display: flex;
    min-height: 100vh;
}

/* ================================================================
   TOP PROGRESS LINE (also serves as progressFill target)
================================================================ */

.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 200;
}

.top-progress {
    height: 100%;
    width: 0%;
    background: #2B6CB0;
    transition: width 0.4s ease;
}

/* ================================================================
   SIDEBAR
================================================================ */

.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    padding: 52px 32px 40px;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 52px;
    text-transform: uppercase;
}
.sidebar-brand span { color: #2B6CB0; }

.sidebar-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2B6CB0;
    margin-bottom: 10px;
}

.sidebar-step-label {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.sidebar-spacer { flex: 1; }

.sidebar-progress-wrap { margin-bottom: 28px; }

.sidebar-progress-bar {
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.sidebar-progress-fill {
    height: 100%;
    background: #2B6CB0;
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.sidebar-progress-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    text-align: right;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-continue {
    background: #2B6CB0;
    color: #ffffff;
    border: none;
    border-bottom: 3px solid #3AA6FF;
    padding: 14px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    width: 100%;
    text-align: center;
}
.btn-continue:hover {
    background: #3AA6FF;
    color: #0F172A;
    border-bottom-color: #2B6CB0;
}

.btn-back {
    background: transparent;
    color: rgba(255,255,255,0.38);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    width: 100%;
    text-align: center;
}
.btn-back:hover:not(:disabled) {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.2);
}
.btn-back:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ================================================================
   MAIN CONTENT
================================================================ */

.v3-main {
    margin-left: 280px;
    flex: 1;
    background: #F8FAFC;
    min-height: 100vh;
    position: relative;
}

/* ================================================================
   SURVEY STEPS
================================================================ */

.survey-steps { position: relative; }

.survey-step {
    display: none;
    min-height: 100vh;
    padding: 72px 72px 80px;
    animation: v3FadeUp 0.3s ease;
}

.survey-step.active { display: block; }

@keyframes v3FadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   INTRO STEP
================================================================ */

.intro-wrap {
    max-width: 580px;
    padding-top: 32px;
}

.intro-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2B6CB0;
    margin-bottom: 24px;
}

.intro-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0F172A;
    margin-bottom: 24px;
}

.intro-body {
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 40px;
}

.intro-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 28px;
    background: white;
    border-left: 3px solid #2B6CB0;
    margin-bottom: 48px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #2B6CB0;
    min-width: 60px;
    padding-top: 2px;
}

.meta-value {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.btn-start {
    background: #0F172A;
    color: white;
    border: none;
    border-bottom: 3px solid #2B6CB0;
    padding: 18px 36px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-block;
}
.btn-start:hover {
    background: #2B6CB0;
    border-bottom-color: #3AA6FF;
}

/* ================================================================
   QUESTION STEPS
================================================================ */

.step-inner { max-width: 660px; }

.q-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.q-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(15,23,42,0.25);
    letter-spacing: 0.08em;
}

.q-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #2B6CB0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.q-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.q-hint {
    font-size: 12px;
    color: #94A3B8;
    font-style: italic;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

.q-gap {
    height: 1px;
    background: #E2E8F0;
    margin: 48px 0;
}

/* ================================================================
   OPTION ROWS — RADIO
================================================================ */

.options-list {
    border-top: 1px solid #E2E8F0;
    margin-bottom: 4px;
}

.option-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.14s ease;
    position: relative;
    background: white;
}

.option-row:first-child { border-radius: 0; }

.option-row:hover {
    border-left-color: rgba(43,108,176,0.5);
    background: rgba(43,108,176,0.03);
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.option-body strong {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
}

.option-body span {
    font-size: 13px;
    color: #64748B;
    line-height: 1.55;
}

/* Radio indicator (circle) */
.opt-ind {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.14s ease;
    position: relative;
}

.opt-ind::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.14s ease;
}

/* Radio: selected state */
.option-row:has(input[type="radio"]:checked) {
    border-left-color: #2B6CB0;
    background: rgba(43,108,176,0.05);
}

.option-row:has(input[type="radio"]:checked) .opt-ind {
    background: #2B6CB0;
    border-color: #2B6CB0;
}

.option-row:has(input[type="radio"]:checked) .opt-ind::after {
    opacity: 1;
}

.option-row:has(input[type="radio"]:checked) .option-body strong {
    color: #1E3A5F;
}

/* Checkbox indicator (square) */
.opt-ind-check {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E1;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.14s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: transparent;
    line-height: 1;
}

/* Checkbox: selected state */
.option-row:has(input[type="checkbox"]:checked) {
    border-left-color: #2B6CB0;
    background: rgba(43,108,176,0.05);
}

.option-row:has(input[type="checkbox"]:checked) .opt-ind-check {
    background: #2B6CB0;
    border-color: #2B6CB0;
    color: white;
}

.option-row:has(input[type="checkbox"]:checked) .option-body strong {
    color: #1E3A5F;
}

/* ================================================================
   HEAT TAG STEPS
================================================================ */

.heat-header {
    max-width: 660px;
    margin-bottom: 28px;
}

.heat-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2B6CB0;
    margin-bottom: 8px;
}

.heat-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.heat-desc {
    font-size: 14px;
    color: #64748B;
    line-height: 1.65;
    max-width: 560px;
}

.heat-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8;
    margin: 28px 0 10px;
}

.checkbox-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #94A3B8;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* ================================================================
   CONTEXT STEP (STEP 18)
================================================================ */

.context-wrap { max-width: 660px; }

.context-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px 20px;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #2B6CB0;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1E293B;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    margin-top: 16px;
}
.context-textarea:focus {
    border-color: #2B6CB0;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.08);
}

/* ================================================================
   RESULTS SECTION
================================================================ */

.results-section {
    display: none;
    min-height: 100vh;
    background: #F8FAFC;
}

.results-section.active {
    display: block;
    animation: v3FadeUp 0.4s ease;
}

.results-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 72px 80px;
}

/* Results header */
.results-header { margin-bottom: 16px; }

.results-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2B6CB0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.results-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.results-meta {
    display: none; /* date shown inline */
}

/* Score row */
.results-score-row {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E2E8F0;
}

.score-big { flex-shrink: 0; }

.score-number-v3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    color: #0F172A;
    letter-spacing: -0.04em;
}

.score-denom {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #94A3B8;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.score-meta { flex: 1; }

.risk-badge-v3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #0F172A;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    border-bottom: 2px solid #2B6CB0;
}
.risk-emoji-v3 { font-size: 14px; }
.risk-label-small {
    font-size: 10px;
    opacity: 0.5;
    letter-spacing: 0.08em;
}

.assessment-desc-v3 {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    max-width: 460px;
}

.results-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #94A3B8;
    margin-top: 18px;
    letter-spacing: 0.08em;
}

/* ================================================================
   BREAKDOWN LIST
================================================================ */

.breakdown-heading, .recs-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.breakdown-list {
    border-top: 1px solid #E2E8F0;
    margin-bottom: 56px;
}

.bd-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #E2E8F0;
}

.bd-indicator { font-size: 14px; min-width: 22px; }

.bd-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    min-width: 200px;
}

.bd-bar-wrap {
    flex: 1;
    height: 5px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.bd-bar-fill {
    height: 100%;
    background: #2B6CB0;
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s ease 0.1s;
}

.bd-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #2B6CB0;
    min-width: 68px;
    text-align: right;
}

/* ================================================================
   RECOMMENDATIONS
================================================================ */

.recs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 56px;
}

/* Used by JS-generated .recommendation-item */
.recommendation-item {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    background: white;
    border-left: 3px solid #2B6CB0;
}

.recommendation-icon { font-size: 16px; margin-top: 2px; }

.recommendation-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}

/* ================================================================
   RESULTS ACTIONS
================================================================ */

.results-actions, .advanced-analysis-section {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
    margin-bottom: 40px;
}

.btn-action {
    padding: 13px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-advanced {
    background: #0F172A;
    color: white;
    border-bottom: 2px solid #2B6CB0;
}
.btn-advanced:hover { background: #2B6CB0; border-bottom-color: #3AA6FF; }

.btn-restart {
    background: transparent;
    color: #64748B;
    border: 1px solid #E2E8F0;
}
.btn-restart:hover { background: #F1F5F9; color: #334155; }

.btn-download {
    background: #2B6CB0;
    color: white;
}
.btn-download:hover { background: #1F5088; }

/* ================================================================
   FOOTER
================================================================ */

.footer-section {
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
    margin-top: 8px;
}

.footer-text {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.65;
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 13px;
    color: #64748B;
}

.footer-contact a {
    color: #2B6CB0;
    text-decoration: none;
}

/* ================================================================
   MODALS
================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15,23,42,0.6);
    animation: v3FadeUp 0.25s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(15,23,42,0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #94A3B8;
    line-height: 1;
    padding: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #2B6CB0; }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.share-link-container { display: flex; gap: 10px; margin: 16px 0; }

.share-link-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #E2E8F0;
    font-size: 13px;
    background: #F8FAFC;
    color: #334155;
}

.btn-copy {
    padding: 11px 18px;
    background: #2B6CB0;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: background 0.18s;
}
.btn-copy:hover { background: #1F5088; }

/* ================================================================
   FORM ELEMENTS (in modals)
================================================================ */

.form-input, .form-group input[type="text"], .form-group input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #E2E8F0;
    font-size: 14px;
    background: white;
    color: #1E293B;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 12px;
}
.form-input:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: #2B6CB0;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.08);
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* ================================================================
   LOADING MODAL
================================================================ */

.loading-content { text-align: center; padding: 16px 0; }

.loading-spinner {
    width: 44px; height: 44px;
    border: 3px solid #E2E8F0;
    border-top: 3px solid #2B6CB0;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.loading-dots span {
    font-size: 20px;
    color: #2B6CB0;
    animation: loadingDots 1.5s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.5s; }
.loading-dots span:nth-child(3) { animation-delay: 1s; }
@keyframes loadingDots {
    0%,80%,100% { opacity: 0.3; transform: scale(0.8); }
    40%         { opacity: 1;   transform: scale(1.2); }
}

/* ================================================================
   EMAIL VERIFICATION (modal content)
================================================================ */

.verification-step { display: none; }
.verification-step.active { display: block; }

.verification-header, .success-header { text-align: center; margin-bottom: 20px; }
.verification-icon, .success-icon { font-size: 44px; display: block; margin-bottom: 10px; }
.verification-header h4, .success-header h4 { color: #0F172A; font-size: 18px; font-family: 'Fraunces', serif; }

.email-display {
    background: #F0F7FF;
    padding: 10px 14px;
    border-left: 3px solid #2B6CB0;
    margin: 14px 0;
    font-weight: 600;
    font-size: 14px;
    color: #1E3A5F;
    word-break: break-all;
}

.otp-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
}

.verification-status { min-height: 20px; margin: 10px 0; text-align: center; font-size: 13px; }
.verification-status.error {
    color: #DC2626; background: #FEF2F2;
    padding: 8px 12px; border: 1px solid #FECACA;
}
.verification-status.success {
    color: #166534; background: #F0FDF4;
    padding: 8px 12px; border: 1px solid #BBF7D0;
}

.btn-link {
    background: none; border: none;
    color: #2B6CB0; text-decoration: underline;
    cursor: pointer; padding: 8px 16px; font-size: 13px;
}
.btn-link:hover { color: #1F5088; }
.btn-link:disabled { color: #CBD5E1; cursor: default; text-decoration: none; }

/* ================================================================
   BTN HELPERS (used in modals and inline)
================================================================ */

.btn-primary, .btn-secondary {
    padding: 12px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary { background: #2B6CB0; color: white; }
.btn-primary:hover { background: #1F5088; }
.btn-secondary { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.btn-secondary:hover { background: #E2E8F0; }

/* ================================================================
   FOCUS & ACCESSIBILITY
================================================================ */

.option-row:focus-within { outline: 2px solid #2B6CB0; outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   MOBILE RESPONSIVE (< 900px)
================================================================ */

@media (max-width: 900px) {

    .sidebar {
        position: fixed;
        bottom: 0; top: auto;
        left: 0; right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 14px 20px;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        z-index: 100;
    }

    .sidebar-brand { display: none; }
    .sidebar-section-label { display: none; }
    .sidebar-step-label {
        font-size: 14px;
        margin-bottom: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sidebar-spacer { display: none; }
    .sidebar-progress-wrap { display: none; }
    .sidebar-actions {
        flex-direction: row;
        gap: 10px;
        margin-left: 16px;
    }
    .btn-continue, .btn-back {
        width: auto;
        padding: 11px 18px;
        font-size: 10px;
    }

    .v3-main {
        margin-left: 0;
        padding-bottom: 80px;
    }

    .survey-step {
        padding: 40px 24px 32px;
        min-height: calc(100vh - 72px);
    }

    .intro-headline { font-size: 34px; }
    .q-text { font-size: 21px; }
    .heat-title { font-size: 21px; }

    .results-wrap { padding: 40px 24px 72px; }

    .results-score-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .score-number-v3 { font-size: 68px; }

    .bd-name { min-width: 130px; }

    .results-actions, .advanced-analysis-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .survey-step { padding: 28px 16px; }
    .results-wrap { padding: 28px 16px 80px; }
    .intro-headline { font-size: 28px; }
    .intro-body { font-size: 15px; }
    .q-text { font-size: 19px; }

    .bd-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .bd-name { min-width: 0; flex: 1; }
    .bd-bar-wrap {
        order: 10;
        width: 100%;
        flex: none;
        margin-top: 4px;
    }

    .modal-content { padding: 22px 18px; margin: 16px; }
}

/* ================================================================
   v3.1 DYNAMIC ENHANCEMENTS
   Directional transitions · Stagger · Ghost number · Shimmer
   Risk colors · Heat grid · Score counter · Micro-interactions
================================================================ */

/* --- Sidebar enhancements --- */

.sidebar { overflow: hidden; } /* contain ghost */

/* Ghost step number — huge, barely-there, in the background */
.sidebar-ghost {
    position: absolute;
    bottom: 36px;
    left: -12px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 210px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255,255,255,0.032);
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Step counter "01 / 18" */
.sidebar-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.12em;
    margin-top: 6px;
}

/* Animated dot before section label */
.sidebar-section-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #3AA6FF;
    border-radius: 50%;
    margin-right: 8px;
    margin-bottom: 1px;
    animation: sectionPulse 2.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes sectionPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.65); }
}

/* Shimmer sweep on Continue button */
.btn-continue { overflow: hidden; position: relative; }
.btn-continue::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transform: skewX(-18deg);
    animation: btnShimmer 3.5s ease-in-out infinite;
}
@keyframes btnShimmer {
    0%   { left: -120%; }
    35%  { left: 150%; }
    100% { left: 150%; }
}

/* --- Step directional transitions --- */

/* Default: enter from right (going forward) */
@keyframes stepSlideInRight {
    from { opacity: 0; transform: translate3d(30px, 6px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Going back: enter from left */
@keyframes stepSlideInLeft {
    from { opacity: 0; transform: translate3d(-30px, 6px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.survey-step.active {
    animation: stepSlideInRight 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.survey-step.active.going-back {
    animation: stepSlideInLeft 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Option row micro-interactions --- */

/* Stagger — rows animate in one-by-one when step becomes active */
.survey-step.active .option-row {
    opacity: 0;
    animation: optionIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes optionIn {
    from { opacity: 0; transform: translate3d(14px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Stagger delays for rows 1–18 */
.survey-step.active .options-list .option-row:nth-child(1)  { animation-delay: 0.04s; }
.survey-step.active .options-list .option-row:nth-child(2)  { animation-delay: 0.09s; }
.survey-step.active .options-list .option-row:nth-child(3)  { animation-delay: 0.13s; }
.survey-step.active .options-list .option-row:nth-child(4)  { animation-delay: 0.17s; }
.survey-step.active .options-list .option-row:nth-child(5)  { animation-delay: 0.21s; }
.survey-step.active .options-list .option-row:nth-child(6)  { animation-delay: 0.24s; }
.survey-step.active .options-list .option-row:nth-child(7)  { animation-delay: 0.27s; }
.survey-step.active .options-list .option-row:nth-child(8)  { animation-delay: 0.30s; }
.survey-step.active .options-list .option-row:nth-child(9)  { animation-delay: 0.32s; }
.survey-step.active .options-list .option-row:nth-child(10) { animation-delay: 0.34s; }
.survey-step.active .options-list .option-row:nth-child(11) { animation-delay: 0.36s; }
.survey-step.active .options-list .option-row:nth-child(12) { animation-delay: 0.37s; }
.survey-step.active .options-list .option-row:nth-child(13) { animation-delay: 0.38s; }
.survey-step.active .options-list .option-row:nth-child(14) { animation-delay: 0.39s; }
.survey-step.active .options-list .option-row:nth-child(15) { animation-delay: 0.40s; }
.survey-step.active .options-list .option-row:nth-child(16) { animation-delay: 0.41s; }
.survey-step.active .options-list .option-row:nth-child(17) { animation-delay: 0.42s; }
.survey-step.active .options-list .option-row:nth-child(18) { animation-delay: 0.43s; }

/* Also stagger q-meta and q-text on entrance */
.survey-step.active .q-meta {
    opacity: 0;
    animation: optionIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}
.survey-step.active .q-text {
    opacity: 0;
    animation: optionIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.02s forwards;
}
.survey-step.active .q-hint {
    opacity: 0;
    animation: optionIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.03s forwards;
}
.survey-step.active .heat-header {
    opacity: 0;
    animation: optionIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}
.survey-step.active .checkbox-note {
    opacity: 0;
    animation: optionIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.02s forwards;
}

/* Radio: pop on select */
.option-row:has(input[type="radio"]:checked) .opt-ind {
    animation: indPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes indPop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Checkbox: bounce on check */
.option-row:has(input[type="checkbox"]:checked) .opt-ind-check {
    animation: checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes checkBounce {
    0%   { transform: scale(0.55) rotate(-8deg); }
    60%  { transform: scale(1.18) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Left-border sweep animation on selection */
.option-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
    background: #2B6CB0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.15s ease;
    z-index: 1;
}
/* Remove the old static border-left approach */
.option-row { border-left: none !important; }

.option-row:hover::before {
    transform: scaleY(1);
    background: rgba(43,108,176,0.45);
}

.option-row:has(input:checked)::before {
    transform: scaleY(1);
    background: #2B6CB0;
}

/* --- Progress bar glow --- */
.top-progress {
    box-shadow: 0 0 10px rgba(58,166,255,0.65), 0 0 24px rgba(43,108,176,0.3);
}

/* Subtle animated gradient on the progress fill */
.top-progress {
    background: linear-gradient(90deg, #2B6CB0 0%, #3AA6FF 50%, #2B6CB0 100%);
    background-size: 200% 100%;
    animation: progressFlow 3s linear infinite;
}
@keyframes progressFlow {
    from { background-position: 0% 0%; }
    to   { background-position: -200% 0%; }
}

/* --- Intro enhancements --- */

/* Animated gradient border on intro meta box */
.intro-meta {
    position: relative;
    border-left: none;
}
.intro-meta::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2B6CB0 0%, #3AA6FF 50%, #2B6CB0 100%);
    background-size: 100% 200%;
    animation: borderFlow 3s ease infinite;
}
@keyframes borderFlow {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Subtle dot-grid background on main area */
.v3-main {
    background-image: radial-gradient(rgba(43,108,176,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Intro text stagger on load */
.intro-wrap .intro-eyebrow { animation: optionIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.intro-wrap .intro-headline { animation: optionIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.intro-wrap .intro-body     { animation: optionIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.intro-wrap .intro-meta     { animation: optionIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.intro-wrap .btn-start      { animation: optionIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both; }

/* btn-start: slight scale on hover */
.btn-start { transition: background 0.18s ease, border-bottom-color 0.18s ease, transform 0.15s ease; }
.btn-start:hover { transform: translateY(-1px); }
.btn-start:active { transform: translateY(0); }

/* --- Heat tags: 2-column compact grid --- */

.options-list.heat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 680px;
}

/* Full-width "No public association" row */
.options-list.heat-grid .option-row:first-child {
    grid-column: 1 / -1;
    background: #FAFAFA;
    border-right: none;
}

/* Right border on left-column items */
.options-list.heat-grid .option-row:nth-child(odd):not(:first-child) {
    border-right: 1px solid #E2E8F0;
}

/* --- Results enhancements --- */

/* Score number color based on risk level */
.score-number-v3[data-risk="LOW"]      { color: #059669; }
.score-number-v3[data-risk="MODERATE"] { color: #D97706; }
.score-number-v3[data-risk="ELEVATED"] { color: #EA580C; }
.score-number-v3[data-risk="HIGH"]     { color: #DC2626; }
.score-number-v3[data-risk="CRITICAL"] { color: #7C3AED; }

/* Score number animates color change */
.score-number-v3 { transition: color 0.5s ease; }

/* Bar fill stagger — each bar enters with a different delay */
.bd-row:nth-child(1)  .bd-bar-fill { transition-delay: 0.08s; }
.bd-row:nth-child(2)  .bd-bar-fill { transition-delay: 0.14s; }
.bd-row:nth-child(3)  .bd-bar-fill { transition-delay: 0.20s; }
.bd-row:nth-child(4)  .bd-bar-fill { transition-delay: 0.26s; }
.bd-row:nth-child(5)  .bd-bar-fill { transition-delay: 0.32s; }
.bd-row:nth-child(6)  .bd-bar-fill { transition-delay: 0.38s; }
.bd-row:nth-child(7)  .bd-bar-fill { transition-delay: 0.44s; }
.bd-row:nth-child(8)  .bd-bar-fill { transition-delay: 0.50s; }
.bd-row:nth-child(9)  .bd-bar-fill { transition-delay: 0.55s; }
.bd-row:nth-child(10) .bd-bar-fill { transition-delay: 0.60s; }
.bd-row:nth-child(11) .bd-bar-fill { transition-delay: 0.65s; }

/* Recommendation items animate in */
.recommendation-item {
    opacity: 0;
    animation: optionIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.recommendation-item:nth-child(1) { animation-delay: 0.8s; }
.recommendation-item:nth-child(2) { animation-delay: 0.9s; }
.recommendation-item:nth-child(3) { animation-delay: 1.0s; }
.recommendation-item:nth-child(4) { animation-delay: 1.1s; }
.recommendation-item:nth-child(5) { animation-delay: 1.2s; }

/* Results score row enters */
.results-section.active .results-eyebrow  { animation: optionIn 0.4s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.results-section.active .results-score-row { animation: optionIn 0.45s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.results-section.active .breakdown-heading { animation: optionIn 0.4s cubic-bezier(0.22,1,0.36,1) 0.5s both; }
.results-section.active .breakdown-list    { animation: optionIn 0.4s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
.results-section.active .recs-heading      { animation: optionIn 0.4s cubic-bezier(0.22,1,0.36,1) 0.75s both; }

/* Mobile: heat grid 1 column */
@media (max-width: 660px) {
    .options-list.heat-grid {
        grid-template-columns: 1fr;
    }
    .options-list.heat-grid .option-row:nth-child(odd):not(:first-child) {
        border-right: none;
    }
}

/* ================================================================
   SIDEBAR TRACK NAV
================================================================ */

.sidebar-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow: hidden;
    padding: 20px 0 8px;
    position: relative;
    z-index: 1;
    list-style: none;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 0;
    position: relative;
    cursor: default;
}

/* Connecting line between items */
.track-item + .track-item::before {
    content: '';
    position: absolute;
    left: 2.5px;
    top: -50%;
    width: 1px;
    height: 50%;
    background: rgba(255,255,255,0.07);
    z-index: 0;
}

.track-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

.track-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 178px;
    transition: color 0.25s ease, font-weight 0.1s ease;
}

/* Past steps */
.track-item.track-past .track-dot {
    background: rgba(43,108,176,0.55);
}
.track-item.track-past .track-label {
    color: rgba(255,255,255,0.38);
}

/* Active step */
.track-item.track-active .track-dot {
    background: #3AA6FF;
    box-shadow: 0 0 0 2.5px rgba(58,166,255,0.22);
    width: 8px;
    height: 8px;
    margin-left: -1px;
}
.track-item.track-active .track-label {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Hide track on mobile (bottom bar has no room) */
@media (max-width: 900px) {
    .sidebar-track { display: none; }
}/* End custom CSS */