/* Realtor Partner Program page (/realtor-partners/)
   Loaded only on this page. Mirrors property-management.css conventions.
   Palette: #1C1C1C page, #272531 dark panel, #D1CFCE light panel, #525157 body, #716e84 accent, #8d89a3 accent-light. */

.page-realtor-partners .relative { position: relative; }
.page-realtor-partners h1, .page-realtor-partners h2, .page-realtor-partners h3 { text-wrap: balance; }
.rp-anchor { position: absolute; top: -200px; }
.rp-center-cta { text-align: center; margin-top: 40px; }
.page-realtor-partners .section { padding: 100px 0; }

/* ── 1. Hero: two columns on desktop, copy first on mobile ─────────────── */
.rp-hero {
	margin-top: 197px;
	padding: 70px 0 90px;
	background: #1C1C1C;
}
.rp-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 60px;
	align-items: center;
}
.rp-hero .eyebrow { color: #8d89a3; }
.rp-h1 {
	max-width: 22ch;
	text-wrap: balance;
	color: #fff;
	font-size: clamp(34px, 3.4vw, 50px);
	line-height: 1.15;
	margin: 0 0 22px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0.5px;
}
.rp-lede {
	color: #D1CFCE;
	font-size: clamp(17px, 1.25vw, 20px);
	line-height: 1.7;
	max-width: 620px;
	margin: 0 0 30px;
}
.rp-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0 0 26px;
}
.rp-hero-ctas .main-btn { margin: 0; }
.rp-trust {
	color: #a3a2a5;
	font-size: 14.5px;
	line-height: 1.7;
	max-width: 560px;
	margin: 0;
}
.rp-hero-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.main-btn.solid { background: #fff; color: #272531; border: 1px solid #fff; }
.main-btn.solid:hover { background: transparent; color: #fff; }

/* ── 3. Partner levels (light band) ────────────────────────────────────── */
.rp-tiers { background: #D1CFCE; padding: 100px 0; }
.rp-tiers h2 { color: #272531; max-width: 1000px; margin: 0 auto 24px; }
.rp-tiers-intro { max-width: 800px; margin: 0 auto 60px; text-align: center; color: #525157; }
.rp-tier-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: stretch;
}
.rp-tier {
	position: relative;
	background: #fff;
	border: 1px solid rgba(39, 37, 49, 0.15);
	padding: 54px 36px 44px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.rp-tier-level {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #525157;
}
.rp-tier-share {
	font-family: 'Playfair', serif;
	font-size: clamp(48px, 4.6vw, 72px);
	line-height: 1;
	color: #272531;
	margin: 10px 0 6px;
}
.rp-tier-earned {
	font-size: 15px;
	font-weight: 600;
	color: #272531;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}
.rp-tier p { color: #525157; font-size: 15px; line-height: 1.6; margin: 10px 0 0; max-width: 260px; }
.rp-tier-elite {
	background: #272531;
	border-color: #272531;
	box-shadow: 0 24px 50px -24px rgba(39, 37, 49, 0.6);
}
.rp-tier-elite .rp-tier-level, .rp-tier-elite .rp-tier-earned { color: #D1CFCE; }
.rp-tier-elite .rp-tier-share { color: #fff; }
.rp-tier-elite p { color: #D1CFCE; }
.rp-tier-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #716e84;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	padding: 7px 14px;
	white-space: nowrap;
}
.rp-tier-note {
	max-width: 820px;
	margin: 40px auto 0;
	text-align: center;
	color: #525157;
	font-size: 15px;
	line-height: 1.7;
}

/* ── 4. How it works ───────────────────────────────────────────────────── */
.rp-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-top: 50px;
}
.rp-step-num {
	display: block;
	font-family: 'Playfair', serif;
	font-size: 70px;
	line-height: 1;
	color: #716e84;
	margin-bottom: 15px;
}
@supports (-webkit-text-stroke: 1px #716e84) {
	.rp-step-num { color: transparent; -webkit-text-stroke: 1px #716e84; }
}
.rp-step h3 { color: #fff; font-size: 20px; letter-spacing: 1px; }
.rp-step p { color: #D1CFCE; font-size: 16px; margin: 0; }

/* ── 5. Client relationship protection (dark, photo-backed, the trust moment) ── */
.rp-protect {
	background: #1C1C1C url(/images/realtor-protect-bg.webp) center / cover no-repeat;
	padding: 130px 0;
	overflow: hidden;
}
.rp-protect::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28, 28, 28, 0.92) 0%, rgba(39, 37, 49, 0.88) 100%);
}
.rp-protect-inner { position: relative; max-width: 940px; margin: 0 auto; text-align: center; }
.rp-protect-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1px solid rgba(209, 207, 206, 0.35);
	color: #D1CFCE;
	font-size: 26px;
	margin-bottom: 22px;
}
.rp-protect .eyebrow { color: #8d89a3; }
.rp-protect h2 {
	color: #fff;
	margin: 0 auto;
	max-width: none;
	font-size: clamp(30px, 3.4vw, 50px);
	line-height: 1.12;
	letter-spacing: 0.5px;
}
@media (min-width: 900px) { .rp-protect-line { display: block; } }
.rp-protect-rule { display: block; width: 72px; height: 2px; background: #8d89a3; margin: 30px auto; }
.rp-protect-lead { color: #fff; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.6; margin: 0 auto 16px; max-width: 760px; }
.rp-protect p { color: #D1CFCE; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── 6. Analyzer band — solid light panel (the photo-backed protection band sits directly above) ── */
.rp-analyzer {
	background: #D1CFCE;
	padding: 90px 0;
	border-top: 1px solid rgba(39, 37, 49, 0.12);
}
.rp-analyzer-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 50px;
	align-items: center;
}
.rp-analyzer .eyebrow { color: #605691; }
.rp-analyzer h2 { color: #272531; text-align: left; margin: 0 0 20px; }
.rp-analyzer p { color: #525157; }
.rp-analyzer-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rp-analyzer-note { color: #525157; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ── 7. Elite benefits ─────────────────────────────────────────────────── */
.page-realtor-partners .rp-elite.section { padding: 70px 0; }
.rp-elite-copy { max-width: 850px; margin: 0 auto 30px; text-align: center; color: #D1CFCE; }
.rp-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.rp-benefits li {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: #272531;
	padding: 22px 28px;
	color: #D1CFCE;
	line-height: 1.7;
}
.rp-elite-note { text-align: center; color: #a3a2a5; font-size: 13.5px; margin: 20px 0 0; }
.rp-benefits i { color: #8d89a3; font-size: 22px; margin-top: 4px; flex: 0 0 auto; }

/* ── 8. FAQ (theme accordion handlers; all collapsed by default) ─────────── */
.page-realtor-partners .rp-faq.section { padding: 70px 0; }
.rp-accordion { max-width: 1000px; margin: 30px auto 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.rp-accordion .accordion-heading {
	color: #fff;
	font-weight: 600;
	font-size: 16.5px;
	letter-spacing: 0.3px;
	padding: 15px 50px 15px 5px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	cursor: pointer;
	position: relative;
	min-height: 44px;
}
.rp-accordion .accordion-heading:hover { color: #D1CFCE; }
.rp-accordion .accordion-heading:focus-visible { outline: 2px solid #8d89a3; outline-offset: 2px; }
.rp-accordion .accordion-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
	color: #716e84;
}
.rp-accordion .accordion-arrow.rotate { transform: translateY(-50%) rotate(180deg); }
.rp-accordion .accordion-content { display: none; padding: 0 5px 10px; }
.rp-accordion .accordion-content p { color: #D1CFCE; margin: 2px 0 14px; font-size: 16px; }

/* ── 9. Referral form (light panel) ────────────────────────────────────── */
.rp-form { padding: 0 0 100px; }
.rp-form-panel { background: #D1CFCE; max-width: 1000px; margin: 0 auto; padding: 70px; }
.rp-form-head h2 { color: #272531; text-align: left; margin: 0 0 16px; }
.rp-form-intro { color: #525157; margin-bottom: 40px; max-width: 760px; }
.rp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rp-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-fieldset legend {
	font-family: 'Playfair', serif;
	font-size: 22px;
	color: #272531;
	margin-bottom: 18px;
	padding: 0;
	border: 0;
	width: auto;
}
.rp-form-grid label {
	display: block;
	margin-bottom: 22px;
	color: #272531;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}
.rp-form-grid .rp-wide { grid-column: 1 / -1; }
.rp-optional { font-weight: 400; color: #716e84; letter-spacing: 0.6px; text-transform: none; font-size: 13px; margin-left: 6px; }
/* min/max-width + max-height undo the 220px input clamp in css/overrides.css */
.rp-form-grid input[type="text"],
.rp-form-grid input[type="email"],
.rp-form-grid input[type="tel"],
.rp-form-grid textarea {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 100%;
	margin-top: 8px;
	background: #fff;
	border: 1px solid #a3a2a5;
	border-radius: 1px;
	padding: 14px 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #272531;
	text-transform: none;
	letter-spacing: 0;
	margin-bottom: 0;
	min-height: 48px;
}
.rp-form-grid input:focus, .rp-form-grid textarea:focus {
	border-color: #272531;
	outline: 2px solid rgba(96, 86, 145, 0.35);
	outline-offset: 1px;
}
.rp-form-grid textarea, body .rp-form-grid textarea { min-height: 140px; max-height: none; resize: vertical; }
.rp-form-grid input.rp-invalid, .rp-form-grid textarea.rp-invalid { border-color: #b3261e; }
.rp-field-error { display: block; color: #b3261e; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 6px; }
.rp-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 10px; }
.rp-form-actions .rp-submit { margin: 0; cursor: pointer; }
.rp-referral-form.sending .rp-submit { opacity: 0.55; pointer-events: none; }
.rp-form-expect { color: #525157; font-size: 14px; }
.rp-form-panel .form-status { margin-top: 18px; }
.rp-form-success { background: #fff; border-left: 4px solid #716e84; padding: 36px 40px; }
.rp-form-success h3 { color: #272531; margin: 0 0 10px; outline: none; text-transform: none; }
.rp-form-success p { color: #525157; margin: 0; }
.rp-alt-note { color: #525157; font-size: 14.5px; line-height: 1.7; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid rgba(39, 37, 49, 0.15); }

/* ── 10. Closing ───────────────────────────────────────────────────────── */
.rp-closing { background: #1C1C1C; }
.page-realtor-partners .rp-closing.section { padding: 70px 0 90px; }
.rp-closing-copy { max-width: 850px; margin: 0 auto 30px; text-align: center; color: #D1CFCE; }
.rp-closing-ctas { justify-content: center; }
.rp-smallprint { max-width: 760px; margin: 40px auto 0; text-align: center; color: #a3a2a5; font-size: 13px; line-height: 1.7; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
	.rp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 999px) {
	.rp-hero { margin-top: 0; padding: 60px 0 70px; }
	.rp-anchor { top: -90px; }
	.rp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.rp-hero-media { order: 2; }
	.rp-tier-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 40px; }
	.rp-analyzer-inner { grid-template-columns: 1fr; text-align: center; }
	.rp-analyzer h2 { text-align: center; }
	.rp-benefits { grid-template-columns: 1fr; }
	.rp-form-panel { padding: 50px 36px; }
	.rp-form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 699px) {
	.page-realtor-partners .section { padding: 70px 0; }
	.rp-tiers, .rp-protect { padding: 70px 0; }
	.rp-steps { grid-template-columns: 1fr; }
	.rp-benefits li { padding: 20px 22px; }
	.rp-form-panel { padding: 40px 22px; }
	.rp-accordion .accordion-heading { font-size: 16px; padding-right: 44px; }
	.rp-hero-ctas .main-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-accordion .accordion-arrow { transition: none; }
}

/* ── Primary conversion buttons (mid-page Refer + Submit Referral) ── */
.main-btn.rp-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #272531;
	color: #fff;
	border: 1px solid #272531;
	padding: 18px 40px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1.5px;
	min-height: 56px;
	box-shadow: 0 14px 30px -16px rgba(39, 37, 49, 0.75);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.main-btn.rp-btn-primary i { font-size: 14px; transition: transform 0.2s ease; }
.main-btn.rp-btn-primary:hover, .main-btn.rp-btn-primary:focus-visible { background: #3b3848; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(39, 37, 49, 0.85); }
.main-btn.rp-btn-primary:hover i { transform: translateX(3px); }
.main-btn.rp-btn-primary:focus-visible { outline: 2px solid #716e84; outline-offset: 3px; }
@media (max-width: 699px) {
	.main-btn.rp-btn-primary { width: 100%; justify-content: center; }
	.rp-protect { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.main-btn.rp-btn-primary, .main-btn.rp-btn-primary i { transition: none; }
}

