/* EV Savings Calculator */
.evc-root { --sf-accent: #FFB400; --sf-navy: #0F2A43; --sf-gen: #F5A300; --sf-use: #1F4E79; --sf-line: #DCE3EA; --sf-soft: #F5F8FB; --sf-mute: #5B6B7B; --sf-good: #1B7F4B;
	max-width: 760px; margin: 0 auto; color: var(--sf-navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; }
.evc-root *, .evc-root *::before, .evc-root *::after { box-sizing: border-box; }
.evc-root [hidden] { display: none !important; }

.evc-card { background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; box-shadow: 0 6px 24px rgba(15, 42, 67, .08); overflow: hidden; }
.evc-progress { height: 6px; background: var(--sf-soft); }
.evc-progress-bar { height: 100%; width: 0; background: var(--sf-accent); transition: width .35s ease; }
.evc-body { padding: 28px 28px 8px; }
.evc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px 28px; }

.evc-h { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.2; font-weight: 700; color: var(--sf-navy); outline: none; }
.evc-sub { margin: 0 0 22px; color: var(--sf-mute); font-size: 1rem; }
.evc-hero { margin-bottom: 10px; }
.evc-sun { display: inline-block; width: 46px; height: 46px; border-radius: 50%; background: var(--sf-accent); box-shadow: 0 0 0 8px rgba(255, 180, 0, .18), 0 0 0 16px rgba(255, 180, 0, .09); margin: 8px 0 14px 8px; }
.evc-sun-sm { width: 30px; height: 30px; box-shadow: 0 0 0 5px rgba(255, 180, 0, .18); margin: 4px 12px 0 4px; flex: none; }
.evc-res-head { display: flex; align-items: center; margin-bottom: 18px; }
.evc-res-head .evc-h { margin: 0; font-size: 1.45rem; }

.evc-field { margin: 0 0 20px; }
.evc-field > label, .evc-lbl { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 600; margin-bottom: 8px; font-size: .98rem; }
.evc-lbl { display: block; }
.evc-field output { font-weight: 700; color: var(--sf-navy); background: rgba(255, 180, 0, .25); padding: 1px 10px; border-radius: 99px; white-space: nowrap; font-size: .9rem; }
.evc-opt { font-weight: 400; color: var(--sf-mute); font-size: .85rem; }
.evc-hint { margin: 6px 0 0; color: var(--sf-mute); font-size: .85rem; }

.evc-root input[type=text], .evc-root input[type=email], .evc-root input[type=tel], .evc-root select {
	width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; font-family: inherit; color: var(--sf-navy); background: #fff; border: 1.5px solid var(--sf-line); border-radius: 8px; box-shadow: none; margin: 0; }
.evc-root input[type=text]:focus, .evc-root input[type=email]:focus, .evc-root input[type=tel]:focus, .evc-root select:focus { outline: none; border-color: var(--sf-navy); box-shadow: 0 0 0 3px rgba(255, 180, 0, .45); }

/* Range slider */
.evc-root input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; padding: 0; cursor: pointer; --p: 0%; }
.evc-root input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--sf-accent) var(--p), var(--sf-line) var(--p)); }
.evc-root input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--sf-line); }
.evc-root input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--sf-accent); }
.evc-root input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--sf-navy); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.evc-root input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--sf-navy); }
.evc-root input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 180, 0, .6); }
.evc-root input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255, 180, 0, .6); }

/* Tiles (radio / checkbox cards) */
.evc-tiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
.evc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.evc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.evc-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.evc-tile input { position: absolute; z-index: 2; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.evc-tile-in { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 56px; padding: 12px 14px 12px 42px; border: 1.5px solid var(--sf-line); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.evc-tile-in::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #9AA8B6; border-radius: 50%; background: #fff; }
.evc-tile input[type=checkbox] + .evc-tile-in::before { border-radius: 5px; }
.evc-tile-in strong { font-size: .97rem; font-weight: 600; }
.evc-tile-in small { color: var(--sf-mute); font-size: .8rem; line-height: 1.3; margin-top: 2px; }
.evc-tile:hover .evc-tile-in { border-color: #9AA8B6; }
.evc-tile input:checked + .evc-tile-in { border-color: var(--sf-navy); background: rgba(255, 180, 0, .14); box-shadow: inset 0 0 0 1px var(--sf-navy); }
.evc-tile input:checked + .evc-tile-in::before { border-color: var(--sf-navy); background: var(--sf-navy); box-shadow: inset 0 0 0 3px #fff; }
.evc-tile input[type=checkbox]:checked + .evc-tile-in::before { background: var(--sf-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.evc-tile input:focus-visible + .evc-tile-in { outline: 3px solid rgba(255, 180, 0, .8); outline-offset: 1px; }

.evc-adapt { animation: evc-in .25s ease; }
@keyframes evc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.evc-sub-card { background: var(--sf-soft); border: 1px solid var(--sf-line); border-radius: 10px; padding: 16px 16px 4px; margin: 14px 0; }
.evc-sub-card h3 { margin: 0 0 12px; font-size: 1rem; }
.evc-note { background: #FFF7E0; border-left: 4px solid var(--sf-accent); border-radius: 6px; padding: 10px 14px; margin: 10px 0 16px; font-size: .92rem; }
.evc-inline { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 14px; cursor: pointer; }
.evc-inline input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--sf-navy); }
.evc-consent { font-size: .85rem; color: var(--sf-mute); }
.evc-error { background: #FDECEC; color: #9B1C1C; border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: .92rem; }
.evc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.evc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border-radius: 8px; font-size: 1rem; font-weight: 700; font-family: inherit; line-height: 1.2; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: transform .1s, box-shadow .15s, background .15s; }
.evc-btn-primary { background: var(--sf-accent); color: var(--sf-navy); border-color: var(--sf-accent); }
.evc-btn-primary:hover { box-shadow: 0 4px 14px rgba(255, 180, 0, .5); transform: translateY(-1px); color: var(--sf-navy); }
.evc-btn-primary[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.evc-btn-ghost { background: transparent; color: var(--sf-navy); border-color: var(--sf-line); }
.evc-btn-ghost:hover { border-color: var(--sf-navy); }
.evc-btn:focus-visible { outline: 3px solid var(--sf-navy); outline-offset: 2px; }
.evc-cta { width: 100%; margin: 6px 0 24px; }

/* Results */
.evc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.evc-kpi { background: var(--sf-soft); border: 1px solid var(--sf-line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.evc-kpi-l { font-size: .78rem; color: var(--sf-mute); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.evc-kpi strong { font-size: 1.6rem; line-height: 1.2; margin: 2px 0; }
.evc-kpi-s { font-size: .82rem; color: var(--sf-mute); }
.evc-whatif { border: 1px dashed #B5C2CF; border-radius: 10px; padding: 16px 16px 6px; margin-bottom: 22px; }
.evc-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.evc-tab { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--sf-line); background: #fff; color: var(--sf-navy); font: 600 .9rem inherit; font-family: inherit; cursor: pointer; }
.evc-tab[aria-selected=true] { background: var(--sf-navy); border-color: var(--sf-navy); color: #fff; }
.evc-chart { margin-bottom: 20px; }
.evc-svg { display: block; width: 100%; height: auto; }
.evc-grid { stroke: #E4EAF0; stroke-width: 1; }
.evc-zero { stroke: var(--sf-navy); stroke-width: 1.5; stroke-dasharray: 4 3; }
.evc-ax { font-size: 12px; fill: var(--sf-mute); font-family: inherit; }
.evc-val { font-size: 13px; font-weight: 700; fill: var(--sf-navy); font-family: inherit; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.evc-b-gen { fill: var(--sf-gen); }
.evc-b-use { fill: var(--sf-use); }
.evc-line { stroke: var(--sf-good); stroke-width: 3; stroke-linejoin: round; }
.evc-dot { fill: #fff; stroke: var(--sf-good); stroke-width: 3; }
.evc-legend { display: flex; gap: 18px; justify-content: center; font-size: .85rem; margin-top: 6px; }
.evc-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.evc-sw-gen { background: var(--sf-gen); }
.evc-sw-use { background: var(--sf-use); }
.evc-cap { font-size: .85rem; color: var(--sf-mute); margin: 6px 0 0; }
.evc-table summary, .evc-assump summary { cursor: pointer; font-size: .85rem; color: var(--sf-mute); margin-top: 8px; }
.evc-table table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 6px; }
.evc-table th, .evc-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--sf-line); }
.evc-text h3 { font-size: 1.15rem; margin: 0 0 10px; }
.evc-text ul { margin: 0 0 14px; padding-left: 20px; }
.evc-text li { margin-bottom: 8px; }
.evc-assump p { font-size: .85rem; color: var(--sf-mute); }
.evc-disc { font-size: .78rem; color: var(--sf-mute); border-top: 1px solid var(--sf-line); padding: 14px 0 20px; margin: 10px 0 0; }

@media (max-width: 600px) {
	.evc-body { padding: 20px 16px 4px; }
	.evc-foot { padding: 12px 16px 20px; }
	.evc-h { font-size: 1.35rem; }
	.evc-cols-2, .evc-cols-3 { grid-template-columns: 1fr; }
	.evc-foot .evc-btn { flex: 1; padding: 12px 16px; }
	.evc-kpi strong { font-size: 1.35rem; }
	.evc-kpi { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.evc-adapt, .evc-progress-bar, .evc-btn { animation: none; transition: none; }
}

/* Battery calculator additions */
.evc-a-gen { fill: var(--sf-gen); fill-opacity: .45; stroke: var(--sf-gen); stroke-width: 1.5; }
.evc-a-batt { fill: #1B7F4B; fill-opacity: .55; stroke: #1B7F4B; stroke-width: 1.5; }
.evc-line-use { stroke: var(--sf-navy); stroke-width: 2.5; stroke-linejoin: round; }
.evc-b-none { fill: #8593A3; }
.evc-b-batt { fill: #1B7F4B; }
.evc-b-soft { fill: #9CC9B3; }
.evc-b-on { stroke: var(--sf-navy); stroke-width: 2.5; }
.evc-ax-on { fill: var(--sf-navy); font-weight: 700; }
.evc-sw-batt { background: #1B7F4B; }
.evc-sw-use { background: var(--sf-navy); }
.evc-legend { flex-wrap: wrap; gap: 8px 18px; }
.evc-badge { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.evc-v-high { background: #DDF3E7; color: #0E5B33; }
.evc-v-mid { background: #FFF1CC; color: #6B4A00; }
.evc-v-low { background: #FBE3E3; color: #8A1C1C; }
.evc-tile-in small:empty { display: none; }
.evc-root .evc-field > label { flex-wrap: wrap; }

@media (max-width: 600px) {
	.evc-ax { font-size: 16px; }
	.evc-val { font-size: 17px; }
}

/* EV calculator additions */
.evc-b-ev { fill: #1B7F4B; }
.evc-b-sun { fill: var(--sf-gen); }
.evc-b-pub { fill: var(--sf-use); }
.evc-sw-sun { background: var(--sf-gen); }
.evc-sw-ev { background: #1B7F4B; }
.evc-sw-none { background: #8593A3; }
.evc-sw-pub { background: var(--sf-use); }
.evc-line-p { stroke: #8593A3; stroke-width: 3; stroke-linejoin: round; }
.evc-line-e { stroke: #1B7F4B; stroke-width: 3; stroke-linejoin: round; }
.evc-mixh { margin: 18px 0 8px; font-size: 1rem; }
.evc-mix { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--sf-line); }
.evc-mix span { display: block; height: 100%; }
.evc-mix span.evc-b-sun { background: var(--sf-gen); }
.evc-mix span.evc-b-none { background: #8593A3; }
.evc-mix span.evc-b-pub { background: var(--sf-use); }
.evc-mix-l { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; margin-top: 8px; }
.evc-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .evc-kpis { grid-template-columns: repeat(4, 1fr); } .evc-kpi strong { font-size: 1.35rem; } }
