/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: system-ui, sans-serif;
  color: #1a1a1a;
  margin: 2rem;
}

.surros-search {
  max-width: 960px;
  margin: 0 auto;
}

.surrogate-seal {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto 1rem;
}

.surrogate-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #14213d;
  text-align: center;
  margin: 0 0 0.35rem;
}

.surrogate-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #555;
  text-align: center;
  margin: 0 0 2rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.search-form input[type="text"],
.search-form select {
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23555' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.search-form .field:has(input[type="submit"]) {
  flex-direction: row;
  gap: 0.5rem;
}

.search-form input[type="submit"],
.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.search-form input[type="submit"] {
  border: 1px solid #14213d;
  background: #14213d;
  color: #fff;
}

.search-form input[type="submit"]:hover {
  background: #1f3562;
  border-color: #1f3562;
}

.clear-button {
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  text-decoration: none;
}

.clear-button:hover {
  border-color: #14213d;
  color: #14213d;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

table.results th,
table.results td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.no-results {
  color: #555;
}

.pagination a,
.pagination span {
  margin-right: 0.5rem;
}
