@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.tfsc-widget {
	--tfsc-red: #e02424;
	--tfsc-red-dark: #c81e1e;
	--tfsc-green: #16a34a;
	--tfsc-grey: #9ca3af;
	--tfsc-bg-soft: #fff6f6;
	max-width: var(--tfsc-max-width, 1300px);
	margin: 0 auto;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
}
.tfsc-widget *, .tfsc-widget *::before, .tfsc-widget *::after { box-sizing: border-box; font-family: inherit; }

.tfsc-header { text-align: center; margin-bottom: 14px; }
.tfsc-h2 { font-size: 30px; font-weight: 800; margin: 0 0 8px; color: #111827; }
.tfsc-h2 .tfsc-red { color: var(--tfsc-red); }
.tfsc-tagline { color: #6b7280; font-size: 15px; margin: 0 auto; max-width: 560px; }

.tfsc-tabs {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--tfsc-bg-soft); border: 1px solid #fde2e2; border-radius: 999px;
	padding: 8px 14px; max-width: 420px; margin: 12px auto; font-size: 12.5px;
}
.tfsc-tab { background: none; border: none; cursor: pointer; font-weight: 600; color: #6b7280; padding: 4px 8px; font-family: inherit; }
.tfsc-tab.active { color: var(--tfsc-red); }
.tfsc-tab-sep { color: #e5b8b8; }

.tfsc-panel#tfsc-panel-how { background: var(--tfsc-bg-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; font-size: 13px; color: #4b5563; }

.tfsc-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
	background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 50px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
@media (max-width: 640px) { .tfsc-grid { grid-template-columns: 1fr; } }

.tfsc-step-title { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: #111827; }
.tfsc-step-sub { margin: 0 0 12px; color: #9ca3af; font-size: 13px; }

.tfsc-stepper { display: flex; align-items: center; margin-bottom: 16px; }
.tfsc-step-node { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #9ca3af; }
.tfsc-step-node span {
	width: 22px; height: 22px; border-radius: 50%; background: #f3f4f6; color: #9ca3af;
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; border: 1px solid #e5e7eb;
}
.tfsc-step-node.active span { background: var(--tfsc-red); color: #fff; border-color: var(--tfsc-red); }
.tfsc-step-node.active { color: var(--tfsc-red); font-weight: 700; }
.tfsc-step-node.done span { background: var(--tfsc-red); color: #fff; border-color: var(--tfsc-red); }
.tfsc-step-line { flex: 1; height: 1px; background: #e5e7eb; margin: 0 4px 14px; }

.tfsc-label { display: block; font-weight: 600; font-size: 15px; color: #374151; margin: 12px 0 8px; }

.tfsc-choice-row { display: flex; gap: 14px; margin-bottom: 8px; }
.tfsc-choice {
	flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 28px 12px; text-align: center;
	cursor: pointer; position: relative; font-size: 14px; font-weight: 600; color: #6b7280; transition: 0.15s;
}
.tfsc-choice.active { border-color: var(--tfsc-red); background: #fff5f5; color: var(--tfsc-red); box-shadow: inset 0 0 0 1px var(--tfsc-red); }

.tfsc-counter { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 18px; font-weight: 700; font-size: 15px; }
.tfsc-counter-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; font-size: 19px; cursor: pointer; color: #374151; font-family: inherit; }

.tfsc-select, .tfsc-input {
	width: 100%; padding: 22px 18px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 17px; margin-bottom: 14px; color: #111827; font-family: inherit;
}
.tfsc-select { background-color: #f3f4f6; }
.tfsc-hint { font-size: 12.5px; color: #9ca3af; margin: -4px 0 8px; }

.tfsc-slider { width: 100%; accent-color: var(--tfsc-red); margin-top: 4px; }
.tfsc-slider-value { text-align: center; font-weight: 700; font-size: 13px; color: var(--tfsc-red); margin: 6px 0 4px; }

.tfsc-btn-next, .tfsc-btn-back {
	border: none; border-radius: 10px; padding: 20px 20px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; font-family: inherit;
}
.tfsc-btn-next { background: linear-gradient(90deg, var(--tfsc-red), var(--tfsc-red-dark)); color: #fff; margin-top: 6px; }
.tfsc-btn-back { background: #f3f4f6; color: #374151; }
.tfsc-btn-row { display: flex; gap: 8px; margin-top: 6px; }
.tfsc-btn-row .tfsc-btn-next, .tfsc-btn-row .tfsc-btn-back { margin-top: 0; width: auto; flex: 1; }

.tfsc-done-title { font-size: 19px; font-weight: 800; color: #111827; margin: 4px 0 6px; }
.tfsc-done-text { font-size: 12.5px; color: #6b7280; margin: 0 0 6px; }

.tfsc-msg { font-size: 12px; color: var(--tfsc-green); font-weight: 600; margin-top: 8px; min-height: 14px; }
.tfsc-msg.error { color: var(--tfsc-red); }

.tfsc-right { background: linear-gradient(180deg, #fff6f6, #ffffff); border-radius: 12px; padding: 30px; }
.tfsc-results-title { margin: 0; font-size: 19px; font-weight: 800; color: #111827; }
.tfsc-results-sub { margin: 0 0 10px; font-size: 11px; color: #9ca3af; }

.tfsc-result-cards { display: flex; gap: 14px; margin-bottom: 14px; }
.tfsc-result-card { flex: 1; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 18px; display: flex; gap: 10px; align-items: center; }
.tfsc-result-icon { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.tfsc-result-icon.green { background: var(--tfsc-green); }
.tfsc-result-icon.red { background: var(--tfsc-red); }
.tfsc-result-label { font-size: 10.5px; color: #6b7280; }
.tfsc-result-value { font-size: 15px; font-weight: 800; }
.tfsc-result-value.green { color: var(--tfsc-green); }
.tfsc-result-value.red { color: var(--tfsc-red); }

.tfsc-co2-banner { display: flex; gap: 10px; align-items: flex-start; background: #f0fdf4; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }

.tfsc-compare-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tfsc-compare-head h4 { margin: 0; font-size: 13px; font-weight: 700; color: #111827; }
.tfsc-legend { display: flex; gap: 10px; font-size: 10px; color: #6b7280; }
.tfsc-legend span { display: flex; align-items: center; gap: 4px; }
.tfsc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tfsc-dot.grey { background: #d1d5db; }
.tfsc-dot.green { background: var(--tfsc-green); }

.tfsc-compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tfsc-compare-label { font-size: 10.5px; color: #6b7280; margin-bottom: 4px; font-weight: 600; }
.tfsc-pill { border-radius: 6px; text-align: center; font-size: 11px; font-weight: 700; padding: 4px 6px; margin-bottom: 4px; }
.tfsc-pill.grey { background: #f3f4f6; color: #9ca3af; }
.tfsc-pill.green { background: var(--tfsc-green); color: #fff; }

.tfsc-badges {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px;
}
@media (max-width: 640px) { .tfsc-badges { grid-template-columns: repeat(2, 1fr); } }
.tfsc-badge {
	background: var(--tfsc-bg-soft); border-radius: 10px; padding: 16px 10px; text-align: center; font-size: 10.5px;
}
.tfsc-badge strong { display: block; font-size: 11px; color: #111827; }
.tfsc-badge small { color: #9ca3af; }
