[data-advanced-search-shell] {
  max-width: 980px;
  margin: 0 auto;
}

.as-form {
  display: grid;
  gap: 1.25rem;
}

.as-card {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.as-section-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.as-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.as-label {
  font-weight: 600;
}

.as-input,
.as-select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #bfc5cc;
  border-radius: 8px;
  box-sizing: border-box;
  font: inherit;
}

.as-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.as-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.as-btn {
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.as-btn-primary {
  background: #143d6b;
  color: #fff;
}

.as-btn-secondary {
  background: #eceff3;
  color: #243444;
}

.as-message {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.as-message.is-error {
  background: #fdecec;
  color: #7b1e1e;
}

.as-message.is-success {
  background: #eef6ee;
  color: #205b20;
}

/* Results-page polish: start simple and adjust after you inspect the search page DOM */
.search-results,
.search-page,
#search-results {
  max-width: 1200px;
  margin: 0 auto;
}
