.fvcf-calculator {
	--fvcf-navy: #0b1526;
	--fvcf-panel: #142238;
	--fvcf-panel-hover: #1b2c47;
	--fvcf-border: #223452;
	--fvcf-text-soft: #7c8aa6;
	--fvcf-teal: #2dd4bf;
	--fvcf-teal-deep: #26b3a1;

	max-width: 520px;
	margin: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.fvcf-calculator *,
.fvcf-calculator *::before,
.fvcf-calculator *::after {
	box-sizing: inherit;
}

.fvcf-panel {
	background: var(--fvcf-navy);
	border: 1px solid var(--fvcf-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fvcf-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--fvcf-border);
}

.fvcf-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 26px;
	border-radius: 8px;
	border: 1.5px solid var(--fvcf-teal);
	color: var(--fvcf-teal);
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.fvcf-heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.fvcf-body {
	padding: 20px 22px 22px;
}

.fvcf-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fvcf-text-soft);
	margin-bottom: 8px;
}

.fvcf-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	font-variant-numeric: tabular-nums;
	border: none;
	background: #ffffff;
	border-radius: 10px;
	color: var(--fvcf-navy);
	transition: box-shadow 0.15s ease;
}

.fvcf-input::placeholder {
	color: #9aa4b5;
}

.fvcf-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.45);
}

.fvcf-field-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--fvcf-text-soft);
	line-height: 1.5;
}

.fvcf-field-row {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.fvcf-field {
	flex: 1;
	min-width: 0;
}

.fvcf-example-note {
	margin: 12px 0 0;
	font-size: 11.5px;
	font-style: italic;
	color: var(--fvcf-teal);
}

.fvcf-button-row {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.fvcf-btn {
	flex: 1;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.fvcf-btn-primary {
	background: var(--fvcf-teal);
	color: #06231f;
}

.fvcf-btn-primary:hover {
	background: var(--fvcf-teal-deep);
}

.fvcf-btn-ghost {
	background: var(--fvcf-panel);
	color: #ffffff;
	border: 1px solid var(--fvcf-border);
}

.fvcf-btn-ghost:hover {
	background: var(--fvcf-panel-hover);
}

.fvcf-btn:active {
	transform: translateY(1px);
}

.fvcf-btn:focus-visible {
	outline: 2px solid var(--fvcf-teal);
	outline-offset: 2px;
}

.fvcf-error {
	min-height: 16px;
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #ff9d8a;
}

/* Results */
.fvcf-results:not(.has-result) {
	display: none;
}

.fvcf-answer-box {
	text-align: center;
	margin-top: 22px;
	padding: 16px;
	background: var(--fvcf-panel);
	border: 1px solid var(--fvcf-border);
	border-radius: 12px;
}

.fvcf-answer-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fvcf-text-soft);
	margin-bottom: 8px;
}

.fvcf-answer-value {
	display: block;
	font-size: 28px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	color: var(--fvcf-teal);
}

/* Breakdown table */
.fvcf-breakdown-wrap {
	margin-top: 18px;
	overflow-x: auto;
	border: 1px solid var(--fvcf-border);
	border-radius: 12px;
}

.fvcf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	white-space: nowrap;
}

.fvcf-table thead th {
	background: var(--fvcf-panel);
	color: var(--fvcf-teal);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 9px 12px;
	text-align: right;
	border-bottom: 1px solid var(--fvcf-border);
}

.fvcf-table thead th:first-child {
	text-align: left;
}

.fvcf-table tbody td {
	padding: 8px 12px;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	text-align: right;
	border-bottom: 1px solid var(--fvcf-border);
}

.fvcf-table tbody td:first-child {
	text-align: left;
	color: var(--fvcf-teal);
	font-weight: 700;
}

.fvcf-table tbody tr:last-child td {
	border-bottom: none;
}

.fvcf-table tbody tr:nth-child(even) {
	background: var(--fvcf-panel);
}

/* Solution */
.fvcf-solution {
	margin-top: 22px;
}

.fvcf-section-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--fvcf-text-soft);
}

.fvcf-step {
	margin-bottom: 12px;
}

.fvcf-step:last-child {
	margin-bottom: 0;
}

.fvcf-step p {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--fvcf-text-soft);
	line-height: 1.5;
}

.fvcf-formula {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #ffffff !important;
	background: var(--fvcf-panel);
	border: 1px solid var(--fvcf-border);
	padding: 8px 12px;
	border-radius: 8px;
	display: inline-block;
	word-break: break-word;
	line-height: 1.7;
}

.fvcf-formula strong {
	color: var(--fvcf-teal);
}

@media (max-width: 420px) {
	.fvcf-field-row {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fvcf-btn {
		transition: none;
	}
}
