/* Fullscreen Search Overlay */

.cmh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #581698bd;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cmh-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cmh-search-overlay__close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cmh-search-overlay__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.cmh-search-overlay__form {
  width: min(720px, 100%);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.cmh-search-overlay.is-open .cmh-search-overlay__form {
  transform: translateY(0);
}

.cmh-search-overlay__label {
  display: block;
  margin-bottom: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cmh-search-overlay__field {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.cmh-search-overlay__field input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 18px 22px;
  font-size: 17px;
  color: #333;
  background: transparent;
}

.cmh-search-overlay__field input[type="search"]::placeholder {
  color: #9a9a9a;
}

.cmh-search-overlay__field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.cmh-search-overlay__submit {
  border: 0;
  background: #3aafde;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cmh-search-overlay__submit:hover {
  background: #2f98c2;
}

.cmh-search-overlay__submit i {
  font-size: 14px;
}

body.cmh-search-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .cmh-search-overlay__close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .cmh-search-overlay__label {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .cmh-search-overlay__field {
    flex-direction: column;
    border-radius: 12px;
  }

  .cmh-search-overlay__field input[type="search"] {
    padding: 16px 18px;
    font-size: 16px;
  }

  .cmh-search-overlay__submit {
    justify-content: center;
    padding: 14px 18px;
  }
}
