/* ================================================================
   Hack Alerta — Listmonk Public Pages Custom CSS
   Aplicar em: Settings > Appearance > Public
   Cobre: página de descadastro, gerenciamento de assinatura,
          formulário de inscrição e páginas de mensagem.
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset base ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Body / background ────────────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  background-color: #eaeff7;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #374151;
  -webkit-font-smoothing: antialiased;
}

/* ── Outer wrapper ────────────────────────────────────────────── */
.container.wrap,
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* ── Header — navy gradient idêntico ao template de email ─────── */
header.header {
  background: linear-gradient(135deg, #1a2c5e 0%, #1e3a8a 60%, #2350a8 100%);
  border-radius: 16px 16px 0 0;
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 0;
}

/* Logo no header */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Fallback text se logo não carregar */
.logo a::after {
  content: '';
}

/* ── Card principal de conteúdo ───────────────────────────────── */
.content,
.page,
section,
.container.wrap > div:not(.logo):not(.header) {
  background-color: #ffffff;
  border-radius: 0 0 16px 16px;
  padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.10);
}

/* Quando não há header separado, aplica card completo */
.container:not(.wrap) {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.10);
  margin-top: 8px;
}

/* ── Tipografia ───────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Inter', Arial, sans-serif;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

p {
  font-family: 'Inter', Arial, sans-serif;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

p.description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Formulário ───────────────────────────────────────────────── */
form {
  margin-top: 8px;
}

label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  color: #111827;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background-color: #ffffff;
}

/* Checkbox customizado */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
  border-radius: 4px;
}

/* ── Botões ───────────────────────────────────────────────────── */
button,
input[type="submit"],
.btn,
a.btn {
  display: inline-block;
  background-color: #3b82f6;
  color: #ffffff !important;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* Botão secundário / outline */
button.secondary,
.btn-secondary,
a.btn-secondary {
  background-color: transparent;
  color: #3b82f6 !important;
  border: 1px solid #3b82f6;
}

button.secondary:hover,
.btn-secondary:hover {
  background-color: #eff6ff;
}

/* Botão de perigo (unsubscribe confirm) */
button.danger,
.btn-danger,
input[type="submit"].danger {
  background-color: #ef4444;
}

button.danger:hover {
  background-color: #dc2626;
}

/* ── Mensagem de sucesso / erro ───────────────────────────────── */
.message,
.success,
.error,
.notification {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin: 16px 0;
  font-family: 'Inter', Arial, sans-serif;
}

.message.success,
.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error,
.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Separador ────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

/* ── Listas de newsletter (checkboxes de listas) ──────────────── */
.lists {
  margin: 16px 0 24px;
}

.lists .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.lists .item:last-child {
  border-bottom: none;
}

.lists .item .name {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
}

.lists .item .description {
  font-size: 13px;
  color: #9ca3af;
  margin: 2px 0 0 0;
  font-family: 'Inter', Arial, sans-serif;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer.container,
footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: #9ca3af;
  font-family: 'Inter', Arial, sans-serif;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-top: 8px;
}

footer a {
  color: #9ca3af;
}

footer a:hover {
  color: #3b82f6;
}

/* Ocultar "powered by listmonk" se quiser — remova o comentário */
/* footer.container { display: none; } */

/* ── Mobile ───────────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
  .container.wrap,
  .wrap {
    padding: 20px 0 40px;
  }

  header.header {
    border-radius: 0;
    padding: 20px 20px;
  }

  .content,
  section,
  .container:not(.wrap) {
    border-radius: 0;
    padding: 24px 20px;
  }

  .logo img {
    height: 44px;
  }
}

footer.container {
  display: none !important;
}