/* Mészáros Karácsonyi Gála — regisztráció, frontend. Színek a témából / arculatból felülírhatók (--mxr-*). */
.mxr {
	--mxr-accent: #5e0108;
	--mxr-on-accent: #ffd795;
	--mxr-surface: #ffffff;
	--mxr-text: #2a1214;
	--mxr-muted: #6b5456;
	--mxr-line: #dccfc4;
	--mxr-focus: rgba(94, 1, 8, .28);
	--mxr-error: #b3261e;
	--mxr-radius: 10px;
	max-width: 640px;
	margin: 0 auto;
	color: var(--mxr-text);
	font-family: inherit;
}
.mxr *, .mxr *::before, .mxr *::after { box-sizing: border-box; }

.mxr__form, .mxr__done, .mxr__notice {
	background: var(--mxr-surface);
	border-radius: var(--mxr-radius);
	padding: 28px 28px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.mxr__notice, .mxr__done { font-size: 17px; line-height: 1.6; }
.mxr__done h3 { margin-top: 0; color: var(--mxr-text); }
.mxr__done:focus { outline: none; }
.mxr__form[hidden], .mxr__done[hidden], .mxr__message[hidden] { display: none; }

/* ".mxr" in front: a theme rule like ".entry-content p { margin }" must not eat the spacing. */
.mxr .mxr-field { margin: 0 0 18px; }
.mxr .mxr-field__label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--mxr-text); }
.mxr .mxr-field__hint { margin: 7px 0 0; font-size: 14px; line-height: 1.45; color: var(--mxr-muted); }

.mxr .mxr-input {
	display: block; width: 100%; margin: 0;
	font: inherit; font-size: 17px; line-height: 1.4; color: var(--mxr-text);
	padding: 13px 15px; background: #fff;
	border: 2px solid var(--mxr-line); border-radius: var(--mxr-radius);
	box-shadow: none;
	appearance: none; -webkit-appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.mxr .mxr-input:focus { outline: none; border-color: var(--mxr-accent); box-shadow: 0 0 0 3px var(--mxr-focus); }
.mxr .has-error .mxr-input { border-color: var(--mxr-error); }

.mxr .mxr-consent { display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer; font-size: 15px; }
.mxr .mxr-consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--mxr-accent); }
.mxr .mxr-consent__text p { margin: 0; line-height: 1.5; }
.mxr .mxr-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mxr .mxr-field--consent.has-error .mxr-consent input { outline: 2px solid var(--mxr-error); outline-offset: 2px; }

.mxr .mxr-error { display: block; margin-top: 7px; color: var(--mxr-error); font-size: 14px; line-height: 1.4; }
.mxr .mxr-error:empty { display: none; }

.mxr .mxr__message { margin: 4px 0 0; padding: 10px 14px; border-radius: 8px; background: #fde8e6; color: var(--mxr-error); font-size: 15px; line-height: 1.45; }

.mxr .mxr__actions { margin-top: 22px; text-align: center; }
.mxr .mxr-btn {
	display: inline-block; min-width: 220px;
	font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .04em;
	padding: 15px 34px; border: 2px solid var(--mxr-accent); border-radius: 999px;
	background: var(--mxr-accent); color: var(--mxr-on-accent); cursor: pointer;
	transition: filter .15s, opacity .15s, transform .15s;
}
.mxr .mxr-btn:hover { filter: brightness(1.08); }
.mxr .mxr-btn:active { transform: translateY(1px); }
.mxr .mxr-btn:focus-visible { outline: 3px solid var(--mxr-focus); outline-offset: 3px; }
.mxr .mxr-btn:disabled { opacity: .65; cursor: progress; }

.mxr .mxr__note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--mxr-line); font-size: 14px; line-height: 1.55; color: var(--mxr-muted); }
.mxr .mxr__note p { margin: 0 0 .6em; }
.mxr .mxr__note p:last-child { margin-bottom: 0; }
.mxr .mxr__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mxr .mxr-nw { white-space: nowrap; }

/* Honeypot: off-screen, not display:none (bots skip those less often). */
.mxr .mxr-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
	.mxr__form, .mxr__done, .mxr__notice { padding: 22px 18px 20px; }
	.mxr .mxr-btn { width: 100%; min-width: 0; }
}
