/* Fonte importada do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #F8F8FA;
  color: #3C3C3C;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  padding-bottom: 120px; /* Espaço para footer + logos */

}

h1, h2, h3 {
  color: #5E5C87;
  font-weight: 600;
  margin-bottom: 15px;
}

a {
  color: #FF00FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFFF00;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(94, 92, 135, 0.1);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: #5E5C87;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background-color: #F4F0FA;
}

tbody tr:hover {
  background-color: #E6DAF7;
}

button {
  background: linear-gradient(90deg, #FF00FF 0%, #5E5C87 100%);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 16px;
  margin-top: 10px;
}

button:hover {
  background: #FFFF00;
  color: #3C3C3C;
}

label {
  font-weight: 600;
  color: #5E5C87;
  display: block;
  margin-bottom: 6px;
  margin-top: 15px;
}

input[type="text"],
input[type="date"],
select {
  padding: 10px;
  border: 2px solid #5E5C87;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: #FF00FF;
  outline: none;
}

ul {
  list-style: none;
  padding: 0;
  color: #FF00FF;
}

ul li {
  margin-bottom: 6px;
}

pre {
  background-color: #F4F0FA;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  color: #3C3C3C;
  font-size: 14px;
}

hr {
  border: none;
  border-top: 1px solid #5E5C87;
  margin: 30px 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background-color: #fff; /* Para garantir contraste */
  z-index: 1100;
  text-align: center;
  font-size: 10px;
}

/* Ajuste para evitar sobreposição das logos */
#form-container {
  margin-top: 150px;
  max-width: 100%;
  width: 100%; /* Garante que o container ocupe 100% da largura disponível */
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden; /* Evita que o conteúdo transborde */
}

/* Logos fixas no canto inferior */
.corner-logos {
  position: fixed;
  bottom: 50px; /* Acima do footer */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  pointer-events: auto;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.corner-logos img {
  height: 40px;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: auto;
  flex-shrink: 0;
}

#persona-inicial {
  position: absolute;  /* ← troca o fixed por absolute */
  bottom: 20px;
  right: 10%;
  width: 28%;
  height: auto;
  z-index: 1000;
  margin: 0;
  display: block;
}

#passo-a-passo {
  list-style-type: decimal;
  padding-left: 20px;
  font-size: 20px;
  line-height: 1.8;
  border-radius: 8px;
  padding: 15px 20px;
  font-family: 'Poppins', sans-serif;
  color: #3C3C3C;
}

#passo-a-passo li {
  margin-bottom: 12px;
}

#passo-a-passo li:last-child {
  margin-bottom: 0;
}

.topbar {
  width: 100%;
  background-color: #5E5C87;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

nav a {
  padding: 8px 16px;
  background-color: #5E5C87;
  color: white;
  border-radius: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(20px, 6vw, 28px);
    text-align: center;
    line-height: 1.3;
  }

  label,
  input,
  select,
  button,
  #passo-a-passo {
    font-size: clamp(14px, 4vw, 18px);
  }

  #persona-inicial {
    display: none;
  }

  .corner-logos {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent; /* remove fundo em telas pequenas */
    position: static; /* deixa estático em telas pequenas */
    padding: 10px 0;
  }

  .corner-logos img {
    max-width: 100px;
    height: auto;
  }

  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #5E5C87;
  }

  input[type="text"],
  input[type="date"],
  select {
    max-width: 100%;
  }

  button {
    width: 100%;
  }

  #form-container {
    padding: 10px;
    margin-top: 100px;
    margin-right: auto;
    padding-bottom: 20px; /* menos espaço no mobile */
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 400px) {
  .corner-logos {
    gap: 15px;
    bottom: 5px;
  }
  
  .corner-logos img {
    height: 35px;
    max-width: 70px;
  }
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-detalhe {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(94, 92, 135, 0.1);
  color: #3C3C3C;
  font-size: 16px;
  line-height: 1.6;
}


/* NOVO: Estilo para o bloco de informações da dívida */
.info-card {
  background-color: #E6D9F7; /* lilás claro */
  border-radius: 8px;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: #3C3C3C;
  font-size: 16px;
  line-height: 1.5;
}

.info-card dl {
  margin: 0;
}

.info-card dt, .info-card dd {
  display: inline-block;
  margin: 0;
  padding: 2px 10px 2px 0;
  vertical-align: top;
}

.info-card dt {
  font-weight: 600;
  color: #5E5C87;
  width: 120px; /* largura fixa para alinhamento */
}

.info-card dd {
  max-width: calc(100% - 120px);
  overflow-wrap: break-word;
}

/* Responsividade para o bloco info-card */
@media (max-width: 600px) {
  .info-card dt, .info-card dd {
    display: block;
    width: 100%;
  }

  .info-card dt {
    margin-top: 10px;
  }

  .info-card dd {
    max-width: 100%;
  }
}

/* === LAYOUT DO BLOCO COM PERSONA AO LADO === */

.conteudo-com-persona {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

/* Estilo para o formulário dentro da estrutura flexível */
.formulario {
  flex: 1 1 60%;
  min-width: 300px;
}

/* Estilo da persona - ao lado do conteúdo */
#persona-inicial {
  position: relative; /* ← agora fica dentro do fluxo da página */
  width: 600px;
  max-width: 30%;
  height: auto;
  z-index: 1;
}

/* Esconde a persona no mobile */
@media (max-width: 768px) {
  #persona-inicial {
    display: none;
  }

  .conteudo-com-persona {
    flex-direction: column;
    align-items: center;
  }

  .formulario {
    width: 100%;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 70px; /* ajustar para ficar acima do footer */
  right: 20px;
  z-index: 1500; /* ficar acima do footer */
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.whatsapp-balloon {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  transition: transform 0.2s ease;
  color: white;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.whatsapp-balloon:hover {
  transform: scale(1.05);
}

.whatsapp-balloon img {
  width: 28px;
  height: 28px;
}

.whatsapp-text {
  display: inline; /* mostra o texto junto do ícone */
}

/* Responsivo: no mobile, só o ícone */
@media (max-width: 600px) {
  .whatsapp-balloon {
    padding: 12px;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none; /* esconde texto no mobile */
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
