/* Car Search Box Styles */
.car-search-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 30px 0;
}

.car-search-box .form-select {
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  height: 50px;
  transition: all 0.3s ease;
}

.car-search-box .form-select:focus {
  border-color: #ee6c4d;
  box-shadow: 0 0 0 0.2rem rgba(238, 108, 77, 0.25);
}

/* Select2 car search integration */
.car-search-box .select2-container .select2-selection--single {
  height: 50px !important;
  border: 2px solid #f0f0f0 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.car-search-box .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 15px !important;
  color: #666 !important;
  font-size: 14px !important;
}

.car-search-box .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 10px !important;
}

.car-search-box .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #ee6c4d !important;
  box-shadow: 0 0 0 0.2rem rgba(238, 108, 77, 0.25) !important;
}

.car-search-box .select2-dropdown {
  border: 2px solid #f0f0f0 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.car-search-box .select2-results__option--highlighted {
  background-color: #ee6c4d !important;
  color: white !important;
}

.car-search-box .select2-results__option {
  padding: 10px 15px !important;
  font-size: 14px !important;
}

/* Auction checkboxes styling */
.car-search-box .auctions label {
  cursor: pointer;
  user-select: none;
  padding: 8px 15px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #fff;
}

.car-search-box .auctions label:hover {
  border-color: #ee6c4d;
  transform: translateY(-1px);
}

.car-search-box .auctions label input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #ee6c4d;
}

.car-search-box .auctions label.active {
  border-color: #ee6c4d;
  background: rgba(238, 108, 77, 0.1);
}

/* Search button */
.car-search-box .btn-orange {
  background: linear-gradient(135deg, #ee6c4d, #ff8a65);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  min-width: 130px;
}

.car-search-box .btn-orange:hover {
  background: linear-gradient(135deg, #d85a3f, #ee6c4d);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 108, 77, 0.3);
}

/* Loading states */
.car-search-loading {
  position: relative;
}

.car-search-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ee6c4d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Select2 container customization for car search */
.car-search-box .select2-container {
  width: 100% !important;
}

.car-search-box .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999 !important;
}

/* Disabled select styling */
.car-search-box .select2-container--disabled .select2-selection--single {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .car-search-box {
    padding: 20px;
  }
  
  .car-search-box .auctions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .car-search-box .auctions label {
    width: 100% !important;
    text-align: center;
  }
  
  .car-search-box .btn-orange {
    width: 100% !important;
  }
}
