.car-selector-inline {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-width: 540px;
  margin: 1rem auto;
}

.car-selector-inline h3 {
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.car-selector-inline .form-group {
  margin-bottom: 1rem;
}

.car-selector-inline label {
  display: block;
  margin-bottom: .25rem;
  font-weight: 600;
}

.car-selector-inline select {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.cs-btn {
  display: inline-block;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}
.cs-btn-primary {
  background: var(--et_primary-color, #2c74f5);
  border-color: var(--et_primary-color, #2c74f5);
  color: #fff;
}


/** horizontal view **/
.car-selector-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end; /* aligns selects and button nicely */
  gap: 1rem; /* space between fields */
  max-width: 100%; /* allow wider layout */
}

.car-selector-horizontal .form-group {
  margin-bottom: 0;        /* remove vertical spacing */
  flex: 0;                 /* each field grows evenly */
  min-width: 300px;        /* prevents fields from being too narrow */
}

.car-selector-horizontal label {
  display: inline-block;   /* keep label above select if needed */
  margin-right: 0.5rem;
  margin-bottom: 0;
  font-weight: 600;
  color: #fff;
}

.car-selector-horizontal select {
  width: 100%;              /*let them fill available space */
}

.car-selector-horizontal .cs-btn {
  flex: 0 0 auto;          /* button keeps its natural width */
  width: auto;             /* no full-width button */
}

.car-selector-horizontal .cs-btn-primary:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive for Horizontal - Stacks everything on small screens */
@media (max-width: 767px) {
  .car-selector-horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  
  .car-selector-horizontal .fields-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .car-selector-horizontal .form-group {
    margin-bottom: 1rem;
    flex: none; /* Reset to full width on mobile */
    min-width: auto;
    max-width: none;
  }
  
  .car-selector-horizontal .cs-btn {
    width: 100%; /* Full width on mobile */
    align-self: stretch;
  }
}
