/* Fonte base */
body {
  font-family: 'Raleway', sans-serif;
  background-color: #DFD9F7;
  margin: 0;
  padding: 0;
}

/* Container principal */
.cadastro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100vh;
  padding-top: 60px;
}

/* Logo */
.logo-area img {
  width: 180px;
  border-radius: 16px;
  margin-bottom: 20px;
  margin-left: 166px;
}

.logo-area h1 {
  color: #7162C0;
  margin-left: -10px;
  font-family: "Raleway-ExtraBold", Helvetica;
  font-weight: 600;
  font-size: 40px;
  text-align: center;
  margin: auto;
}

.logo-area h3 {
  color: #7162C0;
  font-family: "Raleway-Regular", Helvetica;
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  margin: auto;
}

.logo-area p {
  color: #838181;
  font-family: "Raleway-Regular", Helvetica;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  margin: auto;
}

/* Box de cadastro */
.form-box {
  background-color: #ffffff;
  width: 577px;
  height: auto;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
  margin-top: 30px;
}

/* Título */
.form-box h2 {
  color: #033577;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 24px;
  text-align: center;
}

/* Labels e inputs */
label {
  color: #033577;
  font-weight: 600;
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  margin-left: 15px;
  font-family: Raleway-SemiBold, Helvetica;
  font-weight: 600;
  color: #606060;
  margin-bottom: 15px;
}

.labelpersonalizada {
  color: #033577;
  font-weight: 600;
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  margin-left: 15px;
  font-family: Raleway-SemiBold, Helvetica;
  font-weight: 600;
  color: #606060;
  margin-bottom: 15px;
  text-align: center;
}

select {
  width: 541px;
  height: 45px;
  border: 1px solid #d4caca;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
  margin-left: 15px;
  font-size: 15px;
  color: #606060;
}

select.campo-iconetamanho {
  background-image: url('/static/images/tamanhoempresa.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 25px;
  padding-left: 40px;
}

select:focus {
  border-color: #87CEFA;
}

input {
  width: 496px;
  height: 40px;
  border: 1px solid #d4caca;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
  margin-left: 15px;
}

input.campo-icone {
  background-image: url('/static/images/nomecompleto.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 25px;
  padding-left: 40px;
}

input.campo-iconecpf {
  background-image: url('/static/images/cpf.png');
  background-repeat: no-repeat;
  background-position: 10px center;
  padding-left: 40px;
}

input.campo-iconeemail {
  background-image: url('/static/images/email.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 25px;
  padding-left: 40px;
}

input.campo-iconecelular {
  background-image: url('/static/images/celular.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 24px;
  padding-left: 40px;
}

input.campo-iconeempresa {
  background-image: url('/static/images/nomeempresa.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 25px;
  padding-left: 40px;
}

input.campo-iconepassword {
  background-image: url('/static/images/senha.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 25px 25px;
  padding-left: 40px;   /* espaço pro ícone decorativo */
  padding-right: 40px;  /* espaço pro ícone funcional (olho) */
  box-sizing: border-box;
}

input:focus {
  border-color: #87CEFA;
}

input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.2);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Alinhamento da checkbox e texto */
.campo-termos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.label-termos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 6px;
  color: #444;
  line-height: 1.4;
  margin-top: -33px;
  margin-left: 65px;
}

.label-principal {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 15px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
  margin-left: 35px;
}

/* Links dos modais */
.link-termos {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal-conteudo {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-size: 15px;
  position: relative;
  max-height: 50vh; /* Limita a altura a 85% da altura da tela (viewport) */
  overflow-y: auto; /* Adiciona a rolagem vertical APENAS se for necessário */
}

/* Estilização da barra de rolagem para navegadores WebKit (Chrome, Safari) */
.modal-conteudo::-webkit-scrollbar {
  width: 8px; /* Largura da barra */
}

.modal-conteudo::-webkit-scrollbar-track {
  background: #f1f1f1; /* Cor do fundo da barra */
  border-radius: 10px;
}

.modal-conteudo::-webkit-scrollbar-thumb {
  background: #c5bde3; /* Cor da alça de rolagem */
  border-radius: 10px;
}

.modal-conteudo::-webkit-scrollbar-thumb:hover {
  background: #8459B4; /* Cor da alça ao passar o mouse */
}

.fechar {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}


/* Botão */
button[type="submit"] {
  width: 496px;
  height: 40px;
  background-color: #21C45D;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 37px;
}

button:hover {
  background-color: #0053aa;
}

/* Link de login */
.login-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #033577;
  text-decoration: none;
  font-weight: 500;
}

.login-link:hover {
  text-decoration: underline;
}

.erro-topo {
  z-index: 9999;
  max-width: 100%;
  animation: slideDown 0.3s ease-out;
  align-items: center;
}

.erro-caixa {
  background-color: #ffe5e5;
  color: #d20000;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

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

.erro-campo {
  color: #d20000;
  font-size: 13px;
  margin-top: 6px;
  padding: 6px 10px;
  background-color: #ffe5e5;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.senha-wrapper {
  max-width: 540px;
  width: 100%;
  position: relative;
}

.senha-wrapper input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 40px; /* espaço pro ícone */
}

.icone-senha {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}


/* --- NOVO: GRUPO DE SELEÇÃO PF/PJ --- */
.tipo-cadastro-grupo {
  margin-bottom: 20px;
}

.tipo-cadastro-grupo ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.tipo-cadastro-grupo li {
  display: inline-block;
}

.tipo-cadastro-grupo label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
}

.tipo-cadastro-grupo input[type="radio"] {
  margin-right: 8px;
  /* Melhora a aparência do radio button */
  accent-color: #8E4DDE;
  width: 16px;
  height: 16px;
}