
  /* === LogPos listmonk theme === */

  body {
    background: #0f172a !important;
    color: #ffffff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
  }

  .container.wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #0f172a !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Kill any default white backgrounds */
  section,
  .form,
  .form div,
  .form p {
    background: transparent !important;
    color: #ffffff;
  }

  /* Header / Logo */
  .header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: none !important;
    background: transparent !important;
  }

  .header .logo img {
    width: 64px;
    height: 64px;
  }

  /* Section heading */
  section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #ffffff !important;
  }

  /* Form labels */
  .form label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1 !important;
  }

  /* Text inputs */
  .form input[type="email"],
  .form input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 0.5rem;
    color: #ffffff !important;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }

  .form input[type="email"]:focus,
  .form input[type="text"]:focus {
    border-color: #5190f5 !important;
  }

  .form input[type="email"]::placeholder,
  .form input[type="text"]::placeholder {
    color: #64748b !important;
  }

  /* Spacing between fields */
  .form p {
    margin: 0 0 1rem;
  }

  /* Nonce (honeypot) hidden */
  .form .nonce {
    display: none;
  }

  /* Lists section */
  .lists {
    list-style: none;
    padding: 1rem 1.25rem !important;
    margin: 1.25rem 0;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 0.5rem;
  }

  .lists h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #cbd5e1 !important;
  }

  .lists li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    background: transparent !important;
  }

  .lists li label {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .lists li input[type="checkbox"] {
    accent-color: #5190f5;
    width: 1rem;
    height: 1rem;
  }

  .lists .description {
    width: 100%;
    font-size: 0.8rem;
    color: #94a3b8 !important;
    margin: 0.15rem 0 0 1.5rem;
  }

  /* Captcha area */
  .captcha {
    margin: 1.25rem 0;
  }

  /* Altcha widget overrides */
  .altcha {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
  }

  .altcha .altcha-label {
    color: #cbd5e1 !important;
  }

  .altcha .altcha-footer,
  .altcha .altcha-footer a {
    color: #64748b !important;
  }

  .altcha .altcha-logo svg {
    color: #64748b !important;
  }

  /* Submit button */
  .form .button {
    display: inline-block;
    padding: 0.625rem 1.75rem;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #5190f5 !important;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .form .button:hover {
    background: #5190f5 !important;
  }

  /* Archive link */
  .right {
    margin-top: 0.5rem;
  }

  .right a {
    color: #5190f5 !important;
    text-decoration: none;
    font-size: 0.875rem;
  }

  .right a:hover {
    text-decoration: underline;
  }

  /* Footer */
  footer.container {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    color: #64748b !important;
    border-top: 1px solid #334155 !important;
    max-width: 520px;
    margin: 2rem auto 0;
    background: transparent !important;
  }

  footer.container a {
    color: #5190f5 !important;
    text-decoration: none;
  }

  footer.container a:hover {
    text-decoration: underline;
  }

  /* Fix remaining white borders */
  .form input[type="email"],
  .form input[type="text"] {
    border: 1px solid #334155 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .lists {
    border: 1px solid #334155 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .altcha {
    border: 1px solid #334155 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .form .button {
    box-shadow: none !important;
    outline: none !important;
  }

  /* Catch-all: kill any remaining white borders/outlines */
  * {
    outline-color: #334155 !important;
  }