/* // Erasmo Cardoso - Dev */


body {
  background: #f8f9fa;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

header#header.fixed-top {
  z-index: 9999;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px 20px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}

/* CARTÃO DO FORMULÁRIO - CORRIGIDO */
.form-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  padding: 45px;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  border: none;
  position: relative;
  overflow: hidden;
}

/* Linha azul no topo (bonita e simétrica) */
.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #031a9c, #1e40af, #031a9c);
  border-radius: 20px 20px 0 0;
}

.form-header h1 {
  color: #031a9c;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.form-header .lead {
  font-size: 1.1rem;
  color: #555;
}

.text-danger.fw-bold {
  font-size: 0.95rem;
}

.btn-submit {
  background: linear-gradient(135deg, #031a9c, #1e3a8a);
  border: none;
  border-radius: 30px;
  padding: 16px;
  font-weight: 600;
  font-size: 1.15rem;
  transition: all .3s;
  color: #fff;
  width: 100%;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1e3a8a, #031a9c);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(3, 26, 156, .3);
}

/* Garantir fundo branco em todos os inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="url"],
input[type="file"],
select.form-select,
textarea.form-control {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Fundo branco também no estado de foco */
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="file"]:focus,
select.form-select:focus,
textarea.form-control:focus {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-color: #031a9c;
  box-shadow: 0 0 0 0.2rem rgba(3, 26, 156, 0.25);
}

/* Fundo branco também quando desabilitado */
.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f8f9fa !important;
  opacity: 0.7;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff40;
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s infinite linear;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#responseMessage {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  main {
    padding: 100px 15px 60px 15px;
  }

  .form-container {
    padding: 35px 25px;
  }

  .form-header h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 576px) {
  .form-header h1 {
    font-size: 1.7rem;
  }

  .col-md-6 {
    margin-bottom: 0.75rem;
  }
}

footer {
  flex-shrink: 0;
}

.header {
  background-color: #2a2c39 !important;
}

@media (min-width: 1200px) {

  .header .navmenu a,
  .header .navmenu a:focus {
    color: #ffffff !important;
  }
}

.header .logo img {
  filter: brightness(1.5);
}