.hs-form, .ms-form__wrapper {
	--dark-blue: #142651;
	--yellow: #ffc845;
}

#hs_cos_wrapper_widget_1574362009602 {
	display: none;
}

.form-columns-0 {
	display: none;
}

.ms-form {
	--fieldset-height: 0px;
	--modal-width: 100%;
	z-index: 99;
	position: relative;
	width: auto;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.ms-form  { 
		/*max-width: var(--modal-width);*/
	}
}

@media (min-width: 992px) {
	.ms-form  {
		/* --modal-width: 800px; */
	}
}

@media (min-width: 1200px) {
	.ms-form {
		/*    --modal-width: 1140px; */
	}
	/* .ms-form, .ms-form *:is(h1, h2, h3, h4, h5, p, span, div, label) {
	color: #142651;
} */
}

.hs-form *:is(h1, h2, h3, h4, h5) {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	text-align: center;
	word-break: break-word;
	margin: 0 0 40px;
	font-size: 40px;
	line-height: 49px;
	font-weight: 700;
}

.hs-form h3 {
	color: #ffffff;
	font-size: 1.75rem;
	line-height: 1.35;
	max-width: 625px;
	margin: 0 auto;
	padding-bottom: 3.65rem;
	text-align: center;
}

.ms-form__form {
	width: 100%;
	margin: 0 auto;
}

.ms-form form {
	display: grid;
	grid-template-columns: repeat(var(--children), 100%);
	width: 100%;
	overflow: hidden;
	max-width: 100%;
	position: relative;
}

.ms-form form fieldset {
	max-width: 100%;
	text-align: center;
	border: 0;
	margin: 0;
}

.ms-form ul>li:before {
	content: '';
	margin: 0;
	display: none;
}

.ms-form form fieldset.form-columns-1 .input {
	margin: 0;
	padding: 1rem;
}

/* .ms-form form .inputs-list {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
justify-content: center;
} */

.ms-form form .inputs-list label {
	display: flex;
	position: relative;
	align-items: center;
	padding: 0.2ch 1ch;
	cursor: pointer;
}

.ms-form label.hs-form-radio-display:before, .ms-form label.hs-form-checkbox-display:before, .ms-form label.hs-form-booleancheckbox-display:before {
	position: static;
	flex: 0 0 28px;
}

.ms-form form .inputs-list>li {
	width: auto;
	padding: 0 1rem;
}

.ms-form form .inputs-list:first-child {
	padding: 0;
}

.ms-form .hs-fieldtype-radio label, .ms-form .hs-fieldtype-radio label span {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: left;
	box-sizing: border-box;
	margin: 0.5em 1em;
	font-size: 1.125rem;
	color: #142651;
}

.ms-form__navbar {
	display: flex;
	justify-content: center;
	margin-bottom: 3rem;
}

.ms-form__prog-button {
	box-sizing: border-box;
	-webkit-appearance: none;
	font-family: inherit;
	letter-spacing: .1em;
	display: inline-flex;
	flex-flow: row;
	gap: 1ch;
	align-items: center;
	transition: all 0.2s ease;
	padding: 13px 31px 13px 31px;
	text-align: center !important;
	vertical-align: middle;
	background-image: none;
	outline: 0;
	-webkit-text-stroke: 0px;
	width: auto;
	box-shadow: none;
	-webkit-font-smoothing: antialiased;
	border: 1px solid;
	margin-top: 20px;
	cursor: pointer;
	font-weight: 700 !important;
	background-color: #fad957 !important;
	border-radius: 8px !important;
	border-color: transparent !important;
	color: #0a2d44 !important;
	font-size: 18px !important;
	line-height: 22px !important;
	text-transform: none !important;
	white-space: pre-wrap;
	text-decoration: none;
	margin: 1.25rem;
}

.ms-form__prog-button[disabled] {
	filter: saturation(0.5);
	opacity: 0.6;
	pointer-events: none;
}

.ms-form__prog-button[data-button="prev"] {
	flex-flow: row-reverse;
}

.ms-form__prog-button[data-button="prev"] i {
	transform: rotate(180deg);
}

.ms-form form > fieldset {
	/* max-height: max(29rem, var(--fieldset-height)); */
	transform: translateX(var(--current-scroll));
	transition: all 0.5s ease;
}

fieldset.form-columns-3 {
	display: flex;
	flex-direction: column;
}

.ms-form fieldset.form-columns-3 .hs-form-field {
	width: 100% !important;
	display: flex;
	flex-direction: column;
}

.ms-form fieldset.form-columns-3 .hs-form-field label, .ms-form fieldset.form-columns-3 .hs-form-field .input, .ms-form fieldset.form-columns-3 .hs-form-field input {
	width: 100%;
	text-align: left;
	margin: 0;
	max-width: calc(100% - 8px);
}

.ms-form__progbar {
	position: absolute;
	background: #fff;
	width: min(100%, 20rem);
	background: #fff;
	height: 0.6rem;
	margin: 4rem auto 2rem;
	border-radius: 6px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
}

.ms-form__progbar--tip {
	position: absolute;
	left: calc(var(--current-step) / var(--children) * 100%);
	transform: translateX(50%);
	bottom: calc(100% + 1ch);
	background: #fff;
	color: #000 !important;
	padding: 0 0.6ch;
	border-radius: 6px;
	transform: translateX(-47%);
	transition: all 0.3s ease;
}

.ms-form__progbar--indicator {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	border-radius: 6px;
}

.ms-form__progbar--indicator:after {
	content: '';
	position: absolute;
	left: calc(-100% + (var(--current-step) / var(--children) * 100%));
	background: #fad957;
	width: 100%;
	height: 100%;
	transition: all 0.3s ease;
}

.ms-form__progbar--tip:after {
	content: '';
	display: block;
	width: 1ch;
	height: 1ch;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	background: #fff;
	bottom: -3px;
	z-index: -1;
}

.ms-form form>[class*=form-columns] label {
	width: calc(100% - 3.3rem);
	margin-left: 1.1rem;
	text-align: left;
}

.hs-inline-edit .ms-form form>[class*=form-columns] {
	margin-bottom: 5rem;
}

.ms-form form>[class*=form-columns] label.hs-error-msg {
	display: none !important;
}

.legal-consent-container a {
	font-size: 1em;
}

.ms-form__form fieldset.form-columns-1 .hs_country ~ .hs-form-field input.hs-input {
	max-width: calc(100% - 5rem);
}

/* Initial Content */

.ms-form-initial {
	display: flex;
}

.ms-form-initial__content {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	margin-left: 3rem;
}

.ms-form-initiial__button div {
	display: inline-block;
	background: #ffc845;
	padding: 0.6em 1.6rem 0.6em 1.6rem;
	border: 1px solid;
	border-radius: 0.5rem;
	color: #142651;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.5;
	transition: all 0.3s ease;
}

.ms-form-initiial__button:hover div {
	background-color: #142651;
	border-color: #142651;
	color: #ffc845;
	cursor: pointer;
}

/* Modal Styles */

.ms-form__wrapper {
	display: block;

}

.ms-form__wrapper.open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.ms-form__wrapper-bg {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.ms-form__navbar {
	background: #fff;
	margin: 0;
}

.ms-form .hs-richtext {
	background: #142651;
}

.ms-form form fieldset {
	background: var(--dark-blue);
	padding: 0;
	display: grid;
	grid-template-rows: max-content auto;
	align-items: stretch;
}

.ms-form label.hs-form-radio-display:before, 
.ms-form label.hs-form-checkbox-display:before, 
.ms-form label.hs-form-booleancheckbox-display:before {
	content: '';
	position: absolute;
	top: 11px;
	left: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #142651;
}

.ms-form .hs-input[type=radio]:checked {
	width: 2em !important;
	height: 2em;
	transform: translate(6px, 0px);
}

.ms-form .hs-input[type=radio]:checked:after {
	display: none;
}

.ms-form .hs-fieldtype-select div.input:after {
	display: none;
}

.ms-form *:is(.hs_firstname, .hs-lastname, .hs-phone) {
	padding: 0 1rem !important;
}

.ms-form .legal-consent-container .hs-richtext {
	background: #fff;
}

.ms-form .legal-consent-container {
	background: #fff;
	padding: 1rem;
}

.ms-form input.hs-button.primary.large {
	letter-spacing: .1em;
	display: inline-flex;
	gap: 1ch;
	align-items: center;
	transition: all 0.2s ease;
	padding: 13px 31px 13px 31px;
	text-align: center !important;
	vertical-align: middle;
	background-image: none;
	outline: 0;
	-webkit-text-stroke: 0px;
	width: auto;
	box-shadow: none;
	-webkit-font-smoothing: antialiased;
	border: 1px solid;
	cursor: pointer;
	font-weight: 700 !important;
	background-color: #fad957 !important;
	border-radius: 8px !important;
	border-color: transparent !important;
	color: #0a2d44 !important;
	font-size: 18px !important;
	line-height: 22px !important;
	text-transform: none !important;
	white-space: pre-wrap;
	text-decoration: none;
	margin: 1.25rem;
	flex-flow: row-reverse;
}

.ms-form__headbar {
	position: absolute;
	z-index: 99;
	width: 100%;
	padding: 0.6rem 2rem;
	line-height: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

img.ms-form__logo {
	transform: translateY(0.2rem);
	margin-bottom: -0.5rem;
}

.ms-form__close {
	position: relative;
	cursor: pointer;
	font-size: 1.8rem;
	line-height: 1;
}

.ms-form__close:after {
	content: 'X';
	color: #fff;
	font-weight: 800;

}

.ms-form__first-slide {
	text-align: center;
	padding: 4rem 0 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ms-form__first-slide-text, .ms-form__first-slide-text *:is(h1,h2,h3,h4,h5) {
	color: #fff;
}

.ms-form__form {
	display: grid;
	grid-template-columns: 100% 100%;
	position: relative;
	grid-template-rows: 1fr;
	overflow: hidden;
}

.ms-form__first-slide, .ms-form form {
	background: var(--dark-blue);
	height: 100%;
	align-content: stretch;
	transition: all 0.3s ease;
	transform: translateX(0%);
}

.ms-form__form--start .ms-form__first-slide, .ms-form__form--start form {
	transform: translateX(-100%);
}

img.ms-form__first-slide-logo {
	max-width: 8rem;
	display: inline-block;
	max-height: 3rem;
	object-fit: contain;
  border-radius: 0;
}


.ms-form__first-slide-logos {
    display: grid;
    gap: 0.5rem;
    margin: 2rem auto 3rem;
    grid-template-columns: repeat(2, 1fr);
  align-items: center;
        justify-content: center;
}

@media (min-width: 560px) {
  .ms-form__first-slide-logos {
  grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .ms-form__first-slide-logos {
  grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 990px) {
  .ms-form__first-slide-logos {
  grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.ms-form__first-slide > * {
    margin-left: auto;
    margin-right: auto;

}

h2.primary-title {
	font-size: 2.625rem;
}

.ms-form__first-slide-text h3 {
	font-size: 1.5rem;
	text-transform: uppercase;
}

.ms-form__first-slide p, .ms-form__first-slide p.text-sm {
	font-size: 1.125rem;
}

button.ms-form__first-slide-button {
	font-weight: 800;
	background: var(--yellow);
	text-align: center;
	border-radius: 0.5rem;
	border: 0;
	font-size: 1rem;
	line-height: 1.5;
	min-height: 2.8125rem;
	padding-right: 2.5rem;
	padding-left: 2.5rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--dark-blue);
	display: inline-block;
	width: auto;
	cursor: pointer;
	transition: all 0.3s ease;
}

button.ms-form__first-slide-button:hover {
	background: #ffffff;
}

.ms-form__fieldset-text {
	background: var(--dark-blue);
  padding-top: 6rem;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}

.ms-form__fieldset-text *:is(h1,h2,h3,h4,h5) {
	color: #fff;
	font-size: 1.75rem;
	margin-top: 2rem;
	margin-bottom: 2em;
	padding: 0 4rem;
	max-width: 60ch;
}

.ms-form__field-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 4rem 1rem;
	background: #fff;
	min-height: max(500px, 100vh);
}

.ms-form__field-option {
	display: inline-flex;
	flex-flow: row-reverse;
	width: 100%;
	justify-content: flex-end;
	margin-bottom: 0.8em;
	cursor: pointer;
	align-items: center;
}

.ms-form__field label, .ms-form__field--group-label {
	text-align: left;
	line-height: 1.2;
	font-size: 18px;
	cursor: pointer;
}

.ms-form__field.ms-form__field--radio,
.ms-form__field.ms-form__field--checkbox{
	display: inline-flex;
	flex-flow: column;
	align-items: flex-start;
}

.ms-form__field-option input {
	margin-right: 2ch;
}

.ms-form__field--select, .ms-form__field--text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 30ch;
	margin-bottom: 0.8em;
}

.ms-form__field--select *, .ms-form__field--text *, .ms-form__field--group-label {
	width: 100%;
	display: block;
}

.ms-form__field--select label, .ms-form__field--text label, .ms-form__field--group-label {
	margin-bottom: 0.4em;
}

.ms-form__field select {
	background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 100% 50%;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-position: calc(100% - 1ch) center;
}

.ms-form__field select, .ms-form__field input[type="text"], .ms-form__field input[type="tel"], .ms-form__field input[type="email"] {
	padding: 1ch 1ch 0.8ch;
}

.ms-form__field input:focus {
	outline-color: var(--dark-blue);
}

.ms-form__field-option--selected label {
	font-weight: 600;
}

.ms-form__field select:invalid {
	color: rgba(0,0,0,0.6);
}

.ms-form__field--required label {
	position: relative;
}

.ms-form__field--required label:after {
	content: '*';
	color: red;
	position: absolute;
	transform: translateX(0.2ch);
	font-size: 14px;
}
.ms-form__field-option [type=checkbox]:checked:after {
	display: none;
}

/* 2025 Map CSS */
#map.mapbox-map {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
	position: absolute;
}

#map.mapbox-map:after {
    content: "";
    background: rgba(20 38 81 / 0.5);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.map-overlay {
	color: #fff;
	padding: 20px ;
	border-radius: 8px;
	text-align: center;
	z-index: 1;
	width: 80%;
  margin: 10rem auto 10rem;

}

.map-overlay .ms-form__navbar {
	background: transparent;
}

.map-overlay h3 {
	color: #fff;
	font-size: 1.5rem;
}

.map-overlay h4 {
	color: #fff;
	font-size: 1.25rem;
	margin-top: 1rem;
}

#selected-distance-p {
	font-size: 1rem;
	font-style: italic;
  font-weight: 700;
}

#address-input {
	width: 100%;
	padding: 10px;
	margin: 10px 0;
	border: none;
	border-radius: 5px;
}

.custom-slider {
	position: relative;
	width: 100%;
	height: 50px;
	margin: 20px auto;
}

.slider-track {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #ccc;
	transform: translateY(-50%);
	border-radius: 2px;
}

.slider-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	/*     transform: translateY(-50%); */
}

.slider-option {
	position: relative;
	cursor: pointer;
	text-align: center;
	display: flex;
	height: 100%;
	width: 100%;
	justify-content: start;
}

.slider-option:not(:first-of-type):not(:last-of-type) {
	justify-content: center;
}

.slider-option:last-of-type {
	justify-content: end;
}

.slider-option .label {
	position: absolute;
	top: -20px;
	font-size: 14px;
	color: #fff;
	right: initial;
	background: none;
}

.slider-dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	/* 	background: var(--dark-blue); */
	background: #fad957;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: left 0.2s ease;
}

#suggestions-list {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: white;
	z-index: 9999;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	max-height: 200px; /* Optional: Limit height and add scroll for long lists */
	overflow-y: auto;
	color: #000;
}

#suggestions-list li {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #ddd;
	transition: background-color 0.2s ease;
}

#suggestions-list li:last-child {
	border-bottom: none;
}

#suggestions-list li:hover {
	background-color: #f5f5f5;
}

@media (max-width: 786px) {
	.ms-form__progbar {
		margin-top: 5.5rem;
	}
	.ms-form__field-wrapper {
		padding-right: 0 !important;
	}
  .map-overlay {
    width: 100%;
    padding: 1rem;
    border-radius: 0;
  }

  .map-overlay h3, .map-overlay h4 {
    margin-bottom: 0.75rem;
  }

  .map-overlay h3 {
    font-size: 1.25rem;
  }

  .map-overlay h4 {
    font-size: 1.125rem;
  }

  .custom-slider {
    height: 40px;
    margin: 1rem auto;
  }

  .slider-option .label {
    font-size: 0.875rem;
    top: -1.5rem;
  }

#selected-distance-p {
	font-size: .9rem;
	display: inline-block;
	margin-top: 60px;
}

  .next-button {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    margin-top: 1rem;
  }
}

{# slider (range) styling #}
/* Wraps the entire slider */
.range-slider-wrapper {
  width: 100%;
  max-width: 600px; /* or whatever width you prefer */
  margin: 1rem auto;
  position: relative;
  color: #ffffff; /* Text color for labels, etc. */
}

/* The native range input itself */
.range-slider-wrapper input[type="range"] {
  -webkit-appearance: none;  /* Remove default styling in Chrome/Safari */
  width: 100%;
  background: transparent;
  margin: 2rem 0 1rem;
  cursor: pointer;
}

/* Remove blue outline on focus (Safari/Chrome) */
.range-slider-wrapper input[type="range"]:focus {
  outline: none;
}

/* TRACK STYLES (WebKit) */
.range-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #888888; /* The “track” color */
  border-radius: 2px;
}
.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  margin-top: -8px; /* Centers the thumb over the track */
  background: #febe10; /* The thumb (dot) color */
  border-radius: 50%;
  border: 2px solid #ffffff; /* White border around thumb */
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Make thumb stand out on focus (optional) */
.range-slider-wrapper input[type="range"]:focus::-webkit-slider-thumb {
  outline: 2px solid #febe10; /* Glow or border highlight */
  outline-offset: 3px;
}

/* TRACK & THUMB (Firefox) */
.range-slider-wrapper input[type="range"]::-moz-range-track {
  height: 4px;
  background: #888888;
  border-radius: 2px;
}
.range-slider-wrapper input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: #febe10;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* TRACK & THUMB (IE/Edge) */
.range-slider-wrapper input[type="range"]::-ms-track {
  width: 100%;
  height: 4px;
  background: transparent; 
  border-color: transparent;
  color: transparent;
}
.range-slider-wrapper input[type="range"]::-ms-fill-lower,
.range-slider-wrapper input[type="range"]::-ms-fill-upper {
  background: #888888;
  border-radius: 2px;
}
.range-slider-wrapper input[type="range"]::-ms-thumb {
  height: 20px;
  width: 20px;
  background: #febe10;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Container for the labels under the slider */
.range-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 14px; 
  font-weight: 700;
  color: #ffffff; /* Label text color */
}
.range-slider-labels span {
  text-align: center;
  width: 25%; /* 4 labels = 25% each */
}

.ms-form__error-message {

  color: red;
}

input[type="email"]:invalid .ms-form__error {

}
