/* ============================
   Layout geral
============================ */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================
   Títulos
============================ */
h2 {
  color: #007acc;
  margin-top: 0;
}

/* ============================
   Formulário
============================ */
form label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

form textarea {
  resize: vertical;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 14px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
}

button[type="submit"]:hover {
  background: #005fa3;
}

/* ============================
   Status de envio
============================ */
#status-envio {
  margin-top: 12px;
  font-weight: bold;
}

/* ============================
   Checkboxes de interesse
============================ */
#campo-newsletters {
  margin-top: 20px;
}

#campo-newsletters > label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.caixa-interesses {
  background: #f0f7ff;
  border: 1px solid #007acc33;
  padding: 15px;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

/* Checkboxes compactos */
.caixa-interesses label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
}

.caixa-interesses input[type="checkbox"] {
  transform: scale(1.1);
}

/* ============================
   Modal de agradecimento
============================ */
#modalAgradecimento {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease-out;
}

#modalAgradecimento .box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 30px 25px;
  border-radius: 14px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  border: 2px solid #007acc33;
  animation: slideUp 0.3s ease-out;
}

#modalAgradecimento h3 {
  margin-top: 0;
  color: #007acc;
  font-size: 1.4rem;
}

#modalAgradecimento p {
  color: #444;
  margin: 10px 0 20px;
  font-size: 1rem;
}

#modalAgradecimento button {
  padding: 12px 20px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s ease;
}

#modalAgradecimento button:hover {
  background: #005fa3;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}
/* Caixa geral */
.caixa-interesses {
  background: #f0f7ff;
  border: 1px solid #007acc33;
  padding: 15px;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

/* Duas colunas */
.caixa-interesses.duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

/* Cada item */
.item-interesse {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 0;
  user-select: none;
}

/* Esconde o checkbox padrão */
.item-interesse input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

/* Ícone customizado */
.item-interesse .icone {
  width: 18px;
  height: 18px;
  border: 2px solid #007acc;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background: #fff;
  transition: 0.2s;
}

/* Ícone marcado */
.item-interesse input[type="checkbox"]:checked + .icone {
  background: #007acc;
  border-color: #005fa3;
}

/* Checkmark */
.item-interesse input[type="checkbox"]:checked + .icone::after {
  content: "✔";
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: 0;
  left: 3px;
}

/* Texto */
.item-interesse .texto {
  flex: 1;
  color: #333;
}