.orcamento-container {
  padding: 2rem 0;
}

.simulador-card {
  background-color: #1f2937;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 30px 40px;
  border: 1px solid #374151;
}

.simulador-card .hero-texto h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f9fafb;
  /* Branco-gelo */
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
}

.simulador-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.simulador-grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin-bottom: 32px;
}

.simulador-grid-radio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 18px;
  margin-bottom: 32px;
}

.simulador-secao {
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.simulador-secao-titulo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 0;
  margin-bottom: 20px;
}

.simulador-secao-titulo svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: #3b82f6;
  flex-shrink: 0;
}

.simulador-subtitulo {
  font-size: 1.1rem;
  color: #b8c2cc;
  font-weight: 600;
  margin: 18px 0 10px 0;
}

.simulador-subsecao {
  margin-top: 28px;
}

.categoria {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

.opcao-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #d1d5db;
  cursor: pointer;
  background: rgba(36, 44, 56, 0.5);
  border-radius: 6px;
  padding: 9px 14px;
  gap: 8px;
  margin-bottom: 2px;
  transition: background 0.15s;
}

.opcao-item:hover {
  background: rgba(59, 130, 246, 0.07);
}

.opcao-item input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  flex-shrink: 0;
}

.opcao-item span {
  line-height: 1.4;
}

.simulador-grid-radio>div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #222c38;
  border-radius: 6px;
  padding: 12px 14px 12px 14px;
}

/* .resultado-orcamento {
  background-color: #0b225f;
  color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.resultado-orcamento h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
}

.resultado-orcamento p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.resultado-orcamento .custo-final,
#finalCostPrincipal {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 0 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
  display: block;
}

.resultado-orcamento .custo-aproximado,
#finalCostRange {
  display: block;
  font-size: 1.1rem;
  color: #c9d1e5;
  margin: 3px 0 16px 0;
  letter-spacing: 0.02em;
  opacity: 0.85;
  font-weight: 500;
}

.resultado-orcamento small,
.resultado-orcamento .custo-aproximado {
  margin-bottom: 12px;
}

.resultado-orcamento .aviso {
  font-size: 0.9rem;
  color: #d1d5db;
  opacity: 0.8;
  margin-top: 15px;
  margin-bottom: 0;
} */

.recursos-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1rem;
  align-items: start;
  /* Faz cada card alinhar pelo topo e ter altura independente */
}

.recurso-card {
  background: #1f2937;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(40, 40, 50, 0.08);
  border: 1px solid #374151;
  cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
  padding: 1rem;
  outline: none;
  position: relative;
  color: #ffffff;
  width: 100%;
  /* Ocupa toda a largura da célula do grid */
  box-sizing: border-box;
  /* Inclui padding e border no cálculo da largura */
}

.recurso-card:not(.active):hover,
.recurso-card:not(.active):focus {
  background: #111827;
}

.recurso-card.active {
  border-color: #1890ff;
  box-shadow: 0 4px 16px rgba(24, 144, 255, 0.16);
  z-index: 2;
}

.recurso-header {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.recurso-conteudo {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.2s;
  margin-top: 0.5rem;
  pointer-events: none;
}

.recurso-card.active .recurso-conteudo {
  max-height: 300px;
  /* Ajuste conforme conteúdo */
  opacity: 1;
  pointer-events: auto;
}

.design-options {
  margin-top: 20px;
}

.info-icon-container {
  position: absolute;
  right: 160px;
  top: 10px;
  cursor: pointer;
  z-index: 2;
}

/* Ícone de interrogação */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: help;
  transition: background-color 0.2s;
}

.info-icon:hover {
  background-color: #2563eb;
}

/* Tooltip (inicialmente oculto) */
.info-tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #1f2937;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  border: 1px solid #374151;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 10px 5px;
}

/* Flecha do tooltip */
.info-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

/* Mostrar tooltip ao passar o mouse */
.info-icon-container:hover .info-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ============================= */
/* Animação de entrada do balão */
/* ============================= */
@keyframes balaoUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================= */
/* Container flutuante principal */
/* ============================= */
.balao-flutuante {
  display: none;
  /* ficará block via .active */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  min-height: 54px;
  padding: 4px 32px 4px 4px;
  background: #1e1d63;
  color: #eeeeee;
  border: 1px solid #0027d3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px 6px 0 0;
  z-index: 1000;
  font-size: 1rem;
  animation: balaoUp 0.3s ease-in-out;
}

.balao-flutuante.active {
  display: block;
}

/* ============================= */
/* Botão de fechar               */
/* ============================= */
.balao-close {
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 5px;
  right: 50px;
  color: #cccccc;
  cursor: pointer;
}

/* ============================= */
/* Linhas de conteúdo            */
/* ============================= */
.balao-row {
  display: flex;
  flex-wrap: wrap;
  /* permite quebra se não couber tudo */
  justify-content: flex-start;
  /* alinha à esquerda */
  align-items: left;
  gap: 10px;
  /* Linha 06: espaçamento lateral ENTRE ITENS — ajuste aqui */
  margin-bottom: 8px;
  /* separa linhas superior/inferior */
  width: 100%;
}

/* ============================= */
/* Itens padrão (colunas)        */
/* ============================= */
.balao-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* evita overflow */
}

/* ============================= */
/* Itens em linha única (single-line) */
/* ============================= */
.balao-item.single-line {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  margin-right: 50px;
}

.balao-row.row-bottom .balao-item.single-line {
  margin-right: 20px;
  /* em vez de 50px só na linha de baixo */
}

/* ============================= */
/* Título dentro do item         */
/* ============================= */
.balao-titulo {
  color: #62b3fc;
  font-weight: 600;
  font-size: 0.96em;
  line-height: 1em;
}

/* ============================= */
/* Preço/valor dentro do item    */
/* ============================= */
.balao-preco {
  font-weight: bold;
  font-size: 1.11em;
  color: #ffffff;
  margin-top: 2px;
  /* se precisar de leve espaçamento vertical */
}

/* ============================= */
/* Estilo para small na segunda linha */
/* ============================= */
.small-item small {
  color: #777;
  display: block;
  font-size: 0.9em;
  margin-top: 2px;
}

/* orcamento-mobile.css */
/* CSS responsivo para telas até 640px */

@media (max-width: 640px) {

  .orcamento-container {
    padding: 1rem 0.3rem;
  }

  .simulador-card {
    padding: 16px 5px;
    border-radius: 6px;
  }

  .simulador-card .hero-texto h1 {
    font-size: 1.45rem;
    margin-bottom: 25px;
  }

  .simulador-grid,
  .simulador-grid-features,
  .simulador-grid-radio {
    grid-template-columns: 1fr !important;
    gap: 18px;
    margin-bottom: 16px;
  }

  .simulador-secao {
    padding: 14px;
  }

  .simulador-secao-titulo {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .simulador-secao-titulo svg {
    width: 19px;
    height: 19px;
    margin-right: 6px;
  }

  .simulador-subtitulo {
    font-size: 1rem;
    margin: 10px 0 8px 0;
  }

  .simulador-subsecao {
    margin-top: 17px;
  }

  .categoria {
    font-size: 0.92rem;
  }

  .opcao-item {
    font-size: 0.98rem;
    padding: 7px 9px;
    gap: 6px;
  }

  .opcao-item input {
    width: 16px;
    height: 16px;
  }

  .simulador-grid-radio>div {
    padding: 10px 6px 10px 8px;
  }

  /* .resultado-orcamento {
    padding: 16px 7px;
    border-radius: 7px;
    margin-top: 11px;
  }

  .resultado-orcamento h2 {
    font-size: 1.2rem;
    margin-bottom: 11px;
  }

  .resultado-orcamento p {
    font-size: 1rem;
  }

  .resultado-orcamento .custo-final,
  #finalCostPrincipal {
    font-size: 1.7rem;
    margin: 10px 0 0 0;
  }

  .resultado-orcamento .custo-aproximado,
  #finalCostRange {
    font-size: 0.98rem;
    margin: 1px 0 14px 0;
  }

  .resultado-orcamento small,
  .resultado-orcamento .custo-aproximado {
    margin-bottom: 9px;
  }

  .resultado-orcamento .aviso {
    font-size: 0.85rem;
    margin-top: 9px;
  } */

  .recursos-accordion {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .recurso-card {
    border-radius: 8px;
    padding: 0.8rem;
  }

  .recurso-header {
    font-size: 1.07rem;
  }

  .balao-flutuante {
    min-height: 34px;
    padding: 2px 14px 2px 2px;
    font-size: 1rem !important;
    border-radius: 7px 7px 0 0;
  }

  .balao-titulo {
    font-size: 0.63em !important;
    line-height: 1 !important;
  }

  .balao-preco {
    font-size: 0.75em !important;
    margin-top: 0px !important;
  }

  .balao-row {
    gap: 4px !important;
    margin-bottom: 4px;
  }

  .balao-close {
    font-size: 1.25rem !important;
    right: 10px !important;
    top: 2px !important;
  }

  .balao-item,
  .balao-item.single-line {
    margin-right: 16px !important;
    gap: 4px;
    white-space: nowrap;
  }

  .info-tooltip {
    width: 200px;
    padding: 6px 8px;
    font-size: 0.50rem;
    line-height: 1.2;
  }

  .info-tooltip::after {
    border-width: 5px;
    right: 10px;
  }

  .info-icon-container {
    position: absolute;
    top: 6px;
    right: 80px;
    z-index: 11;
  }

  .small-item small {
    font-size: 0.82em;
  }
}