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

.tfsc-widget {
	--tfsc-accent: #dc2626;
	--tfsc-accent-dark: #b91c1c;
	--tfsc-green: #dc2626;
	--tfsc-grey: #9ca3af;
	--tfsc-bg-soft: #F3F4ED;
	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: 14px;
	line-height: 1.4;
}
.tfsc-widget *, .tfsc-widget *::before, .tfsc-widget *::after { box-sizing: border-box; font-family: inherit; }

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

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

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

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

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

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

.tfsc-widget .tfsc-label { display: block; font-weight: 600; font-size: 14px; color: #374151 !important; margin: 10px 0 6px; }

.tfsc-widget .tfsc-choice-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.tfsc-widget .tfsc-choice {
	flex: 1 1 calc(50% - 6px); min-width: 110px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 10px; text-align: center;
	cursor: pointer; position: relative; font-size: 13px; font-weight: 600; color: #6b7280 !important; transition: 0.15s;
}
.tfsc-widget .tfsc-choice.active { border-color: var(--tfsc-accent) !important; background: #fdeceb; color: var(--tfsc-accent) !important; box-shadow: inset 0 0 0 1px var(--tfsc-accent); }

.tfsc-widget .tfsc-counter { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.tfsc-widget .tfsc-counter-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; font-size: 17px; cursor: pointer; color: #374151 !important; font-family: inherit; }

.tfsc-widget .tfsc-select, .tfsc-widget .tfsc-input {
	display: block !important; box-sizing: border-box !important;
	width: 100% !important; height: auto !important; min-height: 54px !important;
	padding: 15px 40px 15px 14px !important; border: 1px solid #e5e7eb !important; border-radius: 10px !important;
	font-size: 16px !important; line-height: 1.3 !important; margin-bottom: 12px; color: #111827 !important;
	font-family: inherit; background-color: #ffffff !important;
}
.tfsc-widget .tfsc-input { padding: 15px 14px !important; }
.tfsc-widget .tfsc-select {
	-webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px !important;
}
.tfsc-widget .tfsc-select option { color: #111827 !important; background: #ffffff !important; }
.tfsc-widget .tfsc-hint { font-size: 11px; color: #9ca3af !important; margin: -4px 0 8px; }

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

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

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

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

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

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

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

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

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

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