/* Homepage location search bar, inside the "home" Hero block variant.
 * Self-contained stylesheet, only enqueued on the front page.
 * Colors reuse the theme's existing global design-token custom properties.
 */

.home-hero-centered {
	text-align: center;
	align-items: center;
	max-width: 80% !important;
	margin: 0 auto;
}

.home-hero-centered .hero--provider-match__content-group-description {
	margin-left: auto;
	margin-right: auto;
}

.home-hero-centered .home-search-bar {
	margin-left: auto;
	margin-right: auto;
}

.home-search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--color--white, #fff);
	border-radius: 50px;
	box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
	padding: 8px 8px 8px 20px;
	max-width: 80%;
}

.home-search-bar__field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.home-search-bar__field--location {
	color: var(--color-navy-68, rgba(10, 37, 64, 0.68));
}

.home-search-bar__field svg,
.home-search-bar__submit svg {
	flex-shrink: 0;
	margin: 0;
}

.home-search-bar__field input,
.home-search-bar__field select {
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--font-secondary, "DM Sans", sans-serif);
	font-size: 15px;
	color: var(--color-navy, #0a2540);
	width: 100%;
	padding: 10px 0;
}

.home-search-bar__field select {
	cursor: pointer;
}

.home-search-bar__divider {
	width: 1px;
	height: 28px;
	background: var(--color-gray-light, #d8dfe3);
	flex-shrink: 0;
}

.home-search-bar__field--therapy {
	flex: 0 1 auto;
}

.home-search-bar__submit {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	background: var(--color-coral, #ff6f61);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 12px 22px;
	font-family: var(--font-primary, "Sora", sans-serif);
	font-weight: 500;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.home-search-bar__submit:hover {
	background: var(--color-coral-hover, #ff5e4e);
}

@media (max-width: 767px) {
	.home-search-bar {
		flex-wrap: wrap;
		border-radius: 20px;
		max-width: 100%;
	}

	.home-search-bar__field,
	.home-search-bar__field--therapy {
		flex: 1 1 100%;
	}

	.home-search-bar__divider {
		display: none;
	}

	.home-search-bar__submit {
		flex: 1 1 100%;
		justify-content: center;
	}
}
