/**
 * Real Estate Agent Referral Program page
 */

.mpm-ref-hero,
.mpm-ref-partnership,
.mpm-ref-steps,
.mpm-ref-benefits,
.mpm-ref-bottom {
	font-family: Arial, Helvetica, sans-serif;
	box-sizing: border-box;
	color: #222222;
}

.mpm-ref-hero *,
.mpm-ref-partnership *,
.mpm-ref-steps *,
.mpm-ref-benefits *,
.mpm-ref-bottom * {
	box-sizing: border-box;
}

/* Hero */
.mpm-ref-hero {
	position: relative;
	width: 100%;
	height: 520px;
	overflow: hidden;
	background-color: #1d3b5a;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
}

.mpm-ref-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 35, 60, 0.92) 0%, rgba(15, 35, 60, 0.78) 38%, rgba(15, 35, 60, 0.25) 70%, rgba(15, 35, 60, 0.05) 100%);
	pointer-events: none;
}

.mpm-ref-hero__container {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	height: 100%;
	display: flex;
	align-items: center;
}

.mpm-ref-hero__content {
	max-width: 680px;
	text-align: left;
}

.mpm-ref-hero__title {
	margin: 0;
	font-size: clamp(36px, 4.5vw, 64px);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
}

.mpm-ref-hero__title-main {
	color: #ffffff;
}

.mpm-ref-hero__title-accent {
	color: #8bc53f;
}

.mpm-ref-hero__accent {
	display: block;
	width: 64px;
	height: 4px;
	background: #8bc53f;
	margin: 24px 0;
}

.mpm-ref-hero__subtitle {
	margin: 0 0 32px;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.95);
	max-width: 620px;
}

.mpm-ref-hero__subtitle strong {
	color: #ffffff;
	font-weight: 700;
}

.mpm-ref-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.mpm-ref-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 32px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mpm-ref-hero__btn--primary {
	background: #8bc53f;
	color: #ffffff;
	border: 2px solid #8bc53f;
}

.mpm-ref-hero__btn--primary:hover,
.mpm-ref-hero__btn--primary:focus {
	background: #7ab332;
	border-color: #7ab332;
	color: #ffffff;
}

.mpm-ref-hero__btn--secondary {
	background: transparent;
	color: #ffffff;
	border: 1px solid #ffffff;
}

.mpm-ref-hero__btn--secondary:hover,
.mpm-ref-hero__btn--secondary:focus {
	background: #ffffff;
	color: #1d3b5a;
}

/* Partnership */
.mpm-ref-partnership {
	background: #ffffff;
	padding: 80px 0;
}

.mpm-ref-partnership__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

.mpm-ref-partnership__grid {
	display: grid;
	grid-template-columns: 35% 65%;
	gap: 48px;
	align-items: start;
}

.mpm-ref-partnership__title {
	margin: 0;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	color: #123d25;
}

.mpm-ref-partnership__underline {
	display: block;
	width: 60px;
	height: 4px;
	background: #8bc53f;
	margin-top: 20px;
}

.mpm-ref-partnership__right p {
	margin: 0 0 20px;
	font-size: 18px;
	line-height: 1.8;
	color: #222222;
}

.mpm-ref-readmore__toggle {
	display: none;
}

.mpm-ref-readmore__extra {
	display: inline;
}

.mpm-ref-partnership__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 32px;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	background: #8bc53f;
	border: 2px solid #8bc53f;
	border-radius: 4px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mpm-ref-partnership__btn:hover,
.mpm-ref-partnership__btn:focus {
	background: #7ab332;
	border-color: #7ab332;
	color: #ffffff;
}

/* Steps */
.mpm-ref-steps {
	background: #f7f7f7;
	padding: 80px 0;
}

.mpm-ref-steps__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	text-align: center;
}

.mpm-ref-steps__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: #1d3b5a;
}

.mpm-ref-steps__subtitle {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #123d25;
}

.mpm-ref-steps__intro {
	max-width: 820px;
	margin: 0 auto 48px;
	font-size: 18px;
	line-height: 1.7;
	color: #555555;
}

.mpm-ref-steps__grid {
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.mpm-ref-steps__item {
	display: flex;
	align-items: stretch;
	flex: 1 1 0;
	min-width: 240px;
	max-width: 360px;
}

.mpm-ref-steps__card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-height: 100%;
	height: 100%;
	background: #ffffff;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	padding: 32px 28px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.mpm-ref-steps__icon {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #8bc53f center center / 36px 36px no-repeat;
}

.mpm-ref-steps__num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
}

.mpm-ref-steps__icon--refer {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Ccircle cx='12' cy='11' r='4' stroke='%23FFFFFF' stroke-width='2'/%3E%3Ccircle cx='24' cy='11' r='4' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cpath d='M6 30c0-5 4-8 6-8s6 3 6 8M18 30c0-5 4-8 6-8s6 3 6 8' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mpm-ref-steps__icon--manage {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Cpath d='M6 30V14l12-8 12 8v16' stroke='%23FFFFFF' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 30v-8h8v8' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}

.mpm-ref-steps__icon--time {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Ccircle cx='18' cy='18' r='12' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cpath d='M18 10v8l6 4' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mpm-ref-steps__icon--refer .mpm-ref-steps__num,
.mpm-ref-steps__icon--manage .mpm-ref-steps__num,
.mpm-ref-steps__icon--time .mpm-ref-steps__num {
	display: none;
}

.mpm-ref-steps__card-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #123d25;
}

.mpm-ref-steps__card-text {
	margin: 0 0 16px;
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.7;
	color: #222222;
}

.mpm-ref-steps__card-note {
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid #e6e8ec;
	font-size: 14px;
	line-height: 1.6;
	color: #555555;
}

.mpm-ref-steps__card-note::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='%238BC53F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mpm-ref-steps__arrow {
	flex: 0 0 auto;
	align-self: center;
	padding: 0 12px;
	font-size: 28px;
	font-weight: 700;
	color: #8bc53f;
	line-height: 1;
}

/* Benefits */
.mpm-ref-benefits {
	background: #ffffff;
	padding: 80px 0;
}

.mpm-ref-benefits__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	text-align: center;
}

.mpm-ref-benefits__heading {
	margin: 0 0 48px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #1d3b5a;
}

.mpm-ref-benefits__heading::before,
.mpm-ref-benefits__heading::after {
	content: '';
	display: inline-block;
	width: 48px;
	height: 2px;
	background: #e6e8ec;
	vertical-align: middle;
	margin: 0 16px;
}

.mpm-ref-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.mpm-ref-benefits__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #8bc53f center center / 32px 32px no-repeat;
}

.mpm-ref-benefits__icon--income {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 4v24M10 10h9a4 4 0 010 8h-6' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mpm-ref-benefits__icon--protect {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 4l10 4v8c0 7-4 12-10 14C10 28 6 23 6 16V8l10-4z' stroke='%23FFFFFF' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mpm-ref-benefits__icon--time {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='6' y='10' width='20' height='14' rx='2' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cpath d='M6 14h20M12 6v4M20 6v4' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mpm-ref-benefits__icon--local {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 28s10-8 10-14a10 10 0 10-20 0c0 6 10 14 10 14z' stroke='%23FFFFFF' stroke-width='2'/%3E%3Ccircle cx='16' cy='14' r='3' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}

.mpm-ref-benefits__item-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	color: #123d25;
}

.mpm-ref-benefits__item-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #555555;
}

/* Bottom: services + form */
.mpm-ref-bottom {
	background: #f7f7f7;
	padding: 80px 0;
}

#mpm-referral-form {
	scroll-margin-top: 120px;
}

.mpm-ref-bottom__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.mpm-ref-bottom__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.mpm-ref-services__title {
	margin: 0 0 28px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #1d3b5a;
	text-transform: uppercase;
}

.mpm-ref-services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpm-ref-services__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: #ffffff;
	border: 1px solid #e6e8ec;
	border-radius: 8px;
}

.mpm-ref-services__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #8bc53f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 7.5l3 3 7-7' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.mpm-ref-services__label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #123d25;
}

.mpm-ref-form-header {
	padding: 32px;
	background: linear-gradient(135deg, #1d3b5a 0%, #152a45 100%);
	border-radius: 10px 10px 0 0;
	color: #ffffff;
}

.mpm-ref-form-header__title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2;
	color: #ffffff;
}

.mpm-ref-form-header__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
}

.mpm-ref-form-wrap {
	background: #ffffff;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mpm-ref-form {
	padding: 24px 32px 32px;
}

.mpm-ref-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.mpm-ref-form__field {
	margin-bottom: 16px;
}

.mpm-ref-form__row .mpm-ref-form__field {
	margin-bottom: 0;
}

.mpm-ref-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #123d25;
}

.mpm-ref-form__input,
.mpm-ref-form__textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #222222;
	background: #ffffff;
	border: 1px solid #e6e8ec;
	border-radius: 4px;
}

.mpm-ref-form__textarea {
	resize: vertical;
	min-height: 120px;
}

.mpm-ref-form__input:focus,
.mpm-ref-form__textarea:focus {
	outline: none;
	border-color: #8bc53f;
	box-shadow: 0 0 0 2px rgba(139, 197, 63, 0.2);
}

.mpm-ref-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin-top: 8px;
	padding: 14px 24px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	background: #8bc53f;
	border: 2px solid #8bc53f;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mpm-ref-form__submit:hover,
.mpm-ref-form__submit:focus {
	background: #7ab332;
	border-color: #7ab332;
}

.mpm-ref-form-message {
	margin: 24px 32px 0;
	padding: 16px;
	font-size: 15px;
	line-height: 1.6;
	border-radius: 4px;
}

.mpm-ref-form-message--success {
	color: #123d25;
	background: #eef8e0;
	border: 1px solid #c5e39a;
}

.mpm-ref-form-message--error {
	color: #7a1f1f;
	background: #fdeeee;
	border: 1px solid #f0bcbc;
}

/* Tablet */
@media (max-width: 991px) {
	.mpm-ref-hero {
		min-height: 480px;
		height: auto;
	}

	.mpm-ref-hero__container {
		height: auto;
		min-height: 480px;
		align-items: flex-start;
		padding: 36px 40px 44px;
	}

	.mpm-ref-partnership__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.mpm-ref-steps__grid {
		flex-direction: column;
		align-items: stretch;
	}

	.mpm-ref-steps__item {
		max-width: none;
		flex-direction: column;
	}

	.mpm-ref-steps__arrow {
		padding: 12px 0;
		transform: rotate(90deg);
	}

	.mpm-ref-benefits__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mpm-ref-bottom__grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.mpm-ref-hero {
		min-height: 420px;
		background-position: 70% center;
		background-attachment: scroll;
	}

	.mpm-ref-hero__container,
	.mpm-ref-partnership__container,
	.mpm-ref-steps__container,
	.mpm-ref-benefits__container,
	.mpm-ref-bottom__container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.mpm-ref-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mpm-ref-hero__btn {
		width: 100%;
	}

	.mpm-ref-partnership,
	.mpm-ref-steps,
	.mpm-ref-benefits,
	.mpm-ref-bottom {
		padding: 56px 0;
	}

	.mpm-ref-partnership__title {
		font-size: 32px;
	}

	.mpm-ref-readmore__toggle {
		display: inline;
		margin: 0 0 0 4px;
		padding: 0;
		border: 0;
		background: transparent;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.8;
		color: #8bc53f;
		text-decoration: underline;
		cursor: pointer;
		vertical-align: baseline;
	}

	.mpm-ref-readmore__toggle:hover,
	.mpm-ref-readmore__toggle:focus {
		color: #123d25;
	}

	.mpm-ref-readmore__extra {
		display: none;
	}

	.mpm-ref-readmore__extra.is-visible {
		display: inline;
	}

	.mpm-ref-benefits__heading::before,
	.mpm-ref-benefits__heading::after {
		display: none;
	}

	.mpm-ref-benefits__grid {
		grid-template-columns: 1fr;
	}

	.mpm-ref-services__grid {
		grid-template-columns: 1fr;
	}

	.mpm-ref-form__row {
		grid-template-columns: 1fr;
	}

	.mpm-ref-form-header,
	.mpm-ref-form {
		padding-left: 20px;
		padding-right: 20px;
	}
}
