.services-search {
  position: relative;
  z-index: 12;
  width: 100%;
  max-width: 848px;
  min-height: 52px;
  padding: 2px 4px;
  background: #efefef;
  border-radius: 32px;
  box-sizing: border-box;
}

.services-search,
.services-search * {
  box-sizing: border-box;
}

.services-search__grid {
  display: grid;
  grid-template-columns: minmax(0, 576px) 248px;
  gap: 4px;
  align-items: center;
  width: 100%;
  min-height: 48px;
}

.services-search__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 16px;
  align-items: center;
  width: 100%;
}

.services-search__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #ffffff;
  border-radius: 24px;
  transition: opacity 0.2s ease;
}

.services-search__field::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 24px;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.services-search__field:focus-within {
  box-shadow: none;
}

.services-search__field:focus-within::after {
  border-color: #f08319;
}

.services-search__field.is-disabled {
  opacity: 0.7;
}

.services-search__field.is-open {
  z-index: 40;
}

.services-search__field.is-open::after {
  border-color: #f08319;
}

.services-search__select {
  width: 100%;
  min-width: 0;
  padding: 0 35px 0 0;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M6.85 8.3L10.5 4.65L14.15 8.3' stroke='%23979DA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.85 12.7L10.5 16.35L14.15 12.7' stroke='%23979DA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 21px 21px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  outline: 0;
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: rgba(116, 116, 116, 0.8);
  cursor: pointer;
}

.services-search__select:disabled {
  cursor: default;
}

.services-search__field.is-filled .services-search__select {
  color: #3f3f3f;
}

.services-search__select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.services-search__trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(116, 116, 116, 0.8);
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.services-search__trigger::after {
  content: "";
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M6.85 8.3L10.5 4.65L14.15 8.3' stroke='%23979DA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.85 12.7L10.5 16.35L14.15 12.7' stroke='%23979DA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
  transition: transform 0.2s ease;
}

.services-search__field.is-open .services-search__trigger::after {
  transform: rotate(180deg);
}

.services-search__trigger:disabled {
  cursor: default;
}

.services-search__trigger:focus-visible {
  outline: none;
}

.services-search__trigger-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.services-search__field.is-filled .services-search__trigger-label {
  color: #3f3f3f;
}

.services-search__menu {
  position: fixed;
  width: var(--services-search-menu-width, 100%);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.services-search__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.services-search__options {
  display: grid;
  gap: 4px;
  max-height: 264px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(240, 131, 25, 0.14);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 24px 48px rgba(63, 63, 63, 0.12),
    0 8px 20px rgba(63, 63, 63, 0.08);
}

.services-search__options::-webkit-scrollbar {
  width: 8px;
}

.services-search__options::-webkit-scrollbar-track {
  background: transparent;
}

.services-search__options::-webkit-scrollbar-thumb {
  background: rgba(151, 157, 168, 0.45);
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.services-search__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #3f3f3f;
  font-family: "Mulish", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.services-search__option:hover,
.services-search__option:focus-visible {
  background: rgba(240, 131, 25, 0.08);
  color: #dd7513;
  outline: none;
}

.services-search__option.is-selected {
  background: rgba(240, 131, 25, 0.12);
  color: #f08319;
}

.services-search__option.is-placeholder {
  color: rgba(116, 116, 116, 0.75);
  font-weight: 400;
}

.services-search__field.is-disabled .services-search__trigger-label,
.services-search__field.is-disabled .services-search__option {
  color: rgba(116, 116, 116, 0.6);
}

.services-search__button-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
}

.services-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 16px 32px;
  border-radius: 32px;
  background: #f08319;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.services-search__button:hover {
  background: #dd7513;
  transform: translateY(-1px);
}

.services-search__button:focus-visible {
  outline: 2px solid rgba(240, 131, 25, 0.25);
  outline-offset: 3px;
}

.services-search__button svg {
  flex: 0 0 auto;
}

.services-search__button.is-disabled {
  background: #cccccc;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
  transform: none;
}

@media (max-width: 1024px) {
  .services-search__grid {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .services-search__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-search {
    max-width: 362px;
    border-radius: 32px;
  }

  .services-search__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fields"
      "button";
  }

  .services-search__fields {
    grid-area: fields;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .services-search__field {
    padding: 0 14px;
  }

  .services-search__options {
    max-height: 240px;
    padding: 6px;
    border-radius: 18px;
  }

  .services-search__option {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .services-search__button-wrap {
    grid-area: button;
  }

  .services-search__button {
    padding-inline: 20px;
  }
}

@media (max-width: 380px) {
  .services-search__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-search__trigger-label {
    padding-right: 8px;
  }
}
