﻿.assessment-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 28px 90px;
}

/* progress */
.progress-wrap {
    margin-bottom: 44px;
}

.progress-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--ink-faint);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-track {
    display: flex;
    gap: 6px;
}

.progress-seg {
    height: 4px;
    flex: 1;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

    .progress-seg span {
        display: block;
        height: 100%;
        width: 0%;
        background: var(--navy);
        transition: width .35s ease;
    }

    .progress-seg.done span {
        width: 100%;
    }

    .progress-seg.active span {
        width: 100%;
    }

/* question card */
.q-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

    .q-eyebrow::before {
        content: "//";
        color: var(--ink-faint);
    }

.q-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    max-width: 560px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease;
}

    .option:hover {
        border-color: var(--ink-faint);
    }

    .option .radio {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid var(--ink-faint);
        flex: 0 0 auto;
        position: relative;
    }

    .option.selected {
        border-color: var(--navy);
        background: var(--navy-tint);
    }

        .option.selected .radio {
            border-color: var(--navy);
        }

            .option.selected .radio::after {
                content: "";
                position: absolute;
                inset: 3px;
                border-radius: 50%;
                background: var(--navy);
            }

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* loading */
.loading-view {
    text-align: center;
    padding: 80px 0;
}

    .loading-view p {
        color: var(--ink-soft);
        font-family: 'IBM Plex Mono', monospace;
        font-size: 13px;
        margin-top: 16px;
    }

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid var(--line);
    border-top-color: var(--navy);
    animation: spin .8s linear infinite;
}

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

/* teaser / gate */
.result-head {
    text-align: center;
    margin-bottom: 36px;
}

.gauge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.gauge-score {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

    .gauge-score tspan.big {
        font-size: 34px;
    }

.band-chip {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    margin-top: 14px;
    letter-spacing: 0.02em;
}

.result-head h2 {
    font-size: 24px;
    margin-top: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.gate-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
}

    .gate-card p {
        color: var(--ink-soft);
        font-size: 14.5px;
        margin-bottom: 20px;
    }

.gate-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

    .gate-form input {
        flex: 1 1 220px;
        padding: 13px 16px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--paper);
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 14.5px;
    }

.gate-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 14px;
}

/* full breakdown */
.breakdown {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 36px 0 40px;
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.bar-track {
    height: 8px;
    background: var(--paper-dim);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width .7s ease;
}

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

.rec-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .rec-item .mark {
        color: var(--navy);
        font-family: 'IBM Plex Mono', monospace;
        font-weight: 600;
        flex: 0 0 auto;
    }

    .rec-item p {
        font-size: 14px;
        color: var(--ink-soft);
    }

    .rec-item strong {
        color: var(--ink);
        font-weight: 600;
    }

.cta-final {
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
}

    .cta-final h3 {
        color: #fff;
        font-size: 19px;
        margin-bottom: 10px;
    }

    .cta-final p {
        color: #B7C0D4;
        font-size: 14px;
        margin-bottom: 20px;
    }

.hidden {
    display: none !important;
}

@media (max-width:560px) {
    .assessment-main {
        padding: 40px 20px 70px;
    }

    .q-title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-top-color: var(--navy);
    }

    .bar-fill, .progress-seg span {
        transition: none;
    }
}

/* Honeypot: positioned off-canvas rather than display:none, since some
   bots specifically skip display:none fields. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
