/* HighGround Pricing Estimator
   All styles scoped under .hg-pricing-estimator to avoid theme conflicts. */

.hg-pricing-estimator {
	--hg-bg-section: #f7f8fc;
	--hg-bg-card: #ffffff;
	--hg-bg-input-track: #e2e6ef;

	--hg-border: #e2e6ef;

	--hg-text-primary: #111827;
	--hg-text-secondary: #4b5563;
	--hg-text-muted: #6b7280;
	--hg-text-label: #374151;

	--hg-accent: #3757E9;
	--hg-accent-bg: rgba(55, 87, 233, 0.06);
	--hg-accent-border: rgba(55, 87, 233, 0.22);

	--hg-warning: #f59e0b;

	--hg-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
	--hg-shadow-thumb: 0 0 0 2px rgba(55, 87, 233, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);

	display: block;
	width: 100%;
	background: var(--hg-bg-section);
	padding: 64px 20px;
	border-bottom: 1px solid #e0e3f0;
	color: var(--hg-text-primary);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

.hg-pricing-estimator *,
.hg-pricing-estimator *::before,
.hg-pricing-estimator *::after {
	box-sizing: border-box;
}

.hg-pricing-estimator .hg-pricing-estimator__inner {
	max-width: 1178px;
	margin: 0 auto;
}

/* ---------- Header ---------- */

.hg-pricing-estimator .hg-pe__header {
	position: relative;
	text-align: center;
	padding: 0 16px 40px;
}

.hg-pricing-estimator .hg-pe__heading {
	position: relative;
	z-index: 1;
	margin: 0 0 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__subhead {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: var(--hg-text-muted);
}

/* ---------- Card shell ---------- */

.hg-pricing-estimator .hg-pe__card {
	background: var(--hg-bg-card);
	border: 1px solid var(--hg-border);
	border-radius: 12px;
	padding: 40px 40px 38px;
	box-shadow: var(--hg-shadow-card);
}

.hg-pricing-estimator .hg-pe__controls {
	margin-bottom: 24px;
}

/* ---------- Sliders ---------- */

.hg-pricing-estimator .hg-pe__slider-block {
	margin-bottom: 32px;
}

.hg-pricing-estimator .hg-pe__slider-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 14px;
	gap: 12px;
}

.hg-pricing-estimator .hg-pe__slider-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--hg-text-label);
}

.hg-pricing-estimator .hg-pe__slider-value {
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: var(--hg-accent);
	line-height: 1;
}

.hg-pricing-estimator .hg-pe__slider {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: var(--hg-bg-input-track);
	outline: none;
	margin: 0;
	padding: 0;
	border: none;
}

.hg-pricing-estimator .hg-pe__slider:focus {
	outline: none;
}

.hg-pricing-estimator .hg-pe__slider:focus-visible {
	box-shadow: 0 0 0 3px rgba(55, 87, 233, 0.22);
}

.hg-pricing-estimator .hg-pe__slider::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 4px;
	background: transparent;
	border: none;
}

.hg-pricing-estimator .hg-pe__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--hg-accent);
	border: 3px solid #ffffff;
	box-shadow: var(--hg-shadow-thumb);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.hg-pricing-estimator .hg-pe__slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.hg-pricing-estimator .hg-pe__slider::-moz-range-track {
	height: 8px;
	border-radius: 4px;
	background: var(--hg-bg-input-track);
	border: none;
}

.hg-pricing-estimator .hg-pe__slider::-moz-range-progress {
	height: 8px;
	border-radius: 4px;
	background: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hg-accent);
	border: 3px solid #ffffff;
	box-shadow: var(--hg-shadow-thumb);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.hg-pricing-estimator .hg-pe__slider::-moz-range-thumb:hover {
	transform: scale(1.15);
}

.hg-pricing-estimator .hg-pe__slider-ticks {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin: 8px 11px 0;
	padding: 0;
	pointer-events: none;
	position: relative;
	top: 6px;
}

.hg-pricing-estimator .hg-pe__slider-ticks span {
	display: block;
	width: 1px;
	height: 8px;
	background: var(--hg-text-muted);
	opacity: 0.5;
}

.hg-pricing-estimator .hg-pe__slider-ticks span:first-child,
.hg-pricing-estimator .hg-pe__slider-ticks span:last-child {
	visibility: hidden;
}

.hg-pricing-estimator .hg-pe__slider-minmax {
	position: relative;
	top: -12px;
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: var(--hg-text-muted);
}

/* ---------- Strategy buttons ---------- */

.hg-pricing-estimator .hg-pe__strategy-block {
	margin-bottom: 28px;
}

.hg-pricing-estimator .hg-pe__strategy-label {
	margin: 0 0 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--hg-text-label);
}

.hg-pricing-estimator .hg-pe__strategy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

.hg-pricing-estimator .hg-pe__strategy-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid var(--hg-border);
	background: #ffffff;
	cursor: pointer;
	text-align: left;
	font-family: Helvetica, Arial, sans-serif;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hg-pricing-estimator .hg-pe__strategy-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hg-pricing-estimator .hg-pe__strategy-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--hg-text-muted);
	transition: color 0.15s ease;
}

.hg-pricing-estimator .hg-pe__strategy-btn.is-active .hg-pe__strategy-icon {
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__strategy-btn:hover {
	border-color: var(--hg-accent-border);
}

.hg-pricing-estimator .hg-pe__strategy-btn.is-active {
	border: 1.5px solid var(--hg-accent);
	background: var(--hg-accent-bg);
	padding: 13.5px 15.5px;
}

.hg-pricing-estimator .hg-pe__strategy-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__strategy-desc {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: var(--hg-text-muted);
	line-height: 1.4;
}

/* ---------- Toggles ---------- */

.hg-pricing-estimator .hg-pe__toggles {
	display: none;
	gap: 16px;
	flex-wrap: wrap;
}

.hg-pricing-estimator .hg-pe__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	border-radius: 8px;
	border: 1px solid var(--hg-border);
	background: #ffffff;
	color: var(--hg-text-muted);
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hg-pricing-estimator .hg-pe__toggle.is-active {
	border: 1.5px solid var(--hg-accent);
	background: var(--hg-accent-bg);
	color: var(--hg-accent);
	padding: 10.5px 17.5px;
}

.hg-pricing-estimator .hg-pe__toggle-icon {
	width: 16px;
	height: 16px;
	color: var(--hg-text-muted);
	flex-shrink: 0;
	transition: color 0.15s ease;
}

.hg-pricing-estimator .hg-pe__toggle.is-active .hg-pe__toggle-icon {
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__toggle-sub {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: var(--hg-text-muted);
	margin-left: 4px;
}

/* ---------- Summary block (inside controls card) ---------- */

.hg-pricing-estimator .hg-pe__summary {
	margin-top: 36px;
	padding: 36px 0 12px;
	border-top: 1px solid var(--hg-border);
	text-align: center;
}

.hg-pricing-estimator .hg-pe__summary-row {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 24px;
	margin-bottom: 32px;
}

.hg-pricing-estimator .hg-pe__stat {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 20px 32px;
	background: #ffffff;
	border: 1px solid var(--hg-border);
	border-radius: 12px;
}

.hg-pricing-estimator .hg-pe__stat-value {
	font-family: 'Montserrat', sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__stat-value--accent {
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__stat-unit {
	position: relative;
	top: -5px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: #9ca3af;
}

.hg-pricing-estimator .hg-pe__stat-sep {
	display: none;
}

.hg-pricing-estimator .hg-pe__plan-bar {
	width: 100%;
	height: 8px;
	border-radius: 3px;
	background: var(--hg-bg-input-track);
	overflow: hidden;
	margin-bottom: 16px;
}

.hg-pricing-estimator .hg-pe__plan-fill {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: 3px;
	background: linear-gradient(90deg, #3757E9, #6b86f0);
	transition: width 0.3s ease, background 0.3s ease;
}

.hg-pricing-estimator .hg-pe__summary.is-over .hg-pe__plan-fill {
	background: linear-gradient(90deg, #3757E9, #f59e0b);
}

.hg-pricing-estimator .hg-pe__plan-caption {
	margin: 0;
	text-align: center;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: var(--hg-text-muted);
	line-height: 1.5;
}

.hg-pricing-estimator .hg-pe__plan-amount {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__summary.is-over .hg-pe__plan-amount {
	color: var(--hg-warning);
}



/* ---------- Pipeline breakdown ---------- */

.hg-pricing-estimator .hg-pe__pipeline {
	background: #ffffff;
	border: 1px solid var(--hg-border);
	border-radius: 12px;
	margin-bottom: 20px;
}

.hg-pricing-estimator .hg-pe__pipeline-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 28px;
	cursor: pointer;
	list-style: none;
	gap: 12px;
}

.hg-pricing-estimator .hg-pe__pipeline-summary::-webkit-details-marker {
	display: none;
}

.hg-pricing-estimator .hg-pe__pipeline-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--hg-text-label);
}

.hg-pricing-estimator .hg-pe__pipeline-icon {
	width: 18px;
	height: 18px;
	color: var(--hg-text-muted);
	transition: transform 0.2s ease, color 0.15s ease;
	flex-shrink: 0;
}

.hg-pricing-estimator .hg-pe__pipeline[open] .hg-pe__pipeline-icon {
	transform: rotate(180deg);
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__pipeline-content {
	padding: 4px 28px 24px;
	border-top: 1px solid var(--hg-border);
}

.hg-pricing-estimator .hg-pe__pipeline-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	font-size: 14px;
	gap: 16px;
}

.hg-pricing-estimator .hg-pe__pipeline-row > span:first-child {
	font-family: Helvetica, Arial, sans-serif;
	color: var(--hg-text-secondary);
}

.hg-pricing-estimator .hg-pe__pipeline-row > span:last-child {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	color: var(--hg-text-primary);
	text-align: right;
}

.hg-pricing-estimator .hg-pe__pipeline-row--total {
	border-top: 1px solid var(--hg-border);
	padding-top: 14px;
	margin-top: 6px;
	font-size: 15px;
}

.hg-pricing-estimator .hg-pe__pipeline-row--total > span:first-child {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__pipeline-row--total > span:last-child {
	font-weight: 700;
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__pipeline-row[hidden] {
	display: none;
}

/* ---------- Footer note ---------- */

.hg-pricing-estimator .hg-pe__footer {
	margin: 0;
	padding: 24px 16px 0;
	text-align: center;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #b4b8c2;
	line-height: 1.6;
}

/* ---------- Divider ---------- */

/* ---------- Supplemental section ---------- */

.hg-pricing-estimator .hg-pe__supp {
	position: relative;
	isolation: isolate;
	margin-top: 54px;
	padding: 63px 0 16px;
}

.hg-pricing-estimator .hg-pe__supp::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: -64px;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background-color: #eef2fb;
	background-image: radial-gradient(ellipse 60% 30px at 50% 0%, rgb(15 23 42 / 15%), rgb(15 23 42 / 3%) 40%, transparent 75%);
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% 30px;
	border-top: 1px solid #dadfe9;
}

.hg-pricing-estimator .hg-pe__supp-header {
	text-align: center;
	margin-bottom: 32px;
	padding: 0 16px;
}

.hg-pricing-estimator .hg-pe__supp-heading {
	margin: 0 0 14px;
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(22px, 3.5vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__supp-subhead {
	margin: 0 auto;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hg-text-muted);
}

.hg-pricing-estimator .hg-pe__supp-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.hg-pricing-estimator .hg-pe__supp-card {
	background: #ffffff;
	border: 1px solid var(--hg-border);
	border-radius: 14px;
	padding: 28px;
	box-shadow: var(--hg-shadow-card);
}

.hg-pricing-estimator .hg-pe__supp-card-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--hg-border);
}

.hg-pricing-estimator .hg-pe__supp-card-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--hg-text-primary);
}

.hg-pricing-estimator .hg-pe__supp-card-meta {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: var(--hg-text-muted);
}

.hg-pricing-estimator .hg-pe__supp-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-pricing-estimator .hg-pe__supp-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid #f0f1f3;
}

.hg-pricing-estimator .hg-pe__supp-list li:last-child {
	border-bottom: none;
}

.hg-pricing-estimator .hg-pe__supp-list li > span:first-child {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: var(--hg-text-label);
}

.hg-pricing-estimator .hg-pe__supp-list li > span:last-child {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--hg-text-primary);
	text-align: right;
}

.hg-pricing-estimator .hg-pe__supp-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--hg-border);
}

.hg-pricing-estimator .hg-pe__supp-summary > span:first-child {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: var(--hg-text-secondary);
}

.hg-pricing-estimator .hg-pe__supp-summary > span:last-child {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--hg-accent);
}

.hg-pricing-estimator .hg-pe__supp-free {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	background: #ffffff;
	border: 1px solid var(--hg-border);
	border-radius: 14px;
	padding: 22px 28px;
	box-shadow: var(--hg-shadow-card);
}

.hg-pricing-estimator .hg-pe__supp-free-badge {
	display: inline-block;
	flex-shrink: 0;
	padding: 5px 11px;
	border-radius: 6px;
	background: var(--hg-accent-bg);
	color: var(--hg-accent);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
}

.hg-pricing-estimator .hg-pe__supp-free-list {
	flex: 1;
	min-width: 240px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: var(--hg-text-secondary);
}

.hg-pricing-estimator .hg-pe__supp-footer {
	margin: 28px 0 0;
	padding: 0 16px;
	text-align: center;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #b4b8c2;
	line-height: 1.6;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
	.hg-pricing-estimator {
		padding: 48px 16px;
	}

	.hg-pricing-estimator .hg-pe__results {
		grid-template-columns: 1fr;
	}

	.hg-pricing-estimator .hg-pe__card {
		padding: 24px;
	}

	.hg-pricing-estimator .hg-pe__pipeline-summary {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hg-pricing-estimator .hg-pe__pipeline-content {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hg-pricing-estimator .hg-pe__header {
		padding: 0 8px 32px;
	}

	.hg-pricing-estimator .hg-pe__supp-grid {
		grid-template-columns: 1fr;
	}

	.hg-pricing-estimator .hg-pe__supp-card,
	.hg-pricing-estimator .hg-pe__supp-free {
		padding: 22px 20px;
	}

	.hg-pricing-estimator .hg-pe__divider {
		margin: 24px auto;
	}

	.hg-pricing-estimator .hg-pe__summary-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.hg-pricing-estimator .hg-pe__stat {
		width: 100%;
		justify-content: center;
	}

	.hg-pricing-estimator .hg-pe__strategy-btn[data-pe-strategy="none"] {
		display: none;
	}
}
