/* Tela de busca (pesquisa_servicos.php / pesquisa_produtos.php) — visual novo baseado no
   modelo fornecido pelo usuário. Escopado sob .cc-search-section pra não afetar o resto
   do site (cabecalho/rodapé compartilhados). Os ids/names dos campos continuam os mesmos
   usados por assets/js/script.js (autocomplete) — só a casca visual muda. */

.cc-search-section {
  font-family: inherit;
  background:
    radial-gradient(circle at 12% 12%, rgba(219,104,38,0.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(11,53,72,0.08), transparent 30%),
    #f5f5f5;
  color: #0B3548;
  padding: 56px 24px 24px;
  width: 100%;
  max-width: 100%;
}

.cc-search-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.cc-search-title {
  margin: 0 0 12px;
  color: #0B3548;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cc-search-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #DB6826;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.cc-search-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(11,53,72,0.10);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(11,53,72,0.12);
}

.cc-search-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  text-align: left;
}

.cc-field {
  width: 100%;
  min-width: 0;
  position: relative;
}

.cc-field label {
  display: block;
  margin-bottom: 8px;
  color: #0B3548;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.cc-input-wrap {
  position: relative;
  width: 100%;
}

.cc-input-icon-img {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.cc-field input.form-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 15px 16px 15px 48px;
  border: 1px solid #D1D2D3;
  border-radius: 14px;
  background: #ffffff;
  color: #0B3548;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-field input.form-control::placeholder {
  color: #7b8991;
  opacity: 1;
  font-weight: 400;
}

.cc-field input.form-control:focus {
  outline: none;
  border-color: #DB6826;
  box-shadow: 0 0 0 4px rgba(219,104,38,0.15);
}

.cc-field .form-text {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

/* Lista de sugestões (autocomplete) injetada por assets/js/script.js — mantém as classes
   Bootstrap list-group* (o JS monta os <li> com essas classes via string), só reposiciona
   pra encaixar no novo campo com ícone. max-height + scroll evita que uma lista extensa
   cresça sem limite e acabe atrás/sobre a tarja do rodapé (.cc-footer, z-index 9998) — o
   z-index aqui também fica acima do rodapé e do banner de cookies (9999) por segurança. */
.cc-field .list-group {
  position: absolute;
  z-index: 10050;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11,53,72,0.16);
}

.cc-limpar-selecao {
  margin-top: 8px;
}

.cc-search-button {
  width: 100%;
  max-width: 390px;
  min-height: 52px;
  margin: 30px auto 4px;
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  background: #0B3548;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(11,53,72,0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-search-button:hover {
  background: #DB6826;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(219,104,38,0.26);
}

.cc-help-box {
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid #DB6826;
  border-radius: 14px;
  background: #F7F9FC;
  color: #183946;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.cc-help-box a {
  color: #DB6826;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-help-box a:hover {
  color: #c75c1f;
}

.cc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #6c757d;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cc-back:hover {
  background: #0B3548;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cc-search-section {
    padding: 40px 16px 16px;
  }

  .cc-search-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cc-search-card {
    padding: 24px;
  }
}

/* ===================== Cabeçalho de resultados (listar_fornecedores_*.php) ===================== */

.resultados-header {
  padding: 34px 20px 6px;
  text-align: center;
}

.resultados-header__titulo {
  color: #0B3548;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.resultados-header__sub {
  color: #183946;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.resultados-header__sub strong {
  color: #DB6826;
}

.resultados-header__alterar {
  display: inline-block;
  margin-top: 4px;
  color: #DB6826;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resultados-header__alterar:hover {
  color: #c75c1f;
}

.resultados-resumo-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(11,53,72,0.10);
  padding: 22px 26px;
  margin: 22px auto 18px;
  max-width: 900px;
  text-align: left;
}

.resultados-resumo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-resumo {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #cfe3ea;
  background: #eef6f9;
  color: #0B3548;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.resultados-resumo-texto {
  margin: 0;
  color: #5d6d7a;
  font-size: 0.92rem;
}

.lista-busca-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 26px;
}

.lista-busca-filtro-ativo-msg {
  width: 100%;
  text-align: center;
  color: #5d6d7a;
  font-size: 0.88rem;
  margin: 0 0 4px;
}

.lista-busca-filtro-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #cfd8dc;
  background: #ffffff;
  color: #0B3548;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lista-busca-filtro-pill:hover {
  border-color: #0B3548;
  transform: translateY(-1px);
}

.lista-busca-filtro-pill--ativo,
.lista-busca-filtro-pill--ativo:hover {
  background: #0B3548;
  border-color: #0B3548;
  color: #ffffff;
}

.lista-busca-filtro-limpar {
  padding: 10px 14px;
  border: none;
  background: none;
  color: #DB6826;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lista-busca-filtro-limpar:hover {
  color: #c75c1f;
}

@media (max-width: 576px) {
  .resultados-resumo-card {
    padding: 18px;
  }

  .badge-resumo {
    font-size: 0.86rem;
    padding: 8px 14px;
  }
}

/* ===================== Destaque "Visibilidade TOTAL" (carrossel) ===================== */

.cc-total-section {
  margin: 0 auto 38px;
  max-width: 900px;
  text-align: center;
}

.cc-total-title {
  color: #DB6826;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cc-total-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.cc-total-carousel {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.cc-total-track {
  display: flex;
  transition: transform 0.6s ease;
}

.cc-total-card {
  min-width: 100%;
  background: #ffffff;
  border: 2px solid #DB6826;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 22px rgba(11,53,72,0.12);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
}

.cc-total-logo {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  background: #f1f1f1;
  flex-shrink: 0;
}

.cc-total-content {
  flex: 1;
  min-width: 0;
}

.cc-total-badge {
  display: inline-block;
  background: #DB6826;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.cc-total-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #0B3548;
}

/* Card de exemplo — completa o carrossel quando ainda não há 2 fornecedores
   reais com Visibilidade TOTAL para essa busca. Borda tracejada + selo "EXEMPLO"
   deixam claro que não é um fornecedor real; os botões abrem um aviso (JS),
   não navegam. */
.cc-total-card--exemplo {
  border-style: dashed;
  opacity: 0.92;
}

.cc-total-badge--exemplo {
  background: #ffffff;
  color: #DB6826;
  border: 1px solid #DB6826;
  margin-left: 6px;
}

.cc-total-location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  margin-bottom: 2px;
}

.cc-total-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn-profile,
.cc-btn-chat {
  border: none;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.cc-btn-profile {
  background: #0B3548;
  color: #ffffff;
}

.cc-btn-chat {
  background: #DB6826;
  color: #ffffff;
}

.cc-btn-profile:hover,
.cc-btn-chat:hover {
  opacity: 0.9;
}

.cc-carousel-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cc-dot {
  width: 9px;
  height: 9px;
  background: #D1D2D3;
  border-radius: 50%;
}

.cc-dot.active {
  background: #DB6826;
}

@media (max-width: 767.98px) {
  .cc-total-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .cc-total-location-line {
    justify-content: center;
  }

  .cc-total-actions {
    justify-content: center;
  }
}
