/* Trellis calculator — above footer catalog */
.gsc_calc {
	--gc-ink: #1f2a1c;
	--gc-muted: #5f6b5a;
	--gc-line: #d8ddd4;
	--gc-green: #319030;
	--gc-bg: #f3f1ed;
	--gc-card: #faf9f6;
	padding: 48px 0 40px;
	background: var(--gc-bg);
	font-family: "Nunito", "ProximaNova", sans-serif;
	color: var(--gc-ink);
	border-bottom: 1px solid var(--gc-line);
}

.gsc_calc_head {
	margin-bottom: 28px;
}

.gsc_calc_title {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--gc-ink);
}

.gsc_calc_sub {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--gc-muted);
	white-space: nowrap;
}

.gsc_calc_grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.gsc_calc_field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.gsc_calc_label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--gc-muted);
}

.gsc_calc_field select,
.gsc_calc_field input[type="number"],
.gsc_calc_field input[type="tel"],
.gsc_calc_field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--gc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--gc-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	appearance: none;
	-webkit-appearance: none;
}

.gsc_calc_field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235f6b5a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.gsc_calc_field select:focus,
.gsc_calc_field input:focus {
	outline: none;
	border-color: var(--gc-green);
	box-shadow: 0 0 0 3px rgba(49, 144, 48, 0.15);
}

.gsc_calc_extras {
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid var(--gc-line);
	border-radius: 12px;
	background: var(--gc-card);
}

.gsc_calc_extras legend {
	padding: 0 4px;
	margin-bottom: 12px;
}

.gsc_calc_extras_row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.gsc_calc_extras_row .gsc_calc_check {
	margin: 0;
	padding: 0 18px;
	align-items: center;
}

.gsc_calc_extras_row .gsc_calc_check:first-child {
	padding-left: 0;
}

.gsc_calc_extras_row .gsc_calc_check:last-child {
	padding-right: 0;
}

.gsc_calc_extras_row .gsc_calc_check + .gsc_calc_check {
	border-left: 1px solid var(--gc-line);
}

.gsc_calc_check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--gc-ink);
	cursor: pointer;
}

.gsc_calc_check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--gc-green);
}

.gsc_calc_extras_row .gsc_calc_check input {
	margin-top: 0;
}

.gsc_calc_actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 8px;
}

.gsc_calc_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--gc-green);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gsc_calc_btn_icn {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.gsc_calc_btn:hover {
	background: #287a27;
}

.gsc_calc_btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.gsc_calc_btn_secondary {
	background: transparent;
	color: var(--gc-green);
	border: 1.5px solid var(--gc-green);
}

.gsc_calc_btn_secondary:hover {
	background: rgba(49, 144, 48, 0.08);
}

.gsc_calc_result {
	margin-top: 28px;
	padding: 24px;
	border: 1px solid var(--gc-line);
	border-radius: 14px;
	background: #fff;
}

.gsc_calc_prices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}

.gsc_calc_price {
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--gc-card);
	border: 1px solid var(--gc-line);
}

.gsc_calc_price_total {
	border-color: rgba(49, 144, 48, 0.35);
	background: rgba(49, 144, 48, 0.06);
}

.gsc_calc_price_label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gc-muted);
}

.gsc_calc_price_value {
	display: block;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--gc-ink);
}

.gsc_calc_note {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--gc-muted);
}

.gsc_calc_note a {
	color: var(--gc-green);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gsc_calc_leadbox {
	border-top: 1px solid var(--gc-line);
	padding-top: 14px;
}

.gsc_calc_leadbox > summary {
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	color: var(--gc-ink);
	list-style: none;
}

.gsc_calc_leadbox > summary::-webkit-details-marker {
	display: none;
}

.gsc_calc_leadbox > summary::after {
	content: " +";
	color: var(--gc-green);
}

.gsc_calc_leadbox[open] > summary::after {
	content: " −";
}

.gsc_calc_lead {
	margin-top: 16px;
}

.gsc_calc_lead_actions {
	display: flex;
	justify-content: flex-end;
}

.gsc_calc_lead_hint {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gc-muted);
}

.gsc_calc_lead_grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 14px;
}

.gsc_calc_check_policy {
	font-weight: 500;
	font-size: 13px;
	color: var(--gc-muted);
	margin-bottom: 16px;
}

.gsc_calc_check_policy a {
	color: var(--gc-green);
}

.gsc_calc_hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.gsc_calc_lead_msg {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--gc-green);
}

.gsc_calc_lead_msg.is_error {
	color: #b42318;
}

@media screen and (max-width: 900px) {
	.gsc_calc_grid,
	.gsc_calc_prices,
	.gsc_calc_lead_grid {
		grid-template-columns: 1fr;
	}

	.gsc_calc_title {
		font-size: 24px;
	}

	.gsc_calc {
		padding: 36px 0 28px;
	}

	.gsc_calc_btn {
		width: 100%;
	}

	.gsc_calc_sub {
		white-space: normal;
	}

	.gsc_calc_extras_row {
		flex-direction: column;
		align-items: stretch;
	}

	.gsc_calc_extras_row .gsc_calc_check {
		padding: 12px 0;
	}

	.gsc_calc_extras_row .gsc_calc_check:first-child {
		padding-top: 0;
	}

	.gsc_calc_extras_row .gsc_calc_check:last-child {
		padding-bottom: 0;
	}

	.gsc_calc_extras_row .gsc_calc_check + .gsc_calc_check {
		border-left: 0;
		border-top: 1px solid var(--gc-line);
	}
}
