/* Homepage hero search bar + enquiry lightbox */

.uptown-hs {
	position: relative;
	z-index: 5;
	max-width: 640px;
}
.uptown-hs__label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .5px;
	color: #fff;
}
.uptown-hs__label::before {
	content: "";
	width: 40px;
	height: 1px;
	background: #5C98F2;
}

.uptown-hs__bar {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 60px;
	padding: 6px;
	box-shadow: 0 20px 35px rgba(20, 20, 20, .10);
	border: 1px solid #e6ebf3;
}
.uptown-hs__field {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}
.uptown-hs__field + .uptown-hs__field::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 26px;
	margin-top: -13px;
	border-left: 1px solid #d9dfe9;
}
.uptown-hs__trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 12px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 16px;
	color: #292929;
	cursor: pointer;
	white-space: nowrap;
}
.uptown-hs__field.has-value .uptown-hs__value {
	color: #3f7be0;
	font-weight: 500;
}
.uptown-hs__arrow {
	border: solid transparent;
	border-width: 5px 4px 0;
	border-top-color: currentColor;
	transition: transform .2s;
}
.uptown-hs__field.is-open .uptown-hs__arrow {
	transform: rotate(180deg);
}
.uptown-hs__list {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 100%;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(20, 20, 20, .16);
	z-index: 30;
}
.uptown-hs__list[hidden] {
	display: none;
}
.uptown-hs__list li {
	margin: 0;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 15px;
	color: #292929;
	white-space: nowrap;
	cursor: pointer;
	outline: 0;
}
.uptown-hs__list li:hover,
.uptown-hs__list li:focus {
	background: #eef4fe;
	color: #3f7be0;
}
.uptown-hs__list li[aria-selected="true"] {
	color: #3f7be0;
	font-weight: 600;
}

.uptown-hs__submit {
	flex: 0 0 auto;
	padding: 16px 40px;
	border: 0;
	border-radius: 50px;
	background: linear-gradient(90deg, #5C98F2, #3f7be0);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s, transform .2s;
}
.uptown-hs__submit:hover {
	filter: brightness(1.07);
}
.uptown-hs__submit:disabled {
	opacity: .7;
	cursor: default;
}
.uptown-hs__msg {
	margin: 12px 0 0 22px;
	font-size: 14px;
	color: #d93025;
}
.uptown-hs__msg[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.uptown-hs__bar {
		flex-direction: column;
		align-items: stretch;
		border-radius: 24px;
		padding: 8px;
	}
	.uptown-hs__field + .uptown-hs__field::before {
		left: 12%;
		right: 12%;
		top: 0;
		height: 0;
		margin: 0;
		border-left: 0;
		border-top: 1px solid #e6ebf3;
	}
	.uptown-hs__submit {
		margin-top: 6px;
	}
}

/* ---- lightbox ---- */
html.uptown-hs-lock {
	overflow: hidden;
}
.uptown-hs-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.uptown-hs-modal[hidden] {
	display: none;
}
.uptown-hs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 32, .6);
}
.uptown-hs-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 40px 36px 34px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
	outline: 0;
}
.uptown-hs-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 36px;
	height: 36px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}
.uptown-hs-modal__dialog h3 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 600;
	color: #12022f;
}
.uptown-hs-modal__sub {
	margin: 0 0 16px;
	font-size: 15px;
	color: #565656;
}
.uptown-hs-modal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.uptown-hs-modal__chips li {
	margin: 0;
	padding: 6px 14px;
	border-radius: 20px;
	background: #eef4fe;
	font-size: 13px;
	color: #3f7be0;
}
.uptown-hs-modal__form label:not(.uptown-hs-modal__consent) {
	display: block;
	margin-bottom: 14px;
}
.uptown-hs-modal__form label > span:first-child {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #12022f;
}
.uptown-hs-modal__form input[type="text"],
.uptown-hs-modal__form input[type="tel"],
.uptown-hs-modal__form input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #d9dfe9;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: #292929;
	box-sizing: border-box;
}
.uptown-hs-modal__form input:focus {
	outline: 0;
	border-color: #5C98F2;
	box-shadow: 0 0 0 3px rgba(92, 152, 242, .2);
}
.uptown-hs-modal__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.uptown-hs-modal__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 16px;
	font-size: 13px;
	color: #565656;
	cursor: pointer;
}
.uptown-hs-modal__consent input {
	flex: 0 0 auto;
	margin-top: 3px;
}
.uptown-hs-modal__error {
	margin: 0 0 12px;
	font-size: 14px;
	color: #d93025;
}
.uptown-hs-modal__error[hidden],
.uptown-hs-modal__form-view[hidden],
.uptown-hs-modal__done[hidden] {
	display: none;
}
.uptown-hs-modal__send {
	width: 100%;
}
.uptown-hs-modal__done {
	text-align: center;
	padding: 20px 0 6px;
}
.uptown-hs-modal__done p {
	margin: 0 0 24px;
	color: #565656;
}

/* The theme styles every <button> (blue fill, uppercase, letter-spacing);
   these out-rank it so the bar keeps its own look. */
html body .uptown-hs__trigger {
	display: flex;
	padding: 16px 12px;
	background: none;
	color: #292929;
	border-radius: 0;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
html body .uptown-hs__trigger:hover,
html body .uptown-hs__trigger:focus {
	background: none;
	color: #292929;
}
html body .uptown-hs__field.has-value .uptown-hs__value {
	color: #3f7be0;
	font-weight: 500;
}
html body .uptown-hs__submit {
	padding: 16px 40px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
html body .uptown-hs-modal__close {
	display: block;
	padding: 0;
	background: none;
	color: #6b7280;
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
html body .uptown-hs-modal__close:hover {
	background: none;
	color: #12022f;
}

/* popup: compact two-column layout so it fits a laptop screen */
.uptown-hs-modal__dialog {
	max-width: 520px;
	padding: 32px 32px 26px;
}
.uptown-hs-modal__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}
.uptown-hs-modal__row > label {
	min-width: 0;
}
.uptown-hs-modal__form label:not(.uptown-hs-modal__consent) {
	margin-bottom: 12px;
}
.uptown-hs-modal__form label > span:first-child {
	color: #12022f;
}
.uptown-hs-modal__form input[type="text"],
.uptown-hs-modal__form input[type="tel"],
.uptown-hs-modal__form input[type="email"] {
	height: 44px;
	margin: 0;
}
.uptown-hs-modal__form input[readonly] {
	background: #f3f6fb;
	color: #565656;
}
html body .uptown-hs-modal__send {
	height: 50px;
	padding: 0 24px;
}
.uptown-hs-modal__sub {
	margin-bottom: 12px;
}
@media (max-width: 520px) {
	.uptown-hs-modal__row {
		grid-template-columns: 1fr;
	}
	.uptown-hs-modal__dialog {
		padding: 28px 20px 22px;
	}
}
