/* Reset básico */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Montserrat", sans-serif;
}

/* Fundo fixo */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("fundo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

.bg-color-primary {
  background-color: #002f63;
}

.text-color-primary {
  color: #002f63;
}

.text-color-secondary {
  color: #d6a542;
}

/* Wrapper centralizado */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

/* Logo */
.logo {
  width: 350px;
  max-width: 60%;
  margin-bottom: 5px;
}

/* PRELOADER – tela inteira */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Container interno */
.preloader-content {
  text-align: center;
}

/* Logo animada */
.preloader-logo {
  width: 280px;
  animation: float 2.5s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* Texto abaixo do logo */
.preloader-text {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-top: 20px;
  color: #002f63;
  font-weight: 600;
}

/* Barra de progresso */
.preloader-bar {
  width: 220px;
  height: 8px;
  background: #d9d9d9;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px auto 0 auto;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: #002f63;
  animation: loading 3s ease-in-out infinite;
}

/* Animação da barra */
@keyframes loading {
  0% { width: 0%; }
  50% { width: 90%; }
  100% { width: 0%; }
}

/* Animação de flutuação suave */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Animação de leve pulsação */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

/* Quando esconder */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Imagem abaixo do logo */
.top-image {
  width: 90%;
  border-radius: 8px;
  margin-bottom: 0px;
}

/* Container externo que controla a largura */
.form-wrapper {
  max-width: 850px;   /* AQUI você aumenta ou diminui */
  margin: 0 auto;     /* Centraliza */
  padding: 0 20px;    /* Espaço lateral */
}

/* Card do formulário */
.form-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  margin-top: 20px;
}

/* Header azul escuro */
.form-header {
  background: #002f63;
  padding: 15px;
  text-align: center;
}

.form-header h2 {
  color: #ffffff;
  margin: 0;
  font-size: 20px;
  font-family: "Montserrat", sans-serif;	
}

/* Formulário */
.contact-form {
  padding: 25px;
  text-align: left;
}

/* Ajustes dos grupos */
.form-group {
  margin-bottom: 15px;
}

/* Inputs e selects */
.form-control,
.form-select {
  width: 100%;
  padding: 14px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;	
}

/* Remove o checkbox padrão */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #002f63; /* começa azul */
  border: 2px solid #002f63;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* Check branco quando marcado */
.form-check-input::after {
  content: "✔";
  color: #fff;
  font-size: 14px;
  position: absolute;
  top: -2px;
  left: 3px;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Quando DESMARCA → fica branco e sem check */
.form-check-input:not(:checked) {
  background-color: #fff;
  border-color: #002f63;
}

.form-check-input:not(:checked)::after {
  opacity: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre o quadrado e o texto */
}

.form-check-label {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  color: #002f63;
  font-weight: 600;
  margin: 0;
}

/* Linha do formulário */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

/* Colunas tipo col-lg-6 */
.col-lg-6,
.row .col {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

/* Duas colunas no desktop */
.col-lg-6 {
  width: 50%;
}

.form-label {
 font-size: 17px;
 display: block;
 margin-bottom: 6px;	
 font-weight: 700;
 color: #002f63;
}

/* Botão padrão */
.btn-primary {
  padding: 12px;
  background-color: #002f63;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

/* Botão amarelo */
.btn-warning {
  padding: 12px;
  background-color: #ffc107;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

/* Linha do botão: centraliza o conteúdo */
.row-botao {
  display: flex;
  justify-content: center;
}

/* Container exclusivo dos botões finais */
.row-botao-final {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 4px; /* distância horizontal entre botões no desktop */
  row-gap: 12px;   /* distância vertical entre botões no mobile */
}


/* No mobile, empilha e mantém espaço entre eles */
@media (max-width: 768px) {
  .row-botao-final .col-btn {
    flex: 1 1 100%;
  }
}

/* A coluna que envolve o botão não atrapalha o flex */
.row-botao .form-group.col {
  width: auto;
  margin: 0;
}

/* Botão específico da simulação: tamanho ajustado */
.btn-simular {
  display: inline-block;
  padding: 12px 40px;
}

/* Botão específico da simulação: tamanho ajustado */
.mt-3 {
  margin-top: 30px;
}
.mt-1 {
  margin-top: 2px;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

.is-invalid {
  border: 1px solid #dc3545 !important
}
.is-invalid + .invalid-feedback {
  display: block;
}

/* FUNDO VERDE */
.bg-success {
  background-color: #299F00 !important;
  color: #fff;
}

/* Responsividade */
@media (max-width: 600px) {
  .content-wrapper {
    padding: 20px 10px;
  }

  .form-header h2 {
    font-size: 18px;
  }

  .row .col-lg-6 {
    width: 100%;
    display: block;
  }
}

/* Versão mobile — imagem mais vertical */
@media (max-width: 700px) {
  .bg-image {
    background-image: url("img-mobile.png");
    background-position: top center;
    background-size: cover;
  }
}