/* Pet Hospital Launch — shared UI */
:root {
  --phl-accent: #1a7a4a;
  --phl-accent-soft: #f6fff9;
  --phl-warn: #c0392b;
  --phl-warn-bg: #fff8f8;
  --phl-link: #0066cc;
  --phl-border: #ddd;
  --phl-radius: 8px;
  --phl-max: 960px;
}

.phl-wrap {
  max-width: var(--phl-max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.phl-disclaimer {
  font-size: 0.9rem;
  color: #555;
  border-left: 4px solid var(--phl-warn);
  padding: 0.75rem 1rem;
  background: var(--phl-warn-bg);
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.phl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.phl-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.phl-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.phl-card-accent {
  border-color: var(--phl-accent);
  background: var(--phl-accent-soft);
}

.phl-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.phl-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.phl-cta {
  font-weight: bold;
  color: var(--phl-link);
}

.phl-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--phl-border);
}

.phl-subnav a {
  color: var(--phl-link);
}

.phl-site-header {
  border-bottom: 1px solid var(--phl-border);
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.phl-site-header .phl-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0;
}

.phl-site-header-inner {
  align-items: flex-start;
}

.phl-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.phl-site-brand:hover {
  opacity: 0.92;
}

.phl-site-logo {
  display: block;
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
}

.phl-site-brand--footer .phl-site-logo {
  max-height: 32px;
  max-width: 160px;
}

.phl-site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.phl-site-brand-name {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.25;
}

.phl-site-brand-tagline {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.35;
}

.phl-site-brand--header.phl-site-brand:has(.phl-site-logo) .phl-site-brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phl-site-brand--header.phl-site-brand:has(.phl-site-logo) .phl-site-brand-tagline {
  font-size: 0.75rem;
}

.phl-site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phl-site-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.phl-site-title a {
  text-decoration: none;
  color: inherit;
}

.phl-site-tagline {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.phl-site-footer {
  border-top: 1px solid var(--phl-border);
  margin-top: 2rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #666;
}

/* Search form */
.phl-search-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  background: #fafafa;
}

.phl-search-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.phl-search-form select,
.phl-search-form input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--phl-border);
  border-radius: 4px;
}

.phl-search-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.phl-search-form fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.phl-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.phl-check-row label {
  flex-direction: row;
  align-items: center;
  font-weight: normal;
  gap: 0.35rem;
}

.phl-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--phl-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.phl-btn:hover {
  opacity: 0.92;
  color: #fff;
}

.phl-btn-secondary {
  background: #555;
}

.phl-result-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem;
}

/* Hospital cards */
.phl-hospital-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.phl-hospital-card {
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  padding: 1rem 1.25rem;
}

.phl-hospital-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.phl-hospital-card h3 a {
  color: inherit;
  text-decoration: none;
}

.phl-hospital-card h3 a:hover {
  color: var(--phl-link);
}

.phl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.phl-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #eef;
  color: #334;
}

.phl-badge-emergency {
  background: #ffeaea;
  color: #922;
}

.phl-badge-cat {
  background: #eef8ff;
  color: #246;
}

.phl-badge-gov {
  background: #f0f0f0;
  color: #444;
}

.phl-hospital-meta {
  font-size: 0.88rem;
  color: #555;
  margin: 0.25rem 0;
}

.phl-hospital-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
  margin: 0.5rem 0;
}

.phl-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.phl-card-actions a {
  font-size: 0.88rem;
  color: var(--phl-link);
}

.phl-btn-maps {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #4285f4;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.88rem;
}

.phl-btn-maps:hover {
  opacity: 0.9;
}

.phl-empty {
  color: #666;
  font-style: italic;
  padding: 1.5rem;
  border: 1px dashed var(--phl-border);
  border-radius: var(--phl-radius);
}

/* Safety net */
.phl-safety-net {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 2px solid #e67e22;
  border-radius: var(--phl-radius);
  background: #fffaf5;
}

.phl-safety-net h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.phl-safety-net p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Home visit coming soon */
.phl-coming-soon-home-visit {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  background: #fafafa;
}

.phl-coming-soon-home-visit h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.phl-coming-soon-lead {
  font-weight: 600;
  color: #333;
}

.phl-search-hint-box {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid var(--phl-accent);
  background: var(--phl-accent-soft);
  border-radius: 0 var(--phl-radius) var(--phl-radius) 0;
}

.phl-search-hint-box h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

/* Single hospital */
.phl-single-header {
  margin-bottom: 1.5rem;
}

.phl-fact-section {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
}

.phl-fact-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #333;
}

.phl-fact-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.phl-referral-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
}

/* Home visit triage */
.phl-triage-form {
  max-width: 520px;
}

.phl-partner-card {
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.phl-partner-card h3 {
  margin: 0 0 0.35rem;
}

.phl-partner-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Forms */
.phl-form {
  max-width: 520px;
  margin-top: 1.5rem;
}

.phl-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.phl-form input[type="text"],
.phl-form input[type="url"],
.phl-form input[type="email"],
.phl-form select,
.phl-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--phl-border);
  border-radius: var(--phl-radius);
  font: inherit;
  box-sizing: border-box;
}

.phl-form p {
  margin-bottom: 1rem;
}

.phl-form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.phl-required {
  color: var(--phl-warn);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.phl-btn-primary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--phl-accent);
  color: #fff;
  border: none;
  border-radius: var(--phl-radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.phl-btn-primary:hover {
  filter: brightness(0.95);
}

.phl-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--phl-radius);
  margin: 1rem 0;
}

.phl-notice-success {
  background: var(--phl-accent-soft);
  border: 1px solid var(--phl-accent);
}

.phl-notice-error {
  background: var(--phl-warn-bg);
  border: 1px solid var(--phl-warn);
}

.phl-notice-error ul {
  margin: 0;
  padding-left: 1.25rem;
}

.phl-meta-note {
  color: #666;
  font-size: 0.85rem;
}
