
/* ================================ 
****         SEARCH FORM
** ================================
*/  
.search-form {
  position: relative;
  margin-top: 0rem;
  margin-right: 2px;
  text-align: center;
}

.search-field {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-field:focus,
.search-field:active {
  outline: none;
  border-color: #999;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-field:focus::placeholder,
.search-field:active::placeholder {
  color: transparent;
}

.search-submit,
.search-submit:hover {
  position: absolute;
  right: 0.5rem;
  top:35%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background-repeat: no-repeat; background-position:50% 50%;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490.4 490.4'><path fill='darkgrey' d='M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z'/></svg>");
}
@media screen and (max-width:768px){
	.search-submit,
.search-submit:hover {
   top:35%;
 }
}

.search-form .search-field:focus + .search-submit,
.search-form .search-field:active + .search-submit {
  visibility: hidden;
}
.search-field:focus {
  outline: none;
  border: 1px solid #ccc; /* keep same border without black */
  box-shadow: none;
}
.search-field:focus::placeholder,
.search-field:active::placeholder {
  color: transparent;
}
/*If your button is not immediately after the input, you might need a different selector, like:*/
.search-form:focus-within .search-submit {
  visibility: hidden;
}

.search-submit:hover,
.search-submit:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.7); /* bright blue glow */
  border-radius: 50%; /* optional: make the glow round */
}

@media (max-width: 768px) {
	.search-form {
	margin-top: 1rem;
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	}
	.search-field {
	width: 100%;
	}
	.search-submit {
	right: 0.75rem;
	}
}

/* // Completely hide hamburger toggle and label in desktop view */
	@media (min-width: 768px) {
	.menu__btn,
	#menu__toggle {
	display: none !important;
	}
	.headnav-box {
	justify-content: flex-start; /* keep other items aligned correctly */
	}
	.main-menu {
	display: flex !important;
	flex-direction: row;
	gap: 2rem;
	}
	.main-menu li {
	margin: 0;
	position: relative;
	}
	nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	}
}


