/* Patient lookup page — extends the shared Carenet styles. */

.subhero {
  background: linear-gradient(180deg, var(--ink) 0%, #0b2640 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}
.subhero h1 {
  font-family: "Roboto Serif", "Roboto", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0.5rem 0 0.5rem;
  font-weight: 600;
}
.subhero h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--red);
  margin-top: 0.65rem;
  border-radius: 2px;
}
.subhero-lede {
  margin: 0.5rem 0 0;
  opacity: 0.88;
  max-width: 60ch;
}
.crumbs {
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.patient-main { padding: 2rem 1.5rem 4rem; }

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(6, 26, 46, 0.04);
  align-items: end;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-wide { grid-column: span 2; }
.field input,
.field select {
  font: inherit;
  color: var(--text);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 42px;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}

.btn-search {
  min-height: 42px;
  padding: 0 1.5rem;
  border: none;
  cursor: pointer;
  font: inherit;
}
.btn-search:disabled { opacity: 0.55; cursor: wait; }

.status {
  margin-top: 1.25rem;
  min-height: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}
.status.error { color: var(--red); }

.results {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.provider-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.provider-card:hover {
  box-shadow: 0 8px 20px rgba(6, 26, 46, 0.08);
  transform: translateY(-2px);
}
.provider-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f6;
  flex-shrink: 0;
  border: 2px solid var(--red);
}
.provider-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
  background: #eef2f6;
}
.provider-body { min-width: 0; flex: 1; }
.provider-name {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 0.15rem;
}
.provider-specialty {
  color: var(--red);
  font-weight: 600;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}
.provider-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.provider-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8f5ee;
  color: #1d7a3f;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 760px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide { grid-column: span 2; }
  .btn-search { grid-column: span 2; }
}
