/* Quiz Styles */
.wazzup-quiz {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wazzup-quiz h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.quiz-description {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.quiz-step {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    background: #fff;
}

.quiz-step.unanswered {
    border-color: #e74c3c;
    animation: pulse 1s;
}

@keyframes pulse {
    0% { border-color: #e74c3c; }
    50% { border-color: #fff; }
    100% { border-color: #e74c3c; }
}

.quiz-step h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Quiz Options with Images */
.quiz-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.quiz-option:hover {
    background: #f8f9fa;
    border-color: #bdc3c7;
    transform: translateX(5px);
}

.quiz-option.selected {
    background: #e8f4fc;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
}

.quiz-option-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.quiz-option.selected .quiz-option-image {
    border-color: #3498db;
    transform: scale(1.05);
}

.quiz-option-text {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 500;
}

/* Buttons */
.quiz-next-btn {
    display: block;
    margin: 25px auto 0;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-next-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.quiz-submit-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-submit-btn:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.quiz-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Styles */
.quiz-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

.quiz-loading {
    text-align: center;
    padding: 30px;
    color: #3498db;
    font-size: 1.1em;
    background: #e8f4fc;
    border-radius: 8px;
}

.quiz-success {
    text-align: center;
    padding: 30px;
    color: #27ae60;
    background: #d4edda;
    border-radius: 8px;
    font-size: 1.2em;
    border: 1px solid #c3e6cb;
}

.quiz-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Shake animation for unanswered */
.quiz-option.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Results Page - Match Poll Style */
.wazzup-quiz-results {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.wazzup-quiz-results h3 {
    color: white;
    border-bottom: none;
    font-size: 2em;
    margin-bottom: 20px;
}

.quiz-score {
    font-size: 1.5em;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Thank You Message - Clean Poll Style */
.wazzup-quiz-thanks {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.wazzup-quiz-thanks h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.thank-you-message {
    margin-top: 20px;
}

.thank-you-message h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #3498db;
    font-weight: 600;
}

.thank-you-message p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-option {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .quiz-option-image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
    }
    
    .quiz-option input[type="radio"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .quiz-next-btn,
    .quiz-submit-btn {
        width: 100%;
    }
}

/* Button visibility should be controlled by JS */
.quiz-next-btn,
.quiz-submit-btn {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Hide via JavaScript - no !important needed */
.quiz-next-btn.hidden,
.quiz-submit-btn.hidden {
    display: none;
}