#freteForm {
  display: flex;
  align-items: flex-end;
  gap: 8px; /* Espaçamento entre os itens */
  flex-wrap: nowrap;
  padding: 8px 0;
  max-width: 420px; /* Largura máxima para controlar layout */
  margin-bottom: 1rem;
}

#freteForm > div {
  display: flex;
  flex-direction: column;
}

/* Quantidade: largura fixa, alinhado ao centro */
#freteForm input#quantidade {
  width: 80px;
  text-align: center;
}

/* CEP: ocupa o máximo possível */
#freteForm input#cepDestino {
  width: 200px;
}

/* Botão: largura fixa e destaque */
#freteForm button#btnCalcular {
  width: 110px;
  background-color: #0056b3; /* Azul corporativo tradicional */
  border: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 0;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Hover no botão para feedback visual */
#freteForm button#btnCalcular:hover {
  background-color: #004494;
}

/* Focus states para acessibilidade e clareza */
#freteForm input:focus,
#freteForm button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}
#resultado-frete {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin-top: 1rem;
}

/* Mensagem de erro */
#resultado-frete .alert-danger {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #dc3545;
  background-color: #f8d7da;
  color: #842029;
}

/* Título */
#resultado-frete h5 {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  color: #003d80;
}

/* Texto contextual (origem/destino) */
#resultado-frete p.text-muted {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

/* Container de cada opção de frete */
.frete-option {
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background-color: #f9fafd;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease;
}

/* Efeito hover leve para destacar */
.frete-option:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

/* Layout interno do frete: texto à esquerda, preço à direita */
.frete-option > div.d-flex {
  justify-content: space-between;
  align-items: flex-start;
}

/* Nome do serviço */
.frete-option h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #212529;
}

/* Nome transportadora e prazo entrega */
.frete-option p.text-muted,
.frete-option small.text-muted {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* Preço do frete com destaque */
.frete-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0056b3;
  white-space: nowrap;
  margin-left: 1rem;
  min-width: 80px;
  text-align: right;
}

/* Imagem transportadora */
.frete-option img {
  max-height: 36px;
  object-fit: contain;
  margin-top: 0.5rem;
}

/* Responsividade */
/* Em telas menores, exibe uma coluna */
@media (max-width: 575px) {
  #resultado-frete .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .frete-option {
    padding: 0.6rem 0.75rem;
  }
  .frete-price {
    margin-left: 0.5rem;
    font-size: 1rem;
  }
}


