/* DMV Quiz Widget Styles */
.dmv-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Open Sans', Roboto, sans-serif;
    border: 1px solid #e9ecef;
}

.dmv-quiz-header {
    background: linear-gradient(135deg, #029fe7 0%, #1771e6 100%);
    color: #ffffff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dmv-quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmv-quiz-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dmv-quiz-stats {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.dmv-quiz-stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.dmv-progress-bar-wrap {
    height: 6px;
    background: #e9ecef;
    width: 100%;
}

.dmv-progress-bar {
    height: 100%;
    background: #f9a0bf;
    width: 0%;
    transition: width 0.3s ease;
}

.dmv-quiz-body {
    padding: 35px;
}

/* Category Selection Screen */
.dmv-selection-screen {
    text-align: center;
}

.dmv-selection-title {
    color: #333;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.dmv-selection-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
}

.dmv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dmv-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
}

.dmv-card:hover {
    border-color: #029fe7;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(2, 159, 231, 0.12);
    background: #ffffff;
}

.dmv-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #029fe7;
}

.dmv-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.dmv-card-desc {
    font-size: 0.88rem;
    color: #6c757d;
    line-height: 1.4;
}

.dmv-card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e7f5ff;
    color: #029fe7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Question Area */
.dmv-question-box {
    margin-bottom: 25px;
}

.dmv-question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 20px;
}

.dmv-question-image-wrap {
    text-align: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.dmv-question-image {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Options */
.dmv-options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dmv-option-btn {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.dmv-option-prefix {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dmv-option-btn:hover:not(:disabled) {
    border-color: #029fe7;
    background: #f0f7ff;
}

.dmv-option-btn:hover:not(:disabled) .dmv-option-prefix {
    background: #029fe7;
    color: #ffffff;
}

.dmv-option-btn.correct {
    border-color: #2b8a3e !important;
    background: #ebfbee !important;
    color: #2b8a3e !important;
}

.dmv-option-btn.correct .dmv-option-prefix {
    background: #2b8a3e !important;
    color: #ffffff !important;
}

.dmv-option-btn.incorrect {
    border-color: #c92a2a !important;
    background: #fff5f5 !important;
    color: #c92a2a !important;
}

.dmv-option-btn.incorrect .dmv-option-prefix {
    background: #c92a2a !important;
    color: #ffffff !important;
}

.dmv-option-btn:disabled {
    cursor: default;
}

/* Explanation Box */
.dmv-explanation-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.dmv-explanation-box.correct-bg {
    background: #ebfbee;
    border-left: 5px solid #2b8a3e;
    color: #2b8a3e;
}

.dmv-explanation-box.incorrect-bg {
    background: #fff5f5;
    border-left: 5px solid #c92a2a;
    color: #c92a2a;
}

.dmv-explanation-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action Controls */
.dmv-quiz-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.dmv-btn-secondary {
    background: #e9ecef;
    color: #495057;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dmv-btn-secondary:hover {
    background: #dee2e6;
}

.dmv-btn-primary {
    background: #029fe7;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(2, 159, 231, 0.25);
}

.dmv-btn-primary:hover {
    background: #1771e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 159, 231, 0.35);
}

/* Results Screen */
.dmv-results-screen {
    text-align: center;
    padding: 20px 10px;
}

.dmv-results-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dmv-score-pass {
    background: linear-gradient(135deg, #37b24d 0%, #2b8a3e 100%);
}

.dmv-score-fail {
    background: linear-gradient(135deg, #f03e3e 0%, #c92a2a 100%);
}

.dmv-results-score-value {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.dmv-results-score-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 4px;
}

.dmv-results-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #212529;
}

.dmv-results-desc {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 550px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

.dmv-results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .dmv-quiz-body {
        padding: 20px 15px;
    }
    .dmv-quiz-header {
        padding: 15px 20px;
    }
    .dmv-question-text {
        font-size: 1.1rem;
    }
    .dmv-option-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Resume Banner */
.dmv-resume-banner {
    background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%);
    border: 2px solid #74c0fc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: left;
}

.dmv-resume-info {
    flex: 1;
    min-width: 250px;
}

.dmv-resume-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1864ab;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dmv-resume-desc {
    font-size: 0.9rem;
    color: #364fc7;
}

.dmv-resume-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dmv-btn-resume {
    background: #1c7ed6;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dmv-btn-resume:hover {
    background: #1971c2;
}

.dmv-btn-discard {
    background: transparent;
    color: #e03131;
    border: 1px solid #ffc9c9;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dmv-btn-discard:hover {
    background: #fff5f5;
    border-color: #ffa8a8;
}

