:root {
    --accent: #2d6cdf;
    --accent-light: #eef7ff;
    --bg: #fff;
    --text: #222;
}

/* Base */
body {
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    padding: 24px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* Questions */
.question {
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 8px;
    background: #f7f9ff;
}

.qtext {
    margin: 0 0 8px 0;
    font-weight: 600;
}

[role='alert'] {
    color: #a00;
}

/* --- Diagnostic Progress Bar --- */
.progress-wrapper {
    width: 100%;
    background: #e6e6e6;
    border-radius: 6px;
    height: 10px;
    margin: 20px 0 30px 0;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ------------------------------
   Summary Enhancements
------------------------------ */

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 18px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border-left: 4px solid #0d6efd;
}

.summary-card h3 {
    margin: 0 0 12px 0;
    color: #0d6efd;
    font-size: 22px;
}

.impact-pill {
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.insight {
    margin: 12px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.reco-box {
    margin-top: 12px;
    padding: 12px 14px;
    background: #eef7ff;
    border-left: 4px solid #2d8cff;
    border-radius: 4px;
}

.reco-box strong {
    color: #0d6efd;
}

.reco-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}


/* --- Score Bar (Slider-style) --- */
.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 14px;
}

.score-label {
    font-weight: 600;
    min-width: 60px;
}

.score-bar {
    flex-grow: 1;
    height: 10px;
    background: #e6e6e6;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg,
        #ff3d3d 0%,
        #ff914d 40%,
        #ffd93d 60%,
        #4cd964 100%
    );
    transition: width 0.4s ease;
}
