/* Medical billing info page. Matches the strategy-page layout. */
.main_sub_con > main:has(.billing-page) {
  width: min(1180px, 100%) !important;
}

.billing-page h1 {
  margin: 0 0 6px !important;
  color: #234f6f !important;
  font-size: 32px !important;
  line-height: 1.1 !important;
}

.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
}

.billing-hero .billing-lead {
  margin: 0 0 8px;
  color: #234f6f;
  font-size: 17px;
  line-height: 1.35;
}

.billing-hero p {
  margin: 0;
  color: #3d4a54;
  font-size: 15px;
  line-height: 1.4;
}

.billing-hero figure {
  margin: 0;
}

.billing-hero img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 12px;
}

.billing-block {
  margin: 0;
}

.billing-page h2 {
  margin: 2px 0 4px !important;
  color: #234f6f !important;
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.billing-page .svc-main p,
.billing-page .nh_cont > p {
  margin: 0 0 4px !important;
  color: #3d4a54 !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
}

.billing-grid:has(li:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.billing-grid:has(li:nth-child(4):last-child) li {
  grid-column: auto !important;
}

.billing-grid:has(li:nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.billing-grid:has(li:nth-child(5):last-child) li {
  grid-column: span 2 !important;
}

.billing-grid:has(li:nth-child(5):last-child) li:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

.billing-grid:has(li:nth-child(5):last-child) li:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

.billing-grid strong {
  font-size: 16px;
}

.billing-grid span {
  font-size: 15px;
  line-height: 1.45;
}

.billing-page .svc-main:has(> .svc-photo) {
  row-gap: 16px !important;
}

.billing-grid {
  display: grid;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.billing-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-grid.cols-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.billing-grid.cols-5 li {
  grid-column: span 2;
}

.billing-grid.cols-5 li:nth-child(4) {
  grid-column: 2 / span 2;
}

.billing-grid.cols-5 li:nth-child(5) {
  grid-column: 4 / span 2;
}

.billing-grid li {
  margin: 0;
  padding: 6px 10px 6px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-top: 3px solid #d8d460;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(35, 79, 111, 0.06);
}

.billing-grid strong {
  display: block;
  margin: 0 0 4px;
  color: #234f6f;
  font-size: 15px;
  line-height: 1.25;
}

.billing-grid span {
  display: block;
  color: #3d4a54;
  font-size: 13.5px;
  line-height: 1.4;
}

.billing-close {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #234f6f;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.35;
}

.billing-page .svc-dek {
  max-width: 40em;
  margin-bottom: 2px !important;
}

.billing-page .svc-main:has(> .svc-photo) {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  column-gap: 28px !important;
  row-gap: 28px !important;
  align-items: start;
}

.billing-page .svc-main:has(> .svc-photo) > .nh_cont {
  display: contents;
}

.billing-page .billing-block:first-child {
  grid-column: 1;
  grid-row: 2;
}

.billing-page .billing-block:last-child {
  grid-column: 1 / -1;
  grid-row: 3;
}

.billing-page .svc-photo {
  grid-row: 2;
  width: 300px;
  height: 100%;
  min-height: 0;
  max-height: none;
  align-self: stretch;
}

.billing-page .billing-grid,
.billing-page .billing-grid:has(li:nth-child(4):last-child),
.billing-page .billing-block:last-child .billing-grid {
  display: block !important;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.billing-page .billing-grid li,
.billing-page .billing-grid:has(li:nth-child(4):last-child) li,
.billing-page .billing-block:last-child .billing-grid li,
.billing-page .billing-block:last-child .billing-grid li:nth-child(4),
.billing-page .billing-block:last-child .billing-grid li:nth-child(5) {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-column: auto !important;
  column-gap: 36px;
  align-items: start;
  margin: 0;
  padding: 15px 0 16px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e3e8ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.billing-page .billing-grid li:last-child,
.billing-page .billing-grid:has(li:nth-child(4):last-child) li:last-child,
.billing-page .billing-block:last-child .billing-grid li:last-child {
  border-bottom: none !important;
}

.billing-page h2 {
  margin: 0 0 6px !important;
  font-size: 24px !important;
}

.billing-page .billing-block p {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.billing-page .billing-grid strong {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.billing-page .billing-grid span {
  display: block;
  font-size: 15.5px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .billing-page .svc-main:has(> .svc-photo) > .nh_cont {
    display: block;
    grid-column: 1;
    grid-row: 3;
  }

  .billing-page .billing-block:first-child,
  .billing-page .billing-block:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .billing-page .billing-block:last-child {
    margin-top: 22px;
  }

  .billing-page .billing-grid li,
  .billing-page .billing-block:last-child .billing-grid li,
  .billing-page .billing-block:last-child .billing-grid li:nth-child(4),
  .billing-page .billing-block:last-child .billing-grid li:nth-child(5) {
    grid-template-columns: 1fr !important;
    grid-column: auto !important;
    row-gap: 4px;
    padding: 14px 0 !important;
  }

  .billing-page .nh_cont {
    grid-template-columns: 1fr;
  }

  .billing-page .billing-grid,
  .billing-page .billing-grid:has(li:nth-child(4):last-child),
  .billing-page .billing-grid:has(li:nth-child(5):last-child),
  .billing-hero,
  .billing-grid,
  .billing-grid.cols-4,
  .billing-grid.cols-5,
  .billing-grid:has(li:nth-child(5):last-child) {
    grid-template-columns: 1fr !important;
  }

  .billing-grid:has(li:nth-child(5):last-child) li,
  .billing-grid:has(li:nth-child(5):last-child) li:nth-child(4),
  .billing-grid:has(li:nth-child(5):last-child) li:nth-child(5) {
    grid-column: auto !important;
  }

  .billing-hero img {
    height: 180px;
  }

  .billing-grid.cols-5 li,
  .billing-grid.cols-5 li:nth-child(4),
  .billing-grid.cols-5 li:nth-child(5) {
    grid-column: auto;
  }
}

.main_sub_con > main:only-child:has(.billing-page) {
  padding: 0 24px 0 !important;
}

#main_area:has(.billing-page) {
  background: #f5f8fb;
}

.billing-page {
  padding: 0;
  background: #f5f8fb;
}

.billing-page h1 {
  margin: 0 0 8px !important;
  color: #234f6f !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

.billing-page h2 {
  margin: 0 0 8px !important;
  color: #234f6f !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left;
}

.billing-page .bill-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 6px;
}

.billing-page .bill-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  left: -70px;
  top: 36px;
  border-radius: 50%;
  background: rgba(210, 226, 236, 0.55);
  pointer-events: none;
}

.billing-page .bill-hero-copy {
  position: relative;
  z-index: 1;
}

.billing-page .bill-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0 0 10px;
}

.billing-page .bill-nav-slot {
  width: 1px;
  height: 18px;
}

.billing-page .bill-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #7d8c98;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.billing-page .bill-back-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #d8d460;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-page .bill-back span {
  display: inline-block;
  transform-origin: left center;
}

.billing-page .bill-back:hover {
  color: #7d8c98;
  text-decoration: none;
}

.billing-page .bill-back:hover span {
  animation: bill-back-pop 0.45s ease forwards;
}

@keyframes bill-back-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1.1); }
}

.billing-page .bill-lead {
  max-width: none;
  margin: 0 0 10px !important;
  color: #234f6f !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.billing-page .bill-copy,
.billing-page .bill-sub {
  margin: 0 !important;
  color: #546572 !important;
  font-size: 15.5px !important;
  font-weight: 500;
  line-height: 1.55 !important;
}

.billing-page .bill-copy {
  max-width: 38em;
  margin-bottom: 18px !important;
}

.billing-page .bill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #d8d460;
  color: #234f6f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.billing-page .bill-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-page .bill-hero-photo {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 100%;
  margin: 0;
  padding: 0;
}

.billing-page .bill-hero-photo::before,
.billing-page .bill-hero-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.billing-page .bill-hero-photo::before {
  width: 92px;
  height: 150px;
  left: 0;
  top: 28px;
  background: #d5e5f0;
  border-radius: 70px;
}

.billing-page .bill-hero-photo::after {
  width: 110px;
  height: 170px;
  right: 0;
  bottom: 10px;
  background: #e5f0f6;
  border-radius: 80px;
}

.billing-page .bill-hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 246px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(35, 79, 111, 0.14);
}

.billing-page .bill-section {
  margin: 0 0 12px;
}

.billing-page .bill-sub {
  max-width: none;
  margin: 0 0 10px !important;
  text-align: left;
}

.billing-page .bill-challenges,
.billing-page .bill-helps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-page .bill-challenges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.billing-page .bill-challenges li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 14px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(35, 79, 111, 0.06);
}

.billing-page .bill-challenges strong,
.billing-page .bill-helps strong,
.billing-page .bill-scale strong {
  display: block;
  margin: 0 0 4px;
  color: #234f6f;
  font-size: 16px;
  line-height: 1.3;
}

.billing-page .bill-challenges li > div > span,
.billing-page .bill-helps p,
.billing-page .bill-scale p {
  display: block;
  margin: 0 !important;
  color: #5c6d7a !important;
  font-size: 14.5px !important;
  font-weight: 500;
  line-height: 1.45 !important;
}

.billing-page .bill-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef3f6;
}

.billing-page .bill-ico svg,
.billing-page .bill-help-ico svg,
.billing-page .bill-scale-art svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #234f6f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-page .bill-helps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.billing-page .bill-helps li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.billing-page .bill-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: #8b98a3;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.billing-page .bill-help-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
}

.billing-page .bill-scale {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 16px;
  overflow: hidden;
  background: #e7eef3;
  border-radius: 18px;
}

.billing-page .bill-scale .bill-ico {
  width: 34px;
  height: 34px;
}

.billing-page .bill-scale .bill-ico svg {
  width: 18px;
  height: 18px;
}

.billing-page .bill-scale strong {
  margin: 0 0 1px;
  font-size: 15px;
  line-height: 1.2;
}

.billing-page .bill-scale p {
  max-width: none;
  white-space: nowrap;
}

.billing-page .bill-scale-art {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 148px;
  height: 64px;
  margin-left: auto;
}

.billing-page .bill-scale-art::before,
.billing-page .bill-scale-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.billing-page .bill-scale-art::before {
  width: 46px;
  height: 46px;
  right: 4px;
  top: 0;
  background: rgba(216, 212, 96, 0.7);
}

.billing-page .bill-scale-art::after {
  width: 36px;
  height: 36px;
  left: 8px;
  bottom: 2px;
  background: rgba(176, 204, 220, 0.9);
}

.billing-page .bill-scale-art svg {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 52px;
}

@media (max-width: 1000px) {
  .billing-page .bill-challenges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .billing-page h1 {
    font-size: 36px !important;
  }

  .billing-page .bill-hero,
  .billing-page .bill-challenges,
  .billing-page .bill-helps {
    grid-template-columns: 1fr;
  }

  .billing-page .bill-hero-photo img {
    height: 210px;
  }

  .billing-page .bill-scale-art {
    display: none;
  }

  .billing-page .bill-scale p {
    white-space: normal;
  }
}
