/* ============================================================
   brand-choice.css — HC Performance / Check Your Vehicle
   - Estilos originais dos cards de marca (brand-choice)
   - + Remoção do scroll interno do grid
   - + Campo de busca em tempo real
   - + Layout responsivo sem overflow
============================================================ */


/* ── Wrapper do step de marca ─────────────────────────────── */
.checker-step[data-step="1"] {
  position: relative;
}


/* ── Campo de busca de marcas ─────────────────────────────── */
.brand-search-wrap {
  position: relative;
  margin-bottom: 20px;
}

.brand-search-wrap .bi-search {
  color: var(--muted);
  font-size: 1rem;
  left: 16px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

#brandSearchInput {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  height: 50px;
  padding: 0 16px 0 44px;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

#brandSearchInput::placeholder {
  color: var(--muted);
  font-weight: 400;
}

#brandSearchInput:focus {
  background: rgba(16, 212, 107, .06);
  border-color: rgba(16, 212, 107, .45);
  box-shadow: 0 0 0 3px rgba(16, 212, 107, .1);
  outline: none;
}


/* ── Grid de marcas — sem scroll interno ──────────────────── */
.brand-options {
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* Remove scrollbar customizada do styles.css */
.brand-options::-webkit-scrollbar { display: none; }


/* ── Card de marca ────────────────────────────────────────── */
.choice-card.brand-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
}


/* ── Ícone da marca ───────────────────────────────────────── */
.brand-icon {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  background: #1c1c20;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Imagem dentro do ícone */
.brand-icon img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: all 0.25s ease;
}

/* Sobrescreve dimensões para compatibilidade com .choice-card.brand-choice */
.choice-card.brand-choice .brand-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Hover premium no ícone */
.brand-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 255, 255, 0.07),
    inset 0 0 10px rgba(255, 255, 255, 0.03);
}

.brand-icon:hover img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1);
}

/* Destaque do ícone quando o card está selecionado */
.choice-card.brand-choice.is-selected .brand-icon {
  background: rgba(16, 212, 107, .12);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(16, 212, 107, 0.18),
    0 0 0 1px rgba(16, 212, 107, 0.35);
}


/* ── Nome da marca ────────────────────────────────────────── */
.choice-card.brand-choice .brand-name {
  display: block;
  width: 100%;
  text-align: center;
}

.choice-card.brand-choice .brand-name strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}


/* ── "Nenhuma marca encontrada" ───────────────────────────── */
#brandNoResults {
  color: var(--muted);
  font-size: .95rem;
  grid-column: 1 / -1;
  padding: 32px 0;
  text-align: center;
}


/* ── Ocultar card via filtro de busca ─────────────────────── */
.brand-options .choice-card.is-hidden {
  display: none !important;
}


/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .brand-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .brand-icon {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 575.98px) {
  .brand-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .brand-icon {
    width: 90px;
    height: 90px;
    border-radius: 12px;
  }

  .choice-card.brand-choice .brand-name strong {
    font-size: 13px;
  }

  #brandSearchInput {
    font-size: .94rem;
    height: 46px;
  }
}
