/**
 * Burnout Risk Quiz Styles
 * Comprehensive styling for the burnout assessment quiz
 */

/* Main Quiz Page Layout */
.burnout-quiz-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Quiz Header Section */
.quiz-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.quiz-header-content {
    flex: 1;
}

.quiz-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.quiz-title i {
    color: var(--primary-color);
    font-size: 2.25rem;
}

.quiz-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.quiz-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.badge-primary { 
    background: rgba(139, 92, 246, 0.1); 
    color: var(--primary-color);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-secondary { 
    background: rgba(37, 99, 235, 0.1); 
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-success { 
    background: rgba(5, 150, 105, 0.1); 
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Stress Meter Illustration */
.quiz-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stress-meter {
    text-align: center;
}

.meter-face {
    width: 120px;
    height: 120px;
    border: 8px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.meter-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 45px;
    background: var(--text-primary);
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
    animation: needle-wiggle 3s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes needle-wiggle {
    0%, 100% { transform: translate(-50%, -100%) rotate(30deg); }
    50% { transform: translate(-50%, -100%) rotate(60deg); }
}

.meter-labels {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.meter-label {
    margin: 0;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Quiz Introduction */
.quiz-introduction {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.intro-content h2 {
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.intro-content h2 i {
    color: var(--primary-color);
}

.intro-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.intro-content h3 i {
    color: var(--primary-color);
}

.burnout-explanation p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.burnout-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dimension-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.dimension-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.dimension-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.dimension-card h4 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.dimension-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.purpose-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.purpose-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.purpose-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.purpose-item h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.purpose-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.process-steps {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.step-item:hover {
    border-color: var(--primary-color);
    background: var(--background);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.875rem;
}

.privacy-notice {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.privacy-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-content i {
    color: #10b981;
    font-size: 1.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.privacy-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.875rem;
}

.start-quiz-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.disclaimer-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.disclaimer-text i {
    color: #f59e0b;
}

/* Section Introductions */
.section-introductions {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-intro {
    text-align: center;
}

.intro-header {
    margin-bottom: 2rem;
}

.section-progress {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.intro-header h2 {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.intro-header h2 i {
    color: var(--primary-color);
}

.intro-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intro-points {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.point-item i {
    color: #10b981;
    flex-shrink: 0;
}

.point-item span {
    color: var(--text-secondary);
    line-height: 1.4;
}

.continue-section-btn {
    margin-top: 1rem;
}

/* Question Navigation */
.question-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-progress {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section Continue */
.section-continue {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Custom Profession Input */
.custom-profession-group {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
}

.custom-profession-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.custom-profession-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.field-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Animations */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz Form Styling */
.quiz-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quiz-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--background-light);
}

.quiz-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.section-description {
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Question Groups */
.question-group {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.radio-group {
    display: grid;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-light);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--background);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom + .radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pop-in 0.3s ease;
}

@keyframes pop-in {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.radio-text {
    flex: 1;
    line-height: 1.4;
}

/* Likert Scale Questions */
.likert-questions {
    display: grid;
    gap: 2rem;
}

.question-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-light);
    transition: all 0.2s ease;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.question-text {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.likert-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.likert-scale label {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.likert-scale label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.3s ease;
}

.likert-scale label:hover {
    border-color: var(--primary-color);
    background: var(--background);
    transform: translateY(-1px);
}

.likert-scale label:hover::before {
    left: 100%;
}

.likert-scale input[type="radio"] {
    display: none;
}

.likert-scale input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Progress Tracking */
.quiz-progress {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #06b6d4 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Submit Section */
.quiz-submit {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: var(--gray-700);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.quiz-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Results Section */
.quiz-results {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--background-light);
}

.results-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    font-weight: 700;
}

.results-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    position: relative;
    transition: all 0.3s ease;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), #06b6d4, var(--primary-color));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    animation: countUp 2s ease;
}

@keyframes countUp {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.score-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.score-category {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0.5rem;
    animation: slideInUp 0.8s ease 0.5s both;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Breakdown */
.breakdown-item {
    margin-bottom: 2rem;
}

.breakdown-item h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.risk-meter {
    height: 20px;
    border-radius: 10px;
    position: relative;
    margin: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.risk-indicator {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 30px;
    background: var(--text-primary);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dimension-scores {
    margin-top: 2rem;
}

.dimension-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dimension-item:hover {
    background: var(--background);
    transform: translateX(4px);
}

.dimension-label {
    font-weight: 500;
    color: var(--text-primary);
}

.dimension-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.dimension-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.dimension-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.dimension-score {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Recommendations */
.recommendations h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.recommendations h3 i {
    color: #f59e0b;
}

.recommendations-list {
    margin-bottom: 2rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.recommendation-item:hover {
    background: var(--background);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommendation-item i {
    color: #10b981;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Next Steps */
.next-steps h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.next-step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.next-step-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    background: var(--background-light);
    transition: all 0.2s ease;
}

.next-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.next-step-card.urgent {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.next-step-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.next-step-card.urgent i {
    color: #ef4444;
}

.next-step-card h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.next-step-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Resources Section */
.resources {
    margin: 3rem 0;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.resources h3 {
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.resources h3 i {
    color: #10b981;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    transition: all 0.2s ease;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.resource-item h4 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.resource-item p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.resource-item a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
}

.resource-item a:hover {
    text-decoration: underline;
}

/* Share Results */
.share-results {
    margin: 3rem 0;
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.share-results h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.share-results h3 i {
    color: #06b6d4;
}

.share-results p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Retake Quiz */
.retake-quiz {
    text-align: center;
    margin-top: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .burnout-quiz-page {
        padding: 1rem 0;
    }
    
    .quiz-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
        gap: 1rem;
    }
    
    .quiz-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quiz-subtitle {
        font-size: 1.125rem;
    }
    
    .quiz-badges {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-form {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .likert-scale {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .likert-scale label {
        padding: 0.75rem;
        text-align: left;
    }
    
    .dimension-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .next-step-cards {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons .btn {
        width: 200px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .results-title {
        font-size: 1.75rem;
    }
    
    .quiz-progress {
        position: static;
        margin: 1rem 0;
    }
    
    .burnout-dimensions {
        grid-template-columns: 1fr;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .intro-content h2,
    .intro-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .intro-content h3 {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 1.5rem 1rem;
    }
    
    .quiz-title {
        font-size: 1.75rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .quiz-form {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .question-item {
        padding: 1rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .burnout-quiz-page {
        background: white;
        padding: 0;
    }
    
    .quiz-header,
    .quiz-form,
    .quiz-results {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .share-results,
    .retake-quiz {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .quiz-header {
        border: 2px solid #000;
    }
    
    .radio-option,
    .question-item {
        border-width: 2px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .meter-needle,
    .score-circle::before,
    .dimension-fill::after,
    .progress-bar::after {
        animation: none;
    }
    
    .quiz-results {
        animation: none;
    }
    
    .score-category {
        animation: none;
    }
    
    .score-number {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .burnout-quiz-page {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .quiz-header,
    .quiz-introduction,
    .quiz-form,
    .quiz-results,
    .section-introductions {
        background: #1f2937 !important;
        color: #f9fafb !important;
    }
    
    .quiz-title,
    .section-title,
    .results-title,
    .intro-content h2,
    .intro-content h3,
    .intro-header h2 {
        color: #f9fafb !important;
    }
    
    .quiz-subtitle,
    .section-description,
    .intro-content p,
    .point-item span,
    .burnout-explanation p,
    .purpose-item p,
    .step-content p,
    .privacy-content p,
    .disclaimer-text,
    .quiz-disclaimer {
        color: #d1d5db !important;
    }
    
    .radio-option,
    .question-item,
    .dimension-card,
    .purpose-item,
    .step-item,
    .stat-item,
    .breakdown-item,
    .recommendation-item,
    .next-step-card,
    .resource-item {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .radio-option:hover,
    .question-item:hover,
    .dimension-card:hover,
    .purpose-item:hover,
    .step-item:hover,
    .breakdown-item:hover,
    .recommendation-item:hover,
    .next-step-card:hover {
        background: #4b5563 !important;
    }
    
    .question-text,
    .radio-text,
    .dimension-card h4,
    .purpose-item h4,
    .step-content h4,
    .privacy-content h4,
    .breakdown-item h4,
    .next-step-card h5,
    .resource-item h4 {
        color: #f9fafb !important;
    }
    
    .dimension-card p,
    .stat-label,
    .question-progress,
    .progress-text,
    .recommendation-item,
    .next-step-card p,
    .resource-item p {
        color: #d1d5db !important;
    }
    
    .likert-scale label {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .likert-scale label:hover {
        background: #4b5563 !important;
    }
    
    .quiz-progress,
    .quiz-submit,
    .start-quiz-section,
    .privacy-notice,
    .share-results {
        background: #374151 !important;
        border-color: #4b5563 !important;
    }
    
    .score-circle {
        background: #374151 !important;
        border-color: #4b5563 !important;
    }
    
    .score-number,
    .score-category {
        color: #f9fafb !important;
    }
    
    .score-label {
        color: #d1d5db !important;
    }
    
    .dimension-label {
        color: #f9fafb !important;
    }
    
    .dimension-score {
        color: #d1d5db !important;
    }
    
    /* Results Section Dark Mode Fixes */
    .results-content h3,
    .resources h3,
    .share-results h3,
    .recommendations h3,
    .next-steps h4,
    .dimension-scores h4 {
        color: #f9fafb !important;
    }
    
    .results-content p,
    .share-results p,
    .breakdown-item p {
        color: #d1d5db !important;
    }
    
    .resources {
        background: #374151 !important;
        border-color: #4b5563 !important;
    }
    
    .resource-item a {
        color: #10b981 !important;
    }
    
    .resource-item a:hover {
        color: #059669 !important;
    }
    
    .resource-item strong {
        color: #f9fafb !important;
    }
    
    /* Fix for dynamically generated content */
    .dimension-scores h4,
    .next-steps h4,
    .recommendations h3,
    .breakdown-item h4 {
        color: #f9fafb !important;
    }
    
    .breakdown-item p,
    .recommendations-list .recommendation-item {
        color: #d1d5db !important;
    }
    
    /* Share results section */
    .share-results h3,
    .share-results p {
        color: #f9fafb !important;
    }
    
    .share-results p:not(h3) {
        color: #d1d5db !important;
    }
}
/* --- Dark mode: Detailed Analysis visibility fix (final) --- */
@media (prefers-color-scheme: dark) {
  /* Section container text */
  .detailed-analysis,
  .results-breakdown,
  .dimension-scores {
    color: #f9fafb !important;
  }

  /* Inner text (scores, labels) */
  .detailed-analysis *,
  .results-breakdown *,
  .dimension-scores *,
  .dimension-score {
    color: #e5e7eb !important;
  }

  /* Cards/boxes */
  .dimension-item,
  .recommendation-item,
  .breakdown-item {
    background: #374151 !important;
    border-color: #4b5563 !important;
  }

  /* Progress bars in the list */
  .dimension-bar {                /* keep list tracks darker */
    background: #4b5563 !important;
  }
  .dimension-fill,
  .progress-fill {
    filter: brightness(1.05);
  }

  /* Risk meter — DO NOT set background here (lets red gradient show) */
  .risk-meter {
    background: transparent !important;   /* or simply remove this line */
    border: 1px solid #4b5563;            /* optional subtle outline */
  }
  .risk-indicator {
    background: #e5e7eb !important;       /* visible pointer on dark */
  }

  /* Headings */
  .detailed-analysis h3,
  .results-breakdown h3,
  .dimension-scores h4 {
    color: #f9fafb !important;
  }
}
