.ffc-preview-page {
	min-height: 70vh;
	padding: clamp(24px, 5vw, 72px) 18px;
	background: var(--ffc-page, #f4faf8);
}

.ffc-calculator {
	--ffc-ink: #102f3d;
	--ffc-muted: #58717c;
	--ffc-brand: #087f6d;
	--ffc-brand-strong: #05695b;
	--ffc-mint: #dff5ef;
	--ffc-mint-strong: #c9eee5;
	--ffc-card: #ffffff;
	--ffc-soft: #f3f8f7;
	--ffc-line: #829793;
	--ffc-danger: #a63838;
	--ffc-danger-bg: #fff2f0;
	--ffc-focus: #22bca4;
	--ffc-shadow: 0 24px 70px rgba(16, 66, 64, 0.12);
	width: min(1180px, 100%);
	margin-inline: auto;
	color: var(--ffc-ink);
	font-family: inherit;
	line-height: 1.75;
	box-sizing: border-box;
}

.ffc-calculator *,
.ffc-calculator *::before,
.ffc-calculator *::after {
	box-sizing: border-box;
}

.ffc-calculator [hidden] {
	display: none !important;
}

.ffc-noscript {
	margin: 0 0 18px;
	padding: 13px 16px;
	border: 1px solid var(--ffc-danger);
	border-radius: 13px;
	background: var(--ffc-danger-bg);
	color: var(--ffc-danger);
}

.ffc-hero {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(460px, 560px) minmax(220px, 1fr);
	align-items: flex-end;
	gap: 28px;
	margin-bottom: 26px;
}

.ffc-hero__copy {
	grid-column: 2;
	text-align: center;
}

.ffc-hero__copy .ffc-kicker {
	justify-content: center;
}

.ffc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ffc-brand);
	font-size: 0.88rem;
	font-weight: 800;
}

.ffc-kicker::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.ffc-calculator .ffc-hero h1,
.ffc-calculator .ffc-section-heading h2 {
	margin: 6px 0 8px;
	color: var(--ffc-ink);
	font-size: clamp(2rem, 4.4vw, 3.7rem);
	line-height: 1.2;
	letter-spacing: -0.035em;
}

.ffc-hero__copy > p,
.ffc-section-heading > p {
	margin: 0;
	color: var(--ffc-muted);
	font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.ffc-privacy-note {
	display: flex;
	grid-column: 3;
	grid-row: 1;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	max-width: 330px;
	padding: 13px 15px;
	border: 1px solid var(--ffc-line);
	border-radius: 16px;
	background: var(--ffc-card);
	color: var(--ffc-muted);
	box-shadow: 0 10px 30px rgba(16, 66, 64, 0.07);
	font-size: 0.82rem;
}

.ffc-privacy-note svg {
	width: 27px;
	height: 27px;
	flex: 0 0 auto;
	fill: var(--ffc-brand);
}

.ffc-privacy-note span,
.ffc-privacy-note strong {
	display: block;
}

.ffc-privacy-note strong {
	color: var(--ffc-ink);
}

.ffc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
	gap: 20px;
	align-items: stretch;
}

.ffc-form,
.ffc-results,
.ffc-guide {
	border: 1px solid var(--ffc-line);
	background: var(--ffc-card);
	box-shadow: var(--ffc-shadow);
}

.ffc-form {
	padding: clamp(20px, 3.2vw, 38px);
	border-radius: 28px;
}

.ffc-methods {
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.ffc-methods legend {
	width: 100%;
	margin-bottom: 12px;
	color: var(--ffc-ink);
	font-weight: 850;
}

.ffc-methods__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
	padding: 6px;
	border: 1px solid var(--ffc-line);
	border-radius: 18px;
	background: var(--ffc-soft);
}

.ffc-method {
	position: relative;
	cursor: pointer;
}

.ffc-method input {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.ffc-method span {
	display: flex;
	min-height: 98px;
	padding: 15px 12px;
	border: 1px solid transparent;
	border-radius: 13px;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ffc-method b {
	color: var(--ffc-ink);
	font-size: 0.93rem;
}

.ffc-method small {
	margin-top: 5px;
	color: var(--ffc-muted);
	font-size: 0.74rem;
	line-height: 1.5;
}

.ffc-method input:checked + span {
	border-color: var(--ffc-brand);
	background: var(--ffc-card);
	box-shadow: 0 8px 22px rgba(8, 127, 109, 0.12);
}

.ffc-method input:focus-visible + span {
	outline: 3px solid var(--ffc-focus);
	outline-offset: 2px;
}

.ffc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ffc-known-fields {
	display: contents;
}

.ffc-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	color: var(--ffc-ink);
	font-weight: 750;
}

.ffc-dual-labels {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 118px;
	gap: 0;
	color: var(--ffc-ink);
	font-weight: 750;
}

.ffc-dual-labels label:last-child {
	padding-inline-start: 10px;
}

.ffc-field > small {
	color: var(--ffc-muted);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.55;
}

.ffc-calculator input,
.ffc-calculator select,
.ffc-calculator button {
	font: inherit;
}

.ffc-calculator .ffc-field input,
.ffc-calculator .ffc-field select {
	width: 100%;
	min-height: 52px;
	padding: 11px 14px;
	border: 1px solid var(--ffc-line);
	border-radius: 13px;
	outline: 0;
	background: var(--ffc-card);
	color: var(--ffc-ink);
	font-weight: 700;
}

.ffc-calculator .ffc-field input:focus,
.ffc-calculator .ffc-field select:focus {
	border-color: var(--ffc-brand);
	box-shadow: 0 0 0 3px rgba(34, 188, 164, 0.24);
}

.ffc-calculator .ffc-field input[aria-invalid="true"],
.ffc-calculator .ffc-field select[aria-invalid="true"] {
	border-color: var(--ffc-danger);
	box-shadow: 0 0 0 3px rgba(166, 56, 56, 0.16);
}

.ffc-money-input,
.ffc-suffix-input {
	display: flex;
	align-items: stretch;
}

.ffc-money-input input {
	border-radius: 0 13px 13px 0;
	direction: rtl;
}

.ffc-money-input select {
	width: 118px;
	flex: 0 0 118px;
	border-right: 0;
	border-radius: 13px 0 0 13px;
	font-size: 0.87rem;
}

.ffc-suffix-input input {
	border-radius: 0 13px 13px 0;
}

.ffc-suffix-input > span {
	display: grid;
	width: 54px;
	place-items: center;
	border: 1px solid var(--ffc-line);
	border-right: 0;
	border-radius: 13px 0 0 13px;
	background: var(--ffc-soft);
	color: var(--ffc-brand);
	font-weight: 900;
}

.ffc-errors {
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px solid var(--ffc-danger);
	border-radius: 14px;
	background: var(--ffc-danger-bg);
	color: var(--ffc-danger);
}

.ffc-errors ul {
	margin: 5px 18px 0 0;
	padding: 0;
}

.ffc-actions {
	display: flex;
	gap: 10px;
	margin-top: 28px;
}

.ffc-primary,
.ffc-secondary {
	min-height: 50px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 13px;
	cursor: pointer;
	font-weight: 850;
	transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ffc-primary {
	background: var(--ffc-brand);
	color: #fff;
}

.ffc-primary:hover {
	background: var(--ffc-brand-strong);
	transform: translateY(-1px);
}

.ffc-secondary {
	border-color: var(--ffc-line);
	background: var(--ffc-soft);
	color: var(--ffc-ink);
}

.ffc-primary:focus-visible,
.ffc-secondary:focus-visible,
.ffc-guide summary:focus-visible,
.ffc-guide a:focus-visible,
.ffc-sources a:focus-visible,
.ffc-next-steps a:focus-visible {
	outline: 3px solid var(--ffc-focus);
	outline-offset: 3px;
}

.ffc-results {
	display: flex;
	padding: clamp(22px, 3.2vw, 36px);
	border-radius: 28px;
	flex-direction: column;
	background: linear-gradient(155deg, var(--ffc-mint), var(--ffc-card) 78%);
}

.ffc-results__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--ffc-line);
	color: var(--ffc-brand);
	font-weight: 850;
}

.ffc-results__head small {
	color: var(--ffc-muted);
	font-size: 0.73rem;
	text-align: left;
}

.ffc-result-main {
	padding: 27px 0 20px;
}

.ffc-result-main > span {
	display: block;
	color: var(--ffc-muted);
	font-size: 0.86rem;
}

.ffc-result-main strong {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 5px;
	color: var(--ffc-ink);
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.25;
}

.ffc-result-main bdi,
.ffc-result-list bdi {
	direction: ltr;
	unicode-bidi: isolate;
}

.ffc-result-main strong small {
	font-size: 0.95rem;
	color: var(--ffc-brand);
}

.ffc-result-list {
	margin: 0;
	padding: 0;
}

.ffc-result-list > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-top: 1px solid var(--ffc-line);
}

.ffc-result-list dt {
	color: var(--ffc-muted);
	font-size: 0.86rem;
}

.ffc-result-list dd {
	margin: 0;
	color: var(--ffc-ink);
	font-size: 0.9rem;
	font-weight: 800;
	text-align: left;
}

.ffc-rounding-note,
.ffc-result-explanation {
	margin: 15px 0 0;
	color: var(--ffc-muted);
	font-size: 0.78rem;
}

.ffc-result-explanation {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ffc-soft);
}

.ffc-disclaimer {
	margin-top: auto;
	padding-top: 20px;
	color: var(--ffc-muted);
	font-size: 0.74rem;
}

.ffc-disclaimer strong {
	color: var(--ffc-ink);
}

.ffc-next-steps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	margin-top: 18px;
}

.ffc-next-steps a {
	display: flex;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--ffc-line);
	border-radius: 12px;
	align-items: center;
	justify-content: center;
	background: var(--ffc-card);
	color: var(--ffc-ink);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

.ffc-next-steps a:hover {
	border-color: var(--ffc-brand);
	color: var(--ffc-brand);
}

.ffc-next-steps .ffc-next-steps__primary {
	border-color: var(--ffc-brand);
	background: var(--ffc-brand);
	color: #ffffff;
}

.ffc-next-steps .ffc-next-steps__primary:hover {
	background: var(--ffc-brand-strong);
	color: #ffffff;
}

.ffc-guide {
	margin-top: 24px;
	padding: clamp(24px, 4vw, 46px);
	border-radius: 28px;
}

.ffc-section-heading {
	max-width: 760px;
}

.ffc-section-heading h2 {
	font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.ffc-guide__items {
	display: grid;
	gap: 12px;
	margin-top: 27px;
}

.ffc-guide details {
	border: 1px solid var(--ffc-line);
	border-radius: 17px;
	background: var(--ffc-card);
}

.ffc-guide summary {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	cursor: pointer;
	list-style: none;
}

.ffc-guide summary::-webkit-details-marker {
	display: none;
}

.ffc-guide summary > span {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 50%;
	background: var(--ffc-mint);
	color: var(--ffc-brand);
	font-weight: 900;
}

.ffc-guide summary b {
	color: var(--ffc-ink);
}

.ffc-guide summary small {
	color: var(--ffc-muted);
}

.ffc-guide__content {
	padding: 4px 70px 22px 20px;
	border-top: 1px solid var(--ffc-line);
	color: var(--ffc-muted);
}

.ffc-guide__content p {
	margin: 14px 0 0;
}

.ffc-guide__content strong {
	color: var(--ffc-ink);
}

.ffc-guide__content a,
.ffc-sources a {
	display: inline-flex;
	margin-top: 12px;
	color: var(--ffc-brand);
	font-weight: 750;
	text-underline-offset: 4px;
}

.ffc-source-note {
	padding: 10px 13px;
	border-right: 3px solid var(--ffc-brand);
	background: var(--ffc-soft);
	font-size: 0.86rem;
}

.ffc-sources {
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid var(--ffc-line);
	border-radius: 16px;
	background: var(--ffc-soft);
	color: var(--ffc-muted);
	font-size: 0.86rem;
}

.ffc-sources strong {
	display: block;
	color: var(--ffc-ink);
	font-size: 1rem;
}

.ffc-sources p {
	margin: 5px 0 0;
}

.ffc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html[data-finaf-theme="dark"] .ffc-preview-page {
	--ffc-page: #061b23;
}

html[data-finaf-theme="dark"] .ffc-calculator {
	--ffc-ink: #edf9f6;
	--ffc-muted: #a9c1c5;
	--ffc-brand: #62dfca;
	--ffc-brand-strong: #3bcab2;
	--ffc-mint: #0d3a3c;
	--ffc-mint-strong: #124b4a;
	--ffc-card: #09252d;
	--ffc-soft: #0d3037;
	--ffc-line: #54747c;
	--ffc-danger: #ffaaa3;
	--ffc-danger-bg: #3b2024;
	--ffc-focus: #7ef0dc;
	--ffc-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
}

html[data-finaf-theme="dark"] .ffc-calculator .ffc-field input,
html[data-finaf-theme="dark"] .ffc-calculator .ffc-field select {
	border-color: var(--ffc-line) !important;
	background-color: var(--ffc-card) !important;
	color: var(--ffc-ink) !important;
}

@media (prefers-color-scheme: dark) {
	html:not([data-finaf-theme]) .ffc-preview-page {
		--ffc-page: #061b23;
	}

	html:not([data-finaf-theme]) .ffc-calculator {
		--ffc-ink: #edf9f6;
		--ffc-muted: #a9c1c5;
		--ffc-brand: #62dfca;
		--ffc-brand-strong: #3bcab2;
		--ffc-mint: #0d3a3c;
		--ffc-card: #09252d;
		--ffc-soft: #0d3037;
		--ffc-line: #54747c;
		--ffc-danger: #ffaaa3;
		--ffc-danger-bg: #3b2024;
		--ffc-focus: #7ef0dc;
		--ffc-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
	}
}

@media (max-width: 900px) {
	.ffc-layout {
		grid-template-columns: 1fr;
	}

	.ffc-results {
		min-height: 430px;
	}
}

@media (max-width: 960px) {
	.ffc-hero {
		grid-template-columns: 1fr;
		align-items: center;
		justify-items: center;
	}

	.ffc-hero__copy,
	.ffc-privacy-note {
		grid-column: 1;
	}

	.ffc-privacy-note {
		grid-row: auto;
		width: min(100%, 420px);
		max-width: 420px;
	}
}

@media (max-width: 700px) {
	.ffc-preview-page {
		padding: 24px 12px 46px;
	}

	.ffc-hero {
		align-items: stretch;
		gap: 17px;
	}

	.ffc-privacy-note {
		max-width: none;
	}

	.ffc-form,
	.ffc-results,
	.ffc-guide {
		border-radius: 21px;
	}

	.ffc-methods__grid,
	.ffc-fields {
		grid-template-columns: 1fr;
	}

	.ffc-method span {
		min-height: 75px;
		align-items: flex-start;
		text-align: right;
	}

	.ffc-actions {
		flex-direction: column;
	}

	.ffc-next-steps {
		grid-template-columns: 1fr;
	}

	.ffc-primary,
	.ffc-secondary {
		width: 100%;
	}

	.ffc-guide summary {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.ffc-guide summary small {
		grid-column: 2;
	}

	.ffc-guide__content {
		padding: 4px 18px 20px;
	}
}

@media (max-width: 390px) {
	.ffc-preview-page {
		padding-inline: 8px;
	}

	.ffc-form,
	.ffc-results,
	.ffc-guide {
		padding: 18px;
	}

	.ffc-money-input select {
		width: 102px;
		flex-basis: 102px;
		padding-inline: 8px;
	}

	.ffc-dual-labels {
		grid-template-columns: minmax(0, 1fr) 102px;
	}

	.ffc-result-main strong {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffc-calculator *,
	.ffc-calculator *::before,
	.ffc-calculator *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
