/* Search form styles */
.c-search-form {
	position: relative;
        width: 300px;
        z-index: 1000;
    display: inline-block;
    margin-right: 1rem;
        transform: translateY(-1px);
}

.c-search-form__border {
        width: 300px;

	display: flex;
	position: relative;
	border: 1px solid #1b7c8d;
	/* border-radius: 4px; */
	/* overflow: hidden; */
	background: white;
}

.c-search-form__field {
	flex: 1;
	padding: 7px 12px;
	border: none;
	outline: none;
	font-size: 14px;
}

.c-search-form__field::placeholder {
	color: #999;
}

.c-search-form__button {
	padding: 7px 16px;
	background: #1b7c8d;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
	text-indent: -9999px;
	width: 40px;
	position: relative;
}

.c-search-form__button:after {
	content: "\f002";
	font-family: FontAwesome;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-indent: 0;
}

.c-search-form__button:hover {
	background: #155e6b;
}

.c-search-form__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
    text-align: left;
	background: white;
	border: 1px solid  #1b7c8d;
	border-top: none;
	border-radius: 0 0 4px 4px;
	list-style: none;
	margin: 0 -1px;
	padding: 12px 16px;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.c-search-form__list:has(li) {
	padding: 0;
}

.c-search-form__item {
	border-bottom: 1px solid #eee;
}

.c-search-form__item:last-child {
	border-bottom: none;
}

.c-search-form__link {
	display: block;
	padding: 12px 16px;
	color: #3a3a3a;
    font-size: 1.5rem;
	text-decoration: none;
	transition: background 0.2s;
}

.c-search-form__link:hover {
	background: #f5f5f5;
	color: #1b7c8d;
}

.c-search-form__link span {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

.c-search-form__more {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: #1b7c8d;
	color: white;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: background 0.3s;
}

.c-search-form__more:hover {
	background: #155e6b;
}

.c-search-form.is-loading .c-search-form__border:after {
	content: "";
	position: absolute;
	right: 50px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid #1b7c8d;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* Mobile search form styles */
.c-mobile-search-form {
	margin-bottom: 1rem;
}

.c-mobile-search-form__border {
	display: flex;
	position: relative;
	border: 1px solid #1b7c8d;
	background: white;
}

.c-mobile-search-form__field {
	flex: 1;
	padding: 10px 12px;
	border: none;
	outline: none;
	font-size: 14px;
}

.c-mobile-search-form__field::placeholder {
	color: #999;
}

.c-mobile-search-form__button {
	padding: 10px 16px;
	background: #1b7c8d;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
	text-indent: -9999px;
	width: 40px;
	position: relative;
}

.c-mobile-search-form__button:after {
	content: "\f002";
	font-family: FontAwesome;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-indent: 0;
}

.c-mobile-search-form__button:hover {
	background: #155e6b;
}
