/* ─────────────────────────────────────────────────────────────
   Quick Pricer Block
   Ported from GCM_Site_Update_Package_v10_Aug_2026/gcm_quick_pricer.html.
   Prefixed qp- (quick pricer) to avoid collisions.

   SELF-CONTAINED: works on the theme's DEFAULT page template. Declares
   its own color variables and constrains to 1180px (not full-bleed).
   Uses the portal fonts (DM Sans + Playfair Display), enqueued by the
   render template.

   Service strip and footer are hardcoded in the PHP template.
   ───────────────────────────────────────────────────────────── */

/* ── Block root ──────────────────────────────────────────────── */
.qp-block {
	/* Self-declared color tokens — mirrors portal-base.css :root. */
	--qp-navy: #1B2B4B;
	--qp-navy-dark: #111C31;
	--qp-navy-mid: #243356;
	--qp-green: #006837;
	--qp-green-light: #2A7E45;
	--qp-green-pale: #E3EDDC;
	--qp-green-bright: #7EC870;
	--qp-off-white: #F7F6F2;
	--qp-white: #FFFFFF;
	--qp-text: #111C31;
	--qp-text-secondary: #4A5567;
	--qp-muted: #5F6B7A;
	--qp-subtitle: #B8C5D8;
	--qp-border: #E2E6ED;
	--qp-border-strong: #C3C9D4;
	--qp-amber: #C8992A;

	font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--qp-text);
	background: var(--qp-off-white);
}

.qp-block .icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ── Shell ───────────────────────────────────────────────────── */
.qp-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.qp-hero {
	background: linear-gradient(135deg, #0B4A26 0%, #053B1B 100%);
	border-radius: 14px;
	padding: 26px 28px;
	margin-bottom: 18px;
	position: relative;
	overflow: hidden;
}
.qp-hero::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(126, 200, 112, .16), transparent 70%);
}
.qp-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--qp-green-bright);
	background: rgba(126, 200, 112, .14);
	border: 1px solid rgba(126, 200, 112, .3);
	border-radius: 20px;
	padding: 4px 12px;
	margin-bottom: 13px;
}
.qp-hero-tag .icon {
	width: 14px;
	height: 14px;
}
.qp-hero h1 {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--qp-white);
	font-size: 30px;
	font-weight: 900;
	line-height: 1.15;
}
.qp-hero p {
	color: var(--qp-subtitle);
	font-size: 16px;
	margin-top: 7px;
	max-width: 640px;
}

/* ── Product chips ───────────────────────────────────────────── */
.qp-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 15px;
}
.qp-chip {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	color: var(--qp-green-bright);
	background: rgba(126, 200, 112, .12);
	border: 1px solid rgba(126, 200, 112, .28);
	border-radius: 20px;
	padding: 5px 13px;
}

/* ── Professional-use notice ─────────────────────────────────── */
.qp-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #FFF8E6;
	border: 1px solid #E8D9A8;
	border-left: 3px solid var(--qp-amber);
	border-radius: 10px;
	padding: 13px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #5C4A1A;
}
.qp-notice .icon {
	width: 17px;
	height: 17px;
	color: var(--qp-amber);
	margin-top: 1px;
}
.qp-notice strong {
	color: #4A3A10;
}

/* ── Pricer panel ────────────────────────────────────────────── */
.qp-panel {
	background: var(--qp-white);
	border: 1px solid var(--qp-border);
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(20, 30, 60, .06);
	overflow: hidden;
	margin-bottom: 18px;
}
.qp-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--qp-border);
	flex-wrap: wrap;
}
.qp-panel-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: var(--qp-navy-dark);
}
.qp-panel-title .icon {
	width: 17px;
	height: 17px;
	color: var(--qp-green);
}
.qp-panel-note {
	font-size: 14px;
	color: var(--qp-muted);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
#loanpass-greenhills-quick-pricer {
	border: none;
	width: 100%;
	height: 1000px;
	display: block;
	background: var(--qp-white);
}

/* ── Fallback ────────────────────────────────────────────────── */
.qp-fallback {
	padding: 40px 26px;
	text-align: center;
}
.qp-fallback h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	margin-bottom: 8px;
}
.qp-fallback p {
	color: var(--qp-muted);
	font-size: 15.5px;
	max-width: 52ch;
	margin: 0 auto 16px;
	line-height: 1.65;
}
.qp-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--qp-green);
	color: var(--qp-white);
	font-weight: 600;
	font-size: 15.5px;
	padding: 11px 20px;
	border-radius: 8px;
	white-space: nowrap;
	text-decoration: none;
}
.qp-btn-primary:hover {
	background: var(--qp-green-light);
	color: var(--qp-white);
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.qp-disclaimer {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.65;
	color: var(--qp-muted);
	margin-bottom: 40px;
}
.qp-disclaimer .icon {
	width: 15px;
	height: 15px;
	margin-top: 2px;
	flex-shrink: 0;
}

/* ── Next steps rail ─────────────────────────────────────────── */
.qp-next {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 24px;
}
.qp-card {
	background: var(--qp-white);
	border: 1px solid var(--qp-border);
	border-radius: 12px;
	padding: 20px 22px;
}
.qp-card h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	margin-bottom: 6px;
	color: var(--qp-navy-dark);
}
.qp-card p {
	color: var(--qp-muted);
	font-size: 15.5px;
	line-height: 1.6;
	margin-bottom: 13px;
}
.qp-card .qp-go {
	font-size: 15px;
	font-weight: 600;
	color: var(--qp-green);
	text-decoration: none;
}
.qp-card .qp-go:hover {
	text-decoration: underline;
}
.qp-card-quiet {
	background: transparent;
	border-style: dashed;
}

/* ── Stage: pricer + rail ────────────────────────────────────── */
.qp-stage {
	display: block;
}
@media (min-width: 1440px) {
	.qp-wrap {
		max-width: 1560px;
	}
	.qp-stage {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 268px;
		gap: 18px;
		align-items: start;
	}
	.qp-rail {
		position: sticky;
		top: 18px;
	}
	.qp-next {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 0;
	}
	.qp-card {
		padding: 16px 18px;
	}
	.qp-card h3 {
		font-size: 17px;
	}
	.qp-card p {
		font-size: 14px;
		margin-bottom: 9px;
	}
}

/* ── Service strip (hardcoded) ───────────────────────────────── */
.qp-strip {
	background: var(--qp-white);
	border: 1px solid var(--qp-border);
	border-radius: 12px;
	padding: 22px 26px;
	margin-bottom: 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.qp-strip h4 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 17px;
	margin-bottom: 5px;
	color: var(--qp-navy-dark);
}
.qp-strip p {
	font-size: 15px;
	color: var(--qp-text-secondary);
	line-height: 1.55;
}

/* ── Footer (hardcoded) ──────────────────────────────────────── */
.qp-foot {
	background: #099b55;
	color: #fff;
	padding: 30px 24px;
	font-size: 13.5px;
	line-height: 1.7;
}
.qp-foot-in {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	flex-wrap: wrap;
}
.qp-foot-co strong {
	color: #fff;
}
.qp-foot-legal {
	max-width: 46ch;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
	.qp-hero h1 {
		font-size: 25px;
	}
	.qp-next {
		grid-template-columns: 1fr;
	}
	.qp-strip {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	#loanpass-greenhills-quick-pricer {
		height: 1200px;
	}
	.qp-foot-in {
		flex-direction: column;
	}
}

/* ── Editor preview ──────────────────────────────────────────── */
.wp-block-acf-quick-pricer .qp-block {
	background: var(--qp-off-white, #F7F6F2);
}
