/* ==============================
   MAIN STRUCTURE
============================== */
main {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--primary-color);
}

/* ==============================
   BOTÕES DE CONTATO
============================== */
.buttonsContact {
  width: 100%;
  height: 100px;
  position: absolute;
  bottom: 0px;
  z-index: 16;
  display: flex;
  justify-content: center;
  align-items: center;
}

.botaoSimular {
  width: 200px;
  height: 50px;
  border-radius: 30px;
  background-color: rgb(8, 83, 145);
  display: flex;
  justify-content: center;
  align-items: center;
}

.botaoSimular img {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin-right: 10px;
  border-radius: 100%;
}

.botaoSimular p {
  font-size: 15px;
  text-decoration: none;
  color: white;
}

.botaoSimular:hover {
  background-color: rgb(5, 50, 90); /* Escurece um pouco no hover para consistência */
  opacity: 1;
}

.botaoWhats {
  gap: 2px;
  margin-left: 200px; /* Ajustado para um espaço menor em telas grandes */
  width: 200px;
  height: 50px;
  border-radius: 30px;
  background-color: rgb(0, 128, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

.botaoWhats img {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin-right: 10px; /* Adicionado para consistência com .botaoSimular */
}

.botaoWhats p {
  font-size: 15px;
  text-decoration: none;
  color: white;
}

.botaoWhats:hover {
  background-color: rgba(0, 128, 0, 0.734);
  opacity: 1;
}

/* ==============================
   EXIBIÇÃO DE IMAGEM
============================== */
.exibicaoImg {
  position: fixed !important;
  z-index: 15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #00000099;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.exibicaoImg img {
  width: 900px;
  height: 800px;
}

.exibicaoImg .fecharExibicaoImg {
  position: absolute !important;
  z-index: 999;
  top: 50px;
  left: 77px;
  width: 3%;
  height: 12%;
}

.ExibirImg {
  object-fit: contain;
}

/* ==============================
   SIDEBAR
============================== */
.sidebar {
  background-color: white;
  overflow: auto;
  /* Isso permite o scroll quando necessário */
  -ms-overflow-style: none;
  /* IE e Edge */
  scrollbar-width: none;
  /* Firefox */
  width: 200px;
  height: 100vh;
  /* background-color: #4f2e2e; */
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(1, 1, 1, 0.165);
}

.sidebar:-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.menu {
  display: flex;
  flex-direction: column;
  width: 90%;
  border-bottom: 1px solid rgba(1, 1, 1, 0.1);
}

.fecharImg {
  display: none;
}

.sidebar img {
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo {
  width: 80%;
}

.menuContent {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.menuContent img {
  margin: 0px 10px 0px 10px;
  width: 30px;
}

.link {
  text-decoration: none;
  font-size: var(--p-size);
  font-weight: 500;
  color: var(--secondary-color);
  margin-left: 20px;
}

.link:hover {
  color: var(--p-color);
}

.headerMenu {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.headerButtons {
  width: 150px;
  display: none;
}

.menuAmburgue {
  width: 50px;
}

.sidebar .propaganda {
  margin-top: 20px;
  width: 182px;
  height: 80%;
}

.sidebar .propaganda img {
  width: 100%;
  height: auto;
  margin-top: 0;
}

/* ==============================
   MEDIA QUERIES - RESPONSIVIDADE
============================== */
@media (max-width: 1067px) {
  .botaoWhats {
    margin-left: 10px; /* Reduzido para evitar sobreposição */
  }

  .infoCarro .nomeCarro {
    font-size: 25px;
  }

  .infoCarro .valorCarro {
    font-size: 25px;
  }

  .carousel {
    margin-top: 150px;
  }

  section {
    margin-left: 0px !important;
  }

  .headerButtons {
    display: flex;
    justify-content: center;
  }

  .sidebar {
    width: 150px;
    display: none;
  }

  .sidebar img {
    width: 200px;
  }

  .sidebar .fecharImg {
    width: 20px;
    cursor: pointer;
  }

  .menu {
    display: flex;
    flex-direction: column;
    width: 90%;
    border-bottom: 1px solid rgba(1, 1, 1, 0.1);
  }

  .sidebar img {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .headerMenu {
    width: 100%;
    background-color: var(--color-white);
    z-index: 100;
  }

  .headerMenu .logo {
    display: flex;
  }

  .menuContent {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .menuContent img {
    margin: 0px 5px 0px 5px;
    width: 20px;
  }

  .link {
    text-decoration: none;
    font-size: var(--p-size);
    font-weight: 500;
    color: var(--secondary-color);
    margin-left: 10px;
  }

  .menuAmburgue {
    cursor: pointer;
    left: 10px;
    display: flex;
  }
}

@media (max-width: 600px) {
  .buttonsContact {
    flex-direction: column; /* Empilha os botões */
    height: auto; /* Ajusta a altura para acomodar os botões empilhados */
    padding: 10px 0; /* Adiciona padding para não colar nas bordas */
    gap: 10px; /* Espaço entre os botões */
  }

  .botaoSimular,
  .botaoWhats {
    width: 45%; /* Reduz a largura para caber em telas pequenas */
    height: 45px; /* Reduz a altura ligeiramente */
    font-size: 14px; /* Reduz o tamanho da fonte para legibilidade */
    margin-left: 0; /* Remove a margem para centralizar */
  }

  .botaoSimular img,
  .botaoWhats img {
    width: 25px; /* Reduz o tamanho dos ícones */
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    margin-right: 8px; /* Ajusta o espaço do ícone */
  }

  .botaoSimular p,
  .botaoWhats p {
    font-size: 14px; /* Ajusta o tamanho do texto */
  }
}

/* ==============================
   SECTION
============================== */
section {
  margin-left: 200px;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  position: relative;
  align-items: center;
  flex-direction: column;
}

/* ==============================
   CAROUSEL
============================== */
.carousel {
  display: flex !important;
  width: 99.9%;
  justify-content: center;
  height: 350px;
}

.carousel img {
  width: 300px;
  height: auto;
  transition: transform 0.3s ease;
  margin-left: 20px;
}

.carousel img.zoomed {
  transform: scale(1.3);
  z-index: 10;
}

.fecharImg {
  position: absolute;
  z-index: 999;
  cursor: pointer;
  right: 20px;
  top: 20px;
  display: none;
  width: 50px;
}

.fecharImg img {
  width: 30px;
}

.slick-track img {
  cursor: pointer;
  width: 500px;
  height: 500px;
  min-width: 500px;
  max-width: 500px;
  min-height: 500px;
  max-height: 500px;
  object-fit: cover;
}

.slick-prev {
  top: 30% !important;
  left: 22px !important;
  z-index: 10;
  font-size: 24px !important;
  transform: translateY(50%) !important;
}

.slick-next {
  top: 30% !important;
  right: 52px !important;
  transform: translateY(50%) !important;
  z-index: 10;
}

.slick-next:before,
.slick-prev:before {
  font-size: 52px !important;
  opacity: 100 !important;
  color: rgb(255, 255, 255) !important;
}

/* ==============================
   INFO PRINCIPAL DO VEÍCULO
============================== */
.info {
  width: 80%;
  max-width: 900px;
  background-color: rgb(255, 255, 255);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: relative;
  margin-top: -43px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.356);
}

.infoHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  flex-wrap: wrap;
  margin-bottom: -30px;
}

.infoHeader .divLogo {
  cursor: pointer;
  width: 152px;
  height: 152px;
  min-width: 152px;
  min-height: 152px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.327);
  background-color: rgba(225, 225, 225, 0.502);
  margin-top: 5px;
}

.infoHeader .divLogo img {
  width: 152px;
  height: 152px;
  min-width: 152px;
  min-height: 152px;
  border-radius: 100%;
  object-fit: contain;
}

.info h1 {
  font-size: 33px;
  word-wrap: break-word;
  width: 37%;
  text-align: center;
  padding: 10px;
}

/* ==============================
   INFO VEÍCULO - NOME E VALOR
============================== */
.infoCarro {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.infoCarro .nomeCarro {
  font-size: 33px;
  width: 50%;
  word-wrap: break-word;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-break: break-word;
}

.infoCarro .nomeCarro .versaoCarro {
  font-size: 15px;
  word-break: break-word;
}

.infoCarro .valorCarro {
  font-size: 33px;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==============================
   INFO DETALHADA
============================== */
.containerInfo {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
  justify-content: start;
  align-items: center;
}

.containerInfo .grupoInfo {
  width: 33%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.containerInfo .grupoInfo .tittleInfo {
  font-size: 30px;
  color: var(--secondary-color);
  margin-top: 50px;
}

.containerInfo .grupoInfo .textInfo {
  font-size: 20px;
}

/* ==============================
   SOBRE O CARRO
============================== */
.sobreCarro {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
}

.sobreCarro .tittleInfo {
  font-size: 30px;
  margin-top: 40px;
  font-weight: 500;
}

.sobreCarro .sobreCarroTexto {
  font-size: 20px;
  margin-top: 20px;
  width: 80%;
  margin-bottom: 77px;
  padding: 20px;
  word-wrap: break-word;
  overflow: auto;
  height: 200px;
}

/* ==============================
   MAIS MEDIA QUERIES
============================== */
@media (max-width: 1215px) {
  .infoCarro .nomeCarro .versaoCarro {
    font-size: 12px;
  }

  .info h1 {
    font-size: 25px;
  }

  .exibicaoImg img {
    width: 500px;
    height: 500px;
  }

  .exibicaoImg .fecharExibicaoImg {
    position: absolute !important;
    z-index: 999;
    top: 139px;
    left: 77px;
    width: 3%;
    height: 12%;
  }
}

@media (max-width: 805px) {
  .infoCarro .nomeCarro .versaoCarro {
    font-size: 10px;
  }

  .exibicaoImg img {
    width: 400px;
    height: 400px;
  }

  .exibicaoImg .fecharExibicaoImg {
    position: absolute !important;
    z-index: 999;
    top: 139px;
    left: 27px;
    width: 5%;
    height: 12%;
  }

  .slick-track img {
    cursor: pointer;
    width: 400px;
  }

  .info h1 {
    font-size: 20px !important;
  }

  .infoHeader {
    flex-direction: row;
  }

  .infoHeader .divLogo {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .infoHeader .divLogo img {
    width: 100px !important;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 100%;
    object-fit: contain;
  }

  .infoCarro p {
    font-size: 20px;
  }

  .valorCarro p {
    font-size: 20px;
  }

  .containerInfo .grupoInfo .tittleInfo {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 20px;
  }

  .textInfo {
    font-size: 15px !important;
  }
}

@media (max-width: 741px) {
  .infoHeader .divLogo img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 100%;
    object-fit: contain;
  }
}

@media (max-width: 559px) {
  .infoCarro .nomeCarro p {
    font-size: 15px;
  }

  .exibicaoImg img {
    width: 300px;
    height: 300px;
  }

  .exibicaoImg .fecharExibicaoImg {
    position: absolute !important;
    z-index: 999;
    top: 129px;
    left: 27px;
    width: 5%;
    height: 12%;
  }

  .slick-track img {
    cursor: pointer;
    width: 300px;
  }

  .logo {
    width: 100px !important;
  }

  .info h1 {
    font-size: 12px !important;
  }

  .infoHeader .divLogo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
  }

  .infoHeader .divLogo img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    border-radius: 100%;
    object-fit: contain;
  }

  .infoHeader {
    height: 140px;
  }

  .infoCarro p {
    font-size: 20px;
  }

  .valorCarro p {
    font-size: 15px;
  }

  .tittleInfo {
    font-size: 15px !important;
  }

  .textInfo {
    font-size: 13px !important;
  }

  .sobreCarroTexto {
    width: 100% !important;
    font-size: 14px !important;
  }
}

@media (max-width: 400px) {
    .botaoWhats{
    padding-left: 5%;
}
.botaoSimular{
    padding-left: 5%;
}
  .infoCarro .nomeCarro p {
    font-size: 13px;
  }

  .infoCarro .nomeCarro .versaoCarro {
    font-size: 8px;
  }

  .nomeCarro {
    width: 60%;
  }

  .infoCarro .valorCarro {
    width: 40%;
  }

  .infoHeader .divLogo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 100%;
    object-fit: contain;
  }

  .infoHeader .divLogo img {
    width: 35px !important;
  }

  .infoCarro p {
    font-size: 20px;
  }

  .valorCarro p {
    font-size: 15px;
  }

  .tittleInfo {
    font-size: 15px !important;
  }

  .textInfo {
    font-size: 13px !important;
  }

  .sobreCarroTexto {
    width: 100% !important;
    font-size: 14px !important;
  }
}

@media (max-width: 400px) {
  .infoHeader .divLogo img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 100%;
    object-fit: contain;
  }
}

/* ==============================
   MODAL DE SIMULAÇÃO
============================== */
.simulation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bancoSimuladorImg {
  width: 68%;
}

.simulation-modal.show {
  opacity: 1;
  visibility: visible;
}

.simulation-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  height: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.close-simulation-modal {
    position: absolute;
    top: 61px;
    right: 50px;
    cursor: pointer;
    width: 21px;
    height: 32px;
    z-index: 1001;
}

.simulation-content h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--secondary-color);
  font-size: 28px;
}

.simulation-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.vehicle-info {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.vehicle-info p {
  margin: 5px 0;
  font-size: 16px;
  color: #333;
}

.vehicle-info span {
  font-weight: bold;
  color: black;
}

#simulateLoanBtn {
  background-color: rgb(8, 83, 145);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

#simulateLoanBtn:hover {
  background-color: rgb(5, 50, 90);
}

.simulation-results {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  width: 100%;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.simulation-results.show {
  display: block;
  opacity: 1;
}

.simulation-results h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 22px;
}

.simulation-results p {
  font-size: 18px;
  margin: 8px 0;
  color: #555;
}

.simulation-results small {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  display: block;
}

/* ==============================
   MODAL DE SIMULAÇÃO - MEDIA QUERY
============================== */
@media (max-width: 600px) {
  .simulation-content {
    padding: 20px;
  }

  .simulation-content h2 {
    font-size: 24px;
  }

  .form-group input,
  #simulateLoanBtn {
    font-size: 15px;
    padding: 10px;
  }

  .vehicle-info p,
  .simulation-results p {
    font-size: 15px;
  }
}

/* Estilos para o overlay do modal */
.simulation-modal {
  display: none;
  /* Inicia oculto, será exibido via JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Fundo escuro semi-transparente */
  display: flex;
  /* Usar flex para centralizar o conteúdo */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Garante que o modal fique acima de outros elementos */
}

/* Estilos do container de conteúdo do modal */
.simulation-modal .simulation-content {
  background-color: #f8f8f8;
  /* Fundo cinza claro como na imagem */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* Sombra suave */
  max-width: 600px;
  /* Largura máxima do modal */
  width: 90%;
  /* Largura responsiva */
  position: relative;
  font-family: Arial, sans-serif;
  /* Fonte similar à da imagem */
  color: #333;
  box-sizing: border-box;
  /* Garante que padding e border sejam incluídos na largura/altura */
  max-height: 90vh;
  /* Limita a altura para evitar que o modal seja maior que a tela */
  overflow-y: auto;
  /* Adiciona scroll se o conteúdo for muito grande */
}

/* Botão de fechar o modal */
.close-simulation-modal {
    position: absolute;
    top: 61px;
    right: 50px;
    cursor: pointer;
    width: 21px;
    height: 32px;
    z-index: 1001;
}

/* Título "Simular Empréstimo" */
.simulation-modal h2 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
  font-size: 24px;
}

/* Estilos gerais para os grupos de formulário */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.vehicle-info {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #e9e9e9;
  border-radius: 4px;
  font-size: 14px;
}

.vehicle-info p {
  margin: 5px 0;
}

.vehicle-info p strong {
  font-weight: bold;
}

/* Seção principal de resultados da simulação */
.simulation-results-display {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: #ffffff;
  /* Fundo branco para a seção de resultados */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Sombra para destacar a seção */
  margin-bottom: 20px;
  /* Espaço antes do botão simular */
  display: none;
  /* O display inicial será 'none' e só será 'block' após a simulação */
}

/* Cabeçalho da simulação */
.simulation-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.header-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  background-color: #6c757d;
}

.header-item p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-item p:first-child {
  font-size: 12px;
  opacity: 0.9;
}

.header-item p:last-child {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
}

/* Cor específica para "Valor de entrada" */
.header-item:first-child {
  background-color: #4CAF50;
  /* Verde forte como na imagem */
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
  /* Remove borda entre este e o próximo item */
}

/* Estilo para a caixa da porcentagem */
.header-item.percentage-box {
  background-color: #6699CC;
  /* Azul um pouco mais claro do que o liberado */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 16px;
  border-left: none;
  /* Remove borda */
  border-right: none;
  /* Remove borda */
}

.percentage-box .percentage {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

/* Cor específica para "Valor liberado" */
.header-item.released-value {
  background-color: #336699;
  /* Azul mais escuro como na imagem */
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: none;
  /* Remove borda */
}

/* Texto "Defina a quantidade de parcelas" */
.define-installments-text {
  font-size: 16px;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

/* Opções de parcelamento (os "cards") */
.installment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
}

.installment-card {
  background-color: #e0e0e0;
  /* Cinza claro para cards não selecionados */
  border: 2px solid #e0e0e0;
  /* Borda da mesma cor do fundo */
  border-radius: 8px;
  padding: 15px 10px;
  flex: 1 1 calc(20% - 15px);
  max-width: calc(20% - 15px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  /* Adicionando transição suave */
  position: relative;
  text-align: center;
  min-width: 120px;
  height: 90px;
}

.installment-card:hover {
  background-color: #d0d0d0;
  /* Fundo um pouco mais escuro ao passar o mouse */
  border-color: #d0d0d0;
  /* Garante que a borda mude também ao hover */
}

/* Esconde o radio button nativo */
.installment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* --- ESTILO PARA O CARD SELECIONADO (FUNDO AZUL) --- */
/* Aplica o estilo ao LABEL (o card) quando o INPUT radio dentro dele está :checked */
.installment-card.selected {
  background-color: #007bff;
  /* Fundo azul principal */
  border-color: #007bff;
  /* Borda da mesma cor para um visual sólido */
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
  /* Sombra para destaque */
  color: #ffffff;
  /* Cor do texto no card selecionado (para herdar) */
}

/* Garante que o texto dentro do card selecionado também fique branco */
.installment-card.selected .card-content p,
.installment-card.selected .card-content .price {
  color: #ffffff;
}

.installment-card .card-content p {
  margin: 0;
  font-size: 13px;
  color: #555;
  /* Cor padrão para texto não selecionado */
}

.installment-card .card-content .price {
  font-size: 19px;
  font-weight: bold;
  color: #000;
  /* Preço em preto (padrão) */
  margin-top: 5px;
}

/* Remove o ícone de informação dos cards */
.installment-card .info-icon {
  display: none;
}

/* Mensagem de informação inferior */
.info-message-bottom {
  font-size: 12px;
  color: #2b2b2b;
  text-align: center;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.4;
  padding: 0 10px;
}

/* Remove o ícone de informação da mensagem inferior */
.info-message-bottom .info-icon-small {
  display: none;
}

/* Botão Simular no formulário */
#simulateLoanBtnForm {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

#simulateLoanBtnForm:hover {
  background-color: #0056b3;
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 992px) {
  .installment-card {
    flex: 1 1 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
  }
}

@media (max-width: 768px) {
  .simulation-header {
    flex-direction: column;
    gap: 10px;
    border: none;
  }

  .header-item {
    border-radius: 8px;
    width: 100%;
    border: none;
  }

  .header-item:first-child,
  .header-item.percentage-box,
  .header-item.released-value {
    border-radius: 8px;
    border: none;
  }

  .installment-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .installment-card {
    flex: 1 1 calc(100% - 10px);
    max-width: calc(100% - 10px);
  }

  .simulation-modal .simulation-content {
    padding: 15px;
  }

  .simulation-modal h2 {
    font-size: 20px;
  }

  .simulation-results-display {
    padding: 15px;
  }
}