/* Vehicle Search Form Styles */
.vehicle-search-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vehicle-search-form h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.search-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

.search-field select:focus {
    outline: none;
    border-color: #0073aa;
}

.search-field select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.search-field button {
    width: 100%;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.search-field button:hover {
    background: #005177;
}

/* Results */
#search-results {
    margin-top: 30px;
}

.results-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    min-height: 44px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #0073aa;
    margin: 12px 0;
}

.product-button {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background: #0073aa;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    margin-top: 12px;
    transition: background 0.3s;
}

.product-button:hover {
    background: #005177;
}

/* Loading and Messages */
.loading,
.no-results,
.error {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loading p {
    font-size: 18px;
    color: #666;
}

.no-results p {
    font-size: 16px;
    color: #999;
}

.error p {
    font-size: 16px;
    color: #d63638;
}

/* Responsive */
@media (max-width: 768px) {
    .search-fields {
        flex-direction: column;
    }
    
    .search-field {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
