/**
 * Cost Transparency & Direct Hospital Payment — mobile reference rebuild.
 * Scoped to .public-home-v2 .hp-cost
 * Feature icons intentionally ~30–40% larger than typical icon rows,
 * while keeping overall section height compact.
 */
.public-home-v2 .hp-cost.pub-p3 {
  --ct-navy: #0a2a4a;
  --ct-blue: #1a5fb4;
  --ct-sky: #2563eb;
  --ct-muted: #5c6d7c;
  --ct-radius: 24px;
}

@media (max-width: 767px) {
  body.page-home.public-home-v2 .hp-cost.pub-p3,
  .public-home-v2 .hp-cost.pub-p3 {
    padding: 8px 12px 14px !important;
    background:
      radial-gradient(ellipse 80% 35% at 90% 0%, rgba(191, 219, 254, 0.35), transparent 60%),
      #fff !important;
  }

  .public-home-v2 .hp-cost .pub-p3__inner,
  .public-home-v2 .hp-cost .pub-p3__panel {
    display: contents !important;
  }

  .public-home-v2 .hp-cost__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* ---- Main white panel ---- */
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__panel,
  .public-home-v2 .hp-cost__panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 12px 12px !important;
    border-radius: var(--ct-radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background:
      radial-gradient(ellipse 55% 50% at 92% 12%, rgba(191, 219, 254, 0.55), transparent 55%),
      linear-gradient(165deg, #ffffff 0%, #f7fbff 100%) !important;
    box-shadow:
      0 14px 32px rgba(11, 47, 74, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
  }

  /* Hero: title + art */
  .public-home-v2 .hp-cost__hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.85fr) !important;
    gap: 4px !important;
    align-items: start !important;
  }

  .public-home-v2 .hp-cost__copy {
    min-width: 0 !important;
  }

  .public-home-v2 .hp-cost__badge {
    display: inline-grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 0 8px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.22) !important;
  }

  .public-home-v2 .hp-cost__badge svg {
    width: 32px !important;
    height: 32px !important;
  }

  .public-home-v2 .hp-cost__title {
    margin: 0 0 6px !important;
    font-size: clamp(1.05rem, 4.6vw, 1.28rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--ct-navy) !important;
    letter-spacing: -0.02em !important;
  }

  .public-home-v2 .hp-cost__title em {
    color: var(--ct-sky) !important;
    font-style: normal !important;
    font-weight: 800 !important;
  }

  .public-home-v2 .hp-cost__sub {
    margin: 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.4 !important;
    color: var(--ct-muted) !important;
    max-width: 28ch !important;
  }

  .public-home-v2 .hp-cost__visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: -4px -4px 0 0 !important;
  }

  .public-home-v2 .hp-cost__art {
    width: 100% !important;
    max-width: 148px !important;
    height: auto !important;
    display: block !important;
  }

  /* ---- Feature icon row (LARGE icons, compact height) ---- */
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__features,
  .public-home-v2 .hp-cost__features {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    list-style: none !important;
  }

  .public-home-v2 .hp-cost__feature {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  /* Icon containers ~30–40% larger than reference ~44px → 60–64px */
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__fico,
  .public-home-v2 .hp-cost__fico {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 17px !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 4px 12px rgba(11, 47, 74, 0.08) !important;
  }

  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__fico svg,
  .public-home-v2 .hp-cost__fico svg {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .public-home-v2 .hp-cost__feature--blue .hp-cost__fico {
    background: linear-gradient(160deg, #dbeafe, #bfdbfe) !important;
    color: #1d4ed8 !important;
  }
  .public-home-v2 .hp-cost__feature--mint .hp-cost__fico {
    background: linear-gradient(160deg, #d1fae5, #a7f3d0) !important;
    color: #047857 !important;
  }
  .public-home-v2 .hp-cost__feature--purple .hp-cost__fico {
    background: linear-gradient(160deg, #ede9fe, #ddd6fe) !important;
    color: #6d28d9 !important;
  }
  .public-home-v2 .hp-cost__feature--orange .hp-cost__fico {
    background: linear-gradient(160deg, #ffedd5, #fed7aa) !important;
    color: #c2410c !important;
  }
  .public-home-v2 .hp-cost__feature--teal .hp-cost__fico {
    background: linear-gradient(160deg, #ccfbf1, #99f6e4) !important;
    color: #0f766e !important;
  }

  .public-home-v2 .hp-cost__flabel {
    display: block !important;
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #334155 !important;
    letter-spacing: -0.01em !important;
  }

  /* Hide legacy checklist/aside if any leftover markup */
  .public-home-v2 .hp-cost__list,
  .public-home-v2 .hp-cost__aside,
  .public-home-v2 .hp-cost__check,
  .public-home-v2 .hp-cost__rupee {
    display: none !important;
  }

  /* ---- Pay card (icon | copy | CTA — matches reference) ---- */
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__pay,
  .public-home-v2 .hp-cost__pay {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 10px 10px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(26, 95, 180, 0.14) !important;
    box-shadow: 0 6px 16px rgba(11, 47, 74, 0.05) !important;
  }

  .public-home-v2 .hp-cost__pay-ico {
    width: 36px !important;
    height: 42px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .public-home-v2 .hp-cost__pay-ico svg {
    width: 100% !important;
    height: 100% !important;
  }

  .public-home-v2 .hp-cost__pay-copy {
    min-width: 0 !important;
  }

  .public-home-v2 .hp-cost__pay-copy strong {
    display: block !important;
    font-size: 0.76rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--ct-navy) !important;
  }

  .public-home-v2 .hp-cost__pay-copy p {
    margin: 2px 0 0 !important;
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
    color: var(--ct-muted) !important;
  }

  .public-home-v2 .hp-cost__pay-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1.5px solid var(--ct-blue) !important;
    background: #fff !important;
    color: var(--ct-blue) !important;
    font-size: 0.62rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* ---- Journey CTA card ---- */
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__journey,
  .public-home-v2 .hp-cost__journey {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: var(--ct-radius) !important;
    border: 1px solid rgba(147, 197, 253, 0.45) !important;
    background:
      radial-gradient(ellipse 60% 80% at 8% 50%, rgba(191, 219, 254, 0.55), transparent 55%),
      linear-gradient(110deg, #e8f2fc 0%, #f4f9ff 55%, #e6f0fb 100%) !important;
    box-shadow: 0 10px 24px rgba(11, 47, 74, 0.06) !important;
  }

  .public-home-v2 .hp-cost__journey-ico {
    width: 52px !important;
    height: 52px !important;
    display: block !important;
  }

  .public-home-v2 .hp-cost__journey-art {
    width: 100% !important;
    height: 100% !important;
  }

  .public-home-v2 .hp-cost__journey-copy {
    min-width: 0 !important;
  }

  .public-home-v2 .hp-cost__journey-copy strong {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--ct-navy) !important;
  }

  .public-home-v2 .hp-cost__journey-copy p {
    margin: 2px 0 0 !important;
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
    color: var(--ct-muted) !important;
  }

  .public-home-v2 .hp-cost__journey-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #2b74d4 0%, #1a5fb4 100%) !important;
    color: #fff !important;
    font-size: 0.66rem !important;
    font-weight: 750 !important;
    box-shadow: 0 8px 18px rgba(26, 95, 180, 0.28) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__fico,
  .public-home-v2 .hp-cost__fico {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
  }

  body.page-home.public-home-v2 .hp-cost.pub-p3 .hp-cost__fico svg,
  .public-home-v2 .hp-cost__fico svg {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }

  .public-home-v2 .hp-cost__pay-cta {
    font-size: 0.68rem !important;
    padding: 0 12px !important;
  }

  .public-home-v2 .hp-cost__journey-cta {
    font-size: 0.7rem !important;
    padding: 0 14px !important;
  }
}

@media (min-width: 768px) {
  .public-home-v2 .hp-cost__panel {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(165deg, #fff, #f5f9ff);
  }

  .public-home-v2 .hp-cost__hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
  }

  .public-home-v2 .hp-cost__features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
  }

  .public-home-v2 .hp-cost__fico {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
  }

  .public-home-v2 .hp-cost__fico svg {
    width: 36px;
    height: 36px;
  }

  .public-home-v2 .hp-cost__pay,
  .public-home-v2 .hp-cost__journey {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 20px;
  }
}
