/* Homepage search bar (the dropdown list itself is in ph-select.css) */
.ph-search {
	display: flex; align-items: center; gap: 36px; max-width: 1040px; margin: 0 auto; padding: 16px 40px;
	background: rgba(236, 242, 245, .62); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
	border-radius: 999px;
}
.ph-search__f { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ph-search .ph-search__lab { display: block; font-size: 15px; font-weight: 400; line-height: 1.3; color: #002638 !important; }
.ph-search .ph-sel { display: block; width: 100%; }

/* each field is a label over a value with a thin navy line under it, as in the design */
.ph-search .ph-sel__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: auto; margin: 0; padding: 2px 0 4px;
	background: transparent; border: 0; border-bottom: 1px solid #002638; border-radius: 0; box-shadow: none;
	color: #002638; font: inherit; font-size: 15px; font-weight: 400; line-height: 1.3; text-align: left; cursor: pointer;
}
.ph-search .ph-sel__btn .ph-sel__label { color: #002638 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-search .ph-sel__btn:hover, .ph-search .ph-sel__btn:focus { background: transparent; color: #002638; }
.ph-search .ph-sel__btn:focus-visible { outline: 2px solid #002638; outline-offset: 4px; border-radius: 4px; }
/* lists open downwards; ph-select.js flips one upwards (.ph-sel--up) only when there is no room below it */
.ph-search .ph-sel__list { min-width: 220px; }

.ph-search .ph-search__go {
	flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px; border: 0; border-radius: 999px; box-shadow: none;
	background: #cbbba0; color: #002638; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.2; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, color .15s, transform .12s cubic-bezier(0.23, 1, 0.32, 1);
}
.ph-search .ph-search__go svg { width: 13px; height: 13px; flex: none; }
.ph-search .ph-search__go:active { transform: scale(0.97); }
.ph-search .ph-search__go:focus-visible { outline: 2px solid #002638; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.ph-search .ph-search__go:hover { background: #002638; color: #fff; }
}

/* the hero row clips its content; let the dropdown lists show, above the sections that follow */
.module_row:has(.ph-search) { overflow: visible; position: relative; z-index: 20; }

@media (max-width: 860px) {
	/* the transparent header and the theme's floating "Explore" / "Enquire" pills sit over the top of the hero,
	   so keep the heading and form clear beneath them */
	.module_row:has(.ph-search) { padding-top: 190px; }
	.ph-search { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 28px 16px 24px; padding: 6px 18px 18px; border-radius: 22px; }
	.ph-search__f { padding: 12px 0; }
	.ph-search .ph-search__go { grid-column: 1 / -1; justify-content: center; width: 100%; margin: 16px 0 0; padding: 14px 20px; font-size: 15px; }
	/* the right-hand column's list is aligned to its right edge so it stays on screen */
	.ph-search .ph-sel__list { min-width: 190px; }
	.ph-search__f:nth-child(even) .ph-sel__list { left: auto; right: 0; }
}
@media (max-width: 420px) {
	.ph-search { column-gap: 14px; padding: 4px 14px 14px; }
}
