/**
 * CEU Quiz Styles
 */

/* CEU Selection Page */
.ceu-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ceu-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.ceu-selection-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #002B45;
}

.ceu-selection-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.ceu-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ceu-option-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.ceu-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #002B45;
}

.ceu-option-card.passed {
    border-color: #46b450;
    background: #f0f9f0;
}

.ceu-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ceu-option-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #002B45;
    line-height: 64px;
}

.ceu-option-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ceu-option-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ceu-option-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.ceu-option-card .ceu-description {
    margin-bottom: 15px;
    min-height: auto;
}


.ceu-description {
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
}

.ceu-status {
    margin-top: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
}

.status-badge.passed {
    background: #46b450;
    color: #fff;
}

.status-badge.not-passed {
    background: #f0f0f0;
    color: #666;
}

.status-badge .checkmark {
    margin-right: 5px;
}

.status-badge .score-display {
    margin: 0;
    font-size: 0.9em;
    font-weight: normal;
    color: inherit;
}

.ceu-start-button {
    display: inline-block;
    padding: 12px 30px;
    background: #002B45;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 10px;
}
button.ceu-start-button.start {
    font-size: 1rem;
    padding: 10px 25px;
}p.ceu-description {
    margin: 0;
    margin-bottom: 0 !important;
}
.ceu-start-button:hover {
    background: #004d73;
    color: #fff;
}

.ceu-start-button.review {
    background: #46b450;
}

.ceu-start-button.review:hover {
    background: #3a9a42;
}
.ceu-option-card h3{
    color: #002B45;
    font-size: 1.025em;}
.ceu-instructions {
    background: #f9f9f9;
    border-left: 4px solid #002B45;
    padding: 20px;
    border-radius: 5px;
    margin-top: 40px;
}

.ceu-instructions h3 {
    margin-top: 0;
    color: #002B45;
}

.ceu-instructions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ceu-instructions li {
    margin: 8px 0;
    color: #666;
}

/* Combined Page Container */
.ceu-quiz-page-container {
    min-height: 100vh;
}

.ceu-selection-section {
    padding: 20px 0;
}

.ceu-quiz-section {
    padding: 20px 0;
    display: none;
}

.ceu-quiz-section.active {
    display: block;
}

/* Quiz Page */
.ceu-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-to-selection-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.back-to-selection-btn:hover {
    background: #e0e0e0;
    border-color: #002B45;
    color: #002B45;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.quiz-header h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #002B45;
}

.quiz-status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
}

.quiz-status.passed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quiz-status.attempts {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.quiz-status .status-icon {
    margin-right: 8px;
}

.quiz-instructions {
    color: #666;
    font-size: 1.1em;
    margin-top: 15px;
}

.quiz-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.questions-container {
    margin-bottom: 30px;
}

.question-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.question-block:last-child {
    border-bottom: none;
}

.question-header {
    margin-bottom: 15px;
}

.question-number {
    display: inline-block;
    background: #002B45;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.question-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.question-options {
    margin-left: 20px;
}

.option-label {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    background: #f5f5f5;
    border-color: #002B45;
}

.option-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.option-label input[type="radio"]:checked + .option-letter {
    font-weight: bold;
    color: #002B45;
}

.option-label:has(input[type="radio"]:checked) {
    background: #e8f4f8;
    border-color: #002B45;
}

.option-letter {
    font-weight: bold;
    margin-right: 8px;
    color: #002B45;
}

.option-text {
    color: #333;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #002B45;
    color: #fff;
}

.btn-primary:hover {
    background: #004d73;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Quiz Results */
.quiz-results {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.quiz-results.hidden {
    display: none;
}

.results-content h2 {
    text-align: center;
    color: #002B45;
    margin-bottom: 30px;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 8px solid #e0e0e0;
    position: relative;
}

.score-circle.passed {
    border-color: #46b450;
}

.score-circle.failed {
    border-color: #dc3232;
}

.score-percentage {
    font-size: 2.5em;
    font-weight: bold;
    color: #002B45;
}

.score-circle.passed .score-percentage {
    color: #46b450;
}

.score-circle.failed .score-percentage {
    color: #dc3232;
}

.score-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.score-details {
    text-align: center;
}

.score-details p {
    margin: 10px 0;
    font-size: 1.1em;
}

.passing-info {
    color: #666;
    font-size: 0.9em;
}

.quiz-feedback {
    margin: 30px 0;
}

.feedback-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.feedback-message.passed {
    background: #d4edda;
    border: 2px solid #46b450;
}

.feedback-message.failed {
    background: #f8d7da;
    border: 2px solid #dc3232;
}

.feedback-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feedback-message.passed .feedback-icon {
    color: #46b450;
}

.feedback-message.failed .feedback-icon {
    color: #dc3232;
}

.feedback-message h3 {
    margin: 15px 0;
    color: #333;
}

.feedback-message p {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.question-feedback {
    margin-top: 30px;
}

.question-feedback h4 {
    color: #002B45;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.feedback-question {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.feedback-question.correct {
    background: #f0f9f0;
    border-color: #46b450;
}

.feedback-question.incorrect {
    background: #fff5f5;
    border-color: #dc3232;
}

.feedback-question-header {
    margin-bottom: 15px;
}

.feedback-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 10px;
}

.feedback-question.correct .feedback-status {
    background: #46b450;
    color: #fff;
}

.feedback-question.incorrect .feedback-status {
    background: #dc3232;
    color: #fff;
}

.feedback-answer {
    margin-left: 20px;
}

.feedback-answer p {
    margin: 8px 0;
    color: #666;
}

.explanation {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
    font-style: italic;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .ceu-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ceu-options-grid {
        grid-template-columns: 1fr;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .score-display {
        flex-direction: column;
        gap: 20px;
    }

    .results-actions {
        flex-direction: column;
    }
}

