.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;
}

/* Texto do intervalo (menor, discreto e elegante) */
.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;
}

/* Para garantir espaçamento adequado caso haja outros small */
.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;
}

@keyframes balaoUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

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

.balao-flutuante strong {
  color: #0a6ebd;
}

.balao-flutuante .balao-close {
  position: absolute;
  top: 7px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #666;
  cursor: pointer;
}

.balao-flutuante {
  display: none;
  position: fixed;
  bottom: 1px;
  width: 100%;
  margin-right: 20px;
  background: #1e1d63;
  color: #eeeeee;
  font-size: 1.1rem;
  border: 1px solid #0027d3;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: balaoUp 0.3s ease-in-out;
}

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

.balao-close {
  background: none;
  border: none;
  font-size: 2rem;
  margin-right: 1%;
  float: right;
  cursor: pointer;
}

small {
  color: #777;
}

.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;
}

/* Container do ícone de informação */
.info-icon-container {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
}

/* Í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: center;
  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;
}

/* mobile.css */
/* Aplica somente em dispositivos com largura até 600px */
@media screen and (max-width: 600px) {

  /* Container geral */
  .orcamento-container {
    padding: 1rem 0;
  }

  /* Cartão do simulador */
  .simulador-card {
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }

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

  /* Grids passam a 1 coluna só */
  .simulador-grid,
  .simulador-grid-features,
  .simulador-grid-radio,
  .recursos-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Seções do simulador */
  .simulador-secao {
    padding: 16px;
  }

  .simulador-secao-titulo {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .simulador-subtitulo {
    font-size: 1rem;
  }

  /* Resultado do orçamento */
  .resultado-orcamento {
    padding: 20px;
    margin-top: 16px;
  }

  .resultado-orcamento h2 {
    font-size: 1.5rem;
  }

  .resultado-orcamento .custo-final,
  #finalCostPrincipal {
    font-size: 2.2rem;
  }

  /* Esconde completamente o balão flutuante no mobile */
  .balao-flutuante {
    display: none !important;
  }
}