/* Financing page — scoped to #fpp-financing-page */

#fpp-financing-page {
	--fp-gold: #b87f0d;
	--fp-navy: #0c0c30;
	--border-light: #e6e6e3;
	--fpp-content-max: 1500px;
	--fpp-gutter-x: 20px;
	--fpp-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	--fpp-card-border: 1px solid var(--border-light);
	--fpp-card-radius: 4px;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy);
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

#fpp-financing-page .fpp-section-wrapper {
	font-family: 'IBM Plex Sans', sans-serif;
	width: 100%;
	max-width: var(--fpp-content-max);
	margin: 0 auto 30px auto;
	padding: 0 var(--fpp-gutter-x) !important;
	box-sizing: border-box;
}

#fpp-financing-page .fpp-section-wrapper * {
	box-sizing: border-box;
}

#fpp-financing-page .fpp-section-wrapper h1,
#fpp-financing-page .fpp-section-wrapper h2,
#fpp-financing-page .fpp-section-wrapper h3,
#fpp-financing-page .fpp-section-wrapper h4,
#fpp-financing-page .fpp-section-wrapper h5,
#fpp-financing-page .fpp-section-wrapper h6 {
	text-transform: none !important;
}

#fpp-financing-page .fpp-gold-text {
	color: var(--fp-gold);
	font-style: italic;
}

/* ───── Hero ───── */

#fpp-financing-page .fpp-financing-hero-card {
	border: var(--fpp-card-border);
	border-radius: var(--fpp-card-radius);
	box-shadow: var(--fpp-card-shadow);
	background-color: var(--fp-navy);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#fpp-financing-page .fpp-financing-hero-top {
	background-color: var(--fp-navy);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 40px;
	gap: 30px;
}

#fpp-financing-page .fpp-financing-hero-top h1 {
	font-family: 'Vollkorn', serif;
	font-size: 3.2rem;
	color: #fff;
	margin: 0;
	text-align: center;
	line-height: 1.2;
}

#fpp-financing-page .fpp-financing-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--fp-gold) !important;
	color: #fff !important;
	padding: 12px 28px;
	border-radius: var(--fpp-card-radius);
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase !important;
	text-decoration: none !important;
	letter-spacing: 1.5px;
	border: 2px solid var(--fp-gold) !important;
	transition: 0.3s ease;
	gap: 8px;
}

#fpp-financing-page .fpp-financing-hero-btn:hover {
	background-color: transparent !important;
	color: var(--fp-gold) !important;
}

/* ───── Loan options ───── */

#fpp-financing-page .fpp-loan-container {
	background-color: #f4f4f6;
	border: var(--fpp-card-border);
	border-radius: var(--fpp-card-radius);
	box-shadow: var(--fpp-card-shadow);
	overflow: hidden;
	width: 100%;
	padding: 60px 40px;
}

#fpp-financing-page .fpp-loan-header-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 50px;
}

#fpp-financing-page .fpp-loan-subtitle {
	display: block;
	color: var(--fp-gold);
	text-transform: uppercase !important;
	letter-spacing: 2px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 20px;
}

#fpp-financing-page .fpp-loan-header-group h2 {
	font-family: 'Vollkorn', serif;
	font-size: 2.8rem;
	color: var(--fp-navy);
	margin: 0 0 15px 0 !important;
	font-weight: 700;
	line-height: 1.2;
}

#fpp-financing-page .fpp-loan-header-group p {
	font-size: 1.1rem;
	color: rgba(12, 12, 48, 0.75);
	margin: 0;
	max-width: 700px;
}

#fpp-financing-page .fpp-loan-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

#fpp-financing-page .fpp-loan-card {
	background: #fff;
	border-radius: var(--fpp-card-radius);
	padding: 35px 30px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	border: 1px solid transparent;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#fpp-financing-page .fpp-loan-card:hover {
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	border-color: rgba(184, 127, 13, 0.3);
}

#fpp-financing-page .fpp-loan-icon {
	width: 45px;
	height: 45px;
	background-color: #1a1a42;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 25px;
	color: #fff;
}

#fpp-financing-page .fpp-loan-icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#fpp-financing-page .fpp-loan-card h3 {
	font-family: 'Vollkorn', serif;
	font-size: 1.35rem;
	color: var(--fp-navy);
	margin: 0 0 15px 0 !important;
	font-weight: 700;
}

#fpp-financing-page .fpp-loan-card p.fpp-loan-desc {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(12, 12, 48, 0.75);
	margin: 0 0 25px 0 !important;
	min-height: 90px;
}

#fpp-financing-page .fpp-loan-list {
	list-style: none;
	padding: 0;
	margin: auto 0 0 0;
}

#fpp-financing-page .fpp-loan-list li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(12, 12, 48, 0.85);
}

#fpp-financing-page .fpp-loan-list li:last-child {
	margin-bottom: 0;
}

#fpp-financing-page .fpp-loan-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B87F0D'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1 15l-4-4 1.41-1.41L11 14.17l6.59-6.59L19 9l-8 8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* ───── Mortgage Basics FAQ ───── */

#fpp-financing-page .fpp-widget-container {
	background-color: #fff;
	border: var(--fpp-card-border);
	border-radius: var(--fpp-card-radius);
	box-shadow: var(--fpp-card-shadow);
	overflow: hidden;
	width: 100%;
	padding: 0 !important;
}

#fpp-financing-page .fpp-widget-header {
	background-color: #f4f4f6;
	border-bottom: 3px solid var(--fp-gold);
	padding: 30px 40px;
	margin: 0 !important;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100% !important;
}

#fpp-financing-page .fpp-widget-subtitle {
	font-size: 0.75rem;
	color: var(--fp-gold);
	text-transform: uppercase !important;
	letter-spacing: 2px;
	font-weight: 700;
	margin-bottom: 8px;
	display: block;
}

#fpp-financing-page .fpp-widget-header h2 {
	font-family: 'Vollkorn', serif;
	font-size: 2.8rem;
	color: var(--fp-navy);
	margin: 0 !important;
	font-weight: 700;
	line-height: 1.1;
}

#fpp-financing-page .fpp-widget-body {
	padding: 40px;
	background-color: #fff;
	width: 100%;
}

#fpp-financing-page .fpp-faq-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
}

#fpp-financing-page .fpp-faq-item {
	background: #fff;
	border: var(--fpp-card-border);
	border-radius: var(--fpp-card-radius);
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#fpp-financing-page .fpp-faq-item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	border-color: rgba(184, 127, 13, 0.4);
}

#fpp-financing-page .fpp-faq-question {
	width: 100%;
	padding: 25px 30px;
	cursor: pointer;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--fp-navy);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	text-align: left;
	white-space: normal;
	background-color: #fff;
	border: none;
	transition: background-color 0.2s ease;
	user-select: none;
}

#fpp-financing-page .fpp-faq-question > span:not(.fpp-faq-icon) {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

#fpp-financing-page .fpp-faq-question:hover {
	background-color: #f9f9f7;
}

#fpp-financing-page .fpp-faq-icon {
	color: var(--fp-gold);
	font-size: 1.5rem;
	font-weight: 300;
	transition: transform 0.3s ease;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

#fpp-financing-page .fpp-faq-item.open .fpp-faq-icon {
	transform: rotate(45deg);
}

#fpp-financing-page .fpp-faq-answer {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 30px;
	transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

#fpp-financing-page .fpp-faq-item.open .fpp-faq-answer {
	max-height: 500px;
	opacity: 1;
	padding: 0 30px 25px 30px;
}

#fpp-financing-page .fpp-faq-answer p {
	color: rgba(12, 12, 48, 0.75);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 !important;
}

/* ───── Important disclosures ───── */

#fpp-financing-page .fpp-disclosures-container {
	background-color: var(--fp-navy);
	border-radius: var(--fpp-card-radius);
	box-shadow: var(--fpp-card-shadow);
	width: 100%;
	padding: 45px 50px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 11px;
	line-height: 1.8;
}

#fpp-financing-page .fpp-disclosures-container h4 {
	color: var(--fp-gold);
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase !important;
	margin: 0 0 20px 0 !important;
	font-weight: 700;
	font-family: 'IBM Plex Sans', sans-serif;
}

#fpp-financing-page .fpp-disclosures-container p {
	margin: 0 0 15px 0 !important;
}

#fpp-financing-page .fpp-disclosures-container strong {
	color: #fff;
	font-weight: 600;
}

#fpp-financing-page .fpp-disclosures-container a {
	color: var(--fp-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}

#fpp-financing-page .fpp-disclosures-container a:hover {
	color: #fff;
}

#fpp-financing-page .fpp-disclosures-badges {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#fpp-financing-page .fpp-eho-badge {
	width: 36px;
	height: 36px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.65);
	flex-shrink: 0;
}

#fpp-financing-page .fpp-disclosures-badges-text {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

/* ───── Responsive ───── */

@media (max-width: 1100px) {
	#fpp-financing-page .fpp-loan-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	#fpp-financing-page .fpp-loan-card p.fpp-loan-desc {
		min-height: auto;
	}
}

@media (max-width: 1024px) {
	#fpp-financing-page .fpp-financing-hero-top {
		padding: 45px 30px;
	}

	#fpp-financing-page .fpp-financing-hero-top h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	#fpp-financing-page .fpp-section-wrapper {
		padding: 0 15px !important;
	}

	#fpp-financing-page .fpp-financing-hero-top {
		padding: 40px 20px;
	}

	#fpp-financing-page .fpp-financing-hero-top h1 {
		font-size: 1.8rem;
	}

	#fpp-financing-page .fpp-financing-hero-btn {
		width: 100%;
	}

	#fpp-financing-page .fpp-loan-container {
		padding: 40px 20px;
	}

	#fpp-financing-page .fpp-loan-header-group h2 {
		font-size: 2.2rem;
	}

	#fpp-financing-page .fpp-loan-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	#fpp-financing-page .fpp-widget-header {
		padding: 30px 20px;
	}

	#fpp-financing-page .fpp-widget-header h2 {
		font-size: 2.2rem;
	}

	#fpp-financing-page .fpp-widget-body {
		padding: 30px 20px;
	}

	#fpp-financing-page .fpp-faq-list {
		gap: 12px;
	}

	#fpp-financing-page .fpp-faq-question {
		padding: 18px 20px;
		font-size: 1rem;
		gap: 12px;
	}

	#fpp-financing-page .fpp-faq-item.open .fpp-faq-answer {
		max-height: 1200px;
		padding: 0 20px 20px 20px;
	}

	#fpp-financing-page .fpp-disclosures-container {
		padding: 35px 25px;
	}

	#fpp-financing-page .fpp-disclosures-badges {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	#fpp-financing-page .fpp-financing-hero-top {
		padding: 32px 16px;
		gap: 24px;
	}

	#fpp-financing-page .fpp-financing-hero-top h1 {
		font-size: 1.6rem;
	}

	#fpp-financing-page .fpp-loan-container {
		padding: 32px 16px;
	}

	#fpp-financing-page .fpp-loan-header-group {
		margin-bottom: 35px;
	}

	#fpp-financing-page .fpp-loan-header-group h2 {
		font-size: 1.9rem;
	}

	#fpp-financing-page .fpp-loan-header-group p {
		font-size: 1rem;
	}

	#fpp-financing-page .fpp-loan-card {
		padding: 28px 22px;
	}

	#fpp-financing-page .fpp-widget-header h2 {
		font-size: 1.9rem;
	}

	#fpp-financing-page .fpp-faq-question {
		font-size: 0.95rem;
	}

	#fpp-financing-page .fpp-disclosures-container {
		padding: 30px 20px;
	}
}
