/*
=====================================================================================
SIMPLE SAVE MESSAGE - ADD TO ANY QUIZ QUESTION
=====================================================================================

SETUP INSTRUCTIONS:
1. Go to Block 2 → Pick ANY one of your quiz questions
2. Question Options → Add JavaScript
3. Paste this code
4. Save

This will show the save message on the quiz block regardless of question detection.

=====================================================================================
*/

Qualtrics.SurveyEngine.addOnload(function() {
    
    // Simple approach - always show save message
    console.log('Adding save message to quiz page');
    
    // Create save reminder message after page loads
    setTimeout(() => {
        const saveMessage = document.createElement('div');
        saveMessage.id = 'quiz-save-message';
        saveMessage.innerHTML = '<strong>Important:</strong> Please click "Next" when finished to save your answers.';
        saveMessage.style.cssText = `
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            max-width: none !important;
            box-sizing: border-box !important;
            padding: 12px 20px !important;
            border-radius: 0 !important;
            font-size: 16px !important;
            font-weight: normal !important;
            background: #007bff !important;
            color: white !important;
            text-align: center !important;
            z-index: 999999 !important;
            box-shadow: 0 -2px 6px rgba(0,0,0,0.2) !important;
            border-top: 2px solid #0056b3 !important;
        `;
        
        // Make sure it doesn't already exist
        if (!document.getElementById('quiz-save-message')) {
            document.body.appendChild(saveMessage);
            console.log('Save reminder message added successfully');
        }
        
    }, 1000); // Show after 1 second
    
});