/* --- SYMPTOMS PAGE (consistent with Home / Providers) --- */

/* =========== HERO =========== */
.symptoms-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
  text-align: left;
}
.symptoms-hero h2 {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  color: var(--section-heading-color);
  margin-bottom: 0.75rem;
}
.symptoms-hero p.lead {
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.8;
  max-width: 70ch;
}

/* =========== UNIFIED BUTTONS (same as Home/Providers) =========== */
.btn, .btn-primary {
  --btn-bg: var(--primary-color);
  --btn-bg-hover: var(--primary-600);
  --btn-text: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: 6px;
  border: 0;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .06s ease;
}
.btn:hover, .btn-primary:hover { background-color: var(--btn-bg-hover); }
.btn:active, .btn-primary:active { transform: translateY(1px); }

/* Keep white text in all states */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible { color: #fff !important; text-decoration: none; }

/* Optional link-style CTA */
.btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 700; color: var(--primary-color); text-decoration: none;
}
.btn-link:hover { color: var(--primary-700); text-decoration: underline; }

/* =========== URGENT CALLOUT =========== */
.urgent-callout {
  max-width: 950px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}
.urgent-card {
  border-left: 6px solid #d9534f; /* red accent */
  background: #fff7f7;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(217,83,79,0.12);
}
.urgent-card h3 {
  display: flex; align-items: center; gap: .6rem;
  color: #a94442; margin-bottom: .35rem;
}
.urgent-card h3 img { width: 22px; height: 22px; display: block; }
.urgent-card ul {
  list-style: disc;
  margin: .25rem 0 0 1.25rem;
  color: #a94442;
}

/* =========== TILES =========== */
.symptom-tiles {
  max-width: var(--container-max-width);
  margin: 1.75rem auto 0;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .85rem;
}
.symptom-tile {
  grid-column: span 12;
  display: flex; align-items: flex-start; gap: .9rem;
  border: 1px solid #e6edf0; background: #fff; border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: var(--box-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.symptom-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.symptom-tile img {
  width: 56px; height: 56px; flex: 0 0 56px; margin-top: 2px; display: block;
}
.symptom-tile h4 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--section-heading-color); }
.symptom-tile p  { margin: 0; color: var(--text-color); font-size: .98rem; }

/* =========== QUOTE =========== */
.right-dx {
  max-width: 950px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 0;
}
.right-dx blockquote {
  margin: 0; padding: 1rem 1.25rem;
  border: 1px solid #e6edf0; border-left: 6px solid var(--primary-color);
  background: #f9fcfe; border-radius: 10px; color: var(--text-color);
  box-shadow: var(--box-shadow-soft);
}
.right-dx cite { display: block; margin-top: .5rem; font-style: normal; color: #667; }

/* =========== DIFFERENTIALS =========== */
.differentials {
  max-width: var(--container-max-width);
  margin: 2rem auto 0;
  padding: 0 1.25rem 2rem;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem;
}
.diff-card {
  grid-column: span 12;
  background: #fff; border: 1px solid #e6edf0; border-radius: 12px;
  padding: 1rem 1.1rem; box-shadow: var(--box-shadow-soft);
}
.diff-card h3 { margin-bottom: .5rem; color: var(--section-heading-color); }
.diff-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; }
.diff-item {
  grid-column: span 12;
  border: 1px dashed #e1e8eb; border-radius: 10px;
  padding: .75rem .9rem; background: #fbfdff;
}

/* =========== SELF-CHECK (steps) =========== */
.self-check {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.self-check h3 { color: var(--section-heading-color); margin-bottom: .75rem; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: .75rem; align-items: start; padding: .6rem 0;
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-color); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* =========== FAQ (accordion) — caret left, bigger, same color, subtle hover) =========== */
.symptoms-faq {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* Remove outer frame */
.faq-acc { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }

/* Inset separators left/right (shorter lines) */
.faq-item {
  position: relative;
  padding: .2rem 0;
}
.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(.5rem, 2vw, 1.25rem);
  right: clamp(.5rem, 2vw, 1.25rem);
  height: 1px;
  background: #e6edf0;
}
.faq-item:first-child::before { display: none; }

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;                 /* space between caret and text */
  padding: .8rem 0;
  background: transparent !important; /* kill any background highlight */
  border: 0;
  font-weight: 700;
  color: var(--section-heading-color);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, text-underline-offset .2s ease;
}

/* Caret LEFT — 2× size, matches text color; rotates 90° on expand */
.faq-q::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-color: currentColor; /* caret uses the same color as text */
  /* URL-encoded inline SVG to avoid parser issues */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(0deg);
  opacity: .95;
  transition: transform .2s ease, opacity .2s ease;
}
.faq-q[aria-expanded="true"] { color: var(--primary-700); }
.faq-q[aria-expanded="true"]::before { transform: rotate(90deg); opacity: 1; }

/* Subtle text-only hover */
.faq-q:hover {
  background: transparent !important;
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}

/* Accessible focus ring, no background */
.faq-q:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Answer: hidden by default; indent when expanded */
.faq-a {
  display: none;
  padding: 0 0 1rem 0;
  color: var(--text-color);
}
.faq-q[aria-expanded="true"] + .faq-a {
  padding-left: calc(28px + .75rem); /* indent = caret width + gap */
}

/* =========== CTA (no "or", consistent buttons) =========== */
.symptoms-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.symptoms-cta h3 { color: var(--section-heading-color); margin-bottom: .5rem; }
.symptoms-cta p  { color: var(--text-color); margin-bottom: 1rem; }
.symptoms-cta .cta-buttons { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.symptoms-cta .cta-sep { display: none !important; }

/* =========== RESPONSIVE =========== */
@media (min-width: 768px) {
  .symptom-tile { grid-column: span 6; }
  .diff-item { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .symptom-tile { grid-column: span 4; }
  .diff-item { grid-column: span 4; }
}
@media (max-width: 768px) {
  .symptom-tile img { width: 48px; height: 48px; flex-basis: 48px; }
}
