/* Main Quiz Container */
.simple-quiz-container-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    max-width: 700px;
    margin: 2em auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Start Screen Styles */
#quiz-start-screen { padding: 0; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; padding: 30px; }
.quiz-start-header h2 { font-size: 2.5em; margin: 0; }
.quiz-start-header p { font-size: 1.2em; opacity: 0.8; }
.quiz-notification { padding: 15px; margin-bottom: 20px; border-radius: 5px; font-weight: bold; background-color: #ffcdd2; color: #c62828; border: 1px solid #ef9a9a; }
.quiz-notification.info { background-color: #e1f5fe; color: #0277bd; border: 1px solid #81d4fa; }
.sq-stat-boxes { display: flex; justify-content: center; gap: 15px; margin: 30px 0; }
.sq-stat-box { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 15px 20px; border-radius: 8px; text-align: center; flex-basis: 150px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sq-stat-box .stat-number { font-size: 2.5em; font-weight: bold; }
.sq-stat-box .stat-label { font-size: 0.8em; text-transform: uppercase; opacity: 0.8; }
.quiz-language-selector { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 20px; margin: 20px 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quiz-language-selector h3 { margin: 0 0 15px 0; text-align: center; }
.lang-options { display: flex; justify-content: center; gap: 15px; }
.lang-option { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 1em; transition: all 0.2s ease; }
.lang-option.active { background: white; color: #764ba2; font-weight: bold; }
.quiz-user-welcome-area { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 20px; margin: 20px 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.welcome-message.logged-in p { font-size: 1.2em; margin: 0; }
.guest-form label { display: block; text-align: left; margin-bottom: 5px; font-weight: bold; }
.guest-form label span { font-weight: normal; opacity: 0.8; font-size: 0.9em; }
.guest-form input { width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.2); border-radius: 5px; color: white; margin-bottom: 15px; font-size: 1em; }
.guest-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.welcome-message.guest h3 { margin: 0 0 15px 0; text-align: left; }
#start-quiz-btn { width: 100%; padding: 15px; font-size: 1.2em; margin-top: 10px; background-color: #ffffff; color: #764ba2; }
#start-quiz-btn:hover { background-color: #f0f0f0; }

/* Quiz Content Styles */
.quiz-header { border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 20px; color: #555; display: flex; justify-content: space-between; align-items: center; }
#quiz-question-counter { margin: 0; font-size: 1em; font-weight: 600; }
#quiz-timer { font-size: 1.1em; font-weight: bold; color: #d32f2f; }
#quiz-question-area { margin-bottom: 20px; }
#quiz-question-text { font-size: 1.5em; font-weight: 600; margin: 0 0 20px 0; color: #333; line-height: 1.4; }
#quiz-options-container .quiz-option { display: block; background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 15px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s ease-in-out; }
#quiz-options-container .quiz-option:hover { border-color: #2271b1; box-shadow: 0 0 5px rgba(34,113,177,0.2); }
#quiz-options-container .quiz-option.selected { border-color: #2271b1; background-color: #f0f8ff; font-weight: bold; }
#quiz-options-container input[type="radio"] { margin-right: 10px; }
.quiz-button { background-color: #2271b1; color: #fff; border: none; padding: 12px 25px; font-size: 1em; font-weight: bold; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
.quiz-button:hover { background-color: #1d5f96; }
.quiz-footer { text-align: right; }

/* Results Screen */
#quiz-results-screen { text-align: center; position: relative; z-index: 10; padding: 20px; }
#quiz-results-title { font-size: 2.5em; margin-bottom: 10px; }
#quiz-results-score { font-size: 1.5em; font-weight: bold; color: #2271b1; }
#quiz-results-message { font-size: 1.2em; margin-top: 5px; }
#quiz-results-personal-info { margin: 20px 0; padding: 15px; background-color: #e3f2fd; border-radius: 5px; color: #1e88e5; font-size: 1em; }
#quiz-results-buttons { margin-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.quiz-button.secondary { background-color: transparent; color: #2271b1; border: 2px solid #2271b1; }
.quiz-button.secondary:hover { background-color: #e3f2fd; }
#quiz-special-offer { margin-top: 30px; padding: 20px; background: #fff; border-radius: 5px; border: 1px solid #ddd; text-align: left; }
#quiz-special-offer h4 { margin-top: 0; }

/* Answer Review Screen */
#quiz-review-screen { padding: 20px; }
#quiz-review-screen h2 { text-align: center; margin-bottom: 20px; }
.review-item { background: #fff; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 15px; padding: 15px; }
.review-item h4 a { text-decoration: none; color: #2271b1; }
.review-item h4 a:hover { text-decoration: underline; }
.review-answer { margin-top: 10px; font-size: 0.9em; }
.review-answer.incorrect { color: #d32f2f; }
.review-answer.incorrect::before { content: '✗ '; font-weight: bold; }
.review-answer.correct { color: #2e7d32; }
.review-answer.correct::before { content: '✓ '; font-weight: bold; }

/* Confetti */
#quiz-confetti-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.confetti { position: absolute; width: 10px; height: 10px; opacity: 0; animation: confetti-fall 4s ease-out forwards; }
@keyframes confetti-fall { 0% { transform: translateY(-100px) rotateZ(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotateZ(720deg); opacity: 0; } }
