.hcsc-calculator {
	--hcsc-blue: #0876df;
	--hcsc-blue-deep: #0759ad;
	--hcsc-ink: #202126;
	--hcsc-muted: #73757d;
	--hcsc-line: #d8dbe1;
	--hcsc-panel: #f3f4f6;
	--hcsc-white: #fff;
	color: var(--hcsc-ink);
	padding: clamp(72px, 9vw, 128px) 24px;
	background:
		radial-gradient(circle at 18% 20%, rgba(8, 118, 223, .08), transparent 28%),
		linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.hcsc-calculator,
.hcsc-calculator * {
	box-sizing: border-box;
}

.hcsc-calculator .hcsc-shell {
	display: grid;
	grid-template-columns: minmax(0, .88fr) minmax(580px, 1.12fr);
	gap: clamp(48px, 8vw, 120px);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.hcsc-calculator .hcsc-intro {
	position: relative;
}

.hcsc-calculator .hcsc-intro::before {
	content: "";
	position: absolute;
	top: -48px;
	left: -40px;
	width: 88px;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--hcsc-blue), #51b9ff);
}

.hcsc-calculator .hcsc-eyebrow,
.hcsc-calculator .hcsc-solution-label {
	margin: 0 0 14px;
	color: var(--hcsc-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hcsc-calculator .hcsc-intro h2 {
	margin: 0;
	max-width: 600px;
	color: var(--hcsc-ink);
	font-size: clamp(42px, 5vw, 68px);
	font-weight: 720;
	line-height: .98;
	letter-spacing: -.055em;
}

.hcsc-calculator .hcsc-intro-copy {
	max-width: 540px;
	margin: 28px 0 0;
	color: var(--hcsc-muted);
	font-size: 17px;
	line-height: 1.65;
}

.hcsc-calculator .hcsc-trust-line {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 30px;
	color: #555861;
	font-size: 12px;
	font-weight: 600;
}

.hcsc-calculator .hcsc-trust-line span::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 8px 1px 0;
	border-radius: 50%;
	background: var(--hcsc-blue);
}

.hcsc-calculator .hcsc-panel {
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid rgba(32, 33, 38, .05);
	border-radius: 34px;
	background: var(--hcsc-panel);
	box-shadow: 0 30px 80px rgba(27, 35, 48, .08);
}

.hcsc-calculator .hcsc-field + .hcsc-field,
.hcsc-calculator .hcsc-goals,
.hcsc-calculator .hcsc-advanced {
	margin-top: 28px;
}

.hcsc-calculator .hcsc-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}

.hcsc-calculator label,
.hcsc-calculator legend {
	color: var(--hcsc-ink);
	font-size: 14px;
	font-weight: 700;
}

.hcsc-calculator .hcsc-number-wrap,
.hcsc-calculator .hcsc-area-entry {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	font-weight: 700;
}

.hcsc-calculator .hcsc-number-wrap input,
.hcsc-calculator .hcsc-area-entry input,
.hcsc-calculator .hcsc-area-entry select,
.hcsc-calculator .hcsc-advanced input {
	height: 38px;
	border: 1px solid var(--hcsc-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .92);
	color: var(--hcsc-ink);
	font: inherit;
}

.hcsc-calculator .hcsc-number-wrap input {
	width: 94px;
	padding: 0 10px;
}

.hcsc-calculator .hcsc-area-entry input {
	width: 88px;
	padding: 0 10px;
}

.hcsc-calculator .hcsc-area-entry select {
	padding: 0 8px;
}

.hcsc-calculator .hcsc-range {
	--hcsc-fill: 25%;
	width: 100%;
	height: 6px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	outline: none;
	background: linear-gradient(90deg, var(--hcsc-blue) 0 var(--hcsc-fill), #c7cbd2 var(--hcsc-fill) 100%);
	-webkit-appearance: none;
	appearance: none;
}

.hcsc-calculator .hcsc-range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 3px solid var(--hcsc-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .14);
	cursor: grab;
	-webkit-appearance: none;
	appearance: none;
}

.hcsc-calculator .hcsc-range::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: 3px solid var(--hcsc-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .14);
	cursor: grab;
}

.hcsc-calculator .hcsc-range:focus-visible::-webkit-slider-thumb {
	outline: 3px solid rgba(8, 118, 223, .28);
	outline-offset: 3px;
}

.hcsc-calculator .hcsc-range-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	color: var(--hcsc-muted);
	font-size: 11px;
}

.hcsc-calculator .hcsc-goals {
	min-width: 0;
	padding: 0;
	border: 0;
}

.hcsc-calculator .hcsc-goals legend {
	margin-bottom: 12px;
}

.hcsc-calculator .hcsc-goal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.hcsc-calculator .hcsc-goal {
	position: relative;
	cursor: pointer;
}

.hcsc-calculator .hcsc-goal input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hcsc-calculator .hcsc-goal span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid var(--hcsc-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .75);
	color: #33353b;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.hcsc-calculator .hcsc-goal input:checked + span {
	border-color: var(--hcsc-ink);
	background: var(--hcsc-ink);
	color: #fff;
	transform: translateY(-1px);
}

.hcsc-calculator .hcsc-goal input:focus-visible + span {
	outline: 3px solid rgba(8, 118, 223, .28);
	outline-offset: 2px;
}

.hcsc-calculator .hcsc-advanced {
	border-top: 1px solid var(--hcsc-line);
	padding-top: 14px;
}

.hcsc-calculator .hcsc-advanced summary,
.hcsc-calculator .hcsc-method summary {
	color: #484b53;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.hcsc-calculator .hcsc-advanced-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 14px;
}

.hcsc-calculator .hcsc-advanced-grid label {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 10px;
	font-size: 12px;
}

.hcsc-calculator .hcsc-advanced-grid label span {
	color: var(--hcsc-muted);
	font-size: 10px;
	font-weight: 500;
}

.hcsc-calculator .hcsc-advanced input {
	grid-column: 1 / -1;
	width: 100%;
	padding: 0 11px;
}

.hcsc-calculator .hcsc-error {
	margin-top: 20px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff1f0;
	color: #9d241f;
	font-size: 13px;
}

.hcsc-calculator .hcsc-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.hcsc-calculator .hcsc-metric {
	min-width: 0;
	padding: 17px 12px;
	border: 1px solid rgba(32, 33, 38, .04);
	border-radius: 18px;
	background: var(--hcsc-white);
	text-align: center;
}

.hcsc-calculator .hcsc-metric strong {
	display: block;
	overflow: hidden;
	color: var(--hcsc-ink);
	font-size: clamp(17px, 1.5vw, 24px);
	font-weight: 760;
	line-height: 1.1;
	letter-spacing: -.035em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcsc-calculator .hcsc-metric span {
	display: block;
	margin-top: 7px;
	color: var(--hcsc-muted);
	font-size: 10px;
	line-height: 1.25;
}

.hcsc-calculator .hcsc-solution {
	margin-top: 12px;
	padding: 24px;
	border: 1px solid rgba(32, 33, 38, .04);
	border-radius: 22px;
	background: var(--hcsc-white);
}

.hcsc-calculator .hcsc-solution-label {
	margin-bottom: 5px;
	font-size: 10px;
}

.hcsc-calculator .hcsc-solution h3 {
	margin: 0;
	color: var(--hcsc-ink);
	font-size: 23px;
	font-weight: 760;
	letter-spacing: -.025em;
}

.hcsc-calculator .hcsc-solution > p:not(.hcsc-solution-label) {
	margin: 8px 0 0;
	color: var(--hcsc-muted);
	font-size: 12px;
	line-height: 1.55;
}

.hcsc-calculator .hcsc-products {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.hcsc-calculator .hcsc-product-pill {
	padding: 6px 9px;
	border-radius: 8px;
	background: #eef5fc;
	color: var(--hcsc-blue-deep);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
}

.hcsc-calculator .hcsc-product-pill:hover {
	color: var(--hcsc-blue-deep);
	background: #dfefff;
}

.hcsc-calculator .hcsc-cta {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	min-height: 46px;
	margin-top: 18px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--hcsc-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(8, 118, 223, .2);
	transition: background .2s ease, transform .2s ease;
}

.hcsc-calculator .hcsc-cta:hover {
	background: var(--hcsc-blue-deep);
	color: #fff;
	transform: translateY(-1px);
}

.hcsc-calculator .hcsc-cta:focus-visible {
	outline: 3px solid rgba(8, 118, 223, .3);
	outline-offset: 3px;
}

.hcsc-calculator .hcsc-method {
	margin-top: 16px;
	padding: 14px 16px 0;
	border-top: 1px solid var(--hcsc-line);
}

.hcsc-calculator .hcsc-method p {
	margin: 12px 0 0;
	color: var(--hcsc-muted);
	font-size: 11px;
	line-height: 1.6;
}

@media (max-width: 1050px) {
	.hcsc-calculator .hcsc-shell {
		grid-template-columns: 1fr;
		max-width: 760px;
	}

	.hcsc-calculator .hcsc-intro h2 {
		max-width: 720px;
	}
}

@media (max-width: 680px) {
	.hcsc-calculator {
		padding: 72px 14px;
	}

	.hcsc-calculator .hcsc-shell {
		gap: 38px;
	}

	.hcsc-calculator .hcsc-intro::before {
		left: 0;
	}

	.hcsc-calculator .hcsc-intro h2 {
		font-size: clamp(38px, 12vw, 54px);
	}

	.hcsc-calculator .hcsc-panel {
		padding: 22px 16px;
		border-radius: 24px;
	}

	.hcsc-calculator .hcsc-goal-grid,
	.hcsc-calculator .hcsc-metrics {
		grid-template-columns: 1fr 1fr;
	}

	.hcsc-calculator .hcsc-advanced-grid {
		grid-template-columns: 1fr;
	}

	.hcsc-calculator .hcsc-label-row {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcsc-calculator *,
	.hcsc-calculator *::before,
	.hcsc-calculator *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* Woodmart-aligned spacious layout. */
.hcsc-calculator {
	padding: clamp(72px, 7vw, 104px) 24px;
	background: #fff;
}

.hcsc-calculator .hcsc-shell {
	display: block;
	max-width: 1180px;
}

.hcsc-calculator .hcsc-heading {
	max-width: 680px;
	margin: 0 auto 38px;
	text-align: center;
}

.hcsc-calculator .hcsc-heading .hcsc-eyebrow {
	margin-bottom: 14px;
	color: #777;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.hcsc-calculator .hcsc-heading h2 {
	margin: 0;
	color: #2b2b2b;
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.hcsc-calculator .hcsc-heading > p:last-child {
	margin: 14px auto 0;
	color: #808080;
	font-size: 15px;
	line-height: 1.6;
}

.hcsc-calculator .hcsc-panel {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	padding: 0;
	overflow: hidden;
	border: 1px solid #e7e7e7;
	border-radius: 12px;
	background: #f7f7f7;
	box-shadow: none;
}

.hcsc-calculator .hcsc-controls,
.hcsc-calculator .hcsc-results {
	min-width: 0;
	padding: clamp(30px, 4vw, 48px);
}

.hcsc-calculator .hcsc-results {
	border-left: 1px solid #e7e7e7;
	background: #fff;
}

.hcsc-calculator .hcsc-results-label {
	margin: 0 0 16px;
	color: #777;
	font-size: 13px;
	font-weight: 700;
}

.hcsc-calculator .hcsc-field + .hcsc-field,
.hcsc-calculator .hcsc-goals,
.hcsc-calculator .hcsc-advanced {
	margin-top: 34px;
}

.hcsc-calculator .hcsc-goal-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hcsc-calculator .hcsc-goal span {
	min-height: 50px;
	padding: 10px 14px;
	border-radius: 7px;
	background: #fff;
	font-size: 12px;
}

.hcsc-calculator .hcsc-metrics {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
}

.hcsc-calculator .hcsc-metric {
	min-height: 106px;
	padding: 22px 20px;
	border: 1px solid #e9e9e9;
	border-radius: 8px;
	background: #fafafa;
	text-align: left;
}

.hcsc-calculator .hcsc-metric strong {
	overflow: visible;
	font-size: clamp(21px, 2vw, 28px);
	letter-spacing: -.025em;
	text-overflow: clip;
	white-space: normal;
}

.hcsc-calculator .hcsc-metric span {
	margin-top: 9px;
	font-size: 11px;
}

.hcsc-calculator .hcsc-solution {
	margin-top: 14px;
	padding: 26px;
	border: 1px solid #e9e9e9;
	border-radius: 8px;
	background: #fafafa;
}

.hcsc-calculator .hcsc-solution h3 {
	font-size: 22px;
}

.hcsc-calculator .hcsc-products {
	display: grid;
	gap: 7px;
	margin-top: 16px;
}

.hcsc-calculator .hcsc-product-pill {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hcsc-blue-deep);
	font-size: 11px;
}

.hcsc-calculator .hcsc-product-pill:hover {
	background: transparent;
	text-decoration: underline;
}

.hcsc-calculator .hcsc-cta {
	min-height: 44px;
	margin-top: 20px;
	padding: 0 18px;
	border-radius: 6px;
	box-shadow: none;
}

.hcsc-calculator .hcsc-method {
	margin-top: 18px;
	padding: 16px 0 0;
}

@media (max-width: 900px) {
	.hcsc-calculator .hcsc-panel {
		grid-template-columns: 1fr;
	}

	.hcsc-calculator .hcsc-results {
		border-top: 1px solid #e7e7e7;
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.hcsc-calculator {
		padding: 64px 14px;
	}

	.hcsc-calculator .hcsc-heading {
		margin-bottom: 28px;
	}

	.hcsc-calculator .hcsc-panel {
		padding: 0;
		border-radius: 8px;
	}

	.hcsc-calculator .hcsc-controls,
	.hcsc-calculator .hcsc-results {
		padding: 24px 18px;
	}

	.hcsc-calculator .hcsc-metrics {
		grid-template-columns: 1fr;
	}

	.hcsc-calculator .hcsc-metric {
		min-height: 0;
	}
}

/* Keep planning metrics compact and readable at the site's content width. */
.hcsc-calculator .hcsc-metric {
	padding-right: 14px;
	padding-left: 14px;
}

.hcsc-calculator .hcsc-metric strong {
	font-size: 21px;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	white-space: nowrap;
}

.hcsc-calculator [data-hcsc-generation],
.hcsc-calculator [data-hcsc-price] {
	font-size: 18px;
}

@media (max-width: 560px) {
	.hcsc-calculator .hcsc-metric strong,
	.hcsc-calculator [data-hcsc-generation],
	.hcsc-calculator [data-hcsc-price] {
		font-size: 22px;
	}
}
