.riding-finder-results {
	font: inherit;
	color: #1a1a1a;
	box-sizing: border-box;
	width: 100%;
	flex: 1 1 100%; /* forces its own line if the form sits in a flex row with the button */
	margin-top: 1em;
	padding: 1em 1.25em;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #f9f9f9;
	animation: riding-finder-in 0.35s ease both;
}

.riding-finder-results:not(.riding-finder-results--error) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
}

.riding-finder-results--error {
	width: auto;
	margin-top: 0.5em;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #b3261e;
	font-size: 0.9rem;
	animation: none;
}

@keyframes riding-finder-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.riding-finder-results {
		animation: none;
	}
}

.riding-finder-info {
	min-width: 0;
	flex: 1 1 auto;
}

.riding-finder-info p {
	margin: 0 0 0.3em;
	line-height: 1.4;
}

.riding-finder-info p:last-child {
	margin-bottom: 0;
}

.riding-finder-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5b6b76;
}

.riding-finder-riding {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

.riding-finder-mp {
	font-size: 0.95rem;
}

.riding-finder-results a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.riding-finder-results .riding-finder-back {
	flex: 0 0 auto;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.85rem;
	color: #5b6b76;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none;
	text-shadow: none;
	appearance: none;
}

.find-my-riding-widget__form {
	display: flex;
	width: 100%;
	align-items: stretch;
}

.find-my-riding-widget .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.find-my-riding-widget__input {
	box-sizing: border-box;
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	padding: 20px 30px;
	border: 1px solid #d7d7d7;
	border-radius: 8px 0 0 8px;
	background: #fff;
	color: #171717;
	font: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: none;
}

.find-my-riding-widget__input::placeholder {
	color: #171717;
	opacity: 1;
}

.find-my-riding-widget__input:focus {
	border-color: #b8b8b8;
	outline: 2px solid transparent;
	box-shadow: none;
}

.find-my-riding-widget__submit {
	box-sizing: border-box;
	flex: 0 0 auto;
	min-height: 82px;
	margin: 0;
	padding-right: 1.75em;
	padding-left: 1.75em;
	border: 0;
	border-radius: 0 8px 8px 0;
	background: #ad231f;
	color: #fff;
	font: inherit;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

.find-my-riding-widget__submit:hover,
.find-my-riding-widget__submit:focus {
	background: #921b18;
	color: #fff;
}

.find-my-riding-widget .riding-finder-results {
	margin-top: 0;
}

.find-my-riding-widget__results[hidden] {
	display: none !important;
}

.find-my-riding-widget .riding-finder-back,
.find-my-riding-widget .riding-finder-back:hover,
.find-my-riding-widget .riding-finder-back:focus {
	width: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #5b6b76;
	font: inherit;
	font-size: 0.85rem;
	line-height: 1.4;
}

.riding-finder-outcome {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	margin-top: 0.55em;
}

.riding-finder-outcome p {
	margin: 0;
}

.riding-finder-outcome-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	font-size: 1em;
	line-height: 1.4;
}

.riding-finder-outcome-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (max-width: 767px) {
	.find-my-riding-widget__form {
		flex-direction: column;
	}

	.find-my-riding-widget__submit {
		width: 100%;
		min-height: 64px;
		border-radius: 0 0 8px 8px;
	}

	.find-my-riding-widget__input {
		border-radius: 8px 8px 0 0;
	}
}

.riding-finder-results .riding-finder-back:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

.riding-finder-results .riding-finder-back:focus-visible,
.riding-finder-results a:focus-visible {
	outline: 2px solid #5b6b76;
	outline-offset: 2px;
}

/* Elementor form pre-step mode. These classes are assigned in Elementor's
 * Advanced > CSS Classes control to keep activation explicit and portable. */
.find-my-riding-prestep:not(.find-my-riding-prestep--resolved) .find-my-riding-form-content,
.find-my-riding-prestep.find-my-riding-prestep--resolved .find-my-riding-form-lookup {
	display: none !important;
}

.find-my-riding-prestep .riding-finder-prestep-result[hidden] {
	display: none !important;
}

.find-my-riding-prestep .riding-finder-prestep-result {
	margin-bottom: 1em;
}

/* Class-driven multi-section wizard used by Atomic form radio groups. */
.hidden-wizard,
.wizard-step {
	display: none !important;
}

.hidden-wizard.is-active,
.wizard-step.is-step-active {
	display: flex !important;
}

@media (prefers-reduced-motion: no-preference) {
	.hidden-wizard.is-active,
	.wizard-step.is-step-active {
		animation: riding-wizard-in 0.35s ease both;
	}

	@keyframes riding-wizard-in {
		from {
			opacity: 0;
			transform: translateY(10px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

body.elementor-editor-active .hidden-wizard,
body.elementor-editor-preview .hidden-wizard,
body.elementor-editor .hidden-wizard,
body.elementor-editor-active .wizard-step,
body.elementor-editor-preview .wizard-step,
body.elementor-editor .wizard-step {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}
