/* Quiz Popup Styles */
* {
    box-sizing: border-box;
}

.quiz-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px;
}

.quiz-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.quiz-container {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: 90vh;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: #444;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    line-height: 1;
}

.quiz-close:hover {
    background: #8a2be2;
    color: white;
    transform: rotate(90deg);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-right: 20px;
    padding-left: 20px;
}

.quiz-header h2 {
    color: #4a148c;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
}

.quiz-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    background: #fdfaff;
    border: 2px solid #f0e6ff;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
    color: #4a148c;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    border-color: #8a2be2;
    background: #f8f0ff;
    transform: translateY(-2px);
}

.quiz-option i {
    font-size: 1.1rem;
    color: #ee5a24;
    width: 20px;
    text-align: center;
}

.quiz-result {
    text-align: center;
}

.result-card {
    background: linear-gradient(135deg, #f8f0ff, #fff5f0);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.result-card h3 {
    color: #8a2be2;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.result-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quiz-progress {
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #ee5a24);
    width: 33%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recommendation-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #ee5a24;
    color: white;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Specific Adjustments */
@media screen and (max-width: 480px) {
    .quiz-container {
        padding: 2.5rem 1.2rem 1.5rem 1.2rem;
        border-radius: 20px;
    }

    .quiz-header h2 {
        font-size: 1.4rem;
    }

    .quiz-option {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .quiz-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .result-card {
        padding: 1.5rem 1rem;
    }
}
