/* bhcar-vendre.css */
/* Custom styles for the [bh_car_vendre] form */

.bhcar-vendre-form-container {
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1)
    ),
    radial-gradient(
      96.73% 78.5% at 1.97% 21.5%,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  @apply flex items-center justify-center p-6 lg:px-12 rounded-[24px] lg:rounded-[80px] max-w-[1344px] border-[rgba(255, 255, 255, 0.2)] border-2 self-center backdrop-blur-[8px];
}

.bhcar-vendre-form {
  @apply flex flex-col lg:flex-row items-center justify-between gap-4 w-full;
}

.bhcar-vendre-form > div,
.bhcar-vendre-form > button {
  @apply flex justify-center items-center w-full lg:h-[52px] lg:w-auto;
}

.bhcar-vendre-number-input {
  @apply flex w-[177px] h-[52px] items-center justify-center bg-white text-sm font-medium uppercase text-black tracking-tight border-0 text-center;
}

.bhcar-vendre-number-input::placeholder {
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -1%;
  text-transform: uppercase;
  color: #000000 !important;
}

.bhcar-vendre-selector-wrapper {
  @apply flex flex-1 text-base font-normal text-white tracking-tight w-full h-[24px];
  position: relative;
}

.bhcar-vendre-selector {
  @apply flex flex-1 w-full py-0 px-3;
  text-align: left;
  background: transparent;
  border: 0;
  appearance: none;
  /* remove arrow */
  -webkit-appearance: none;
  /* remove arrow Chrome */
  -moz-appearance: none;
  /* remove arrow FF */
}

.bhcar-vendre-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transition: all 0.2s ease;
  transform: translateY(-50%);
  pointer-events: none;
}

.bhcar-vendre-arrow-down {
  transform: rotate(180deg);
}

.bhcar-vendre-selector option {
  @apply p-2;
  background-color: #1a1a1a !important;
  color: #ffffff;
  font-size: 14px;
  text-transform: capitalize;
}

.bhcar-vendre-selector:focus {
  border-bottom-color: #ffffff;
  outline: none;
  background-color: transparent !important;
}

.bhcar-vendre-selector:active {
  background-color: transparent !important;
}

.bhcar-vendre-submit {
  @apply flex items-center justify-center gap-2 px-4 py-2 h-[52px] w-full bg-[#E22415] rounded-full;
}

/* Select2 Styles for bhcar-vendre */
.bhcar-vendre-selector-wrapper
  .select2-container--default
  .select2-selection--single {
  background-color: transparent;
  border: none;
  height: auto;
  padding: 0;
}

.bhcar-vendre-selector-wrapper .select2-selection__arrow {
  display: none !important;
}

.bhcar-vendre-selector-wrapper .select2-selection__clear {
  display: none !important;
}

.bhcar-vendre-selector-wrapper .select2-selection__rendered {
  padding: 0 !important;
  height: fit-content;
  color: white;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
}

.bhcar-vendre-select-dropdown {
  background-color: #6c6c6c;
}

.bhcar-vendre-select-dropdown .select2-results__option--selected {
  background-color: #6c6c6c;
}

.bhcar-vendre-select-dropdown .select2-results__option--selectable {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.01em;
  color: #fff;
}

.bhcar-vendre-select-dropdown
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #838383;
}

.bhcar-vendre-select-dropdown .select2-search__field {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 6px;
}

.bhcar-vendre-select-dropdown
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field {
  height: 30px;
  border: none !important;
}

.bhcar-vendre-select-dropdown .select2-results__options::-webkit-scrollbar {
  width: 3px;
}

.bhcar-vendre-select-dropdown
  .select2-results__options::-webkit-scrollbar-track {
  background: #8a8a8a;
}

.bhcar-vendre-select-dropdown
  .select2-results__options::-webkit-scrollbar-thumb {
  background-color: #e22415;
  border-radius: 4px;
}

.bhcar-vendre-pcode-input {
  @apply flex flex-row items-center pl-3 gap-6 w-full h-[24px] flex-none order-1 flex-grow-0;
  background: transparent;
  border: none;
  color: white !important;
  -moz-appearance: textfield;
}

.bhcar-vendre-pcode-input::-webkit-inner-spin-button,
.bhcar-vendre-pcode-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Google Places Autocomplete dropdown */
.pac-container {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  font-family: "Inter", sans-serif !important;
}

/* Form error message styles */
.bhcar-form-error {
  color: #ff4444;
  background: #ffeeee;
  border: 1px solid #ffcccc;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  right: 0;
  width: 100%;
  z-index: 1000;
}

.pac-item {
  color: #ffffff !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
}

.pac-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.pac-item-selected {
  background: rgba(226, 36, 21, 0.2) !important;
  color: #ffffff !important;
}

.bhcar-vendre-pcode-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  text-align: left;
  padding-left: 0;
}

.bhcar-vendre-submit {
  @apply flex items-center justify-center px-4 py-2 w-full h-[40px] bg-[#E22415] rounded-full;
}
.bhcar-vendre-submit {
  color: #fff;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}



@keyframes blinking {
  0%,
  100% {
    border-color: #e22415;
  }

  50% {
    border-color: transparent;
  }
}

.blinking {
  border: 2px solid #e22415;
  animation: blinking 0.3s ease-in-out 3;
}

@media (max-width: 950px) {
  

  .bhcar-sell__slider-header {
    width: 100%;
    font-size: 15px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .bhcar-vendre-form-container {
    max-width: 327px;
    width: 100%;
  }
  
}

/* Modal Select Styles - Fix text visibility */
.bhcar-sell__modal select,
.bhcar-sell__modal .select2-selection__rendered {

  color: #fff !important;
  background: transparent;
}

.bhcar-sell__modal .select2-container--default .select2-selection--single {
  background: rgba(255, 255, 255, 0.1);
  border: none!important;
  height: 40px !important;
  padding: 11px 24px !important;
  border-radius: 11px;
}

.bhcar-sell__modal .select2-selection__rendered {
  line-height: 100% !important;
  padding: 0 !important;
  color: #000 !important;
}

.bhcar-sell__modal .select2-selection__arrow {
  display: block !important;
  height: 38px !important;
  right: 10px !important;
}

/* Modal dropdown styles */
.bhcar-sell__modal .select2-dropdown {

  background-color: #6C6C6C;
  border: none !important;
}

.bhcar-sell__modal .select2-results__option {
  color: #fff !important;
  background-color: #6C6C6C;
  padding: 11px 24px !important;
  margin: 0 !important;
}

.bhcar-sell__modal .select2-results__option--highlighted {
  background-color: #838383;
  color: #fff !important;

}

.bhcar-sell__modal .select2-results__option--selected {
  background-color: #e22415 !important;
  color: white !important;
}

.bhcar-sell__modal-arrow .select2-selection__arrow {
  display: none !important;
}

.bhcar-sell__modal-arrow .select2-selection__clear {
  display: none !important;
}
