/* Quiz Form Styles - Modern, Minimalist Design */
.quiz-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1A1B20; /* Body text color */
}

.quiz-question {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.quiz-question.active {
    display: flex;
}

.quiz-question-number {
    color: #0057FF; /* Primary accent */
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quiz-question-text {
    font-size: 28px;
    font-weight: 700; /* Subtitles are bold */
    color: #0A0A1A; /* Subtitle text color */
    margin-bottom: 40px;
    line-height: 1.4;
}

.quiz-description {
    color: #888;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-style: dotted;
    margin-bottom: 30px;
}

.quiz-options {
    width: 100%;
}

.quiz-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E8F0FF; /* Secondary accent background */
    color: #0A0A1A;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
}

.quiz-option:hover {
    background: #0057FF; /* Primary on hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 255, 0.3);
}

.quiz-option:active {
    transform: translateY(0);
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0057FF; /* Native accent for supported browsers */
}

.quiz-option label {
    cursor: pointer;
    flex-grow: 1;
    text-align: left;
    width: 100%;
}

/* Thank You Page Styles */
.quiz-thank-you {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.quiz-thank-you.active {
    display: flex;
}

.quiz-thank-you-title {
    font-size: 36px;
    font-weight: 700;
    color: #0A0A1A;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-thank-you-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #0A0A1A;
    margin-bottom: 40px;
    text-align: center;
}

.quiz-form-collect {
    width: 100%;
    max-width: 500px;
}

.quiz-form-group {
    margin-bottom: 20px;
}

.quiz-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700; /* Subtitles bold */
    color: #0A0A1A;
    margin-bottom: 8px;
}

.quiz-form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #0057FF; /* Primary border */
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.quiz-form-input:focus {
    outline: none;
    border-color: #0057FF;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15); /* soft focus ring */
}

.quiz-form-input.error {
    border-color: #dc2626;
}

.quiz-form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.quiz-form-checkbox input {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.quiz-form-checkbox-label {
    font-size: 14px;
    color: #1A1B20;
    line-height: 1.5;
}

.quiz-form-checkbox-label a {
    color: #0057FF;
    text-decoration: underline;
}

.quiz-submit-btn {
    width: 100%;
    padding: 18px;
    background: #0057FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-submit-btn:hover {
    background: #004DE0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 255, 0.3);
}

.quiz-submit-btn:active {
    transform: translateY(0);
}

.quiz-submit-btn:disabled {
    background: #E8F0FF;
    color: #1A1B20;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.quiz-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

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

.quiz-loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #0057FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    .quiz-question {
        padding: 30px 15px;
    }
    
    .quiz-question-text {
        font-size: 24px;
    }
    
    .quiz-thank-you-title {
        font-size: 28px;
    }
    
    .quiz-thank-you-subtitle {
        font-size: 16px;
    }
}

