/* Pricing and Costs page template. */

/* ---------- Surgery Pricing ---------- */

.hl-pricing-rows {
	margin-top: 40px;
	border-top: 1px solid #d1d9df;
}

.hl-pricing-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 32px;
	padding: 28px 0;
	border-bottom: 1px solid #d1d9df;
}

.hl-pricing-row__label {
	flex: 1 1 360px;
	min-width: 0;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hl-navy);
}

.hl-pricing-row__price {
	font-family: var(--hl-serif);
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1;
	color: var(--hl-blue-dark);
	white-space: nowrap;
}

.hl-pricing-fees {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	margin-top: 32px;
}

.hl-pricing-fee {
	background: var(--hl-mist);
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	padding: 26px 28px;
}

.hl-pricing-fee__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hl-muted);
}

.hl-pricing-fee__price {
	font-family: var(--hl-serif);
	font-size: 36px;
	line-height: 1.05;
	color: var(--hl-navy);
	margin-top: 12px;
}

.hl-pricing-fee__note {
	font-size: 15px;
	color: var(--hl-body);
	margin-top: 6px;
}

.hl-pricing-note {
	font-size: 17px;
	line-height: 1.8;
	color: var(--hl-body);
	margin-top: 28px;
}

.hl-pricing-note strong {
	color: var(--hl-navy);
	font-weight: 700;
}

/* ---------- Insurance & Financing ---------- */

.hl-pricing-duo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 24px;
}

.hl-pricing-panel {
	background: #fff;
	border: 1px solid var(--hl-line);
	border-top: 3px solid var(--hl-blue);
	border-radius: var(--hl-radius);
	padding: 40px 44px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hl-pricing-panel__eyebrow {
	color: var(--hl-blue-dark);
}

.hl-pricing-panel__text {
	font-size: 19px;
	line-height: 1.8;
	color: var(--hl-body);
	margin: 18px 0 0;
}

.hl-pricing-panel__btn {
	margin-top: 28px;
}

/* ---------- Covered vs Not Covered ---------- */

.hl-pricing-coverage {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: 24px;
	/* stretch, not start: the two cards hold different numbers of items, and
	   `start` left each one only as tall as its own content, so the shorter
	   card stopped well above the other. They are a matched pair — what IS and
	   ISN'T covered — so their bottoms line up. Once they wrap into one column
	   this has no effect, each card being its own row. */
	align-items: stretch;
}

.hl-pricing-coverage__card {
	border-radius: var(--hl-radius);
	padding: 44px 48px;
}

.hl-pricing-coverage__card--light {
	background: #fff;
	color: var(--hl-navy);
}

.hl-pricing-coverage__card--dark {
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.hl-pricing-coverage__title {
	font-family: var(--hl-serif);
	font-weight: 400;
	font-size: clamp(32px, 3.2vw, 44px);
	line-height: 1.08;
	margin: 0;
}

.hl-pricing-coverage__card--dark .hl-pricing-coverage__title {
	color: #fff;
}

.hl-pricing-coverage__list {
	display: flex;
	flex-direction: column;
	margin-top: 20px;
}

.hl-pricing-coverage__item {
	display: flex;
	gap: 18px;
	align-items: baseline;
	padding: 16px 0;
}

.hl-pricing-coverage__card--light .hl-pricing-coverage__item {
	border-bottom: 1px solid #edf1f3;
}

.hl-pricing-coverage__card--dark .hl-pricing-coverage__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hl-pricing-coverage__num {
	flex: 0 0 28px;
	font-family: var(--hl-serif);
	font-size: 24px;
	line-height: 1;
	color: var(--hl-blue);
}

.hl-pricing-coverage__card--dark .hl-pricing-coverage__num {
	color: var(--hl-sky);
}

.hl-pricing-coverage__text {
	font-size: 17px;
	line-height: 1.65;
	color: var(--hl-navy);
}

.hl-pricing-coverage__card--dark .hl-pricing-coverage__text {
	color: rgba(255, 255, 255, 0.88);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.hl-pricing-row {
		padding: 22px 0;
	}

	.hl-pricing-row__price {
		white-space: normal;
	}

	.hl-pricing-panel {
		padding: 32px 26px;
	}

	.hl-pricing-coverage__card {
		padding: 32px 26px;
	}
}

/* CareCredit badge above the apply button on the financing panel. */
.hl-pricing-panel__cc {
	display: block;
	margin-top: 20px;
}
.hl-pricing-panel__cc img {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
}

/* ---------- Physical therapy pricing ----------
   Cards share the panel treatment used elsewhere on this page (white, hairline
   border, blue rule along the top). The value is pushed to the bottom with
   margin-top:auto so the figures line up across cards whatever the labels wrap
   to — and `stretch` keeps the prose card the same height as the price ones. */

.hl-pricing-pt__lead {
	margin: 20px 0 0;
	max-width: 820px;
}

.hl-pricing-pt__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	align-items: stretch;
	margin-top: 40px;
}

.hl-pricing-pt__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hl-line);
	border-top: 3px solid var(--hl-blue);
	border-radius: var(--hl-radius);
	padding: 32px 36px;
}

.hl-pricing-pt__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hl-muted);
}

.hl-pricing-pt__price {
	font-family: var(--hl-serif);
	font-size: 48px;
	line-height: 1;
	color: var(--hl-blue-dark);
	margin-top: auto;
	padding-top: 24px;
}

.hl-pricing-pt__text {
	font-size: 17px;
	line-height: 1.65;
	color: var(--hl-body);
	margin: 0;
	margin-top: auto;
	padding-top: 24px;
}

@media (max-width: 860px) {
	.hl-pricing-pt__card { padding: 26px 24px; }
	.hl-pricing-pt__price { font-size: 40px; }
}
