/* Quiz Modal Styling - Moderne Mollie Style */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quiz-modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: quizModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes quizModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.quiz-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.quiz-header h2 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quiz-close:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: scale(1.1);
}

.quiz-progress {
    padding: 32px 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.quiz-progress-bar {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(0); }
}

.quiz-progress-text {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-content {
    padding: 40px;
}

.quiz-question {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 32px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-option:hover::before {
    left: 100%;
}

.quiz-option:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
}

.quiz-option.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
}

.quiz-option input[type="radio"]:checked + .option-radio {
    border-color: #10b981;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.quiz-option input[type="radio"]:checked + .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.quiz-option-text {
    font-size: 1.125rem;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 500;
    width: 100%;
    transition: color 0.3s ease;
}

.quiz-option.selected .quiz-option-text {
    color: #0f172a;
    font-weight: 600;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px 32px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    gap: 16px;
}

.quiz-btn-primary,
.quiz-btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.quiz-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.quiz-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.quiz-btn-primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.quiz-btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.quiz-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Results Styling - Enhanced */
.quiz-results {
    text-align: center;
}

.quiz-results-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: celebrationBounce 1s ease-out;
}

@keyframes celebrationBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.quiz-results h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 32px 0;
    letter-spacing: -0.02em;
}

.quiz-recommended-package {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.quiz-recommended-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.package-badge {
    position: absolute;
    top: -1px;
    right: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.quiz-recommended-package h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.quiz-package-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.quiz-package-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
}

.quiz-package-price .period {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
}

.quiz-recommended-package .setup-cost {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.quiz-recommended-package .package-description {
    color: #374151;
    margin: 0 0 24px 0;
    line-height: 1.6;
    font-size: 1.125rem;
    font-weight: 500;
}

.package-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.package-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
}

.package-highlights .checkmark {
    color: #10b981;
    font-weight: 700;
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-modal-content {
        width: 95%;
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }
    
    .quiz-header,
    .quiz-progress,
    .quiz-content,
    .quiz-navigation {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .quiz-header h2 {
        font-size: 1.5rem;
    }
    
    .quiz-question {
        font-size: 1.375rem;
    }
    
    .quiz-option {
        padding: 20px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .quiz-btn-primary,
    .quiz-btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .quiz-recommended-package {
        padding: 24px;
    }
    
    .quiz-recommended-package h4 {
        font-size: 1.75rem;
    }
    
    .quiz-package-price .price {
        font-size: 2rem;
    }
}

