h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: clamp(1.5em, 5vw, 2.2em);
  color: var(--primary-color);
  border-bottom: 2px solid var(--medium-gray);
  padding-bottom: 12px;

  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

.main-controls {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-group {
  margin-bottom: 15px;
  width: 100%;
}

.control-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: clamp(0.9em, 4vw, 1em);
}

.defesa {
  color: rgba(224, 224, 224, 0.938);
  justify-content: center;
  font-size: 12px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.currency-input {
  position: relative;
  width: 100%;
}

.currency-input::before {
  content: "R$";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray);
  font-weight: 500;
  font-size: clamp(14px, 4vw, 16px);
}

.control-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--medium-gray);
  border-radius: 6px;
  font-size: clamp(14px, 4vw, 16px);
  transition: border 0.3s;
  height: 48px;
}

.control-group input:focus {
  border-color: var(--consortium-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.comparison-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.option {
  flex: 1 1 100%;
  min-width: 0;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* HEADER FULL-WIDTH PERFEITO */
header {
  width: 100%;
  background-color: #009bdb;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.menu {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-height: 200px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .option {
    flex: 1 1 calc(50% - 8px);
  }

  .logo {
    max-height: 250px;
    /* Aumentado para desktop */
  }
}

.financing {
  border-top: 4px solid var(--financing-color);
}

.consortium {
  border-top: 4px solid var(--consortium-color);
}

.option-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--medium-gray);
}

.option-title {
  font-size: clamp(1.2em, 4vw, 1.5em);
  font-weight: 600;
  white-space: nowrap;
}

.financing .option-title {
  color: var(--financing-color);
}

.consortium .option-title {
  color: var(--consortium-color);
}

.credit-value {
  font-size: clamp(1em, 4vw, 1.3em);
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--light-gray);
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
}

.params-list {
  margin-bottom: 20px;
}

.param-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--medium-gray);
  font-size: clamp(0.9em, 3.5vw, 1em);
}

.param-label {
  font-weight: 500;
}

.param-value {
  font-weight: 600;
}

.results {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--medium-gray);
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: clamp(0.9em, 3.5vw, 1em);
}

.result-label {
  font-weight: 500;
}

.result-value {
  font-weight: 600;
}

.financing-total {
  color: var(--financing-color);
  font-size: clamp(1em, 3.8vw, 1.1em);
  font-weight: 700;
}

.consortium-total {
  color: var(--highlight-color);
  font-size: clamp(1em, 3.8vw, 1.1em);
  font-weight: 700;
}

.final-comparison {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: clamp(0.85em, 3.2vw, 1em);
}

.comparison-table th,
.comparison-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

.comparison-table th {
  background-color: var(--light-gray);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.economy-label {
  display: block;
  color: var(--highlight-color);
  font-weight: 600;
  margin: 12px 0;
  font-size: clamp(1em, 4vw, 1.2em);
}

.specialist-button {
  background-color: #db6900;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: clamp(0.9em, 3.8vw, 1em);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block;
  margin-top: 8px;
  width: 100%;
  max-width: 700px;
  font-weight: bold;
  text-transform: uppercase;
}

.specialist-button:hover {
  background-color: orange;
}

.calculate-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: clamp(0.9em, 3.8vw, 1em);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 20px auto 0;
  width: 100%;
  max-width: 200px;
}

.calculate-button:hover {
  background-color: #1a252f;
}

.logo {
  max-width: 150px;
}

/* Estilos para a seção de FAQ */
.faq-section {
  padding: 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #000000;
}

.faq-container {
  max-width: 800px;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px;
  text-align: left;
  background-color: #009bdb;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 18px;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #037fb4;
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  border-top: 1px solid #f1f1f1;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #454545;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Ajuste conforme necessário */
  padding: 15px;
}

/* NOVO CSS PARA O RODAPÉ CORRIGIDO */
.rodape {
  width: 100%;
  background-color: #009bdb;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.rodape-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rodape-imagens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.rodape img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.rodape p {
  color: white;
  margin: 5px 0;
  font-size: 14px;
}

.politica {
  width: 100%;
  background-color: #009bdb;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.politica a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }

  .rodape-imagens {
    flex-direction: column;
    /* Alinha os itens em coluna */
    align-items: center;
    /* Centraliza os itens */
    gap: 10px;
    /* Espaçamento entre as imagens */
  }

  .rodape img {
    max-height: 100px;
    /* Aumentado para mobile */
    width: 150px;
  }

  .option-title {
    text-align: center !important;
    margin: 0 auto !important;
  }

  .rodape img {
    max-height: 80px;
  }
}
