/*
  MindShift CBT — Listmonk v6.2.0 Custom CSS
  Paste into: Settings → Appearance → Public → Custom CSS

  Overrides the default style.css selectors with proper specificity.
  Update the --brand variables below to match your brand.
*/

/* ─── Brand tokens ─── */
:root {
  --brand-primary: #2563EB;
  --brand-primary-hover: #1D4ED8;
  --brand-text: #1E293B;
  --brand-text-soft: #64748B;
  --brand-bg: #F8FAFC;
  --brand-card: #FFFFFF;
  --brand-border: #E2E8F0;
  --brand-success: #16A34A;
  --brand-error: #DC2626;
}

/* ─── Page base ─── */
body {
  background: var(--brand-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Main container + card ─── */
.container {
  max-width: 520px;
  margin: 60px auto 15px auto;
}

.wrap {
  background: var(--brand-card);
  padding: 40px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

/* ─── Header / Logo ─── */
.header {
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
  text-align: center;
}

.header .logo img {
  max-width: 180px;
  max-height: 44px;
  width: auto;
}

/* ─── Headings ─── */
h1, h2, h3, h4 {
  color: var(--brand-text);
  font-weight: 600;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* ─── Text ─── */
p {
  color: var(--brand-text-soft);
  font-size: 0.938rem;
}

label {
  color: var(--brand-text);
  font-size: 0.938rem;
}

/* ─── Links ─── */
a {
  color: var(--brand-primary);
  text-decoration: none;
  text-decoration-color: unset;
}

a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

/* ─── Form inputs ─── */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.938rem;
  color: var(--brand-text);
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* ─── Checkboxes list ─── */
.lists {
  padding: 0;
  margin: 16px 0;
}

.lists li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 8px 0;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  list-style: none;
}

.lists li:hover {
  border-color: var(--brand-primary);
  background: #F0F5FF;
}

.lists li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.lists .description {
  margin: 2px 0 0 0;
  font-size: 0.813rem;
  color: var(--brand-text-soft);
  line-height: 1.4;
}

/* ─── Buttons ─── */
.button,
button[type="submit"] {
  background: var(--brand-primary);
  padding: 12px 28px;
  border-radius: 8px;
  border: 0;
  color: #fff;
  font-size: 0.938rem;
  font-weight: 500;
  min-width: 150px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button:hover,
button[type="submit"]:hover {
  background: var(--brand-primary-hover);
  color: #fff;
}

.button.button-outline {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
}

.button.button-outline:hover {
  background: var(--brand-bg);
  border-color: var(--brand-primary);
  color: var(--brand-primary-hover);
}

/* ─── Unsubscribe all section ─── */
.unsub-all {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--brand-border);
}

/* ─── Unsubscribe form ─── */
.unsub-form p,
.section p {
  color: var(--brand-text-soft);
  font-size: 0.938rem;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 0;
}

/* Blocklist checkbox row */
.unsub-form input[type="checkbox"],
.section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  vertical-align: middle;
  margin-right: 6px;
  cursor: pointer;
}

.unsub-form label,
.section label {
  color: var(--brand-text);
  font-size: 0.938rem;
  vertical-align: middle;
}

/* Make the unsubscribe button full width */
.unsub-form .button,
.unsub-form button[type="submit"] {
  width: 100%;
  padding: 12px 28px;
}

/* "Manage preferences" link at bottom of unsub page */
.unsub-form a,
.section > form > div > a {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--brand-text-soft);
}

.unsub-form a:hover,
.section > form > div > a:hover {
  color: var(--brand-primary);
}

/* ─── Rows / spacing ─── */
.row {
  margin-bottom: 18px;
}

/* ─── Error text ─── */
.error {
  color: var(--brand-error);
}

/* ─── Archive list ─── */
.archive {
  list-style-type: none;
  margin: 20px 0 0 0;
  padding: 0;
}

.archive li {
  padding: 14px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--brand-border);
}

.archive li:last-child {
  border-bottom: none;
}

.archive .date {
  display: block;
  color: var(--brand-text-soft);
  font-size: 0.813rem;
  margin-top: 4px;
}

/* ─── Captcha ─── */
.form .captcha {
  margin-top: 24px;
  margin-bottom: 16px;
}

/* ─── Home page options ─── */
.home-options {
  margin-top: 24px;
}

.home-options a {
  margin: 0 8px;
}

/* ─── Pagination ─── */
.pagination {
  margin-top: 28px;
}

.pg-page.pg-selected {
  color: var(--brand-primary);
  font-weight: 600;
}

/* ─── Login page ─── */
.login .submit {
  margin-top: 18px;
}

.login button {
  width: 100%;
  background: var(--brand-primary);
  border-radius: 8px;
  padding: 12px;
}

.login button:hover {
  background: var(--brand-primary-hover);
}

/* ─── Footer — hide "Powered by listmonk" ─── */
footer.container {
  display: none;
}

/* ─── Responsive ─── */
@media screen and (max-width: 650px) {
  .container {
    margin: 20px 16px;
  }

  .wrap {
    padding: 24px 20px;
    border-radius: 10px;
    margin: 0;
    max-width: none;
  }
}