/* Diagnostic Chart Styling */
.diagnostic-section {
    padding: 100px 0;
    overflow: hidden;
}

.diagnostic-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 48px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.chart-step {
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chart-step.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.chart-step.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.chart-question h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 40px;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 700;
}

.chart-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.chart-btn {
    padding: 16px 40px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.chart-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.2);
}

.chart-btn.primary {
    background: var(--accent-color);
    color: #fff;
}

/* Result Styling */
.chart-result {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.chart-result h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 800;
}

.result-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.back-btn {
    margin-top: 48px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--accent-color);
}

/* Progress Bar */
.chart-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .diagnostic-card {
        padding: 48px 24px;
        margin: 0 16px;
    }
    .chart-options {
        flex-direction: column;
    }
    .chart-btn {
        width: 100%;
        padding: 14px 24px;
    }
}
