/* Supplement Advisor Frontend Styles */

.sa-wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sa-wizard-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

/* Progress Bar */
.sa-progress-container {
    margin-bottom: 30px;
}

.sa-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sa-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.sa-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Question Steps */
.sa-question-step {
    animation: fadeIn 0.3s ease;
}

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

.sa-question-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* Answer Options */
.sa-answers-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.sa-answer-option {
    position: relative;
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.sa-answer-option:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.sa-answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sa-answer-option.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.sa-answer-label {
    display: block;
    font-size: 16px;
    color: #333;
    padding-left: 30px;
    position: relative;
}

.sa-answer-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.sa-answer-option.selected .sa-answer-label:before {
    border-color: #4CAF50;
    background: #4CAF50;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Navigation Buttons */
.sa-navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sa-btn-primary {
    background: #4CAF50;
    color: #fff;
}

.sa-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.sa-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.sa-btn-secondary:hover {
    background: #e0e0e0;
}

.sa-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.sa-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Loading State */
.sa-loading {
    text-align: center;
    padding: 60px 20px;
}

.sa-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results */
.sa-results {
    animation: fadeIn 0.5s ease;
}

.sa-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.sa-results-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.sa-results-intro {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.sa-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sa-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.sa-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.sa-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.sa-product-badge .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.sa-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-product-content {
    padding: 20px;
}

.sa-product-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.sa-product-title a {
    color: #333;
    text-decoration: none;
}

.sa-product-title a:hover {
    color: #4CAF50;
}

.sa-product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sa-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.sa-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
}

.sa-add-to-cart {
    padding: 10px 20px;
    font-size: 14px;
}

.sa-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Appointment CTA */
.sa-appointment-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    color: #fff;
}

.sa-cta-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sa-cta-content .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.sa-cta-text {
    flex: 1;
}

.sa-cta-text h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #fff;
}

.sa-cta-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

.sa-appointment-cta .sa-btn-secondary {
    background: #fff;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
}

.sa-appointment-cta .sa-btn-secondary:hover {
    background: #f5f5f5;
}

.sa-results-actions {
    text-align: center;
    margin-top: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sa-wizard {
        padding: 20px;
    }
    
    .sa-wizard-title {
        font-size: 22px;
    }
    
    .sa-question-title {
        font-size: 18px;
    }
    
    .sa-products-grid {
        grid-template-columns: 1fr;
    }
    
    .sa-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sa-navigation-buttons {
        flex-direction: column;
    }
    
    .sa-btn {
        width: 100%;
        justify-content: center;
    }
}
