/* Frontend Quiz Styles */
.ai-quiz-container-v5 {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20,20,40,0.06);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.ai-progress-v5 {
    height: 12px;
    background: #f1f3f5;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ai-progress-fill-v5 {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7b61ff, #9b76ff);
    transition: width .35s ease;
}

.ai-progress-text-v5 {
    text-align: right;
    color: #333;
    font-size: 13px;
    margin-bottom: 10px;
}

.ai-step-v5 {
    display: none;
}

.ai-step-v5 h3 {
    margin: 6px 0 10px;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
}

.ai-step-v5 label {
    display: block;
    margin: 12px 0;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #f3f3f6;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ai-step-v5 label:hover {
    border-color: #7b61ff;
    background: #f8f7ff;
    transform: translateY(-1px);
}

.ai-step-v5 input[type="checkbox"]:checked + label,
.ai-step-v5 input[type="radio"]:checked + label {
    border-color: #7b61ff;
    background: #f8f7ff;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.15);
}

.ai-step-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.ai-nav-v5 {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

button.button, .ai-nav-v5 button {
    background: #7b61ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
}

button.button:hover, .ai-nav-v5 button:hover {
    background: #6a52e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.3);
}

.ai-prev-v5 {
    background: #6c757d !important;
}

.ai-prev-v5:hover {
    background: #5a6268 !important;
}

.ai-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ai-card {
    width: calc(33.333% - 14px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f5f5fb;
    box-shadow: 0 6px 18px rgba(17,17,50,0.04);
    transition: all 0.3s ease;
    background: #fff;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17,17,50,0.1);
}

.ai-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ai-card-body {
    padding: 16px;
}

.ai-card-body h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.ai-price {
    font-weight: 700;
    margin-top: 8px;
    color: #7b61ff;
    font-size: 18px;
}

.ai-card-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ai-card-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.ai-card-actions input[type="checkbox"] {
    margin: 0;
}

.ai-loading-v5 {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.ai-actions-v5 {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.option-label {
    font-weight: 500;
    font-size: 16px;
    color: #1d2327;
}

.option-desc {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 4px;
    font-style: italic;
}

@media (max-width: 800px) {
    .ai-card {
        width: calc(50% - 10px);
    }
    
    .ai-quiz-container-v5 {
        padding: 16px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .ai-card {
        width: 100%;
    }
    
    .ai-progress-text-v5 {
        text-align: left;
    }
    
    .ai-nav-v5 {
        flex-direction: column;
    }
    
    .ai-actions-v5 {
        flex-direction: column;
    }
    
    .ai-step-v5 label {
        padding: 12px;
    }
}