body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background: linear-gradient(to right, #0078d7, #002a80);
  border-bottom: 1px solid #f2f4f8;
}

.top-bar .left,
.top-bar .right {
  display: flex;
  align-items: center;
}

.top-bar .freepix-logo {
  height: 70px;
  width: 80px;
  max-width: 120px;
}

.top-bar .right a {
  text-decoration: none;
  color: #fafcfd;
  padding: 10px 20px;
  background-color: #002a80;
  border-radius: 5px;
  margin-left: 10px;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(
    100vh - 100px
  ); /* Altura total menos altura do cabeçalho e do rodapé */
  padding: 0;
  box-sizing: border-box;
  overflow: auto; /* Adiciona rolagem se necessário */
}

#formContent {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 90%;
  margin: auto; /* Centraliza o formulário */
}

#formContent h2.active {
  font-size: 18px;
  color: #333;
  padding: 10px 20px;
  display: inline-block;
  border-bottom: 2px solid #0078d7;
}

#formContent a h2.inactive {
  font-size: 18px;
  color: #999;
  padding: 10px 20px;
  display: inline-block;
}

.fadeIn {
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: calc(100% - 24px); /* Ajuste conforme necessário para o padding */
  padding: 12px; /* Padding confortável */
  margin: 8px 0; /* Espaçamento vertical */
  border: 1px solid #ccc; /* Estilo da borda */
  box-sizing: border-box; /* Inclui padding e border na largura total */
  display: block; /* Garante que cada input ocupe uma linha */
  text-align: center; /* Centraliza o texto */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
  background-color: #fff;
  border-bottom: 2px solid #ff0000;
}

input[type="submit"] {
  background-color: #ff0000;
  border: none;
  color: white;
  padding: 15px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  font-size: 13px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 30px 0 rgba(95, 186, 233, 0.4);
  border-radius: 5px;
  margin: 5px auto 40px auto;
  transition: all 0.3s ease-in-out;
  text-align: center; /* Centraliza o texto */
}

input[type="submit"]:hover {
  background: linear-gradient(to right, #ff4e50, #f9d423);
}

input[type="submit"]:active {
  transform: scale(0.95);
}

.icon-gradient {
  /*
    background: linear-gradient(to right, #0078d7, #002a80);
  */
  padding: 5px;
  display: inline-block;
  width: auto;
  height: 90px;
  box-sizing: border-box;
  border-radius: 10px;
  margin-bottom: 25px;
}

.icon-gradient img {
  height: 120px;
  width: auto;
}

.links {
  margin-top: 20px;
}

.links a {
  display: block;
  color: #0078d7;
  text-decoration: none;
  margin: 5px 0;
}

.links a:hover {
  text-decoration: underline;
}

footer {
  background-color: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
}

social-icons a:hover {
  color: #ddd;
}

.button {
  padding: 0px 20px;
  margin: 15px 15px;
  text-decoration: none;
  color: white;
  background-color: #002a80;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}
.error-message .alert-danger {
  color: #ff4d4d; /* Vermelho */
  background-color: #ffe6e6; /* Cor de fundo suave para erros */
  border: 1px solid #ff4d4d;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 14px;
}

@media screen and (max-width: 600px) {
  .wrapper {
    height: auto;
  }
  #formContent {
    padding: 50px;
    width: 100%;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="submit"] {
    width: calc(100% - 0px); /* Ajuste para pequenos dispositivos */
  }
}
