/* BML Event Registration: public form */
.bmler {
	--bmler-accent: #E10A17;
	--bmler-accent-2: #F9C406;
	--bmler-ink: #0f172a;
	--bmler-text: #334155;
	--bmler-muted: #64748b;
	--bmler-line: #e2e8f0;
	--bmler-soft: #f8fafc;
	--bmler-ok: #16a34a;
	--bmler-radius: 18px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bmler-text);
	line-height: 1.55;
	max-width: 760px;
	margin: 0 auto 2.5rem;
	-webkit-font-smoothing: antialiased;
}
.bmler *, .bmler *::before, .bmler *::after { box-sizing: border-box; }
.bmler [hidden] { display: none !important; }

.bmler-card {
	background: #fff;
	border: 1px solid var(--bmler-line);
	border-radius: var(--bmler-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px -12px rgba(15, 23, 42, .18);
	overflow: hidden;
}
.bmler-header {
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 4px 24px 0;
	height: 150px;
	overflow: hidden;
}
.bmler-logo {
	display: block;
	height: 190px;
	width: auto;
	max-width: none;
	margin: 0;
	border: 0;
	box-shadow: none;
}
.bmler-stripe {
	height: 6px;
	background: linear-gradient(90deg, var(--bmler-accent) 0 50%, var(--bmler-accent-2) 50% 100%);
}
.bmler-body { padding: 32px 36px 36px; }

.bmler-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bmler-accent);
	background: color-mix(in srgb, var(--bmler-accent) 9%, #fff);
	padding: 5px 10px;
	border-radius: 999px;
}
.bmler-title {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	line-height: 1.2;
	font-weight: 800;
	color: var(--bmler-ink);
	margin: 12px 0 22px;
	letter-spacing: -.02em;
}

.bmler-meta {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.bmler-meta li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--bmler-soft);
	border: 1px solid var(--bmler-line);
	border-radius: 14px;
	padding: 14px 16px;
	margin: 0;
	color: var(--bmler-ink);
	font-weight: 600;
}
.bmler-meta li.bmler-meta-wide { grid-column: 1 / -1; }
.bmler-meta small {
	display: block;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bmler-muted);
	font-weight: 600;
	margin-bottom: 2px;
}
.bmler-meta em { display: block; font-style: normal; font-weight: 400; color: var(--bmler-text); font-size: .94em; }
.bmler-map { font-size: .9em; font-weight: 600; color: var(--bmler-accent) !important; text-decoration: none; }
.bmler-map:hover { text-decoration: underline; }
.bmler-meta-icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid var(--bmler-line);
	color: var(--bmler-accent);
}
.bmler-meta-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bmler-purpose { margin: 0 0 24px; }
.bmler-purpose h3, .bmler-form-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bmler-ink);
	margin: 0 0 8px;
}
.bmler-purpose p { margin: 0 0 10px; }

/* Capacity */
.bmler-capacity {
	position: relative;
	border-radius: 16px;
	padding: 18px 20px 20px;
	margin: 0 0 26px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #e2e8f0;
}
.bmler-capacity .bmler-meta-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--bmler-accent-2); }
.bmler-capacity-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bmler-capacity-text { display: flex; align-items: baseline; gap: 8px; flex: 1; flex-wrap: wrap; }
.bmler-remaining { font-size: 2.2rem; line-height: 1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; transition: transform .3s; }
.bmler-remaining.bump { transform: scale(1.15); }
.bmler-capacity-text span { font-weight: 600; font-size: 1rem; }
.bmler-capacity-total { color: #94a3b8; font-weight: 600; white-space: nowrap; margin-right: 54px; }
.bmler-bar { height: 10px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.bmler-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bmler-accent-2), var(--bmler-accent)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bmler-live {
	position: absolute; top: 18px; right: 18px;
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8;
	display: inline-flex; align-items: center; gap: 6px;
}
.bmler-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: bmler-pulse 2s infinite; }
@keyframes bmler-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.bmler-capacity.is-low .bmler-remaining { color: var(--bmler-accent-2); }
.bmler-capacity.is-full .bmler-remaining { color: #fca5a5; }
.bmler-capacity.is-full .bmler-bar span { background: var(--bmler-accent); }

/* Notices */
.bmler-notice {
	border-radius: 14px;
	padding: 18px 20px;
	margin: 0 0 22px;
	border: 1px solid;
}
.bmler-notice strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.bmler-notice p { margin: 0; }
.bmler-notice--closed {
	background: color-mix(in srgb, var(--bmler-accent) 7%, #fff);
	border-color: color-mix(in srgb, var(--bmler-accent) 30%, #fff);
	color: #7f1d1d;
}
.bmler-notice--closed strong { color: var(--bmler-accent); }

/* Form */
.bmler-form { border-top: 1px solid var(--bmler-line); padding-top: 24px; }
.bmler-form-title { margin-bottom: 16px; }
.bmler-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.bmler-col-full { grid-column: 1 / -1; }
.bmler-col-half { grid-column: span 1; }
.bmler-field { margin: 0; }
.bmler-field > label, .bmler-field legend {
	display: block;
	font-size: .9rem;
	font-weight: 600;
	color: var(--bmler-ink);
	margin: 0 0 6px;
	padding: 0;
}
.bmler-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bmler-req { color: var(--bmler-accent); }
.bmler .bmler-field input[type=text],
.bmler .bmler-field input[type=email],
.bmler .bmler-field input[type=tel],
.bmler .bmler-field input[type=number],
.bmler .bmler-field input[type=url],
.bmler .bmler-field input[type=date],
.bmler .bmler-field select,
.bmler .bmler-field textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--bmler-ink);
	background: #fff;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	padding: 12px 14px;
	min-height: 48px;
	margin: 0;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
	appearance: none;
	-webkit-appearance: none;
}
.bmler .bmler-field textarea { min-height: 110px; resize: vertical; }
.bmler .bmler-field input:hover, .bmler .bmler-field select:hover, .bmler .bmler-field textarea:hover { border-color: #94a3b8; }
.bmler .bmler-field input:focus, .bmler .bmler-field select:focus, .bmler .bmler-field textarea:focus {
	outline: none;
	border-color: var(--bmler-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bmler-accent) 15%, transparent);
}
.bmler-select { position: relative; }
.bmler-select::after {
	content: "";
	position: absolute; right: 16px; top: 50%;
	width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--bmler-muted); border-bottom: 2px solid var(--bmler-muted);
	transform: rotate(45deg); pointer-events: none;
}
.bmler-select select { padding-right: 40px; }

.bmler-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bmler-choice {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1.5px solid #cbd5e1; border-radius: 999px;
	padding: 9px 16px; cursor: pointer; font-weight: 500; color: var(--bmler-ink);
	transition: border-color .15s, background .15s;
	margin: 0;
}
.bmler-choice:hover { border-color: #94a3b8; }
.bmler-choice input { accent-color: var(--bmler-accent); margin: 0; width: 16px; height: 16px; }
.bmler-choice:has(input:checked) { border-color: var(--bmler-accent); background: color-mix(in srgb, var(--bmler-accent) 7%, #fff); }
.bmler-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--bmler-text); margin: 0; }
.bmler-consent input { accent-color: var(--bmler-accent); width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; }
.bmler-consent a { color: var(--bmler-accent); }

.bmler-help { font-size: .82rem; color: var(--bmler-muted); margin: 6px 0 0; }
.bmler-error { font-size: .84rem; color: #dc2626; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.bmler-error:empty { display: none; }
.bmler-field.has-error input, .bmler-field.has-error select, .bmler-field.has-error textarea { border-color: #dc2626 !important; }
.bmler-field.has-error .bmler-choice { border-color: #fca5a5; }

.bmler-section-heading h3 { font-size: 1rem; font-weight: 700; color: var(--bmler-ink); margin: 10px 0 0; padding-top: 14px; border-top: 1px dashed var(--bmler-line); }
.bmler-info-text { font-size: .93rem; color: var(--bmler-text); background: var(--bmler-soft); border-radius: 12px; padding: 12px 16px; }
.bmler-info-text p { margin: 0 0 6px; }
.bmler-info-text p:last-child { margin: 0; }

.bmler-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bmler-form-error {
	margin: 18px 0 0;
	background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
	border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .93rem;
}
.bmler-submit {
	position: relative;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%;
	margin: 22px 0 0;
	padding: 16px 24px;
	min-height: 56px;
	border: 0;
	border-radius: 14px;
	background: var(--bmler-accent);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--bmler-accent) 80%, transparent);
	transition: transform .12s, box-shadow .15s, filter .15s;
}
.bmler-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bmler-submit:active { transform: translateY(0); }
.bmler-submit:focus-visible { outline: 3px solid var(--bmler-accent-2); outline-offset: 3px; }
.bmler-submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.bmler-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bmler-spin .7s linear infinite; }
.bmler-submit.is-loading .bmler-spinner { display: inline-block; }
@keyframes bmler-spin { to { transform: rotate(360deg); } }
.bmler-fineprint { text-align: center; font-size: .82rem; color: var(--bmler-muted); margin: 12px 0 0; }

/* Success / ticket */
.bmler-success { text-align: center; padding: 8px 0 0; outline: none; animation: bmler-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes bmler-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bmler-success-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: var(--bmler-ok); }
.bmler-success-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bmler-success h3 { font-size: 1.6rem; font-weight: 800; color: var(--bmler-ink); margin: 0 0 6px; }
.bmler-success-msg { margin: 0 auto 20px; max-width: 480px; }
.bmler-ticket {
	position: relative;
	max-width: 340px;
	margin: 0 auto 16px;
	border: 1px solid var(--bmler-line);
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 30px -14px rgba(15,23,42,.35);
}
.bmler-ticket-head { background: var(--bmler-ink); color: #fff; padding: 14px 16px; text-align: left; }
.bmler-ticket-head span { display: block; font-weight: 700; }
.bmler-ticket-head small { color: #cbd5e1; font-size: .8rem; }
.bmler-ticket-qr { padding: 18px 26px 6px; }
.bmler-ticket-qr svg { width: 100%; height: auto; display: block; }
.bmler-ticket-name { font-weight: 700; color: var(--bmler-ink); font-size: 1.05rem; }
.bmler-ticket-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .15em; color: var(--bmler-muted); font-weight: 700; padding: 2px 0 16px; }
.bmler-success-email { font-size: .9rem; color: var(--bmler-muted); margin: 0 0 16px; }
.bmler-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 22px; border-radius: 999px;
	border: 1.5px solid var(--bmler-ink); color: var(--bmler-ink) !important;
	font-weight: 700; text-decoration: none !important;
	transition: background .15s, color .15s;
}
.bmler-btn-outline:hover { background: var(--bmler-ink); color: #fff !important; }

@media (max-width: 640px) {
	.bmler-header { height: 110px; padding: 0 12px; }
	.bmler-logo { height: 140px; }
	.bmler-body { padding: 24px 18px 26px; }
	.bmler-meta { grid-template-columns: 1fr; }
	.bmler-grid { grid-template-columns: 1fr; }
	.bmler-col-half { grid-column: 1 / -1; }
	.bmler-capacity-total { margin-right: 0; }
	.bmler-live { top: auto; bottom: 8px; right: 14px; font-size: 10px; }
	.bmler-capacity { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.bmler *, .bmler *::before, .bmler *::after { animation: none !important; transition: none !important; }
}
.bmler .bmler-field > label.bmler-consent { display: flex; font-weight: 400; font-size: .95rem; color: var(--bmler-text); margin: 0; }
