.wp-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wp-quiz-intro {
    margin-bottom: 24px;
}

.wp-quiz-intro h2 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 12px;
}

.wp-quiz-scale-legend {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-top: 16px;
    border: 1px solid #e9ecef;
}

.wp-quiz-section {
    margin-bottom: 40px;
}

.wp-quiz-section h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    color: #2c3e50;
    margin-bottom: 16px;
}

.wp-quiz-table-wrapper {
    overflow-x: auto;
}

.wp-quiz-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't get too squished on mobile */
}

.wp-quiz-table th, .wp-quiz-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.wp-quiz-table th {
    background: #fafafa;
    font-weight: 600;
}

.wp-quiz-table th:nth-child(n+3), 
.wp-quiz-table td:nth-child(n+3) {
    text-align: center;
    width: 48px;
}

.wp-quiz-table tbody tr:hover {
    background-color: #fcfcfc;
}

.radio-cell input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.wp-quiz-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.wp-quiz-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.wp-quiz-btn:hover {
    background-color: #2563eb;
}

.wp-quiz-btn:active {
    transform: translateY(1px);
}

.wp-quiz-btn-secondary {
    background-color: #6c757d;
}

.wp-quiz-btn-secondary:hover {
    background-color: #5a6268;
}

.wp-quiz-actions {
    margin-top: 32px;
    text-align: center;
}

/* Results section */
#wp-quiz-results {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#wp-quiz-results h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
}

.overall-score-container {
    background: #f8f9fa;
    padding: 24px 32px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 6px solid #bdc3c7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.overall-score-container h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

/* Dynamic color borders */
.overall-score-container.excellent { border-left-color: #10b981; } /* Emerald */
.overall-score-container.good { border-left-color: #3b82f6; } /* Blue */
.overall-score-container.developing { border-left-color: #f59e0b; } /* Amber */
.overall-score-container.weak { border-left-color: #f97316; } /* Orange */
.overall-score-container.crisis { border-left-color: #ef4444; } /* Red */

.score-value {
    font-size: 24px;
    margin-bottom: 16px;
}

.score-value span {
    font-weight: 500;
}

.score-value.excellent { color: #059669; }
.score-value.good { color: #2563eb; }
.score-value.developing { color: #d97706; }
.score-value.weak { color: #ea580c; }
.score-value.crisis { color: #dc2626; }

.score-interpretation {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

#wp-quiz-results h3 {
    margin-bottom: 24px;
    color: #374151;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.section-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.section-result {
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.section-result h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 16px;
}

.section-score {
    font-size: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.section-score span {
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

.section-score.excellent span { color: #059669; }
.section-score.good span { color: #2563eb; }
.section-score.developing span { color: #d97706; }
.section-score.weak span { color: #ea580c; }
.section-score.crisis span { color: #dc2626; }
