/* Shared hero band and search form components
   Extracted for uniformity between home and search-collection pages.
   These use the same gradient and form primitives so the experiences look consistent.
*/

.hero-bg-gradient {
  background: linear-gradient(to right, var(--color-primary-rgba), var(--color-bg-beige));
}

/* Reusable search form card - matches .hero-search-card from home for consistency */
.search-card {
  background-color: var(--color-white-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-accent-lime);
  border-radius: 15px;
  padding: 0.6rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.8rem; /* space so hanging button doesn't cover fields */
}

/* Make the VIEW RESULTS button hang below the semi-transparent card like in home hero */
.search-card .u-btn-secondary {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(50%);
}

/* Form rows: main field + match type dropdown (e.g. Surname + Beginning) */
.search-row {
  display: grid;
  grid-template-columns: 1fr 135px;
  gap: 0.5rem;
}

.search-row-full {
  grid-template-columns: 1fr;
}

.search-row input,
.search-row select,
.search-row-full select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--color-bg-white);
  color: var(--text-dark);
  min-width: 0;
}

.search-row select,
.search-row-full select {
  background: var(--color-bg-banner);
  font-weight: 500;
}

.search-row input:focus,
.search-row select:focus,
.search-row-full select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-lime-focus-ring);
}

.search-row select {
  padding-right: 1.6rem;
}

/* Green dot indicator for match type selects (Beginning / Exact etc.) */
.match-select {
  position: relative;
  padding-left: 1.35rem;
}

.match-select::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* Note: button uses .u-btn-secondary (rectangular lime + blue 4px hanging shadow)
   positioned to hang from .search-card to match home hero exactly. */
