.mflls-survey,
.mflls-survey * {
	box-sizing: border-box;
	font-family: var(--mflls-font-family, Arial, Helvetica, sans-serif) !important;
}

.mflls-survey {
	--mflls-font-family: Arial, Helvetica, sans-serif;
	--mflls-heading: #002f6c;
	--mflls-heading-size: 34px;
	--mflls-heading-size-mobile: 34px;
	--mflls-heading-weight: 700;
	--mflls-response: #002f6c;
	--mflls-response-hover: #df820c;
	--mflls-response-border: #002f6c;
	--mflls-response-border-hover: #df820c;
	--mflls-response-text: #fff;
	--mflls-response-text-hover: #fff;
	--mflls-progress: #ffab00;
	--mflls-progress-background: #e8ebf0;
	--mflls-progress-text: #585858;
	--mflls-back: #9bc9ee;
	--mflls-back-hover: #86bce7;
	--mflls-back-border: #9bc9ee;
	--mflls-back-text: #fff;
	--mflls-submit: #002f6c;
	--mflls-submit-hover: #002f6c;
	--mflls-submit-border: #002f6c;
	--mflls-submit-text: #ffc107;
	--mflls-submit-text-hover: #ffc107;
	--mflls-submit-size: 18px;
	--mflls-submit-size-mobile: 22px;
	--mflls-radius: 11px;
	--mflls-response-size: 16px;
	--mflls-response-size-mobile: 20px;
	--mflls-response-weight: 600;
	--mflls-response-pad-y: 15px;
	--mflls-response-pad-x: 24px;
	width: 100%;
	max-width: 920px;
	min-height: 540px;
	margin: 0 auto;
	padding: 20px 18px 30px;
	color: #172338;
	font-family: var(--mflls-font-family, Arial, Helvetica, sans-serif);
}

.mflls-progress {
	max-width: 720px;
	margin: 44px auto 0;
}

.mflls-progress__track {
	position: relative;
	height: 14px;
	overflow: hidden;
	border-radius: 0;
	background: var(--mflls-progress-background);
}

.mflls-progress__fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--mflls-progress);
	transition: width 280ms ease;
}

.mflls-progress__text {
	position: absolute;
	inset: 50% auto auto 50%;
	z-index: 1;
	margin: 0;
	color: var(--mflls-progress-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transform: translate(-50%, -50%);
}

.mflls-form {
	margin: 0;
}

.mflls-stage {
	min-height: 0;
	overflow: hidden;
	padding: 0 8px 16px;
	margin: 0 -8px -16px;
}

.mflls-step {
	will-change: opacity, transform;
}

.mflls-step--enter-initial {
	animation: mflls-enter-initial 220ms ease both;
}

.mflls-step--enter-forward {
	animation: mflls-enter-forward 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mflls-step--enter-backward {
	animation: mflls-enter-backward 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mflls-step--exit-forward {
	animation: mflls-exit-forward 180ms ease-in both;
	pointer-events: none;
}

.mflls-step--exit-backward {
	animation: mflls-exit-backward 180ms ease-in both;
	pointer-events: none;
}

.mflls-loading,
.mflls-load-error {
	max-width: 720px;
	margin: 72px auto 0;
	padding: 20px;
	color: #4a5a70;
	font-size: 17px;
	line-height: 1.5;
	text-align: center;
}

.mflls-load-error {
	border: 1px solid #d63638;
	border-radius: var(--mflls-radius);
	background: #fff4f4;
	color: #9a1f21;
}

.mflls-step__title {
	max-width: 780px;
	margin: 0 auto 20px;
	color: var(--mflls-heading);
	font-size: var(--mflls-heading-size);
	font-weight: var(--mflls-heading-weight);
	line-height: 1.15;
	text-align: center;
}

.mflls-step__help {
	max-width: 680px;
	margin: 0 auto 30px;
	color: #627187;
	font-size: 17px;
	line-height: 1.55;
	text-align: center;
}

.mflls-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
	margin: 32px auto 0;
}

.mflls-options--iconChoice,
.mflls-options--yesno {
	max-width: 720px;
}

@media (min-width: 681px) {
	.mflls-options > .mflls-option:nth-child(3):last-child,
	.mflls-options > .mflls-option:nth-child(5):last-child {
		grid-column: 1 / -1;
		width: calc((100% - 15px) / 2);
		justify-self: center;
	}
}

.mflls-option {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 72px;
	height: auto !important;
	padding: var(--mflls-response-pad-y) var(--mflls-response-pad-x);
	border: 1px solid var(--mflls-response-border);
	border-radius: var(--mflls-radius);
	background: var(--mflls-response);
	color: var(--mflls-response-text);
	font-family: inherit;
	font-size: var(--mflls-response-size);
	font-weight: var(--mflls-response-weight);
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 3px 7px rgb(0 0 0 / 20%);
	-webkit-tap-highlight-color: transparent;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mflls-options--iconChoice .mflls-option,
.mflls-options--yesno .mflls-option {
	flex-direction: column;
	justify-content: center;
	min-height: 150px;
	text-align: center;
}

.mflls-survey .mflls-option__icon {
	display: block;
	width: 60px !important;
	min-width: 60px !important;
	max-width: 60px !important;
	height: 60px !important;
	min-height: 60px !important;
	max-height: 60px !important;
	margin: 0 auto 10px;
	object-fit: contain;
	flex: 0 0 60px;
}

.mflls-option__label {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.mflls-options--iconChoice .mflls-option__label,
.mflls-options--yesno .mflls-option__label {
	flex: 0 0 auto;
}

.mflls-option::before {
	width: 14px;
	height: 14px;
	margin-right: 11px;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: #fff;
	content: "";
	flex: 0 0 auto;
}

.mflls-options--iconChoice .mflls-option::before,
.mflls-options--yesno .mflls-option::before {
	display: none;
}

.mflls-survey button.mflls-option:hover,
.mflls-survey button.mflls-option:focus,
.mflls-survey button.mflls-option:focus-visible,
.mflls-survey button.mflls-option:active,
.mflls-survey button.mflls-option[aria-pressed="true"] {
	border-color: var(--mflls-response-border-hover) !important;
	background: var(--mflls-response-hover) !important;
	color: var(--mflls-response-text-hover) !important;
	box-shadow: 0 8px 20px rgb(0 47 108 / 14%);
	outline: none;
	transform: translateY(-1px);
}

.mflls-input-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-width: 720px;
	margin: 32px auto 0;
}

.mflls-field {
	display: block;
}

.mflls-field--full {
	grid-column: 1 / -1;
}

.mflls-label {
	display: block;
	margin: 0 0 8px;
	color: #26364d;
	font-size: 15px;
	font-weight: 700;
}

.mflls-input,
.mflls-select {
	display: block;
	width: 100%;
	height: 58px;
	padding: 0 17px;
	border: 2px solid #ccd4df;
	border-radius: var(--mflls-radius);
	background: #fff;
	color: #172338;
	font-family: inherit;
	font-size: 18px;
	box-shadow: none;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mflls-input:focus,
.mflls-select:focus {
	border-color: var(--mflls-response);
	box-shadow: 0 0 0 3px rgb(0 47 108 / 12%);
}

.mflls-phone-wrap {
	display: flex;
	width: 100%;
}

.mflls-phone-prefix {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	height: 58px;
	padding: 0 14px;
	border: 2px solid #ccd4df;
	border-right: 0;
	border-radius: var(--mflls-radius) 0 0 var(--mflls-radius);
	background: #fff;
	color: #303c4e;
	font-size: 15px;
}

.mflls-phone-input {
	border-radius: 0 var(--mflls-radius) var(--mflls-radius) 0;
}

.mflls-range-wrap {
	max-width: 720px;
	margin: 38px auto 0;
	padding: 28px 28px 24px;
	border: 1px solid #e0e5ec;
	border-radius: var(--mflls-radius);
	background: #fff;
	box-shadow: 0 12px 34px rgb(28 45 70 / 8%);
}

.mflls-range__value {
	margin-bottom: 22px;
	color: var(--mflls-response);
	font-size: clamp(34px, 6vw, 54px);
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

.mflls-range {
	width: 100%;
	height: 8px;
	margin: 10px 0;
	accent-color: var(--mflls-response);
	cursor: pointer;
}

.mflls-range__limits {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	color: #748196;
	font-size: 13px;
	font-weight: 600;
}

.mflls-consent {
	max-width: 720px;
	margin: 28px auto 0;
	color: #333;
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}

.mflls-navigation {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 34px;
}

.mflls-navigation[hidden] {
	display: none !important;
}

.mflls-survey .mflls-back[hidden],
.mflls-survey .mflls-next[hidden],
.mflls-survey .mflls-message[hidden] {
	display: none !important;
}

.mflls-back,
.mflls-next,
.mflls-submit {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	max-width: 720px;
	min-height: 62px;
	padding: 17px 28px;
	border-radius: var(--mflls-radius);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.mflls-back {
	border: 1px solid var(--mflls-back-border) !important;
	background: var(--mflls-back) !important;
	color: var(--mflls-back-text) !important;
	max-width: 80%;
}

.mflls-back::before {
	content: "← ";
}

.mflls-survey button.mflls-back:hover,
.mflls-survey button.mflls-back:focus,
.mflls-survey button.mflls-back:focus-visible,
.mflls-survey button.mflls-back:active {
	border-color: var(--mflls-back-border) !important;
	background: var(--mflls-back-hover) !important;
	color: var(--mflls-back-text) !important;
	box-shadow: 0 0 0 3px rgb(0 47 108 / 12%);
	outline: none;
}

.mflls-next,
.mflls-submit {
	border: 1px solid var(--mflls-submit-border) !important;
	background: var(--mflls-submit) !important;
	color: var(--mflls-submit-text) !important;
	font-size: var(--mflls-submit-size);
}

.mflls-survey button.mflls-next:hover,
.mflls-survey button.mflls-next:focus,
.mflls-survey button.mflls-next:focus-visible,
.mflls-survey button.mflls-next:active,
.mflls-survey button.mflls-submit:hover,
.mflls-survey button.mflls-submit:focus,
.mflls-survey button.mflls-submit:focus-visible,
.mflls-survey button.mflls-submit:active {
	border-color: var(--mflls-submit-border) !important;
	background: var(--mflls-submit-hover) !important;
	color: var(--mflls-submit-text-hover) !important;
	box-shadow: 0 0 0 3px rgb(30 100 228 / 16%);
	outline: none;
	transform: translateY(-1px);
}

.mflls-next:disabled,
.mflls-submit:disabled {
	cursor: wait;
	opacity: 0.68;
	transform: none;
}

.mflls-message {
	max-width: 720px;
	margin: 18px auto 0;
	padding: 12px 15px;
	border: 1px solid #d63638;
	border-radius: 8px;
	background: #fff4f4;
	color: #9a1f21;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.mflls-thank-you {
	max-width: 760px;
	margin: 64px auto 0;
	text-align: center;
}

.mflls-thank-you__title {
	margin: 0;
	color: var(--mflls-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.mflls-thank-you__text {
	margin: 24px 0 0;
	color: #333;
	font-size: 18px;
	line-height: 1.5;
}

.mflls-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@keyframes mflls-enter-initial {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mflls-enter-forward {
	from {
		opacity: 0;
		transform: translateX(48px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes mflls-enter-backward {
	from {
		opacity: 0;
		transform: translateX(-48px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes mflls-exit-forward {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(-36px);
	}
}

@keyframes mflls-exit-backward {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(36px);
	}
}

@media (max-width: 680px) {
	.mflls-survey {
		min-height: 500px;
		padding: 15px 4px 24px;
	}

	.mflls-progress {
		margin-top: 34px;
	}

	.mflls-progress__track {
		height: 22px;
	}

	.mflls-progress__text {
		font-size: 14px;
		font-weight: 700;
	}

	.mflls-stage {
		min-height: 0;
	}

	.mflls-step__title {
		font-size: var(--mflls-heading-size-mobile);
	}

	.mflls-step__help {
		margin-bottom: 23px;
		font-size: 16px;
	}

	.mflls-options,
	.mflls-input-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.mflls-option {
		min-height: 70px;
		padding: var(--mflls-response-pad-y) min(var(--mflls-response-pad-x), 24px);
		font-size: var(--mflls-response-size-mobile);
	}

	.mflls-options--iconChoice,
	.mflls-options--yesno {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mflls-options--iconChoice .mflls-option,
	.mflls-options--yesno .mflls-option {
		min-height: 130px;
		padding: 18px 12px;
	}

	.mflls-input-grid {
		margin-top: 26px;
	}

	.mflls-field--full {
		grid-column: auto;
	}

	.mflls-range-wrap {
		margin-top: 28px;
		padding: 25px 18px 21px;
	}

	.mflls-navigation {
		margin-top: 26px;
	}

	.mflls-back,
	.mflls-next,
	.mflls-submit {
		min-height: 62px;
		padding: 17px 22px;
	}

	.mflls-next,
	.mflls-submit {
		font-size: var(--mflls-submit-size-mobile);
	}
}

/*
 * Elementor can hide the shortcode's parent container at its mobile
 * breakpoint. Keep a calculator-bearing container visible even before the
 * survey JavaScript removes the responsive visibility class.
 */
@media (max-width: 767px) {
	.elementor-hidden-mobile:has(.mflls-survey) {
		display: flex !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mflls-step,
	.mflls-progress__fill,
	.mflls-option,
	.mflls-back,
	.mflls-next,
	.mflls-submit {
		animation: none;
		transition: none;
	}

	.mflls-step {
		animation: none;
	}
}
