/* WP Masquerade: contact form, newsletter forms, anti-spam fields, toast. Uses the tokens of site.css. */

/* Honeypot: out of sight for people, still in the DOM for robots. */
.wpm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wpm-req { color: var(--red); font-weight: 800; }
.wpm-opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.wpm-form .form-check label { color: var(--ink); line-height: 1.5; }
.wpm-form .form-check a { color: var(--blue); }
.wpm-form .form-check.has-error input { outline: 2px solid var(--red); outline-offset: 2px; }
.wpm-form .wpm-math { max-width: 360px; }
.wpm-form .wpm-math input { max-width: 120px; }
.wpm-form [hidden] { display: none !important; }
.wpm-captcha { margin: 0 0 16px; min-height: 65px; }

/* Contact */
.wpm-contact { margin: 1.4rem 0 0; }
.wpm-contact .alert { margin: 0 0 20px; }
.wpm-contact .alert ul { margin: 6px 0 0; padding-left: 18px; }
.wpm-contact .alert a { color: inherit; }
.wpm-contact-form { background: #fff; border: 1px solid var(--edge); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.wpm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
/* Topic menu on its own row: the field, the designed button and its list span the whole form width. */
.wpm-form .wpm-field-full, .wpm-form .wpm-field-full .wpm-select, .wpm-form .wpm-field-full .wpm-select-btn { width: 100%; max-width: none; }
.wpm-form textarea { resize: vertical; min-height: 150px; }
.wpm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.wpm-form-actions p { margin: 0; }
.wpm-form-actions .btn svg { width: 18px; height: 18px; }
@media (max-width: 650px) {
	.wpm-form-row { grid-template-columns: 1fr; }
	.wpm-contact-form { padding: 20px 16px; }
}

/* Newsletter (shared) */
.wpm-nl-form { margin: 0; }
.wpm-nl-row { display: flex; gap: 10px; }
.wpm-nl-row .input { flex: 1 1 auto; min-width: 0; padding: 11px 14px; border: 1px solid var(--edge); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.wpm-nl-row .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 101, 244, .18); }
.wpm-nl-row .btn { flex: none; }
.wpm-nl-consent { margin: 12px 0 0; font-size: .82rem; }
.wpm-nl-consent input { margin-top: 3px; }
.wpm-nl-form .wpm-math { margin: 12px 0 0; }
.wpm-form-msg:empty { display: none; }
.wpm-form-msg { margin: 12px 0 0; font-size: .9rem; }
.wpm-nl-form.is-done .wpm-nl-row, .wpm-nl-form.is-done .wpm-nl-consent, .wpm-nl-form.is-done .wpm-math { display: none; }
@media (max-width: 520px) {
	.wpm-nl-row { flex-direction: column; }
}

/* Band above the footer */
.wpm-nl-band { background: var(--light); border-top: 1px solid var(--line); padding: 44px 0; }
.wpm-nl-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.wpm-nl-copy { display: flex; gap: 16px; align-items: flex-start; }
.wpm-nl-copy .icon-tile { flex: none; }
.wpm-nl-copy h2 { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -.01em; }
.wpm-nl-copy p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
	.wpm-nl-band-inner { grid-template-columns: 1fr; }
}

/* Box at the end of articles */
.wpm-nl-box { margin: 44px 0 0; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, #f3f7ff, #fff); border: 1px solid #cfe0ff; }
.wpm-nl-box h2 { font-size: 1.15rem; margin: 0 0 6px; }
.wpm-nl-box > p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }

/* Toast after a confirmation link */
.wpm-toast { position: fixed; z-index: 100; left: 50%; top: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow); margin: 0; }
.wpm-toast p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
	.wpm-toast { animation: wpm-toast-in .3s ease-out both, wpm-toast-out .4s ease-in 7s forwards; }
}
@keyframes wpm-toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes wpm-toast-out { to { opacity: 0; visibility: hidden; } }
