/**
 * NGS CRM Preferences — estilos.
 * Paleta alinhada com o tema do blog (azul 1B5E8C, verde 2E9E6A).
 */
.ngs-crm-prefs {
  max-width: 560px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #222;
}

.ngs-crm-prefs__header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--ngs-primary, #9B2C4D);
}

.ngs-crm-prefs__email {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.95rem;
}

.ngs-crm-prefs__loader {
  padding: 1rem 0;
  color: #888;
  text-align: center;
}

.ngs-crm-prefs__alert {
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.ngs-crm-prefs__alert--error {
  background: #fff1f0;
  color: #a80000;
  border: 1px solid #ffccc7;
}

.ngs-crm-prefs__alert--success {
  background: #f0fff4;
  color: #167b3d;
  border: 1px solid #b7eb8f;
}

.ngs-crm-prefs__form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ngs-crm-prefs__form legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ngs-crm-prefs__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.ngs-crm-prefs__option:hover {
  background: #fafafa;
}

.ngs-crm-prefs__option input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--ngs-success, #3F6A45);
}

.ngs-crm-prefs__option strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ngs-crm-prefs__option em {
  display: block;
  color: #666;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ngs-crm-prefs__option--danger {
  border-color: #ffccc7;
  background: #fffaf9;
}

.ngs-crm-prefs__option--danger input[type="checkbox"] {
  accent-color: #d4380d;
}

.ngs-crm-prefs__form hr {
  border: 0;
  border-top: 1px dashed #ddd;
  margin: 1rem 0;
}

.ngs-crm-prefs__reason {
  margin: 0.5rem 0 1rem;
}

.ngs-crm-prefs__reason label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

.ngs-crm-prefs__reason span {
  color: #999;
  font-weight: normal;
}

.ngs-crm-prefs__reason textarea {
  width: 100%;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
}

.ngs-crm-prefs__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--ngs-primary, #9B2C4D);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.ngs-crm-prefs__submit:hover:not(:disabled) {
  background: #164a6f;
}

.ngs-crm-prefs__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ngs-crm-prefs__footnote {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Página /unsubscribe */
.ngs-crm-prefs__actions {
  margin: 1rem 0 0;
  text-align: center;
}

.ngs-crm-prefs__link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--ngs-primary, #9B2C4D);
  font-size: 0.95rem;
  text-decoration: underline;
}

.ngs-crm-prefs__link:hover {
  color: #164a6f;
}
