/* Risk testi – Lumina */
body {
    background: var(--surface);
}

.test-container {
    width: min(100% - 2 * var(--gutter), 720px);
    margin: 64px auto 0;
    background: #fff;
    border: 1px solid rgba(16, 185, 129, .12);
    border-radius: 2rem;
    box-shadow: var(--shadow-card);
    padding: 48px;
}

.test-container > h2 {
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.17;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--deep-emerald);
    text-align: center;
    margin: 0 0 32px;
}

.progress {
    margin-bottom: 40px;
}

.progress__meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.progress__meta span:first-child {
    color: var(--vibrant-sage);
}

.progress__track {
    height: 8px;
    border-radius: 999px;
    background: #e2e7ff;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--vibrant-sage);
    transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

.step {
    display: none;
    animation: fadeIn .4s ease-out;
}

.step.active {
    display: block;
}

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

.question {
    font-size: 24px;
    line-height: 1.33;
    font-weight: 600;
    color: var(--deep-emerald);
    margin: 0 0 24px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options button {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: #fff;
    color: var(--on-surface);
    border: 1px solid var(--outline-variant);
    padding: 20px 24px;
    border-radius: 1rem;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
}

.options button::before {
    content: "";
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--outline-variant);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.options button:hover {
    border-color: var(--vibrant-sage);
    background: rgba(240, 253, 244, .7);
}

.options button.active {
    border-color: var(--vibrant-sage);
    background: var(--mint-50);
    font-weight: 600;
}

.options button.active::before {
    border-color: var(--vibrant-sage);
    background: var(--vibrant-sage);
    box-shadow: inset 0 0 0 4px #fff;
}

input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--outline-variant);
    border-radius: 1rem;
    background: #f8fafc;
    font: inherit;
    font-size: 16px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

input[type="number"]:focus {
    outline: none;
    background: #fff;
    border-color: var(--vibrant-sage);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
}

.next-button, .finish-button, .restart-button {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: .75rem;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background: var(--deep-emerald);
    color: #fff;
    transition: box-shadow .25s, transform .15s, background .3s;
}

.next-button:hover, .finish-button:hover {
    box-shadow: 0 8px 24px rgba(6, 78, 59, .25);
}

.next-button:active, .finish-button:active {
    transform: scale(.98);
}

.restart-button {
    width: auto;
    padding: 14px 32px;
    margin-top: 24px;
    background: transparent !important;
    color: var(--deep-emerald) !important;
    border: 1.5px solid var(--deep-emerald) !important;
}

.restart-button:hover {
    background: var(--deep-emerald) !important;
    color: #fff !important;
}

/* Sonuç */
.result {
    text-align: center;
    padding: 8px 0;
}

.result h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--deep-emerald);
    margin: 0 0 24px;
}

.result p {
    font-size: 16px;
    color: var(--on-surface-variant);
    margin: 8px 0;
}

.risk-ring {
    --ring: var(--vibrant-sage);
    --pct: 25;
    width: 176px;
    aspect-ratio: 1;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--soft-mint) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}

.risk-ring-wrap {
    position: relative;
    width: 176px;
    margin: 0 auto 24px;
}

.risk-ring-wrap .risk-ring {
    margin: 0;
}

.risk-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.risk-ring__label strong {
    font-size: 28px;
    line-height: 1.1;
    color: var(--ring-text, var(--deep-emerald));
}

.risk-ring__label small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--on-surface);
}

.info {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(191, 201, 195, .4);
}

.light__text {
    font-size: 14px;
    font-style: italic;
    color: var(--outline);
}

.text__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-emerald);
}

@media (max-width: 600px) {
    .test-container {
        padding: 28px 20px;
        margin-top: 32px;
        border-radius: 1.5rem;
    }

    .question {
        font-size: 20px;
    }
}
