/* Header search — icon + overlay */

/* Search sits beside logo */
.rts-header__logo {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.rts-header__logo .asmorix-hsrch__btn,
.rts-header__logo .asmorix-hsrch__trigger {
  margin: 0;
}

.asmorix-hsrch__trigger {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 280px;
}

.rts-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rts-header__right .button-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asmorix-hsrch__btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.asmorix-hsrch__btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Homepage style-six — light/dark safe navy chip next to logo */
.rts-header.style-six .asmorix-hsrch__btn {
  background: rgba(0, 0, 139, 0.08);
  color: #00008b;
}

.rts-header.style-six .asmorix-hsrch__btn:hover {
  background: rgba(0, 0, 139, 0.14);
  color: #00008b;
}

body.ax-blog-page .ax-blog-header .asmorix-hsrch__btn,
body.cloud__hosting .rts-header.style-one.header-sticky .asmorix-hsrch__btn,
body.asmorix-contact-page .rts-header.style-one.header-sticky .asmorix-hsrch__btn {
  background: rgba(0, 0, 139, 0.08);
  color: #00008b;
}

body.ax-blog-page .ax-blog-header .asmorix-hsrch__btn:hover,
body.cloud__hosting .rts-header.style-one.header-sticky .asmorix-hsrch__btn:hover,
body.asmorix-contact-page .rts-header.style-one.header-sticky .asmorix-hsrch__btn:hover {
  background: rgba(0, 0, 139, 0.14);
  color: #00008b;
}

body.asmorix-hsrch-open {
  overflow: hidden;
}

.asmorix-hsrch[hidden] {
  display: none !important;
}

.asmorix-hsrch {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
}

.asmorix-hsrch__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.55);
  backdrop-filter: blur(4px);
}

.asmorix-hsrch__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.asmorix-hsrch__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

.asmorix-hsrch__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 6px 6px 22px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 40, 90, 0.1);
  cursor: text;
}

.asmorix-hsrch__field--nav {
  width: 100%;
  min-width: 168px;
  min-height: 44px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 4px 14px rgba(15, 40, 90, 0.1);
  cursor: pointer;
}

.asmorix-hsrch__field--nav .asmorix-hsrch__go {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.asmorix-hsrch__input {
  flex: 1 1 auto;
  min-width: 8rem !important;
  width: 100% !important;
  max-width: none !important;
  border: 0;
  outline: none;
  background: transparent;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #334155;
  opacity: 1;
}

.asmorix-hsrch__input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.asmorix-hsrch__input::-webkit-search-decoration,
.asmorix-hsrch__input::-webkit-search-cancel-button,
.asmorix-hsrch__input::-webkit-search-results-button,
.asmorix-hsrch__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.asmorix-hsrch__go {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #00008b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 139, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.asmorix-hsrch__go:hover,
.asmorix-hsrch__go:focus-visible {
  background: #000070;
  color: #ffffff;
}

.asmorix-hsrch__go:active {
  transform: scale(0.96);
}

.asmorix-hsrch__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 40, 90, 0.12);
}

.asmorix-hsrch__close:hover {
  background: #f1f5f9;
}

.asmorix-hsrch__list {
  overflow: auto;
  margin-top: 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 40, 90, 0.12);
  max-height: min(62vh, 560px);
}

.asmorix-hsrch__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.asmorix-hsrch__item:hover,
.asmorix-hsrch__item.is-active {
  background: rgba(0, 0, 139, 0.06);
}

.asmorix-hsrch__ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 139, 0.08);
  color: #00008b;
  flex-shrink: 0;
}

.asmorix-hsrch__name {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.asmorix-hsrch__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.asmorix-hsrch__empty {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 991px) {
  .rts-header__wrapper {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .rts-header__logo {
    display: contents !important;
  }

  .asmorix-hsrch__trigger {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    order: 8;
  }

  .rts-header__logo .site-logo {
    order: 1;
  }

  .rts-header__menu {
    order: 2;
  }

  .rts-header__right {
    order: 3;
    margin-left: auto;
  }

  .asmorix-hsrch__field--nav {
    min-width: 0;
    min-height: 44px;
    padding: 4px 4px 4px 16px;
  }

  .asmorix-hsrch__field--nav .asmorix-hsrch__input {
    font-size: 15px;
    min-width: 0 !important;
  }

  .asmorix-hsrch__field--nav .asmorix-hsrch__go {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .asmorix-hsrch {
    padding: 18px 12px;
    align-items: flex-start;
  }

  .asmorix-hsrch .asmorix-hsrch__field {
    min-height: 52px;
    padding: 5px 5px 5px 18px;
  }

  .asmorix-hsrch .asmorix-hsrch__go {
    width: 40px;
    height: 40px;
  }

  .asmorix-hsrch__field--nav {
    min-height: 44px;
  }
}
