/* =============================================================
   Search Results Page — srp-*
   hello-biz-child / assets/css/search.css
   ============================================================= */

/* ── Page wrapper (only used by template-parts/search.php fallback) ── */
.srp-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	box-sizing: border-box;
}

.srp-page-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	color: #1d1d1f;
	text-align: center;
	letter-spacing: 0.1px;
}

/* Spacing between filter bar and grid in the fallback layout */
.srp-page .srp-results {
	margin-top: 24px;
}

.srp-page .pfb-wrapper {
	margin-bottom: 24px;
}

/* ── Wrapper: centers the form on the search results page ── */
.srp-search-wrapper {
	display: flex;
	justify-content: center;
	padding: 16px 16px 24px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Form ─────────────────────────────────────────────────── */
.srp-form {
	width: 100%;
	max-width: 560px;
}

/* ── Field container ──────────────────────────────────────── */
.srp-field {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 56px;
	border: 1px solid #d4d4d4;
	border-radius: 2px;
	background: #ffffff;
	box-sizing: border-box;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.srp-field:focus-within {
	border-color: #1d1d1f;
}

/* ── Input ────────────────────────────────────────────────── */
.srp-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
	padding: 20px 10px 6px 16px;
	font-size: 14px;
	font-family: inherit;
	color: #1d1d1f;
	-webkit-appearance: none;
	appearance: none;
}

.srp-input::-webkit-search-cancel-button,
.srp-input::-webkit-search-decoration {
	display: none;
}

/* ── Floating label ───────────────────────────────────────── */
.srp-label {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #888888;
	pointer-events: none;
	transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
	transform-origin: left center;
	white-space: nowrap;
	line-height: 1;
}

/* Float up when input is focused or has value (placeholder=" " trick) */
.srp-input:not(:placeholder-shown) + .srp-label,
.srp-input:focus + .srp-label {
	top: 10px;
	transform: none;
	font-size: 11px;
	color: #666666;
}

/* ── Clear button ─────────────────────────────────────────── */
.srp-clear {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border: none;
	background: none;
	color: #888888;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.15s ease;
}

.srp-clear:hover,
.srp-clear:focus {
	color: #1d1d1f;
	background: transparent !important;
	outline: none;
}

.srp-clear[hidden] {
	display: none !important;
}

/* ── Separator ────────────────────────────────────────────── */
.srp-sep {
	display: block;
	width: 1px;
	height: 20px;
	background: #d4d4d4;
	flex-shrink: 0;
}

/* ── Submit button ────────────────────────────────────────── */
.srp-submit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	height: 100%;
	border: none;
	background: none;
	color: #1d1d1f;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.15s ease;
}

.srp-submit:hover,
.srp-submit:focus {
	color: #555555;
	background: transparent !important;
	outline: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
	.srp-search-wrapper {
		padding: 20px 16px 24px;
	}

	.srp-field {
		height: 50px;
	}

	.srp-input {
		padding-top: 18px;
		padding-bottom: 4px;
		font-size: 14px;
	}

	.srp-label {
		font-size: 13px;
	}

	.srp-input:not(:placeholder-shown) + .srp-label,
	.srp-input:focus + .srp-label {
		top: 8px;
		font-size: 10px;
	}
}
