:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --correct-color: #dc3545;
    --text-color: #343a40;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

#quiz-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 700px;
    transition: all 0.5s ease-in-out;
}

/* Screen Transitions */
.quiz-screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* User Info and Inputs */
.user-info-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-size: 14px; /* Smaller input text */
}

.user-info-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Buttons - smaller */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px; /* Slightly smaller padding */
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px; /* Reduced from 16px */
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Question Styling - SMALLER FONTS */
.question-item {
    padding: 20px 0;
}

.question-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1em; /* Reduced from 1.2em */
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.choice-label {
    background-color: var(--secondary-color);
    border: 1px solid #dee2e6;
    padding: 12px; /* Slightly smaller padding */
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    font-size: 13px; /* Smaller question option text */
    line-height: 1.3;
}

.choice-label:hover {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}

/* Hidden radio buttons */
.choice-input {
    display: none;
}

/* Visually selected choice */
.choice-input:checked + .choice-label {
    background-color: #cce5ff;
    border-color: var(--primary-color);
    font-weight: bold;
}

/* Navigation buttons */
.navigation-buttons {
    margin-top: 25px;
    text-align: right;
}

/* Progress Bar */
.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

/* Messages */
.error-message {
    color: var(--correct-color);
    margin-top: 5px;
    font-weight: bold;
    font-size: 13px;
}

.email-note {
    font-style: italic;
    font-size: 0.85em; /* Slightly smaller */
    color: #6c757d;
    margin-top: 20px;
}

/* Correct answer highlighting */
.correct-answer-text {
    color: var(--correct-color);
    font-weight: bold;
    font-size: 13px;
}