/**
 * Calculator result styles (popup + popup form).
 *
 * Moved out of the Elementor page CSS so the calculator widget ships its own
 * presentation for inline results (.mp-calculator-results-holder--plugin) and
 * the result popup lightbox.
 */

body.mp-calculator-lightbox-open {
	overflow: hidden;
}

/*
 * Inline results section — matches production .elementor-element-122e8b4
 * (padding, background, boxed width, tabs/cards spacing, typography).
 */
.mp-calculator-results-target,
.mp-calculator-results-holder.mp-calculator-results-holder--plugin {
	display: none;
	flex-direction: column;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	background-color: #F6EFE1;
	padding: 80px 64px;
	font-family: "Roobert Font Family", sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 24px;
}

@media (max-width: 767px) {
	.mp-calculator-results-target,
	.mp-calculator-results-holder.mp-calculator-results-holder--plugin {
		padding: 80px 20px 64px;
	}
}

/* Results relocated into a custom section: outer target carries section styles. */
.mp-calculator-results-target > .mp-calculator-results-holder--plugin {
	padding: 0;
	background: transparent;
}

/* Inner content box — matches production .e-con-inner (1280px boxed width). */
.mp-calculator-results-holder--plugin > .mp-calculator-widget-results,
.mp-calculator-results-target > .mp-calculator-results-holder--plugin > .mp-calculator-widget-results {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.mp-calculator-results-holder--plugin .mp-calculator-widget-tabs-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin: 0 0 32px;
}

@media (max-width: 1024px) {
	.mp-calculator-results-holder--plugin .mp-calculator-widget-tabs-header {
		align-items: center;
		flex-direction: column;
		gap: 20px;
	}
}

.mp-calculator-results-holder--plugin .tab-header-item {
	display: inline-block;
	font-family: "Roobert Font Family", sans-serif;
	font-size: 16px;
	font-weight: 500;
	font-style: normal;
	line-height: 1em;
	padding: 12px 14px;
	border: 2px solid transparent;
	color: #696563;
	cursor: pointer;
}

.mp-calculator-results-holder--plugin .tab-header-item.active {
	color: #0e0500;
	border-bottom: 2px solid #000;
}

.mp-calculator-results-holder--plugin .mp-calculator-widget-reset {
	padding: 9px 26px 11px;
}

.mp-calculator-results-holder--plugin .mp-calculator-widget-reset button {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	padding: 10px 26px 11px;
	border-radius: 30px;
	border: 1px solid #0e0500;
	background-color: transparent !important;
	color: #0e0500;
	font-family: "Roobert Font Family", sans-serif;
	font-size: 16px;
	font-weight: 500;
	font-style: normal;
	line-height: 24px;
}

.mp-calculator-results-holder--plugin .mp-calculator-widget-reset button > div {
	transform: translateY(2px);
}

.mp-calculator-results-holder--plugin .mp-tab > div {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.mp-calculator-results-holder--plugin .mp-tab-items {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: stretch;
}

.mp-calculator-results-holder--plugin .mp-tab-item {
	width: 305px;
	position: relative;
}

.mp-calculator-results-holder--plugin .mp-tab-item .mp-tab-item-image {
	position: absolute;
	z-index: 0;
}

.mp-calculator-results-holder--plugin .mp-tab-item .mp-tab-item-image img {
	border-radius: 32px;
}

.mp-calculator-results-holder--plugin .mp-tab-item .mp-tab-item-data {
	position: relative;
	margin: 137px 0 0;
	padding: 32px 24px;
	background-color: #fff;
	border-radius: 32px;
	z-index: 10;
	height: calc(100% - 137px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-item-title {
	margin: 0 0 32px;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-item-title > * {
	margin: 8px 0 16px;
	font-family: "Roobert Font Family", sans-serif;
	font-size: 22px;
	font-weight: 600;
	font-style: normal;
	line-height: 26.4px;
	color: #0e0500;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-base-salary > div:first-child p,
.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-employer-cost > div:first-child p,
.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-total > div:first-child p {
	margin: 0 0 7px;
	font-family: "Roobert Font Family", sans-serif;
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1em;
	color: #696563;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-base-salary > div:nth-child(2) p,
.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-employer-cost > div:nth-child(2) p,
.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-total > div:nth-child(2) p {
	font-family: "Roobert Font Family", sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 1em;
	color: #0e0500;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-total > div:nth-child(2) p {
	font-weight: 600;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item-employer-cost > div {
	display: flex;
	justify-content: space-between;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item .mp-tab-item-data .mp-tab-item-data-bottom > div > div {
	font-family: "Roobert Font Family", sans-serif;
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1em;
	color: #696563;
}

.mp-calculator-results-holder--plugin .mp-tab .mp-tab-item .mp-tab-item-data .mp-tab-item-data-bottom > div > div:nth-child(2) {
	font-size: 16px;
	color: #0e0500;
}

.mp-calculator-widget-calculate.mp-calculate-button-wrapper {
    position: relative;
    width: 135px;
}
.mp-calculate-button-wrapper .lds-ring {
    position: absolute;
    top: 8px;
    right: 7px;
}
.mp-calculator-result-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

/* High specificity so theme / Elementor rules cannot reveal a closed popup. */
#mp-calculator-result-lightbox.mp-calculator-result-lightbox {
	display: none !important;
}

#mp-calculator-result-lightbox.mp-calculator-result-lightbox.is-open {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mp-calculator-result-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.mp-calculator-result-lightbox__dialog {
	position: relative;
	width: min(751px, 94vw);
	margin: 0 !important;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
}

.mp-calculator-result-lightbox__header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 10px 12px 0 12px;
	background: #fff;
}

.mp-calculator-result-lightbox__close {
	border: 0;
	background: transparent;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
	color: #0e0500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mp-calculator-result-lightbox__body {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding: 3px 48px 32px 40px;
	overflow: auto;
}

.mp-calculator-result-lightbox__left,
.mp-calculator-result-lightbox__right {
	min-width: 0;
}

.mp-calculator-result-lightbox__hubspot-placeholder {
	background: #eee;
	border-radius: 12px;
	min-height: 420px;
	width: 100%;
}

.mp-calculator-result-lightbox__hubspot-title {
	font-weight: 600 !important;
	margin-top: 0;
}

@media (max-width: 900px) {
	.mp-calculator-result-lightbox__body {
		grid-template-columns: 1fr;
	}

	.mp-calculator-result-lightbox__hubspot-placeholder {
		min-height: 220px;
	}
}

/* Result card inside the popup */

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item .mp-tab-item-data {
	padding: 0;
	margin: 147px 0 0;
	border-radius: 0;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item .mp-tab-item-image {
	position: absolute;
	z-index: 0;
	height: 147px;
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item .mp-tab-item-image img {
	border-radius: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab {
	display: block;
	border-right: 1px solid #cfcdcc;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-item-title {
	margin: 12px 0 16px 0;
}

#mp-calculator-result-lightbox .mp-tab-item-more-info {
	display: none;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item-base-salary > div:first-child p,
#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item-employer-cost > div:first-child p,
#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item-total > div:first-child p {
	margin: 0 0 4px !important;
	line-height: 125%;
}

#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item-base-salary > div:nth-child(2) p {
	line-height: 115%;
}

@media all and (max-width: 1024px) {
	.mp-calculator-result-lightbox__body.mp-calculator-widget-results {
		gap: 0;
	}

	#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab {
		border-bottom: 1px solid #cfcdcc;
		border-right: 0 !important;
	}

	#mp-calculator-result-lightbox .mp-calculator-widget-results .mp-tab .mp-tab-item .mp-tab-item-total > div:nth-child(2) p {
		margin-bottom: 24px;
	}

	h3.mp-calculator-result-lightbox__hubspot-title {
		margin-top: 24px;
		font-size: 22px;
	}
}

@media all and (max-width: 680px) {
	.mp-calculator-result-lightbox .mp-calculator-widget-results {
		max-height: 640px;
		overflow-y: scroll;
	}

	.mp-calculator-result-lightbox__body {
		padding: 3px 24px 32px 24px;
	}
}

/* Popup form */

.mp-calculator-result-lightbox__hubspot .mp-hs-form__loader,
.mp-calculator-result-lightbox__hubspot #loading-img {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.8);
	justify-content: center;
	border-radius: 12px;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form fieldset {
	width: 100%;
	max-width: 100% !important;
	margin-bottom: 0;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-form-field {
	margin-bottom: 13px !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-dependent-field,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-form-field,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-form-field input,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-form-field select {
	width: 100% !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_email input::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_employee_size::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_firstname input::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_lastname input::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_phone input::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_website input::placeholder {
	color: #a8a8ab !important;
	opacity: 1;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .demo-main-form-btn.hs-button {
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 19.2px !important;
	letter-spacing: 0 !important;
	font-family: "Roobert Font Family", Sans-serif !important;
	color: #fff !important;
	background-color: var(--e-global-color-adbd8ef) !important;
	border-color: var(--e-global-color-adbd8ef) !important;
	padding: 13px 22px !important;
	border-radius: 30px !important;
	width: 100%;
	border: none;
	transition: 0.3s;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .demo-main-form-btn.hs-button:hover {
	transform: translateY(-2px);
	border-radius: 30px !important;
	background-color: var(--e-global-color-5dd0419) !important;
	color: #fff !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-input,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p a,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form label {
	font-family: "Roobert Font Family", Sans-serif !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_submit.hs-submit .actions {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form label {
	font-size: 14px !important;
	line-height: 125% !important;
	color: var(--e-global-color-377f24f) !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .input {
	margin-top: 0 !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p {
	font-size: 13px !important;
	line-height: 16.25px !important;
	color: var(--e-global-color-377f24f) !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p a {
	font-size: 13px !important;
	line-height: 16.25px !important;
	color: var(--e-global-color-377f24f) !important;
	text-decoration: underline;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-input {
	font-size: 16px !important;
	line-height: 20px !important;
	border: 1px solid var(--e-global-color-377f24f) !important;
	border-radius: 8px !important;
	background-color: #fff !important;
	margin-top: 4px;
	padding: 11px 12px;
	height: 42px;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-input option:disabled,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form select.is-placeholder {
	color: #a8a8ab !important;
	font-family: "Roobert Font Family", Sans-serif !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form input[type="text"]:active,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form input[type="text"]:focus {
	border: 1px solid var(--e-global-color-377f24f) !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form select::placeholder,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-input::placeholder {
	color: var(--e-global-color-377f24f) !important;
	opacity: 0.4;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-error-msgs {
	list-style-type: none;
	padding-left: 0;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-error-msgs .hs-error-msg {
	color: #f12b15 !important;
	font-size: 14px !important;
	padding: 4px 0 0 !important;
	line-height: 17.5px !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-input.error.invalid {
	border-color: #f12b15 !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_email.hs-email,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_origin_country,
.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_origin_country.hs-origin_country select {
	width: 100%;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form select {
	appearance: none;
	background: url("/wp-content/uploads/2025/01/chevron-down.svg") calc(100% - 15px) no-repeat #fff !important;
}

.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .demo-main-form-btn {
	margin: 10px 0 10px;
}

@media only screen and (min-width: 1024px) {
	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form fieldset {
		column-gap: 10px !important;
		display: flex !important;
	}
}

@media only screen and (max-width: 767px) {
	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .demo-main-form-btn.hs-button {
		font-size: 16px !important;
		line-height: 19.2px !important;
	}

	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p,
	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs-richtext p a {
		font-size: 13px !important;
		line-height: 16.25px !important;
	}

	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_submit.hs-submit .actions {
		padding-bottom: 0 !important;
	}
}

@media only screen and (max-width: 480px) {
	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_employee_size.hs-employee_size,
	.mp-calculator-result-lightbox__hubspot.hs-form-container.popup-demo-form .hs_phone.hs-phone {
		width: 100% !important;
	}
}

.mp-calculator-result-lightbox__hubspot p.privacy-text {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 125%;
	text-align: center;
	color: #696563;
}

.mp-calculator-result-lightbox__hubspot p.privacy-text a {
	color: #696563 !important;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 125%;
	text-decoration-line: underline;
	text-decoration-style: solid;
}
