/* Vendor Recommendation Form Styles */
#vendor-recommendation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#vendor-recommendation-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.form-step h4 {
    color: #444;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-group label:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.form-group label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.form-group label input[type="radio"]:checked + label,
.form-group label:has(input[type="radio"]:checked) {
    background: #007cba;
    color: white;
    border-color: #005a87;
}

/* Form Navigation Buttons */
.btn-next, .btn-prev, .btn-submit {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    transition: background 0.3s ease;
}

.btn-next:hover, .btn-prev:hover, .btn-submit:hover {
    background: #005a87;
}

.btn-prev {
    background: #6c757d;
}

.btn-prev:hover {
    background: #545b62;
}

.btn-submit {
    background: #28a745;
    font-weight: bold;
    padding: 15px 30px;
}

.btn-submit:hover {
    background: #218838;
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Results Section */
#recommendations-results {
    margin-top: 40px;
}

#recommendations-results h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vendor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.top-match {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.vendor-thumbnail {
    text-align: center;
    margin-bottom: 15px;
}

.vendor-thumbnail img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
}

.vendor-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.vendor-info h4 a {
    color: #007cba;
    text-decoration: none;
}

.vendor-info h4 a:hover {
    text-decoration: underline;
}

.vendor-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 14px;
}

.vendor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.vendor-website {
    color: #28a745;
    text-decoration: none;
    font-size: 14px;
}

.vendor-website:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.recommendations-cta {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 30px;
}

.recommendations-cta h4 {
    color: #333;
    margin-bottom: 15px;
}

.recommendations-cta p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #vendor-recommendation-form {
        padding: 20px;
        margin: 10px;
    }
    
    .vendor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group label {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .vendor-actions {
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}