/* Signup forms. Pick up theme tokens when present; fall back to sensible values. */
.mxm-sub { --mxm-ink: var(--wp--preset--color--contrast, #1B2238); --mxm-bg: var(--wp--preset--color--surface, #FBF9F4); --mxm-line: var(--wp--preset--color--line, #D9D2C2); --mxm-accent: var(--wp--preset--color--accent, #8A5A14); --mxm-gold: var(--wp--preset--color--gold, #D9A94E); --mxm-muted: var(--wp--preset--color--muted, #5E6378); font-family: var(--wp--preset--font-family--ui, system-ui, sans-serif); color: var(--mxm-ink); }
.mxm-sub * { box-sizing: border-box; }
.mxm-sub__title { font: 500 1.35rem/1.2 var(--wp--preset--font-family--display, Georgia, serif); margin: 0 0 .35rem; }
.mxm-sub__text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.55; color: var(--wp--preset--color--ink-2, #4A5068); }
.mxm-sub__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.mxm-sub input[type=email] { flex: 1 1 220px; min-width: 0; font: 400 1rem var(--wp--preset--font-family--ui, system-ui, sans-serif); padding: .8rem 1rem; border: 1px solid var(--mxm-line); border-radius: 8px; background: #fff; color: #1B2238; }
.mxm-sub input[type=email]:focus-visible { outline: 2px solid var(--mxm-accent); outline-offset: 1px; }
.mxm-sub button[type=submit] { font: 500 .95rem var(--wp--preset--font-family--ui, system-ui, sans-serif); padding: .8rem 1.3rem; border: 0; border-radius: 8px; background: var(--wp--preset--color--navy, #141A33); color: var(--wp--preset--color--on-navy, #F4F0E8); cursor: pointer; transition: background .15s; }
.mxm-sub button[type=submit]:hover { background: var(--mxm-accent); color: #fff; }
.mxm-sub button[type=submit]:disabled { opacity: .6; cursor: progress; }
.mxm-sub__consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .85rem; font-size: .78rem; line-height: 1.5; color: var(--mxm-muted); }
.mxm-sub__consent input { margin-top: .2rem; accent-color: var(--mxm-accent); flex: none; }
.mxm-sub__consent a { color: inherit; }
.mxm-sub__msg { min-height: 1.4em; margin: .75rem 0 0; font-size: .9rem; line-height: 1.5; }
.mxm-sub__msg.is-ok { color: var(--wp--preset--color--sage, #3F6B58); font-weight: 500; }
.mxm-sub__msg.is-error { color: #B3261E; }
.mxm-sub__lead { display: inline-block; margin-top: .6rem; padding: .6rem 1rem; border-radius: 8px; background: var(--mxm-gold); color: #1B2238; text-decoration: none; font-weight: 500; }
.mxm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mxm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Variants */
.mxm-sub--card { background: var(--mxm-bg); border: 1px solid var(--mxm-line); border-radius: 14px; padding: 1.4rem; }
.mxm-sub--quiz { background: var(--wp--preset--color--accent-soft, #E9DCC3); border-radius: 14px; padding: 1.4rem; }
.mxm-sub--band { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; color: var(--wp--preset--color--on-navy, #F4F0E8); }
.mxm-sub--band .mxm-sub__head { flex: 1 1 320px; max-width: 520px; }
.mxm-sub--band .mxm-sub__title { color: inherit; }
.mxm-sub--band .mxm-sub__text { color: inherit; opacity: .8; margin: 0; }
.mxm-sub--band .mxm-sub__form { flex: 1 1 380px; max-width: 520px; }
.mxm-sub--band .mxm-sub__consent, .mxm-sub--band .mxm-sub__msg { color: rgba(244,240,232,.75); }
.mxm-sub--band button[type=submit] { background: var(--mxm-gold); color: #1B2238; }
.mxm-sub--band button[type=submit]:hover { background: #fff; color: #1B2238; }
.mxm-sub--band .mxm-sub__msg.is-ok { color: var(--mxm-gold); }
.mxm-sub--band .mxm-sub__msg.is-error { color: #FFB4AB; }
