.footer-search {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.75rem) clamp(1.25rem, 6vw, 5.5rem);
  color: #ebeadf;
  text-align: center;
  border: 1px solid rgba(235, 234, 223, 0.18);
  border-radius: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 1.5rem 4rem rgba(43, 50, 54, 0.14);
}

.footer-search::before {
  position: absolute;
  z-index: -1;
  top: -70%;
  left: 50%;
  width: min(54rem, 115%);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(235, 234, 223, 0.1);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-search__eyebrow {
  margin-bottom: 1rem;
  color: #d0aa26;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-search__title {
  max-width: 16ch;
  margin: 0 auto 0.9rem;
  color: #ebeadf;
  font-size: clamp(2rem, 4.25vw, 3.65rem);
  line-height: 1.05;
  text-wrap: balance;
}

.footer-search__description {
  max-width: 48ch;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  color: rgba(235, 234, 223, 0.72);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.6;
  text-wrap: balance;
}

.footer-search__form {
  display: flex;
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 0.5rem;
  gap: 0.5rem;
  background: #f5f4ed;
  border: 1px solid rgba(235, 234, 223, 0.4);
  border-radius: 50rem;
  transition: outline-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-search__form:focus-within {
  outline: 3px solid rgba(208, 170, 38, 0.48);
  outline-offset: 4px;
}

.footer-search__input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 1.25rem;
  color: #2b3236;
  font: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

.footer-search__input::placeholder {
  color: rgba(43, 50, 54, 0.58);
  opacity: 1;
}

.footer-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.footer-search__button {
  display: inline-flex;
  min-height: 3.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 1.6rem;
  gap: 0.8rem;
  color: #ebeadf;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #2b3236;
  border: 1px solid #2b3236;
  border-radius: 50rem;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-search__button span:last-child {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-search__button:hover {
  color: #2b3236;
  background: #d0aa26;
}

.footer-search__button:hover span:last-child {
  transform: translateX(0.2rem);
}

.footer-search__button:focus-visible {
  outline: 3px solid #d0aa26;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .footer-search__form {
    flex-direction: column;
    padding: 0;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .footer-search__input,
  .footer-search__button {
    width: 100%;
    min-height: 3.5rem;
    border-radius: 50rem;
  }

  .footer-search__input {
    padding: 0 1.25rem;
    background: #f5f4ed;
    border: 1px solid rgba(235, 234, 223, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-search__button,
  .footer-search__button span:last-child,
  .footer-search__form {
    transition: none;
  }
}
