.blog-search,
.blog-search * {
  box-sizing: border-box;
}

.blog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 860px;
  height: 64px;
  min-height: 64px;
  margin-top: 24px;
  padding: 8px;
  background: #efefef;
  border-radius: 32px;
}

.blog-search__field {
  display: flex;
  position: relative;
  align-items: center;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search__field::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.blog-search__input {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: #3f3f3f;
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: textfield;
  -moz-appearance: none;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.blog-search__input::placeholder {
  color: rgba(116, 116, 116, 0.8);
}

.blog-search__input::-webkit-search-decoration,
.blog-search__input::-webkit-search-cancel-button,
.blog-search__input::-webkit-search-results-button,
.blog-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.blog-search__field:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.blog-search__field:focus-within::after {
  border-width: 1px;
  border-color: rgba(240, 131, 25, 0.42);
}

.blog-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 16px 32px;
  border: 0;
  border-radius: 32px;
  background: #f08319;
  color: #ffffff;
  font-family: "Mulish", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.blog-search__submit::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.667 8H11.333' stroke='white' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M8.667 5.333L11.333 8L8.667 10.667' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.blog-search__submit:hover {
  background: linear-gradient(90deg, #ffc58f 0%, #ff8a1f 100%);
  box-shadow: none;
}

@media (max-width: 767px) {
  .blog-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 20px;
  }
}
