/* Site Estimator — front-end styles
   Matches reference design: no background, white rounded input fields,
   dark green pill +/- buttons, green result banner. */

.sest-estimator {
	--sest-green: #1f8a1f;
	--sest-green-dark: #0f5c0f;
	--sest-green-darker: #0a3d0a;
	--sest-banner-bg: var(--sest-green);
	--sest-white: #ffffff;
	--sest-text-light: #ffffff;
	--sest-text-dark: #2b2b2b;
	--sest-radius: 14px;
	--sest-gap: 22px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	width: 100%;
	box-sizing: border-box;
}

.sest-estimator * {
	box-sizing: border-box;
}

.sest-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sest-gap);
	margin-bottom: var(--sest-gap);
}

.sest-field {
	flex: 1 1 320px;
	min-width: 260px;
	margin: 0;
}

.sest-label {
	color: var(--sest-text-light);
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 10px 0 !important;
	padding: 0;
	display: block;
	letter-spacing: 0.2px;
	line-height: 1.3;
}
.sest-field-quantity {
	position: relative;
}

.sest-unit-badge {
	position: absolute;
	top: -22px;
	right: 0;
	color: var(--sest-text-light);
	font-size: 12px;
	font-weight: 600;
	opacity: 0;
	letter-spacing: 0.2px;
	margin: 0;
}

/* ---------- Select Service dropdown ---------- */
.sest-select-wrap {
	position: relative;
	background: var(--sest-white);
	border-radius: var(--sest-radius);
	height: 36px;
	display: flex;
	align-items: center;
	padding: 0 18px;
}

.sest-select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	border: none;
	outline: none;
	width: 100%;
	height: 100%;
	font-size: 15px;
	color: var(--sest-text-dark);
	font-family: inherit;
	cursor: pointer;
	padding-right: 22px;
}

.sest-select-wrap select:invalid,
.sest-select-wrap select option[value=""] {
	color: #8a8a8a;
}

.sest-select-locked {
	color: var(--sest-text-dark);
	font-size: 15px;
	font-weight: 600;
}

.sest-locked-service-name {
	display: block;
}

.sest-select-arrow {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 7px solid var(--sest-text-dark);
}

/* ---------- Area Size stepper ---------- */
.sest-stepper-wrap {
	background: var(--sest-white);
	border-radius: var(--sest-radius);
	height: 36px;
	display: flex;
	align-items: center;
	padding: 0 6px 0 18px;
	gap: 6px;
	cursor: text;
}

.sest-stepper-label {
	flex: 1 1 auto;
	min-width: 90px;
	font-size: 15px;
	color: #8a8a8a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sest-stepper-btn {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 7px;
	border: none;
	background: var(--sest-green-dark);
	color: var(--sest-white);
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: background-color 0.15s ease;
}

.sest-stepper-btn:hover {
	background: var(--sest-green-darker);
}

.sest-stepper-btn:focus-visible {
	outline: 2px solid var(--sest-green-darker);
	outline-offset: 2px;
}

.sest-stepper-value {
	width: 30px;
	min-width: 30px;
	text-align: center;
	font-size: 14px;
	color: var(--sest-text-dark);
	background: #eeeeee;
	border: none;
	border-radius: 6px;
	height: 26px;
	line-height: 26px;
	padding: 0 2px;
	font-weight: 500;
	font-family: inherit;
	-moz-appearance: textfield;
}

.sest-stepper-value::-webkit-outer-spin-button,
.sest-stepper-value::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sest-stepper-value:focus-visible {
	outline: 2px solid var(--sest-green-dark);
	outline-offset: 1px;
}

/* ---------- Optional Upgrades ---------- */
.sest-upgrades-heading {
	color: var(--sest-text-light);
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 14px 0 !important;
	padding: 0;
	line-height: 1.3;
}

.sest-upgrades-panel {
	background: var(--sest-white);
	border-radius: var(--sest-radius);
	padding: 16px 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	margin-bottom: var(--sest-gap);
}

.sest-upgrade {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	flex: 0 0 auto;
}

.sest-upgrade input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 2px solid var(--sest-green);
	border-radius: 4px;
	margin: 0;
	cursor: pointer;
	position: relative;
	background: var(--sest-white);
}

.sest-upgrade input[type="checkbox"]:checked {
	background: var(--sest-green);
}

.sest-upgrade input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 3px;
	top: -1px;
	width: 4px;
	height: 9px;
	border: solid var(--sest-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sest-upgrade input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--sest-green-darker);
	outline-offset: 2px;
}

.sest-upgrade-label {
	color: var(--sest-green);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Result banner ---------- */
.sest-result-banner {
	background: var(--sest-banner-bg);
	border-radius: var(--sest-radius);
	padding: 24px 20px;
	text-align: center;
	line-height: normal;
}

.sest-result-title {
	color: var(--sest-white);
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 8px 0 !important;
	padding: 0;
	line-height: 1.25;
	letter-spacing: 0.3px;
}

.sest-result-range {
	color: var(--sest-white);
	font-size: 22px;
	font-weight: 500;
	margin: 0 !important;
	padding: 0;
	line-height: 1.4;
	opacity: 0.95;
}

.sest-unpriced-message {
	color: var(--sest-white);
	font-size: 18px;
	font-weight: 600;
	margin: 0 !important;
	padding: 0;
	line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.sest-estimator {
		--sest-gap: 16px;
	}

	.sest-row {
		flex-direction: column;
	}

	.sest-field {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sest-stepper-label {
		min-width: 0;
		flex: 1 1 auto;
	}

	.sest-upgrades-panel {
		gap: 12px 16px;
	}

	.sest-result-title {
		font-size: 24px;
	}

	.sest-result-range {
		font-size: 18px;
	}

	.sest-unpriced-message {
		font-size: 16px;
	}
}