:root {
    --nxcv-color-primary: #0073aa; /* Fallback primary color */
}

.quiz-container {
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.5;
    color: #333;
}

.quiz-progress-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    background-color: var(--nxcv-color-primary);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    display: none;
    border: 1px solid #eee;
}

.quiz-card.active {
    display: block;
}

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

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quiz-section-badge {
    background: var(--nxcv-color-primary);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-step-counter {
    color: #888;
    font-size: 1.2rem;
    font-weight: 500;
}

.quiz-question-text {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.4;
    font-weight: 700;
    color: #1d2327;
}

.quiz-options-list {
    margin-bottom: 2.5rem;
}

.quiz-option-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option-item:hover {
    background-color: #fafafa;
    border-color: #ddd;
}

.quiz-option-item:has(.quiz-option-input:checked) {
    border-color: var(--nxcv-color-primary);
    background-color: rgba(0, 115, 170, 0.03);
}

.quiz-option-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 1.25rem;
    cursor: pointer;
    accent-color: var(--nxcv-color-primary);
}

.quiz-option-label {
    font-size: 1em;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.quiz-btn {
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nxcv-color-primary) !important;
}

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

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-btn-next, .quiz-btn-submit {
    background-color: var(--nxcv-color-primary);
    color: #fff;
}

.quiz-btn-next:hover, .quiz-btn-submit:hover {
    filter: brightness(1.1);
}

.quiz-btn-prev {
    background-color: var(--nxcv-color-white) !important;
    color: #666;
}

.quiz-btn-prev:hover {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ddd;
}

.quiz-btn-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.2s;
}

.quiz-btn-link:hover {
    color: #333;
    text-decoration: underline;
}

.quiz-final-title {
    margin: 0;
    font-size: 1.75rem;
    text-align: center;
    color: #1d2327;
}

.quiz-final-description {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
}

.quiz-form-group {
    margin-bottom: 1.5rem;
}

.quiz-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    /* letter-spacing: 0.03em; */
    color: #555;
}

.quiz-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.quiz-control:focus {
    outline: none;
    border-color: var(--nxcv-color-primary);
}

.quiz-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 2rem 0;
}

.quiz-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--nxcv-color-primary);
}

.quiz-checkbox-label {
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.quiz-footer-final {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
}

.quiz-btn-submit {
    width: auto !important;
    padding: 1.1rem;
    font-size: 1.1rem;
}

.quiz-alert {
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    font-weight: 500;
}

.quiz-alert-success {
    background-color: #edfaef;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .quiz-container {
        margin: 1rem;
    }
    .quiz-card {
        padding: 1.5rem;
    }
    .quiz-question-text {
        font-size: 1.2rem;
    }
}
