/* Event registration ([rebb_registration]). Colors from the Elementor kit, with fallbacks. */

.rebb-reg {
	--rebb-primary: var(--e-global-color-primary, #879760);
	--rebb-dark: var(--e-global-color-secondary, #3A3C2F);
	--rebb-text: var(--e-global-color-text, #141711);
	--rebb-bg: var(--e-global-color-accent, #F3F3EC);

	background: var(--rebb-bg);
	color: var(--rebb-text);
	border-radius: 8px;
	padding: 28px;
	margin: 24px 0;
	font-family: inherit;
}

.rebb-reg__title {
	margin: 0 0 6px;
	color: var(--rebb-dark);
}

.rebb-reg__seats {
	margin: 0 0 20px;
	font-size: 1.05em;
}

.rebb-reg__count {
	font-size: 1.6em;
	font-weight: 600;
	color: var(--rebb-primary);
	margin-right: 4px;
}

.rebb-reg__seats.is-full .rebb-reg__count {
	color: #a33a2b;
}

.rebb-reg__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

.rebb-reg__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.95em;
}

.rebb-reg__field span {
	font-weight: 500;
}

.rebb-reg__field input,
.rebb-reg__field select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid rgba(20, 23, 17, 0.25);
	border-radius: 4px;
	background: #fff;
	color: var(--rebb-text);
	font: inherit;
	font-size: 16px; /* no zoom on iOS */
}

.rebb-reg__field input:focus,
.rebb-reg__field select:focus {
	outline: 2px solid var(--rebb-primary);
	outline-offset: 1px;
	border-color: var(--rebb-primary);
}

.rebb-reg__payment {
	margin: 20px 0 8px;
	font-weight: 500;
}

.rebb-reg__noshow {
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 3px solid var(--rebb-primary);
	font-size: 0.9em;
	line-height: 1.5;
}

.rebb-reg__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 18px;
	font-size: 0.9em;
	line-height: 1.4;
}

.rebb-reg__consent input {
	margin-top: 3px;
	flex: none;
}

.rebb-reg__consent a {
	color: var(--rebb-dark);
	text-decoration: underline;
}

.rebb-reg__submit {
	background: var(--rebb-primary);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.rebb-reg__submit:hover,
.rebb-reg__submit:focus-visible {
	background: var(--rebb-dark);
}

.rebb-reg__notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 4px;
	background: #fff;
}

.rebb-reg__notice.is-success {
	border-left: 4px solid var(--rebb-primary);
}

.rebb-reg__notice.is-error {
	border-left: 4px solid #a33a2b;
}

/* Honeypot: hidden from people, visible to bots. */
.rebb-reg__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.rebb-reg {
		padding: 20px 16px;
	}

	.rebb-reg__grid {
		grid-template-columns: 1fr;
	}

	.rebb-reg__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rebb-reg__submit {
		transition: none;
	}
}
