/* TGCC Bill Calculator 1.0.0. Styled to match the TGCC map pages (wind constraint map, solar farm map, UK Grid Live). */
.tgcc-bill {
	--tb-bg: #0b0814;
	--tb-panel: #150e1f;
	--tb-panel2: #1d1430;
	--tb-lav: #A5B4FC;
	--tb-lilac: #c79bff;
	--tb-purple: #8e43f0;
	--tb-muted: #b4abc6;
	--tb-red: #F2665A;
	--tb-gold: #F5A524;
	--tb-green: #3DDC84;
	--tb-sky: #5ec8ff;
	--tb-line: rgba(165, 180, 252, .22);
	background: var(--tb-bg);
	color: #fff;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	border-radius: 18px;
	padding: clamp(18px, 3vw, 40px);
	box-sizing: border-box;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
}
.tgcc-bill *, .tgcc-bill *::before, .tgcc-bill *::after { box-sizing: border-box; }
.tgcc-bill p { margin: 0; }
.tgcc-bill a { color: var(--tb-lav); }
.tgcc-bill a:hover { color: #fff; }
.tgcc-bill [hidden] { display: none !important; }

.tgcc-bill__head { text-align: center; max-width: 920px; margin: 0 auto 22px; }
.tgcc-bill__eyebrow { color: var(--tb-lav); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px !important; }
.tgcc-bill .tgcc-bill__title { color: #fff; font-family: inherit; font-weight: 800; font-size: clamp(30px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 12px; text-transform: none; }
.tgcc-bill__sub { color: var(--tb-muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 760px; margin: 0 auto !important; }

/* Headline stat cards (same as the map pages) */
.tgcc-bill__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto 10px; max-width: 1100px; }
.tgcc-bill__card { background: var(--tb-panel); border: 1px solid var(--tb-line); border-radius: 14px; padding: 18px 20px; text-align: center; box-shadow: 0 0 24px rgba(142, 67, 240, .12); }
.tgcc-bill__card-label { color: var(--tb-lav); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tgcc-bill__card-num { color: #fff; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.15; margin: 4px 0 2px !important; font-variant-numeric: tabular-nums; }
.tgcc-bill__card-sub { color: var(--tb-muted); font-size: 15px; font-weight: 600; }
.tgcc-bill__card--hl { border-color: rgba(142, 67, 240, .7); box-shadow: 0 0 26px rgba(142, 67, 240, .25); }
.tgcc-bill__card--levy { border-color: rgba(242, 102, 90, .6); box-shadow: 0 0 26px rgba(242, 102, 90, .16); }
.tgcc-bill__card--levy .tgcc-bill__card-label { color: #ff8f85; }
.tgcc-bill__updated { text-align: center; color: var(--tb-muted); font-size: 13px; font-weight: 600; margin: 0 auto 18px !important; }

/* Tool panel */
.tgcc-bill__tool, .tgcc-bill__levies, .tgcc-bill__facts { max-width: 1100px; margin: 26px auto 0; }
.tgcc-bill__tool { background: var(--tb-panel); border: 1px solid var(--tb-line); border-radius: 14px; padding: 20px 22px; }
.tgcc-bill .tgcc-bill__h2 { color: #fff; font-family: inherit; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; margin: 0 0 14px; text-transform: none; letter-spacing: 0; }
.tgcc-bill__form { display: grid; gap: 14px; margin-bottom: 18px; }
.tgcc-bill__seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tgcc-bill__seg legend { width: 100%; padding: 0; margin: 0 0 6px; color: var(--tb-lav); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; float: left; }
.tgcc-bill__chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.tgcc-bill__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tgcc-bill__chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, .35); background: var(--tb-bg); color: #e9e4f5; font-size: 14px; font-weight: 700; line-height: 1.2; transition: background .15s, border-color .15s; }
.tgcc-bill__chip:hover span { border-color: var(--tb-lav); }
.tgcc-bill__chip input:checked + span { background: var(--tb-lav); border-color: var(--tb-lav); color: #140c24; }
.tgcc-bill__chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.tgcc-bill__row { display: flex; flex-wrap: wrap; gap: 12px; }
.tgcc-bill__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; margin: 0; }
.tgcc-bill__field span { color: var(--tb-lav); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tgcc-bill .tgcc-bill__field input, .tgcc-bill .tgcc-bill__field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(165, 180, 252, .4); background: var(--tb-bg); color: #fff; font: 700 17px/1.2 inherit; font-family: inherit; font-variant-numeric: tabular-nums; box-shadow: none; }
.tgcc-bill .tgcc-bill__field select option { background: var(--tb-panel); color: #fff; }
.tgcc-bill .tgcc-bill__field input:focus-visible, .tgcc-bill .tgcc-bill__field select:focus-visible { outline: 3px solid var(--tb-lav); outline-offset: 1px; border-color: var(--tb-lav); }
.tgcc-bill__hint { color: var(--tb-muted); font-size: 13px; margin-top: 8px !important; }
.tgcc-bill__warn { color: var(--tb-lav); font-size: 14px; font-weight: 600; }
.tgcc-bill__warn.is-alert { color: #ffb4ac; }

/* Result: donut + table */
.tgcc-bill__result { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 26px; align-items: start; }
.tgcc-bill__chart { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1; }
.tgcc-bill__donut { width: 100%; height: 100%; display: block; }
.tgcc-bill__donut circle { fill: none; stroke-width: 30; transition: stroke-dasharray .35s ease, stroke-dashoffset .35s ease; }
.tgcc-bill__donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.tgcc-bill__donut-mid span { font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; }
.tgcc-bill__donut-mid small { color: var(--tb-muted); font-size: 13px; font-weight: 600; }
.tgcc-bill__tablewrap { min-width: 0; }
.tgcc-bill__table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; background: transparent; }
.tgcc-bill__table caption { caption-side: top; text-align: left; color: var(--tb-muted); font-size: 13px; font-weight: 600; padding: 0 0 8px; }
.tgcc-bill__table th, .tgcc-bill__table td { padding: 9px 8px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); background: transparent; color: #fff; text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tgcc-bill__table thead th { color: var(--tb-lav); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tgcc-bill__table th:first-child { text-align: left; }
.tgcc-bill__table tbody th { font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.tgcc-bill__table tbody th small { display: block; color: var(--tb-muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.tgcc-bill__table td[data-v="year"] { font-weight: 800; }
.tgcc-bill__table tr.is-levy th > span { color: #ffb4ac; }
.tgcc-bill__table tr.is-levy td { color: #ffd2cd; }
.tgcc-bill__table tfoot th, .tgcc-bill__table tfoot td { font-weight: 800; font-size: 16px; border-bottom: 0; border-top: 2px solid var(--tb-line); }
.tgcc-bill__sw { flex: none; width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; display: inline-block; }
.tgcc-bill__sw--wholesale { background: #8e43f0; }
.tgcc-bill__sw--network { background: #5ec8ff; }
.tgcc-bill__sw--operating { background: #A5B4FC; }
.tgcc-bill__sw--policy { background: #F2665A; }
.tgcc-bill__sw--capacity { background: #ff9d6b; }
.tgcc-bill__sw--cfd { background: #F5A524; }
.tgcc-bill__sw--profit { background: #3DDC84; }
.tgcc-bill__sw--levelisation { background: #6f6687; }
.tgcc-bill__sw--vat { background: #e7d7ff; }
.tgcc-bill__note { color: var(--tb-muted); font-size: 13px; margin-top: 10px !important; }

/* Fact and levy cards */
.tgcc-bill__lead { color: #e9e4f5; font-size: 16px; line-height: 1.6; max-width: 820px; margin: 0 0 16px !important; }
.tgcc-bill__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tgcc-bill__fact { background: var(--tb-panel); border: 1px solid var(--tb-line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tgcc-bill__fact--levy { border-color: rgba(242, 102, 90, .35); }
.tgcc-bill__fact-num { color: #fff; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tgcc-bill__fact--levy .tgcc-bill__fact-num { color: #ffb4ac; }
.tgcc-bill .tgcc-bill__fact-title { color: var(--tb-lav); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; line-height: 1.3; }
.tgcc-bill__fact-text { color: #e9e4f5; font-size: 15px; line-height: 1.55; flex: 1; }
.tgcc-bill__fact-src { color: var(--tb-muted); font-size: 12.5px; }

/* Sources, share, continue */
.tgcc-bill__sources { max-width: 1100px; margin: 26px auto 0; color: var(--tb-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.tgcc-bill__sources p + p { margin-top: 8px !important; }
.tgcc-bill__share { margin-top: 26px; text-align: center; }
.tgcc-bill__share-label { font-weight: 700; font-size: 15px; margin-bottom: 10px !important; }
.tgcc-bill__share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tgcc-bill .tgcc-bill__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; color: #fff; text-decoration: none; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tgcc-bill .tgcc-bill__btn:hover { filter: brightness(1.12); color: #fff; }
.tgcc-bill .tgcc-bill__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tgcc-bill .tgcc-bill__btn--facebook { background: #1559c4; }
.tgcc-bill .tgcc-bill__btn--x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.tgcc-bill .tgcc-bill__btn--whatsapp { background: #0f7a3d; }
.tgcc-bill .tgcc-bill__btn--email, .tgcc-bill .tgcc-bill__btn--link { background: #6b2fd0; }
.tgcc-bill__continue { text-align: center; font-weight: 700; font-size: 16px; margin-top: 22px !important; }
.tgcc-bill .tgcc-bill__continue a { color: #fff; text-decoration-color: var(--tb-purple); }

@media (max-width: 1000px) {
	.tgcc-bill__cards { grid-template-columns: repeat(2, 1fr); }
	.tgcc-bill__grid { grid-template-columns: repeat(2, 1fr); }
	.tgcc-bill__result { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.tgcc-bill { border-radius: 0; padding: 22px 14px 26px; }
	.tgcc-bill__cards { grid-template-columns: 1fr; gap: 10px; }
	.tgcc-bill__card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label num" "sub num"; align-items: center; column-gap: 10px; text-align: left; padding: 14px 16px; }
	.tgcc-bill__card-label { grid-area: label; }
	.tgcc-bill__card-sub { grid-area: sub; font-size: 13px; }
	.tgcc-bill__card-num { grid-area: num; margin: 0 !important; font-size: 30px; }
	.tgcc-bill__tool { padding: 16px 12px; }
	.tgcc-bill__grid { grid-template-columns: 1fr; gap: 10px; }
	.tgcc-bill__chip span { font-size: 13px; padding: 8px 12px; }
	.tgcc-bill__chart { max-width: 230px; }
	.tgcc-bill__table { font-size: 14px; }
	.tgcc-bill__table th, .tgcc-bill__table td { padding: 8px 4px; }
	.tgcc-bill__table thead th:nth-child(3), .tgcc-bill__table td[data-v="month"], .tgcc-bill__table tfoot td:nth-child(3) { display: none; }
	.tgcc-bill__table tbody th small { font-size: 12px; }
	.tgcc-bill .tgcc-bill__btn { padding: 10px 14px; }
	.tgcc-bill .tgcc-bill__btn span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tgcc-bill__donut circle { transition: none; } }
