.jfc-wrap {
	--jfc-navy: #0f2a4a;
	--jfc-navy-deep: #0a1f38;
	--jfc-border: #d8dde3;
	--jfc-border-strong: #b9c2cc;
	--jfc-bg: #ffffff;
	--jfc-bg-soft: #f6f8fa;
	--jfc-text: #1a1f2c;
	--jfc-muted: #5a6877;
	--jfc-focus: #0f2a4a;
	--jfc-radius: 8px;
	--jfc-radius-pill: 999px;

	font-family: inherit;
	max-width: 560px;
	margin: 0 auto;
	color: var(--jfc-text);
	box-sizing: border-box;
}
.jfc-wrap *, .jfc-wrap *:before, .jfc-wrap *:after { box-sizing: border-box; }

.jfc-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--jfc-navy);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.jfc-calc {
	background: var(--jfc-bg);
	border: 1px solid var(--jfc-border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15, 42, 74, 0.04), 0 4px 16px rgba(15, 42, 74, 0.05);
}

.jfc-calc .jfc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 16px;
}
.jfc-calc .jfc-row:last-of-type { margin-bottom: 0; }

.jfc-calc label {
	flex: 1 1 200px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jfc-muted);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.jfc-calc label.jfc-helper-wrap {
	flex: 0 0 150px;
	text-transform: none;
	font-size: 0.72rem;
	letter-spacing: 0;
	font-weight: 500;
}

.jfc-calc input,
.jfc-calc select {
	width: 100%;
	padding: 11px 14px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--jfc-text);
	background: var(--jfc-bg);
	border: 1px solid var(--jfc-border-strong);
	border-radius: var(--jfc-radius);
	line-height: 1.3;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.jfc-calc select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%230f2a4a' d='M0 0l5 6 5-6z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.jfc-calc input:focus,
.jfc-calc select:focus {
	outline: none;
	border-color: var(--jfc-focus);
	box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.12);
}

.jfc-calc .jfc-hint {
	flex-basis: 100%;
	font-size: 0.78rem;
	color: var(--jfc-muted);
	margin-top: -6px;
}

.jfc-calc .jfc-results {
	margin-top: 22px;
	padding: 18px 20px;
	background: var(--jfc-navy);
	color: #fff;
	border-radius: var(--jfc-radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.jfc-calc .jfc-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	font-size: 0.95rem;
}
.jfc-calc .jfc-label {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.jfc-calc .jfc-result-row strong {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}
.jfc-calc .jfc-unit {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
	margin-left: 2px;
}

@media (max-width: 480px) {
	.jfc-calc { padding: 18px; }
	.jfc-calc label.jfc-helper-wrap { flex-basis: 100%; }
	.jfc-calc .jfc-result-row { flex-direction: column; gap: 2px; }
	.jfc-calc .jfc-label { font-size: 0.72rem; }
	.jfc-title { font-size: 1.4rem; }
}

/* ---- Left-side support content layout (v1.2.0) ---- */
.jfc-wrap.jfc-has-support { max-width: 1120px; }
.jfc-layout { display: flex; gap: 32px; align-items: flex-start; }
.jfc-layout > .jfc-support,
.jfc-layout > .jfc-calc-col { flex: 1 1 0; min-width: 0; }
.jfc-support { font-size: 0.95rem; line-height: 1.6; color: var(--jfc-text); }
.jfc-support > :first-child { margin-top: 0; }
.jfc-support > :last-child { margin-bottom: 0; }
@media (max-width: 782px) { .jfc-layout { flex-direction: column; } }
