/* MGH Interest List – hero with tab buttons + tabbed forms. Mobile-first; tokens at 1280px. */

.mgh-interest-list {
	max-width: 100%;
}

/* --- Hero (matches MGH Hero height + title/description placement) --- */
.mgh-interest-list__hero {
	position: relative;
	display: flex;
	align-items: center;
	height: 500px;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mgh-interest-list__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.mgh-interest-list__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1520px;
	margin-left: auto;
	margin-right: auto;
}

.mgh-interest-list__hero-content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 884px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
}

/* Specificity beats Elementor per-page typography CSS (post-*.css). */
div.elementor-widget.elementor-widget-mgh_interest_list .mgh-interest-list .mgh-interest-list__hero-content .mgh-interest-list__title {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	color: #fff;
}

.mgh-interest-list .mgh-interest-list__description {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.9);
}

/* --- Tab buttons: anchored to the bottom edge of the hero so they read as tabs --- */
.mgh-interest-list__tabs {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	width: 100%;
	max-width: 884px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
	box-sizing: border-box;
}

.mgh-interest-list .mgh-interest-list__tab {
	flex: 1;
	min-width: 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	color: #fff;
	padding: 15px 16px 17px;
	border-radius: 8px 8px 0 0;
	border: none;
	background-color: #2c3a60;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mgh-interest-list .mgh-interest-list__tab:hover {
	background-color: #3d4d75;
}

.mgh-interest-list .mgh-interest-list__tab.is-active,
.mgh-interest-list .mgh-interest-list__tab.is-active:hover {
	background-color: #fff;
	color: #2c3a60;
}

.mgh-interest-list__tab-label--desktop {
	display: none;
}

.mgh-interest-list__tab-label--mobile {
	display: inline;
}

/* --- Panels --- */
.mgh-interest-list__panels {
	background-color: #fff;
	max-width: 884px;
	margin-left: auto;
	margin-right: auto;
}

.mgh-interest-list__panel {
	padding: 60px 20px;
}

.mgh-interest-list__panel[hidden] {
	display: none;
}

.mgh-interest-list__form {
	max-width: 600px;
}

.mgh-interest-list__info-box {
	margin: 0 0 32px;
	padding: 16px 20px;
	background: rgba(185, 200, 185, 0.20);
	border-radius: 8px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #242424;
}

.mgh-interest-list__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mgh-interest-list__section-title {
	margin: 0 0 8px;
	font-family: Poppins, sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
	color: #2c3a60;
}

.mgh-interest-list__section-description {
	margin: 0 0 16px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #2c3a60;
}

/* --- Contact fields --- */
.mgh-interest-list__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 16px 0 32px;
}

.mgh-interest-list__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mgh-interest-list .mgh-interest-list__fields .mgh-interest-list__field .mgh-interest-list__label {
	display: block;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #2c3a60;
}

.mgh-interest-list__field-help {
	display: block;
	margin-top: -2px;
	font-family: Poppins, sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.4;
	color: rgba(44, 58, 96, 0.65);
}

.mgh-interest-list .mgh-interest-list__input {
	width: 100%;
	padding: 12px 16px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 140%;
	color: #2c3a60;
	background: #fff;
	border: 1px solid rgba(44, 58, 96, 0.20);
	border-radius: 8px;
	box-sizing: border-box;
}

.mgh-interest-list .mgh-interest-list__input::placeholder {
	color: rgba(44, 58, 96, 0.5);
	font-weight: 300;
}

.mgh-interest-list .mgh-interest-list__input:focus {
	outline: none;
	border-color: rgba(44, 58, 96, 0.4);
}

.mgh-interest-list .mgh-interest-list__textarea {
	min-height: 110px;
	font-weight: 300;
	resize: vertical;
}

/* --- Boligtype group --- */
.mgh-interest-list__group {
	margin: 0 0 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(44, 58, 96, 0.12);
}

.mgh-interest-list__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.mgh-interest-list__choices--stacked {
	flex-direction: column;
	gap: 12px;
}

.mgh-interest-list__choices--inline {
	flex-direction: row;
	gap: 24px;
}

.mgh-interest-list__field--boolean .mgh-interest-list__label {
	display: block;
	margin-bottom: 12px;
}

.mgh-interest-list__field--boolean .mgh-interest-list__field-help {
	display: block;
	margin: -4px 0 12px;
}

.mgh-interest-list__field--checkbox-boolean .mgh-interest-list__choice--checkbox-boolean {
	align-items: center;
	gap: 10px;
}

.mgh-interest-list__field--checkbox-boolean .mgh-interest-list__field-help {
	margin-top: 0;
}

.mgh-interest-list__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.mgh-interest-list__choice-text {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #2c3a60;
}

/* --- Consents --- */
.mgh-interest-list__consents {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(44, 58, 96, 0.12);
}

.mgh-interest-list__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.mgh-interest-list__consent-text {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #2c3a60;
}

.mgh-interest-list__consent-link {
	color: #baa558;
	text-decoration: underline;
}

.mgh-interest-list__consent-link:hover {
	color: #9a8a48;
}

/* --- Custom checkbox (shared by boligtype + consents) --- */
.mgh-interest-list .mgh-interest-list__checkbox {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	border-radius: 4px;
	border: 1px solid rgba(44, 58, 96, 0.20);
	background: #fff;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
}

.mgh-interest-list__consent .mgh-interest-list__checkbox {
	margin-top: 2px;
}

.mgh-interest-list .mgh-interest-list__checkbox:checked {
	background-color: #2c3a60;
	border-color: #2c3a60;
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L5 9L13 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 10px;
}

.mgh-interest-list .mgh-interest-list__checkbox:focus {
	outline: none;
	border-color: rgba(44, 58, 96, 0.5);
}

/* Radio buttons (Type af lejemål): circular, blue dot when selected */
.mgh-interest-list .mgh-interest-list__radio {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	border-radius: 50%;
	border: 1px solid rgba(44, 58, 96, 0.20);
	background: #fff;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
}

.mgh-interest-list .mgh-interest-list__radio:checked {
	border-color: #2c3a60;
}

.mgh-interest-list .mgh-interest-list__radio:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2c3a60;
	transform: translate(-50%, -50%);
}

.mgh-interest-list .mgh-interest-list__radio:focus {
	outline: none;
	border-color: rgba(44, 58, 96, 0.5);
}

/* --- Dropdown (Antal værelser, multi-select) --- */
.mgh-interest-list__dropdown {
	position: relative;
	width: 100%;
}

.mgh-interest-list .mgh-interest-list__dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 140%;
	color: #2c3a60;
	text-align: left;
	background: #fff;
	border: 1px solid rgba(44, 58, 96, 0.20);
	border-radius: 8px;
	box-sizing: border-box;
	cursor: pointer;
}

.mgh-interest-list .mgh-interest-list__dropdown-toggle:focus {
	outline: none;
	border-color: rgba(44, 58, 96, 0.4);
}

.mgh-interest-list__dropdown-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mgh-interest-list__dropdown-value.is-placeholder {
	color: rgba(44, 58, 96, 0.5);
	font-weight: 300;
}

.mgh-interest-list__dropdown-arrow {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-right: 2px solid #2c3a60;
	border-bottom: 2px solid #2c3a60;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-top: -4px;
}

.mgh-interest-list__dropdown.is-open .mgh-interest-list__dropdown-arrow {
	transform: rotate(-135deg);
	margin-top: 2px;
}

.mgh-interest-list__dropdown-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	padding: 8px 0;
	background: #fff;
	border: 1px solid rgba(44, 58, 96, 0.20);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(44, 58, 96, 0.15);
	max-height: 280px;
	overflow-y: auto;
}

.mgh-interest-list__dropdown-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	cursor: pointer;
}

.mgh-interest-list__dropdown-option:hover {
	background: rgba(44, 58, 96, 0.05);
}

.mgh-interest-list__dropdown-option-text {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #2c3a60;
}

/* --- Submit --- */
.mgh-interest-list__submit {
	display: block;
	width: 100%;
	padding: 15px 20px 17px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background-color: #2c3a60;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.mgh-interest-list__submit:hover {
	background-color: #3d4d75;
}

.mgh-interest-list__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* --- Placeholder (commercial / phase 2) --- */
.mgh-interest-list__placeholder {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #2c3a60;
}

/* --- Error message --- */
.mgh-interest-list__message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.mgh-interest-list__message--error {
	background-color: #ffe0e0;
	color: #2c3a60;
}

/* --- Success modal --- */
.mgh-interest-list__success-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.mgh-interest-list__success-modal[hidden] {
	display: none;
}

.mgh-interest-list__success-modal-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(44, 58, 96, 0.5);
}

.mgh-interest-list__success-modal-box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 540px;
	padding: 48px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.mgh-interest-list__success-modal-close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	line-height: 1;
	color: #2c3a60;
	background: none;
	border: none;
	cursor: pointer;
}

.mgh-interest-list__success-modal-close:hover {
	opacity: 0.7;
}

.mgh-interest-list__success-modal-title {
	display: flex;
	flex-direction: column;
	margin: 0 0 16px;
	font-family: Poppins, sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: #2c3a60;
}

.mgh-interest-list__success-modal-title-line {
	display: block;
}

.mgh-interest-list__success-modal-body {
	margin: 0 0 28px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #2c3a60;
}

.mgh-interest-list__success-modal-email {
	font-weight: 600;
}

.mgh-interest-list__success-modal-btn {
	display: inline-block;
	padding: 15px 30px 17px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background-color: #2c3a60;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
}

.mgh-interest-list__success-modal-btn:hover {
	background-color: #3d4d75;
	color: #fff;
}

/* --- Desktop --- */
@media (min-width: 1280px) {
	.mgh-interest-list__hero {
		height: 440px;
	}

	.mgh-interest-list__tab-label--desktop {
		display: inline;
	}

	.mgh-interest-list__tab-label--mobile {
		display: none;
	}

	.mgh-interest-list__hero-content {
		max-width: 800px;
		gap: 10px;
		margin-left: 100px;
		margin-right: 100px;
		padding-left: 0;
		padding-right: 0;
	}

	.mgh-interest-list__tabs {
		max-width: 800px;
		margin-left: 100px;
		margin-right: 100px;
		padding-left: 0;
		padding-right: 0;
	}
	div.elementor-widget.elementor-widget-mgh_interest_list .mgh-interest-list .mgh-interest-list__hero-content .mgh-interest-list__title {
		font-size: 53px;
	}
	.mgh-interest-list__panels {
		max-width: 1520px;
	}
	.mgh-interest-list__panel {
		padding: 80px 100px;
	}
}
