/* CECOE Mailing List — subscription forms and confirmation banners. */
:where(:root) {
  --navy: #025529; --navy-dark: #0b2615; --green: #006837; --green-light: #e6f3ec;
  --amber: #f2a900; --ink: #1f2421; --muted: #55625b; --line: #e1e7e3; --bg: #f8f8f8; --card: #ffffff; --radius: 18px;
}
/* Fallback buttons for themes other than CECOE's (zero specificity: any theme rule wins). */
:where(.btn) { display: inline-block; padding: 12px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
:where(.btn-primary) { background: var(--navy); color: #fff; }
:where(.btn-ghost-dark) { border-color: var(--navy); color: var(--navy); background: transparent; }
/* ---------- Flash messages (subscribe / confirm / unsubscribe) ---------- */
.cecoe-flash { padding: 14px 0; font-weight: 600; font-size: 15px; }
.cecoe-flash.is-ok { background: var(--green-light); color: var(--navy); border-bottom: 1px solid #bfdccb; }
.cecoe-flash.is-error { background: #fff1f0; color: #8a1c13; border-bottom: 1px solid #f3c9c5; }

/* ---------- Subscribe ---------- */
.subscribe-section { background: var(--navy); color: #fff; padding: 54px 0; margin-top: 30px; }
.subscribe-section > .wrap > .subscribe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .subscribe-section > .wrap > .subscribe-grid { grid-template-columns: 1fr; } }
.subscribe-copy h2 { color: #fff; font-size: 26px; margin-bottom: 10px; padding-left: 14px; border-left: 5px solid var(--amber); }
.subscribe-copy .section-sub { color: #cfe4d8; }
.subscribe-points { list-style: none; }
.subscribe-points li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: #e2efe8; }
.subscribe-points li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--amber); font-weight: 800;
}
.subscribe-form-box { background: #fff; border-radius: var(--radius); padding: 26px; color: var(--ink); }

.cecoe-subscribe .cecoe-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.cecoe-subscribe .cecoe-fields { display: grid; gap: 12px; }
.cecoe-subscribe input[type="email"],
.cecoe-subscribe input[type="text"] {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 8px; outline: none; background: #fff; color: var(--ink);
}
.cecoe-subscribe input:focus { border-color: var(--navy); }
.cecoe-subscribe .cecoe-submit { margin-top: 2px; }
.cecoe-subscribe .cecoe-submit .btn { width: 100%; }
.cecoe-topics { border: 0; margin: 18px 0 4px; }
.cecoe-topics legend { font-weight: 700; color: var(--navy); font-size: 14.5px; margin-bottom: 8px; }
.cecoe-topics label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; cursor: pointer; }
.cecoe-topics input { margin-top: 4px; flex: none; }
.cecoe-topics strong { display: block; font-weight: 600; color: var(--ink); }
.cecoe-topics em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.cecoe-consent { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.cecoe-form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 0; }
.cecoe-form-msg.is-ok { color: var(--green); }
.cecoe-form-msg.is-error { color: #b3261e; }
.cecoe-subscribe.is-busy button { opacity: .6; pointer-events: none; }

/* Compact form in the footer */
.footer-subscribe {
  border-top: 1px solid #ffffff22; padding: 26px 0 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
@media (max-width: 820px) { .footer-subscribe { grid-template-columns: 1fr; } }
.footer-subscribe p { font-size: 14px; }
.cecoe-subscribe.is-compact .cecoe-fields { grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 480px) { .cecoe-subscribe.is-compact .cecoe-fields { grid-template-columns: 1fr; } }
.cecoe-subscribe.is-compact .cecoe-submit .btn { width: auto; white-space: nowrap; }
.cecoe-subscribe.is-compact .cecoe-consent { color: #93b3a0; }
.cecoe-subscribe.is-compact .cecoe-form-msg.is-ok { color: #ffd34d; }
.cecoe-subscribe.is-compact .cecoe-form-msg.is-error { color: #ffb4ad; }
