/* bh-trouver-pneu.css */
/* Custom styles for the [bh_trouver_pneu] form */
/* Use @apply for Tailwind utilities if needed */

.bh-trouver-pneu-border {
  @apply self-center p-1 rounded-2xl bg-[rgba(255,255,255,0.05)] w-full max-w-[327px] xl:max-w-[1450px];
  @apply min-w-[320px];
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.bh-trouver-pneu-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

.bh-trouver-pneu-form {
  @apply flex flex-col items-center justify-center px-4 py-6 xl:p-10 gap-6 xl:gap-12 text-sm xl:text-base;
}

.bh-trouver-pneu-form-row {
  @apply flex flex-col w-full xl:flex-row items-center justify-between gap-4;
}

#bh-trouver-pneu-form-search {
  @apply flex flex-grow rounded-xl w-full xl:w-auto bg-white/10 text-white border-none px-4 py-2 text-base placeholder-white placeholder-opacity-60;
}

#bh-trouver-pneu-form-search::placeholder {
  padding-left: 0;
}

.bh-trouver-pneu-form-tabs {
  @apply bg-white flex justify-center rounded-full h-[40px];
}

.bh-trouver-pneu-form-tab {
  @apply cursor-pointer h-full text-center py-2 px-2 xl:px-9 font-bold md:min-w-[300px] max-md:text-xs;
}

.tab-active {
  @apply bg-[#E22415] text-white rounded-full;
}

.bh-trouver-pneu-form-selector-item {
  @apply flex flex-grow w-full flex-col gap-2;
}

.bh-trouver-pneu-form-selector-wrapper {
  @apply relative rounded-[8px] border border-white/50 text-white;
}

.bh-trouver-pneu-form-label {
  @apply text-white;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.bh-trouver-pneu-selector {
  @apply flex w-full xl:w-auto pl-2 pr-5 lg:pl-4 lg:pr-7 py-2 xl:py-4;
  text-align: left;
  line-height: 24px;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.bh-atelier-rdv-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  pointer-events: none;
}

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

.bh-trouver-pneu-selector:focus {
  border-bottom-color: #ffffff;
  outline: none;
  background-color: transparent !important;
}

.bh-trouver-pneu-selector:active {
  background-color: transparent !important;
}

.bh-pneu-submit {
  @apply flex w-full xl:w-auto items-center justify-center gap-2 px-4 py-2 h-[40px] bg-[#E22415] rounded-full;
}

.bh-trouver-pneu-form-bg-svg {
  @apply hidden xl:block;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.bh-trouver-pneu-blur-ellipse-glow {
  @apply hidden xl:block;
  position: absolute;
  width: 870px;
  height: 127px;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(226, 36, 21, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bh-trouver-pneu-form-checkbox-wrapper {
  @apply flex items-center gap-2 xl:mt-[24px];
}

.bh-trouver-pneu-form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}

.bh-trouver-pneu-form-checkbox:checked {
  background: transparent;
  border-color: #fff;
}

.bh-trouver-pneu-form-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  border-radius: 1px;
  pointer-events: none;
  box-sizing: border-box;
}

.bh-trouver-pneu-form-checkbox-label {
  @apply text-white text-base;
  cursor: pointer;
  user-select: none;
}
