/* WFM Event RSVP – form look & feel for Registrations for the Events Calendar Pro.
   Written against RTEC Pro 3.6 markup (#rtec .rtec-form-wrapper, .rtec-mvt-*, .rtec-form-field, ...).
   Colors come from CSS variables set by the plugin; fallbacks below. */

:root {
	--wfm-accent: #1f3a5f;
	--wfm-button: #c8102e;
	--wfm-bg: #f4f8f1;
	--wfm-ink: #26332b;
	--wfm-muted: #5d6b61;
	--wfm-line: #cfd8cb;
}

/* Surface (RTEC paints its own green on the wrapper, so override it there) */
#rtec,
#rtec .rtec-form-wrapper {
	background: var(--wfm-bg) !important;
	color: var(--wfm-ink);
	line-height: 1.5;
}
#rtec .rtec-form-wrapper {
	padding: 28px 24px 32px !important;
}

/* Title */
#rtec .rtec-form h2 {
	color: var(--wfm-accent);
	font-weight: 800;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	padding-bottom: 0.7rem;
	position: relative;
}
#rtec .rtec-form h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--wfm-button);
}
#rtec .rtec-form hr {
	display: none;
}

/* "Choose one:" */
#rtec .rtec-mvt-wrapper > strong {
	display: block;
	color: var(--wfm-muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

/* The two registration types as selectable cards */
#rtec .rtec-mvt-option-wrap {
	background: #fff;
	border: 1.5px solid var(--wfm-line);
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	margin: 0 0 0.8rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#rtec .rtec-mvt-option-wrap:hover {
	border-color: var(--wfm-accent);
}
#rtec .rtec-mvt-option-wrap:has(input:checked) {
	border-color: var(--wfm-accent);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.16);
}
#rtec .rtec-mvt-label {
	font-size: 1.1rem !important;
	font-weight: 700;
	color: var(--wfm-ink);
	cursor: pointer;
}
#rtec .rtec-mvt-description {
	display: block;
	margin-top: 0.15rem;
	color: var(--wfm-muted);
	font-size: 0.92rem;
}
#rtec .rtec-mvt-att {
	display: inline-block;
	background: #eef3ea;
	border: 1px solid var(--wfm-line);
	color: var(--wfm-muted);
	border-radius: 999px;
	padding: 0.1rem 0.65rem;
	font-size: 0.78rem;
	font-weight: 600;
}

/* Radios & checkboxes */
#rtec input[type="radio"],
#rtec input[type="checkbox"] {
	accent-color: var(--wfm-accent);
	width: 1.2rem;
	height: 1.2rem;
	flex: 0 0 auto;
	margin: 0 0.5rem 0 0;
}

/* Field labels (not RTEC's screen-reader duplicates) */
#rtec .rtec-field-label:not(.rtec-screen-reader) {
	display: block;
	color: var(--wfm-ink);
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}
#rtec .rtec-form-field {
	margin-bottom: 1.1rem;
}

/* Text inputs */
#rtec input[type="text"],
#rtec input[type="email"],
#rtec input[type="tel"],
#rtec input[type="number"],
#rtec select,
#rtec textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 0.6rem 0.85rem;
	background: #fff;
	border: 1.5px solid var(--wfm-line);
	border-radius: 8px;
	color: var(--wfm-ink);
	font-size: 1rem;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#rtec input[type="number"] {
	width: 6.5rem;
}
#rtec input[type="text"]:focus,
#rtec input[type="email"]:focus,
#rtec input[type="tel"]:focus,
#rtec input[type="number"]:focus,
#rtec select:focus,
#rtec textarea:focus {
	outline: none;
	border-color: var(--wfm-accent);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.2);
}

/* Privacy / terms checkboxes */
#rtec .rtec-checkbox-option-wrap {
	display: flex;
	align-items: center;
}
#rtec .rtec-checkbox-option-wrap label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--wfm-ink);
}
#rtec .rtec-field-single-checkbox a {
	display: inline-block;
	margin: 0.25rem 0 0 1.7rem;
	font-size: 0.85rem;
}
#rtec a {
	color: var(--wfm-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Errors (RTEC's and ours) */
#rtec .rtec-error-message,
.wfm-rsvp-error {
	color: #a4161a;
	font-weight: 600;
}
#rtec .rtec-error,
.wfm-rsvp-invalid {
	border-color: #a4161a !important;
	box-shadow: 0 0 0 3px rgba(164, 22, 26, 0.15);
}

/* Submit button (RTEC sets its red inline; the Button color setting overrides it) */
#rtec .rtec-submit-button {
	background: var(--wfm-button) !important;
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 0.9rem 2.2rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.12);
	transition: transform 0.12s ease, filter 0.12s ease;
}
#rtec .rtec-submit-button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
#rtec .rtec-submit-button:focus-visible {
	outline: 3px solid var(--wfm-accent);
	outline-offset: 3px;
}

/* Smooth reveal for the vehicle fields */
@media (prefers-reduced-motion: no-preference) {
	.wfm-rsvp-reveal {
		animation: wfm-rsvp-reveal 0.25s ease-out;
	}
}
@keyframes wfm-rsvp-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
	#rtec .rtec-submit-button { width: 100%; }
}
