/* Scoped to .pf-results throughout — this component is embedded in WP pages
   alongside theme/plugin CSS, so nothing here may target bare elements or :root.
   Same approach as questionnaire/plan-finder.css, and for the same reason:
   verified live (championhmostg.wpengine.com) that the theme's Elementor Kit
   CSS sets ".elementor-kit-52 h2 { color: ...; font-size: 40px; ... }" and
   ".elementor-kit-52 button { background-color: ...; border-radius: 5px; }"
   — a class+tag selector that outranks a single-class selector like
   ".pf-plan-box__name" or ".pf-view-other-toggle" regardless of load order.
   Every rule below is written as ".pf-results .whatever" (two classes) so it
   stays more specific than anything the theme can throw at a bare h1-h6,
   button, or a. */

.pf-results {
  --pf-green: #34d679;
  --pf-green-light: #a6f2c8;
  --pf-blue: #77c8ff;
  --pf-blue-bright: #4fb2f5;
  --pf-blue-dark: #65aad9;
  --pf-navy: #0a293e;
  --pf-navy-muted: #45596b;
  --pf-white: #ffffff;
  --pf-border: #d8e3ea;
  --pf-page-bg: #dceefc;
  --pf-other-header-bg: #dbe6ee;
  --pf-toggle-bg: #ccdbe6;
  --pf-footer-bg: #f4f8fb;

  box-sizing: border-box;
  background-color: var(--pf-page-bg);
  /* The theme's nav is fixed and semi-transparent, so it floats over whatever
     is beneath it instead of pushing it down like a normal header — the 107px
     is clearance for that, on top of this page's own top padding. */
  padding: calc(107px + 3rem) 1.5rem 5rem;
  font-family: "niveau-grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--pf-navy);
}

.pf-results *,
.pf-results *::before,
.pf-results *::after {
  box-sizing: inherit;
  font-family: inherit !important;
}

.pf-results-shell {
  max-width: 1040px;
  margin: 0 auto;
}

/* header */

.pf-results .pf-results-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.pf-results .pf-results-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--pf-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
}

.pf-results .pf-results-title {
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  margin: 0;
  color: var(--pf-navy);
}

.pf-results .pf-results-header__contact {
  max-width: 380px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pf-navy);
}

.pf-results .pf-results-header__contact p {
  margin: 0 0 0.6rem;
}

.pf-results .pf-results-phone,
.pf-results .pf-results-hours-label {
  font-weight: 700;
}

/* plan box (shared by featured + other) */

.pf-results .pf-plan-box {
  background: var(--pf-white);
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(10, 41, 62, 0.08);
}

.pf-results .pf-plan-box__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
}

.pf-results .pf-plan-box--featured .pf-plan-box__header {
  background: var(--pf-navy);
}

.pf-results .pf-plan-box--other .pf-plan-box__header {
  background: var(--pf-other-header-bg);
}

/* Explicit per-variant color on the text itself, not just "inherit" on the
   header wrapper — the h2/p/label rules below already win on specificity,
   but the value still has to be a real color, not "inherit", since
   .elementor-kit-52 h2 sets color directly (not merely something these
   elements would otherwise inherit past). */
.pf-results .pf-plan-box--featured .pf-plan-box__name,
.pf-results .pf-plan-box--featured .pf-plan-box__subtitle,
.pf-results .pf-plan-box--featured .pf-plan-box__compare {
  color: var(--pf-white);
}

.pf-results .pf-plan-box--other .pf-plan-box__name,
.pf-results .pf-plan-box--other .pf-plan-box__subtitle,
.pf-results .pf-plan-box--other .pf-plan-box__compare {
  color: var(--pf-navy);
}

.pf-results .pf-plan-box__name {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.pf-results .pf-plan-box__subtitle {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.85;
}

.pf-results .pf-plan-box__compare {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.pf-results .pf-plan-box__compare .pf-compare-checkbox {
  cursor: pointer;
}

.pf-results .pf-plan-box__compare .pf-compare-checkbox:disabled {
  cursor: not-allowed;
}

.pf-results .pf-plan-box__body {
  padding: 1.1rem 1.75rem 1.5rem;
}

.pf-results .pf-plan-box__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--pf-navy-muted);
  margin: 0 0 1.5rem;
}

/* $description is ACF WYSIWYG output — its own <p> tag(s), not ours (see
   the plan-box.php comment) — so these need their own margin reset rather
   than inheriting .pf-plan-box__desc's margin, which only applies to the
   wrapping div. */
.pf-results .pf-plan-box__desc p {
  margin: 0;
}

.pf-results .pf-plan-box__desc p + p {
  margin-top: 0.35em;
}

.pf-results .pf-plan-box__content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.pf-results .pf-plan-box__stats {
  flex: 1 1 220px;
  max-width: 280px;
}

.pf-results .pf-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--pf-border);
  font-size: 0.85rem;
}

.pf-results .pf-stat-row:last-child {
  border-bottom: none;
}

.pf-results .pf-stat-label {
  flex: 1 1 40%;
  min-width: 0;
  color: var(--pf-navy);
}

/* No more white-space: nowrap — real copy (e.g. "In-Network: $1,676
   Deductible per Medicare-covered benefit period $0 for days 1-60") runs
   far longer than the placeholder "$0" values this was built against, and
   needs to wrap within the column instead of overflowing past it. */
.pf-results .pf-stat-value {
  flex: 1 1 55%;
  min-width: 0;
  text-align: right;
  font-weight: 600;
  color: var(--pf-navy);
}

.pf-results .pf-plan-box__benefits {
  flex: 2 1 380px;
}

.pf-results .pf-benefits-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--pf-navy-muted);
  margin: 0 0 0.85rem;
}

.pf-results .pf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 1.5rem;
}

.pf-results .pf-benefits-column {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pf-results .pf-benefits-column li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pf-navy);
  line-height: 1.3;
}

/* Client-provided check-in-circle icon (green circle, navy check), inlined
   as a data URI rather than a separate asset file since it's a single
   14x14 icon reused a dozen+ times per box. */
.pf-results .pf-benefits-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.99928 13.4712C10.7193 13.4712 13.7349 10.4556 13.7349 6.73561C13.7349 3.01563 10.7193 0 6.99928 0C3.27931 0 0.263672 3.01563 0.263672 6.73561C0.263672 10.4556 3.27931 13.4712 6.99928 13.4712Z' fill='%2334D679'/%3E%3Cpath d='M5.62999 9.41243L3.35693 7.1394L3.68349 6.81331L5.62999 8.75978L9.81755 4.57227L10.1437 4.89836L5.62999 9.41243Z' fill='%230B293E'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pf-results .pf-plan-box__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.75rem;
  background: var(--pf-footer-bg);
  border-top: 1px solid var(--pf-border);
}

.pf-results .pf-plan-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

/* !important on color/text-decoration: the theme's reset.css sets its own
   `a` color + no-underline-until-hover rules that are otherwise a coin-flip
   specificity tie against a single extra class, per the live devtools check. */
.pf-results .pf-plan-box__link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--pf-navy) !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.pf-results .pf-plan-box__link-icon {
  flex: 0 0 auto;
  color: var(--pf-navy);
}

.pf-results .pf-btn-enroll {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.25rem !important;
  border-radius: 999px !important;
  background: var(--pf-blue-dark) !important;
  color: var(--pf-navy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.pf-results .pf-btn-enroll:hover,
.pf-results .pf-btn-enroll:focus {
  background: var(--pf-navy) !important;
  color: var(--pf-white) !important;
}

/* view other plans accordion */

/* !important on display/width/background/border/radius/padding: confirmed
   live that the theme's reset.css ("button { width: auto; display:
   inline-block; }") and Elementor Kit ("button { background-color: ...;
   border-radius: 5px; }") both otherwise win here — see the file banner
   comment above. */
.pf-results .pf-view-other-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  padding: 1.15rem 1.75rem !important;
  background: var(--pf-toggle-bg) !important;
  border: none !important;
  border-radius: 0.85rem !important;
  appearance: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pf-navy) !important;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.pf-results .pf-view-other-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--pf-navy);
  color: var(--pf-navy);
}

/* A symmetric chevron (its own visual center matches its bounding-box
   center) rather than the old border-corner-triangle trick, which looked
   centered pointing down but skewed noticeably up-left once rotated a
   further 180deg to point up — that shape's visual weight isn't centered
   in its own box, so the same fixed offset was wrong for the open state. */
.pf-results .pf-view-other-toggle__icon svg {
  transition: transform 0.2s ease;
}

.pf-results .pf-view-other-toggle[aria-expanded="true"] .pf-view-other-toggle__icon svg {
  transform: rotate(180deg);
}

.pf-results .pf-other-plans {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pf-results .pf-other-plans[hidden] {
  display: none;
}

/* selected state (other plans only — the featured header stays navy) */

.pf-results .pf-plan-box--other.pf-plan-box--selected .pf-plan-box__header {
  background: var(--pf-blue-bright);
}

.pf-results .pf-compare-checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* compare tray */

.pf-results.pf-results--has-tray {
  padding-bottom: 8rem;
}

.pf-results .pf-compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--pf-green-light);
  box-shadow: 0 -2px 12px rgba(10, 41, 62, 0.15);
}

.pf-results .pf-compare-tray[hidden] {
  display: none;
}

.pf-results .pf-compare-tray__shell {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem;
}

.pf-results .pf-compare-tray__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pf-navy);
  white-space: nowrap;
}

.pf-results .pf-compare-tray__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1 1 260px;
}

.pf-results .pf-compare-tray__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--pf-navy);
  color: var(--pf-white);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 140px;
  min-height: 38px;
}

.pf-results .pf-compare-tray__chip--empty {
  background: transparent;
  border: 1px solid var(--pf-navy);
}

.pf-results .pf-compare-tray__remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  border: none !important;
  background: var(--pf-white) !important;
  color: var(--pf-navy) !important;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
}

.pf-results .pf-compare-tray__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem !important;
  border-radius: 999px !important;
  background: var(--pf-blue-bright) !important;
  color: var(--pf-navy) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  white-space: nowrap;
  margin-left: auto;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.pf-results .pf-compare-tray__button:hover,
.pf-results .pf-compare-tray__button:focus {
  background: var(--pf-navy) !important;
  color: var(--pf-white) !important;
}

.pf-results .pf-compare-tray__button--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .pf-results {
    padding: 2rem 1rem 3rem;
  }

  .pf-results .pf-results-title {
    font-size: 2.1rem;
  }

  .pf-results .pf-plan-box__content {
    gap: 1.5rem;
  }

  .pf-results .pf-plan-box__stats {
    max-width: 100%;
  }

  .pf-results .pf-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-results .pf-plan-box__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-results .pf-btn-enroll {
    width: 100% !important;
  }

  .pf-results.pf-results--has-tray {
    padding-bottom: 14rem;
  }

  .pf-results .pf-compare-tray__shell {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .pf-results .pf-compare-tray__label {
    text-align: center;
  }

  .pf-results .pf-compare-tray__slots {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
  }

  .pf-results .pf-compare-tray__chip,
  .pf-results .pf-compare-tray__chip--empty {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .pf-results .pf-compare-tray__button {
    width: 100% !important;
    margin-left: 0;
  }
}
