.bse-estimator {
	--bse-navy: #04304c;
	--bse-ink: #0f172a;
	--bse-orange: #f84004;
	--bse-muted: #64748b;
	--bse-surface: #f0f4f4;
	--bse-border: #e6ecf5;
	background: #fff;
	border: 1px solid var(--bse-border);
	border-top: 4px solid var(--bse-orange);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(4, 48, 76, 0.1);
	color: var(--bse-ink);
	font-family: var(--et_global_body_font, "Google Sans", Arial, sans-serif);
	overflow: hidden;
}

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

.bse-estimator__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--bse-ink);
	color: #fff;
	padding: 20px 24px;
}

.bse-estimator__header-copy {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bse-estimator__header-copy > .dashicons {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--bse-orange);
	font-size: 22px;
	line-height: 40px;
}

.bse-estimator__header h3,
.bse-estimator__header p {
	margin: 0;
	padding: 0;
}

.bse-estimator__header h3 {
	color: #fff;
	font-family: var(--et_global_heading_font, "Google Product", Arial, sans-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.bse-estimator__header p {
	color: #cbd5e1;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 4px;
}

.bse-estimator__badge {
	background: rgba(248, 64, 4, 0.12);
	border: 1px solid rgba(248, 64, 4, 0.28);
	color: #ff8c66;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	padding: 8px 10px;
	text-transform: uppercase;
	white-space: nowrap;
}

.bse-estimator__body {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 24px;
	padding: 26px;
}

.bse-estimator__controls,
.bse-estimator__result-card {
	min-width: 0;
}

.bse-estimator__fieldset {
	border: 0;
	margin: 0 0 24px;
	min-width: 0;
	padding: 0;
}

.bse-estimator__fieldset legend,
.bse-estimator__label-row label,
.bse-estimator__form h4 {
	color: #789;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bse-estimator__fieldset legend {
	margin-bottom: 12px;
}

.bse-estimator__project-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.bse-estimator__choice,
.bse-estimator__tier {
	cursor: pointer;
	margin: 0;
}

.bse-estimator__choice input,
.bse-estimator__tier input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bse-estimator__choice span {
	display: block;
	border: 1px solid var(--bse-border);
	min-height: 64px;
	padding: 12px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bse-estimator__choice strong,
.bse-estimator__choice small {
	display: block;
}

.bse-estimator__choice strong {
	color: var(--bse-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.bse-estimator__choice small {
	color: #7b8a9f;
	font-size: 10px;
	line-height: 1.3;
	margin-top: 4px;
}

.bse-estimator__choice input:checked + span,
.bse-estimator__choice input:focus-visible + span {
	background: var(--bse-ink);
	border-color: var(--bse-ink);
}

.bse-estimator__choice input:checked + span strong,
.bse-estimator__choice input:focus-visible + span strong {
	color: #fff;
}

.bse-estimator__choice input:checked + span small,
.bse-estimator__choice input:focus-visible + span small {
	color: #cbd5e1;
}

.bse-estimator__range-group {
	margin-bottom: 24px;
}

.bse-estimator__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.bse-estimator__sqft-output {
	border: 1px solid var(--bse-ink);
	color: var(--bse-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 8px;
}

.bse-estimator__range {
	accent-color: var(--bse-navy);
	cursor: pointer;
	display: block;
	margin: 0;
	width: 100%;
}

.bse-estimator__range-scale {
	display: flex;
	justify-content: space-between;
	color: #94a3b8;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9px;
	margin-top: 7px;
}

.bse-estimator__tier-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.bse-estimator__tier span {
	display: grid;
	place-items: center;
	border: 1px solid var(--bse-border);
	color: #52637a;
	font-size: 11px;
	font-weight: 700;
	min-height: 40px;
	padding: 8px;
	text-align: center;
}

.bse-estimator__tier input:checked + span,
.bse-estimator__tier input:focus-visible + span {
	background: var(--bse-ink);
	border-color: var(--bse-ink);
	color: #fff;
}

.bse-estimator__result-card {
	align-self: stretch;
	background: #fbfcfe;
	border: 1px solid var(--bse-border);
	padding: 22px;
}

.bse-estimator__eyebrow {
	display: inline-block;
	background: var(--bse-surface);
	border: 1px solid var(--bse-border);
	color: #52637a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 12px;
	padding: 5px 8px;
	text-transform: uppercase;
}

.bse-estimator__value {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--bse-ink);
	font-family: var(--et_global_heading_font, "Google Product", Arial, sans-serif);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 10px;
}

.bse-estimator__value small {
	color: #8492a6;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bse-estimator__explanation {
	border-bottom: 1px solid var(--bse-border);
	color: var(--bse-muted);
	font-size: 12px;
	line-height: 1.55;
	margin: 0 0 18px;
	padding-bottom: 18px;
}

.bse-estimator__form h4 {
	margin: 0 0 12px;
	padding: 0;
}

.bse-estimator__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.bse-estimator__form label > span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bse-estimator__form input,
.bse-estimator__form select,
.bse-estimator__form textarea {
	background: #fff;
	border: 1px solid #aeb9c8;
	border-radius: 0;
	box-shadow: none;
	color: var(--bse-ink);
	font: inherit;
	font-size: 12px;
	line-height: 1.35;
	margin: 0;
	min-height: 40px;
	padding: 10px;
	width: 100%;
}

.bse-estimator__form input:focus,
.bse-estimator__form select:focus,
.bse-estimator__form textarea:focus {
	border-color: var(--bse-orange);
	box-shadow: 0 0 0 2px rgba(248, 64, 4, 0.14);
	outline: 0;
}

.bse-estimator__details {
	grid-column: 1 / -1;
}

.bse-estimator__form textarea {
	min-height: 64px;
	resize: vertical;
}

.bse-estimator__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--bse-orange);
	border: 0;
	color: #fff;
	cursor: pointer;
	font-family: var(--et_global_heading_font, "Google Product", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-top: 12px;
	min-height: 44px;
	padding: 11px 18px;
	text-transform: uppercase;
	width: 100%;
}

.bse-estimator__form button:hover,
.bse-estimator__form button:focus-visible {
	background: var(--bse-navy);
}

.bse-estimator__form button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.bse-estimator__status {
	font-size: 12px;
	line-height: 1.4;
	margin: 10px 0 0;
	min-height: 1.4em;
}

.bse-estimator__status.is-error {
	color: #b42318;
}

.bse-estimator__status.is-success {
	color: #067647;
}

.bse-estimator__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 980px) {
	.bse-estimator__body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	/* The legacy Divi Pixel call tab obscures form and contact copy on narrow screens. */
	.bse-has-estimator .dipi_btt_link {
		display: none !important;
	}

	.bse-estimator__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}

	.bse-estimator__badge {
		align-self: flex-start;
	}

	.bse-estimator__header h3 {
		font-size: 15px;
	}

	.bse-estimator__body {
		gap: 18px;
		padding: 18px;
	}

	.bse-estimator__project-grid,
	.bse-estimator__form-grid {
		grid-template-columns: 1fr;
	}

	.bse-estimator__tier-grid {
		grid-template-columns: 1fr;
	}

	.bse-estimator__details {
		grid-column: auto;
	}

	.bse-estimator__result-card {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bse-estimator *,
	.bse-estimator *::before,
	.bse-estimator *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
