/* Header search: closed state only shows the search button */

.search_style_fullscreen:not(.search_opened) .site_search_eyebrow,
.search_style_fullscreen:not(.search_opened) .site_search_title,
.search_style_fullscreen:not(.search_opened) .site_search_suggestions,
.search_style_fullscreen:not(.search_opened) .site_search_hint {
	display: none;
}

body:has(.search_style_fullscreen.search_opened) {
	overflow: hidden;
}

/* Overlay */

body .top_panel .search_style_fullscreen.search_opened .search_form_wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background:
		radial-gradient(circle at 15% 20%, rgba(253, 163, 59, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(80, 193, 205, 0.16) 0%, transparent 45%),
		rgba(18, 44, 56, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: site-search-fade 0.3s ease both;
	overflow-y: auto;
	box-sizing: border-box;
}

.search_style_fullscreen.search_opened .site_search_panel {
	width: 100%;
	max-width: 760px;
	font-family: 'Montserrat', sans-serif;
	text-align: center;
	animation: site-search-rise 0.4s ease 0.05s both;
}

.site_search_eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	border-radius: 50px;
	background-color: rgba(253, 163, 59, 0.15);
	color: #fda33b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

body .top_panel .site_search_title {
	margin: 0 0 30px;
	color: #ffffff;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}

/* Search field */

body .top_panel .search_style_fullscreen.search_opened .search_form {
	position: relative;
	top: auto;
	left: auto;
	width: 100%;
	padding: 8px;
	border: 0;
	border-radius: 60px;
	background-color: #ffffff;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	transform: none;
	box-sizing: border-box;
}

body .top_panel .search_style_fullscreen.search_opened .search_field {
	height: 64px;
	padding: 0 84px 0 28px;
	border: 0;
	background-color: transparent !important;
	color: #1a3c4c !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 64px !important;
	letter-spacing: 0;
	box-sizing: border-box;
}

body .top_panel .search_style_fullscreen.search_opened .search_field::placeholder {
	color: #979aaa;
	opacity: 1;
}

body .top_panel .search_style_fullscreen.search_opened .search_submit {
	left: auto !important;
	right: 8px !important;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(120deg, #fda33b 0%, #ffc27a 100%) !important;
	color: #1a3c4c !important;
	font-size: 22px;
	box-shadow: 0 8px 18px rgba(253, 163, 59, 0.4);
}

body .top_panel .search_style_fullscreen.search_opened .search_submit::before {
	color: inherit !important;
}

body .top_panel .search_style_fullscreen.search_opened .search_submit:hover {
	background: #1a3c4c !important;
	color: #ffffff !important;
}

/* Close button */

body .top_panel .search_style_fullscreen.search_opened .search_close {
	position: fixed;
	top: 30px;
	right: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff !important;
	font-size: 18px;
	z-index: 2;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

body .top_panel .search_style_fullscreen.search_opened .search_close:hover {
	background-color: #fda33b;
	color: #1a3c4c !important;
	transform: rotate(90deg);
}

/* Suggestions */

.site_search_suggestions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.site_search_suggestions_label {
	margin-right: 4px;
	color: #b9cbd3;
	font-size: 14px;
	font-weight: 500;
}

body .top_panel .site_search_suggestions a {
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

body .top_panel .site_search_suggestions a:hover {
	border-color: #fda33b;
	background-color: #fda33b;
	color: #1a3c4c !important;
	transform: translateY(-2px);
}

.site_search_hint {
	margin: 26px 0 0;
	color: rgba(185, 203, 211, 0.7);
	font-size: 13px;
}

.site_search_hint kbd {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-family: inherit;
	font-size: 12px;
}

@keyframes site-search-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes site-search-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	body .top_panel .site_search_title {
		font-size: 28px;
	}

	body .top_panel .search_style_fullscreen.search_opened .search_field {
		height: 54px;
		padding: 0 70px 0 20px;
		font-size: 16px !important;
		line-height: 54px !important;
	}

	body .top_panel .search_style_fullscreen.search_opened .search_submit {
		width: 54px;
		height: 54px;
		font-size: 18px;
	}

	body .top_panel .search_style_fullscreen.search_opened .search_close {
		top: 16px;
		right: 16px;
		width: 44px;
		height: 44px;
	}

	.site_search_hint {
		display: none;
	}
}
