/* Search Wrapper (like header container) */
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap; /* Prevent breaking when zoomed out */
  padding: 0.9375rem;
  background-color: #ffffff;
  max-width: 1200px; /* Matches header */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Modern Search Box */
.modern-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 18.75rem; /* 300px */
  height: 2.625rem; /* 42px */
  background-color: #ffffff;
  padding: 0.375rem 1rem;
  border-radius: 1.875rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.259);
  font-size: 1rem;
  box-sizing: border-box;
}

/* Input Field */
.modern-search input {
  border: none;
  outline: none;
  font-size: 1rem;
  flex: 1;
  min-width: 0;
}

/* Divider (optional) */
.divider {
  margin: 0 0.625rem;
  color: #999;
}

/* Search Button */
.modern-search button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* Responsive for Mobile/Zoom-Out */
@media (max-width: 600px) {
  .search-wrapper {
    justify-content: center;
    padding-inline: 1rem;
  }

  .modern-search {
    max-width: 100%;
  }
}
