/* Classic Quiz Styles */
body {
    background: #e8f0f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qrs-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qrs-quiz-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.qrs-quiz-container h3 {
    color: #444;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Contact Form */
.qrs-contact-form {
    margin-bottom: 30px;
}

.qrs-contact-fields {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.qrs-field {
    display: flex;
    flex-direction: column;
}

.qrs-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.qrs-field .required {
    color: #e74c3c;
}

.qrs-field input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.qrs-field input:focus {
    outline: none;
    border-color: #3498db;
}

/* Questions */
.qrs-question {
    display: none;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.qrs-question.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Progress Indicator */
.qrs-progress-indicator {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Quiz Icon */
.qrs-quiz-icon {
    text-align: center;
    margin: 20px 0 30px;
    font-size: 48px;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrs-question-header {
    margin-bottom: 30px;
    text-align: center;
}

.qrs-question-title {
    display: block;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.qrs-emoji {
    font-size: 28px;
}

.qrs-question-image {
    margin-top: 15px;
}

.qrs-question-image img {
    border-radius: 8px;
    max-width: 300px;
    height: auto;
}

/* Answers */
.qrs-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.qrs-answer-option {
    position: relative;
}

.qrs-answer-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.qrs-answer-label:hover {
    border-color: #9b59b6;
    background: #f8f4fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
}

.qrs-answer-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qrs-answer-input:checked + .qrs-answer-content {
    font-weight: 600;
    color: #9b59b6;
}

.qrs-answer-label:has(.qrs-answer-input:checked) {
    border-color: #9b59b6;
    background: #f3e5f5;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.qrs-answer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.qrs-answer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.qrs-answer-label:has(.qrs-answer-input:checked) .qrs-answer-image {
    border-color: #9b59b6;
}

.qrs-answer-text {
    font-size: 16px;
    color: #333;
    margin-top: 8px;
}

/* Fill in the blank */
.qrs-answer-fill {
    margin-top: 10px;
}

.qrs-fill-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.qrs-fill-input:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.qrs-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qrs-btn-primary {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
}

.qrs-btn-primary:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.qrs-btn-secondary {
    background: #e0e0e0;
    color: #666;
    border: none;
}

.qrs-btn-secondary:hover {
    background: #d0d0d0;
    color: #555;
}

.qrs-quiz-actions,
.qrs-recommendation-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

/* Results */
.qrs-quiz-results,
.qrs-recommendation-results {
    text-align: center;
    padding: 40px;
}

.qrs-results-content {
    margin-top: 30px;
}

.qrs-score {
    font-size: 48px;
    font-weight: bold;
    color: #27ae60;
    margin: 20px 0;
}

#qrs-final-score {
    color: #e74c3c;
}

.qrs-message {
    font-size: 20px;
    color: #555;
    margin-top: 20px;
}

/* Loading */
.qrs-loading {
    text-align: center;
    padding: 60px 20px;
}

.qrs-loading p {
    font-size: 20px;
    color: #3498db;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error State */
.qrs-error {
    padding: 20px;
    background: #ffe6e6;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    color: #c0392b;
}

.qrs-error p {
    margin: 10px 0;
}

.qrs-error strong {
    color: #e74c3c;
}

.qrs-no-questions {
    padding: 40px 20px;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .qrs-quiz-container {
        padding: 20px;
        margin: 20px auto;
    }

    .qrs-quiz-container h2 {
        font-size: 24px;
    }

    .qrs-question-title {
        font-size: 20px;
    }

    .qrs-answers {
        grid-template-columns: 1fr;
    }

    .qrs-answer-label {
        padding: 15px;
    }

    .qrs-quiz-actions,
    .qrs-recommendation-actions {
        flex-direction: column;
    }

    .qrs-btn {
        width: 100%;
    }
}