* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f7f7f7;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h3 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

.checkbox-group label,
.checkbox-simples label,
.lgpd-consentimento {
  display: block;
  margin-bottom: 10px;
}

#mensagem {
  margin-top: 20px;
  text-align: center;
}

/* Campo específico de bairro e familiar */
#campoBairro,
#familiar_info {
  padding-left: 10px;
  border-left: 2px solid #ccc;
  margin-top: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  h1, h3 {
    font-size: 20px;
  }

  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 14px;
  }

  button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }
}
fieldset {
  border: 1px solid #ccc;
  padding: 30px;
  margin-bottom: 15px;
  border-radius: 2px;
}
legend {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}
