.jj-calc,
.martgage-calc #land-transfer-tax-calculator,
.elementor-widget-shortcode #land-transfer-tax-calculator {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	font-family: Poppins, Gotham, system-ui, sans-serif;
	color: #1c1c1c;
}

.jj-calc__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jj-calc label,
#land-transfer-tax-calculator > label {
	display: block;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #1c1c1c;
}

.jj-calc input[type="text"],
.jj-calc input[type="number"],
.jj-calc select,
#land-transfer-tax-calculator input[type="number"],
#land-transfer-tax-calculator input[type="text"],
#land-transfer-tax-calculator select,
.martgage-calc .lidd_mc_input_light input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	margin: 0;
	color: #1c1c1c;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 2px;
	font-size: 15px;
	font-family: inherit;
}

.jj-calc input:focus,
.jj-calc select:focus,
#land-transfer-tax-calculator input:focus,
#land-transfer-tax-calculator select:focus,
.martgage-calc .lidd_mc_input_light input[type="text"]:focus {
	outline: 2px solid rgba(198, 34, 39, 0.25);
	border-color: #c62227;
}

.jj-calc__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.jj-calc__actions--start {
	justify-content: flex-start;
}

.jj-calc__check,
.custom-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	margin: 0;
}

.custom-checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.custom-checkbox-label .checkbox-box,
.jj-calc__check .checkbox-box {
	width: 20px;
	height: 20px;
	border: 2px solid #333;
	border-radius: 4px;
	display: inline-block;
	position: relative;
	background-color: #fff;
	flex: 0 0 20px;
}

.custom-checkbox:checked + .checkbox-box,
.jj-calc__check input:checked + .checkbox-box {
	background-color: #c62227;
	border-color: #c62227;
}

.custom-checkbox:checked + .checkbox-box::after,
.jj-calc__check input:checked + .checkbox-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 12px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.jj-calc__btn,
.land-calculator,
.martgage-calc #lidd_mc_submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: 44px;
	padding: 0 28px;
	margin: 0;
	border: 0;
	border-radius: 2px;
	background: #c62227;
	color: #fff !important;
	font-family: Poppins, Gotham, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.jj-calc__btn:hover,
.land-calculator:hover,
.martgage-calc #lidd_mc_submit:hover {
	background: #a81c21;
}

.jj-calc__results {
	margin-top: 8px;
	padding: 14px 16px;
	background: #f7f7f7;
	border-left: 3px solid #c62227;
}

.jj-calc__results[hidden] {
	display: none;
}

.jj-calc__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
	padding: 3px 0;
}

.jj-calc__row strong {
	font-weight: 600;
	white-space: nowrap;
}

.jj-calc__row--total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid #e2e2e2;
	font-size: 16px;
}

.jj-calc__error {
	color: #c62227;
	font-size: 14px;
	font-weight: 500;
}

.jj-calc__note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #5a5a5a;
}

.martgage-calc .lidd_mc_input {
	margin-bottom: 0;
}

.martgage-calc .lidd_mc_form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.martgage-calc #lidd_mc_inspector,
.martgage-calc #lidd_mc_mlc_form {
	display: none !important;
}

.martgage-calc .lidd_mc_results,
.martgage-calc .lidd_mc_details {
	margin-top: 8px;
}

.martgage-calc .jj-calc__results {
	margin-top: 12px;
}

@media (max-width: 767px) {
	.jj-calc__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.jj-calc__btn,
	.land-calculator,
	.martgage-calc #lidd_mc_submit {
		width: 100%;
	}
}
