@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #686868; /* cor do fundo que você tem no Canva */
  font-family: Arial, sans-serif;
  width: 100%;
  min-height: 100vh;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}


.logo-mf {
  width: 15%;
  height: auto;
  padding: 0 0 20px;
  margin-top: 45px;
}

.header h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 3.1rem;
  letter-spacing: -2px;
  margin: 0;
}

.header hr {
  position: relative;
  border: none;
  border-top: 4px dotted #fff;
  width: 100%;
  height: 0;
  margin: 40px 0;
}
.form-step {
  transition: opacity 0.4s ease-in-out;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.botoes-navegacao {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
#termos-formulario {
  color: #fff;
}

.termos-titulo {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

.termos-condicoes{
  background: linear-gradient(to right, #f1c43a 0%, #686868 80%, #686868 100%);
  text-wrap: pretty;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 4px 0;
  word-spacing: 2px;
}

.termos-paragrafo span{
  font-weight: bold;
}

p.termos-paragrafo {
  font-size: 1.3rem;
  text-align: justify;
  margin: 10px 0 2px 0;
}

.para-saber-mais {
  font-size: 1rem;
  margin: 0;
  padding: 0 15px;
}

.btn-aceitar {
  background-color: #f1c43a;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.avancar, .voltar, .btn-enviar {
  background-color: #f1c43a;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 1.7rem;
  padding: 3px 9px;
  font-weight: bold;
  align-items: center;
  gap: 10px;
  display: flex;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

a {
  color: #7066E0;
  font-weight: bold;
}
.fa-regular {
  font-weight: 500;
  font-size: 1.3rem;
}

.fa-solid, .fas {
  font-weight: 900;
  font-size: 1.5rem;
}


.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}
.container {
  max-width: 80%; /* largura aproximada de um celular médio */
  margin: 0 auto;
  background-color: #686868;
  min-height: 100vh; /* ocupa toda a altura */
  padding: 20px;
  box-sizing: border-box;
  color: #fff;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.campo-form label {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 20px;
}
.campo-form select {
  padding: 5px 10px;
  font-size: 1rem;
  color: #686868;
  border-radius: 5px;
  appearance: none;
}

.campo-form input {
  padding: 5px 10px;
  font-size: 1rem;
  color: #686868;
  border-radius: 5px;
  border: none;
}

.campo-radio {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

input[type="radio"] {
  accent-color: #f1c43a;
}

.campo-radio-opcoes {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
}

.campo-radio-opcoes > *:nth-child(3) {
  margin-left: 20px;
}
select#tipo-nao-regularizado {
  margin-top: 5px;
}

.campo-form p {
  font-size: 0.6rem;
  text-align: center;
  margin-top: 0;
}
.botoes-container {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row-reverse;
  margin: 30px auto;
  gap: 15px;
}

.botao-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
}

.btn-adicionar, .btn-excluir {
  background-color: #f1c43a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


/* Estilos para mensagens e loader */
.loader {
  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: 1000;
}

.loader:after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mensagem-sucesso, .mensagem-erro {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  z-index: 1000;
  animation: fadeIn 0.5s;
  max-width: 300px;
}

.mensagem-sucesso {
  background-color: #4CAF50;
  color: white;
}

.custom-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 15px 20px;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  max-width: 80%;
  animation: fadeIn 0.3s ease;
  font-family: Arial, sans-serif;
}

.custom-alert.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.custom-alert-icon {
  margin-right: 10px;
  font-size: 20px;
}

.custom-alert-content {
  flex-grow: 1;
}

.custom-alert-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  margin-left: 10px;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -20px); }
}

#financiamento-ativo {
  flex-direction: column;
}

.campo-form textarea {
  border-radius: 5px;
}

.campo-radio label:first-child {
  font-weight: bold;
  margin-top: 20px;
}
.campo-radio-opcoes label {
  font-weight: normal;
  font-size: 1rem;
  margin-top: 5px;
}
h4.subtitulo-secao {
  font-size: 1.3rem;
}

span.footer {
  width: 30%;
  font-size: 1rem;
  color: #686868;
  padding: 5% 10%;
}

.footer-container {
  background: #f1c43a;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
}
hr.footer-line {
  margin-bottom: -5px;
  border: none;
  border-top: 4px dotted #fff;
  position: relative;
}

footer .logo-mf{
  width:10%;
}

@media (max-width: 768px) {
  .logo-mf {
    width: 40%;
    height: auto;
    padding: 0 0 20px;
    margin-top: 45px;
  }
  .header h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -2px;
    margin: 0;
  }
  .form-container{
    padding: 0;
  }

  .termos-condicoes{
    font-size: 0.9rem;
    white-space: nowrap;
  }

  p.termos-paragrafo {
    font-size: 1rem;
    text-align: justify;
    margin: 10px 0 2px 0;
  }
  .footer .logo-mf {
    width: 25%;
  }
  span.footer {
    font-size: 0.55rem;
    width: 55%;
    color: #686868;
    padding: 5%;
  }
}
