/* GCF Financing Finder v2 — scoped under .gcf-ff / .gcf-ff-modal / .gcf-ff-approve */

:root {
	--gcf-ff-accent: #3aa64a; /* site green */
	--gcf-ff-orange: #f7941e; /* site orange */
}

.gcf-ff, .gcf-ff * { box-sizing: border-box; }

.gcf-ff {
	--ink: #14181f;
	--muted: #5b6573;
	--line: #e4e8ef;
	--surface: #ffffff;
	--soft: #f5f7fb;
	--radius: 16px;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	max-width: 600px;
	margin: 0 auto;
	text-align: left;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* progress */
.gcf-ff__progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.gcf-ff__progress-bar { display: block; height: 100%; width: 0; background: var(--gcf-ff-accent); border-radius: 99px; transition: width .35s cubic-bezier(.2,.7,.3,1); }

/* steps */
.gcf-ff__step { display: none; animation: gcf-ff-in .3s ease both; }
.gcf-ff__step.is-active { display: block; }
@keyframes gcf-ff-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gcf-ff__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gcf-ff-accent); margin: 0 0 10px; }
.gcf-ff__q { font-size: clamp(22px, 4.5vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink); }
.gcf-ff__sub { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

/* choices */
.gcf-ff__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.gcf-ff__choices--stack { grid-template-columns: 1fr; }
.gcf-ff__choice {
	appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
	font-weight: 700; font-size: 16px; color: var(--ink);
	background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
	padding: 18px 20px; text-align: center;
	transition: border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.gcf-ff__choice:hover { border-color: var(--gcf-ff-accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.gcf-ff__choice:active { transform: translateY(0); }
.gcf-ff__choices--stack .gcf-ff__choice { text-align: left; }

.gcf-ff__back, .gcf-ff__restart, .gcf-ff__secondary {
	appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
	background: transparent; border: none; color: var(--muted);
	font-size: 14px; font-weight: 600; padding: 12px 4px; margin-top: 14px;
	text-decoration: underline; text-underline-offset: 3px;
}
.gcf-ff__back:hover, .gcf-ff__restart:hover, .gcf-ff__secondary:hover { color: var(--ink); }

/* gate screens */
.gcf-ff__step--msg { text-align: center; padding: 12px 0 4px; }
.gcf-ff__msg-icon { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; background: var(--soft); color: var(--gcf-ff-accent); }
.gcf-ff__msg { font-size: 17px; color: var(--ink); margin: 0 auto 8px; max-width: 44ch; }
.gcf-ff__msg-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gcf-ff__secondary { text-decoration: none; color: #fff; background: var(--gcf-ff-accent); border-radius: 12px; padding: 13px 22px; margin-top: 18px; }
.gcf-ff__secondary:hover { color: #fff; filter: brightness(.96); }

/* results */
.gcf-ff__results-title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.gcf-ff__cards { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 6px; }

/* card — brand color comes from inline --brand / --brand-ink */
.gcf-ff-card {
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .12s ease;
}
.gcf-ff-card:hover { box-shadow: 0 12px 32px rgba(20,24,31,.10); }
.gcf-ff-card.is-recommended { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(20,24,31,.10); }
.gcf-ff-card.is-tried { opacity: .72; }

.gcf-ff-card__ribbon {
	position: absolute; top: 12px; right: -34px;
	transform: rotate(45deg);
	background: var(--brand); color: var(--brand-ink, #fff);
	font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
	padding: 5px 40px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.gcf-ff-card__ribbon--tried { background: #8a93a3; color: #fff; }

.gcf-ff-card__logo { display: flex; align-items: center; justify-content: center; padding: 18px 16px 12px; background: #fff; min-height: 56px; }
.gcf-ff-card__logo img { max-height: 42px; max-width: 200px; width: auto; height: auto; object-fit: contain; display: block; }
.gcf-ff-card__logo-text { font-weight: 800; font-size: 20px; }

.gcf-ff-card__band { background: var(--brand); color: var(--brand-ink, #fff); text-align: center; padding: 12px 16px; }
.gcf-ff-card__name { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.gcf-ff-card__headline { display: block; font-size: 13px; font-weight: 600; opacity: .92; margin-top: 2px; }

.gcf-ff-card__body { padding: 16px 18px 16px; }
.gcf-ff-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.gcf-ff-card__pay { font-size: 18px; font-weight: 800; color: var(--gcf-ff-orange); }
.gcf-ff-card__badge { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }

.gcf-ff-card__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gcf-ff-card__apply {
	flex: 1 1 auto; text-align: center; text-decoration: none;
	font-weight: 800; font-size: 17px; color: var(--gcf-ff-apply-ink, var(--gcf-ff-orange));
	text-shadow: 0 1px 1px rgba(0,0,0,.28);
	background: var(--brand); border-radius: 12px; padding: 15px 20px;
	box-shadow: 0 6px 16px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.12);
	transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.gcf-ff-card__apply:hover { filter: brightness(.97); transform: translateY(-1px); color: var(--gcf-ff-apply-ink, var(--gcf-ff-orange)); box-shadow: 0 10px 24px rgba(0,0,0,.24), 0 3px 6px rgba(0,0,0,.16); }
.gcf-ff-card__toggle {
	appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
	font-weight: 700; font-size: 14px; color: var(--ink);
	background: transparent; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px;
}
.gcf-ff-card__toggle:hover { border-color: var(--brand); }

.gcf-ff-card__details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gcf-ff-card__bullets { margin: 0 0 10px; padding: 0 0 0 18px; list-style: disc; }
.gcf-ff-card__bullets li { font-size: 14px; color: var(--ink); margin: 0 0 6px; line-height: 1.45; }
.gcf-ff-card__fineprint p { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 0 0 6px; }

/* focus */
.gcf-ff :focus-visible, .gcf-ff-modal :focus-visible, .gcf-ff-approve :focus-visible { outline: 3px solid var(--gcf-ff-accent); outline-offset: 2px; }

/* launch + float buttons */
.gcf-ff-launch, .gcf-ff-float {
	appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
	font-weight: 800; font-size: 16px; color: #fff; background: var(--gcf-ff-accent);
	border: none; border-radius: 12px; padding: 15px 26px;
	transition: filter .15s ease, transform .12s ease;
}
.gcf-ff-launch:hover, .gcf-ff-float:hover { filter: brightness(.96); transform: translateY(-1px); }
.gcf-ff-wc { margin-left: 10px; vertical-align: middle; }
.gcf-ff-wc-loop { margin: 8px 0 0; display: inline-block; }
.gcf-ff-float { position: fixed; right: 18px; bottom: 18px; z-index: 2147483630; border-radius: 99px; padding: 14px 22px; font-size: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

@keyframes gcf-ff-wiggle {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(-5deg); }
	40% { transform: rotate(4deg); }
	60% { transform: rotate(-3deg); }
	80% { transform: rotate(2deg); }
}
.gcf-ff-float.is-wiggling { animation: gcf-ff-wiggle .7s ease both; }

/* ---- finder modal ---- */
.gcf-ff-lock { overflow: hidden; }
.gcf-ff-modal { position: fixed; inset: 0; z-index: 2147483646; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.gcf-ff-modal[hidden] { display: none; }
.gcf-ff-modal__overlay { position: fixed; inset: 0; background: rgba(12,16,24,.55); backdrop-filter: blur(2px); animation: gcf-ff-fade .2s ease both; }
@keyframes gcf-ff-fade { from { opacity: 0; } to { opacity: 1; } }
.gcf-ff-modal__dialog { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 620px; margin: auto; padding: 30px 26px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: gcf-ff-pop .26s cubic-bezier(.2,.7,.3,1) both; }
@keyframes gcf-ff-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.gcf-ff-modal__close { appearance: none; -webkit-appearance: none; cursor: pointer; position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: none; background: #f5f7fb; color: #14181f; border-radius: 50%; font-size: 24px; line-height: 1; z-index: 2; }
.gcf-ff-modal__close:hover { background: #e9edf5; }

/* ---- approval prompt ---- */
.gcf-ff-approve { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.gcf-ff-approve[hidden] { display: none; }
.gcf-ff-approve__overlay { position: fixed; inset: 0; background: rgba(12,16,24,.55); backdrop-filter: blur(2px); animation: gcf-ff-fade .2s ease both; }
.gcf-ff-approve__card { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 420px; padding: 30px 26px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: gcf-ff-pop .26s cubic-bezier(.2,.7,.3,1) both; }
.gcf-ff-approve__x { appearance: none; -webkit-appearance: none; cursor: pointer; position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: none; background: #f5f7fb; color: #14181f; border-radius: 50%; font-size: 22px; line-height: 1; }
.gcf-ff-approve__title { font-size: 20px; font-weight: 800; color: #14181f; margin: 4px 0 18px; line-height: 1.25; }
.gcf-ff-approve__btns { display: flex; flex-direction: column; gap: 10px; }
.gcf-ff-approve__yes, .gcf-ff-approve__no, .gcf-ff-approve__shop, .gcf-ff-approve__retry { appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; border-radius: 12px; padding: 14px 20px; border: none; text-decoration: none; display: block; }
.gcf-ff-approve__yes, .gcf-ff-approve__shop { background: var(--gcf-ff-accent); color: #fff; }
.gcf-ff-approve__retry { background: var(--gcf-ff-orange); color: #fff; }
.gcf-ff-approve__no { background: #fff; color: #14181f; border: 1.5px solid var(--line, #e4e8ef); }
.gcf-ff-approve__yes:hover, .gcf-ff-approve__shop:hover, .gcf-ff-approve__retry:hover { filter: brightness(.95); }
.gcf-ff-approve__no:hover { border-color: #c7cdd8; }
.gcf-ff-approve__check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--gcf-ff-accent); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }

/* small screens */
@media (max-width: 480px) {
	.gcf-ff-modal { padding: 0; align-items: stretch; }
	.gcf-ff-modal__dialog { border-radius: 0; min-height: 100%; padding: 56px 18px 28px; }
	.gcf-ff-card__actions { flex-direction: column; align-items: stretch; }
	.gcf-ff-card__toggle { text-align: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
	.gcf-ff__step, .gcf-ff-modal__overlay, .gcf-ff-modal__dialog, .gcf-ff-approve__overlay, .gcf-ff-approve__card, .gcf-ff__progress-bar, .gcf-ff-float.is-wiggling { animation: none; transition: none; }
	.gcf-ff__choice:hover, .gcf-ff-card__apply:hover { transform: none; }
}
