:root {
  --ink: #171d1a;
  --muted: #6d716a;
  --line: #deded5;
  --soft: #f7f7f0;
  --cream: #fbfaf3;
  --green: #0f6b43;
  --green-2: #1c8f5d;
  --mint: #dcf4e4;
  --blue: #dce9ff;
  --gold: #f8b91c;
  --danger: #d93a2f;
  --shadow: 0 22px 60px rgba(21, 31, 24, 0.16);
}

button,
input,
select,
textarea {
  font: inherit;
}

@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 1rem!important;
  }
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
}

:focus-visible {
  outline: 3px solid rgba(28, 143, 93, 0.16);
  outline-offset: 1px;
}
:focus:not(:focus-visible) {
  outline: none;
}

#carbonWidget h5 {
	margin: 0;
}

.hidden {
  display: none !important;
}
#carbonWidget label {
	font-size: 0.875rem;
}
.widget-launcher {
  position: fixed;
	top: 105px;
  right: 5vw;
	bottom: 5vh;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px 8px 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f6b43, #26a06b);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(15, 107, 67, 0.3);
  cursor: pointer;
}

.launcher-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green);
  background: #eaf8ef;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: bold;
}

.launcher-copy {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.launcher-copy strong {
  font-size: 0.96rem;
}

.launcher-copy small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: bold;
  margin-top: 3px;
}

.carbon-widget {
  position: fixed;
  top: 145px;
  right: 5vw;
	bottom: 5vh;
  z-index: 21;
  width: min(540px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 118px));
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid #d9ded4;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.widget-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
	justify-content: space-between;
  padding: 20px 35px;
  background: rgba(251, 250, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.widget-header h4 {
	margin-bottom: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--mint);
  border-radius: 12px;
}

.brand-mark span {
  width: 16px;
  height: 24px;
  border: 3px solid var(--green);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  transform: rotate(-18deg);
}

.widget-header p,
.widget-header h1 {
  margin: 0;
}

.widget-header p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 3px;
}

.widget-header h1 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green);
  background: #edf7f1;
  border: 1px solid #bfd9ca;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
}

.about-card,
.panel-card,
.calculation-card,
.result-card,
.widget-footer {
  margin: 14px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.about-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.about-toggle span {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at center, #43B649 0 25%, var(--mint) 25%);
  border-radius: 50%;
}

.about-text,
.hint,
.section-title p,
.widget-footer {
  color: var(--muted);
	font-weight: 300;
}

.about-text {
  margin: 14px 0 0;
  line-height: 1.55;
}

.step-pills {
  position: sticky;
  top: 95px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px;
  padding: 10px 0;
  background: var(--cream);
}

.step-pills span {
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--e-global-color-accent);
  background: #fff;
  border: 1px solid #cfe0d5;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: bold;
}

.step-pills .active {
  color: #fff;
  background: var(--e-global-color-accent);
  border-color: var(--e-global-color-accent);
}

.tree-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #eefbf4, #fff8e8);
  border: 1px solid #cbdccf;
  border-radius: 22px;
}

.tree-card strong,
.tree-card p {
  margin: 0;
}

.tree-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
	font-weight: 300;
}

.tree-visual {
  position: relative;
  height: 118px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf9f4 0%, #fff9ec 100%);
  border-radius: 18px;
}

.sun,
.cloud,
.leaf,
.trunk,
.sprout,
.ground {
  position: absolute;
  display: block;
}

.sun {
  top: 16px;
  right: 14px;
  width: 24px;
  height: 24px;
  background: #ffd66b;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 214, 107, 0.24);
}

.cloud {
  height: 9px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 12px;
  height: 12px;
  left: 7px;
  bottom: 2px;
}

.cloud::after {
  width: 9px;
  height: 9px;
  right: 7px;
  bottom: 1px;
}

.cloud-a {
  top: 26px;
  left: 18px;
  width: 44px;
}

.cloud-b {
  top: 48px;
  right: 48px;
  width: 34px;
}

.ground {
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 12px;
  background: #d2a666;
  border-radius: 50%;
}

.trunk {
  left: 50%;
  bottom: 28px;
  width: 10px;
  height: 0;
  background: #8e5d2b;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: height 360ms ease;
}

.sprout {
  bottom: 28px;
  width: 0;
  height: 0;
  background: #35a967;
  border-radius: 999px 999px 999px 4px;
  opacity: 0;
  transition: all 300ms ease;
}

.sprout-left {
  left: calc(50% - 11px);
  transform: rotate(-28deg);
}

.sprout-right {
  left: calc(50% + 3px);
  transform: rotate(28deg) scaleX(-1);
}

.leaf {
  left: 50%;
  bottom: 62px;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #49bd77, #10824e);
  border-radius: 999px 999px 999px 12px;
  opacity: 0;
  transition: all 360ms ease;
}

.tree-step-0 .sprout {
  width: 16px;
  height: 24px;
  opacity: 1;
}

.tree-step-1 .trunk,
.tree-step-2 .trunk {
  height: 36px;
}

.tree-step-1 .sprout,
.tree-step-2 .sprout {
  width: 14px;
  height: 20px;
  opacity: 1;
}

.tree-step-2 .trunk {
  height: 48px;
}

.tree-step-2 .leaf {
  width: 42px;
  height: 32px;
  opacity: 1;
}

.tree-step-2 .leaf-left {
  transform: translate(calc(-50% - 22px), 9px) rotate(-24deg);
}

.tree-step-2 .leaf-right {
  transform: translate(calc(-50% + 20px), 9px) rotate(24deg) scaleX(-1);
}

.tree-step-2 .leaf-top {
  transform: translate(-50%, -10px) rotate(-45deg);
}

.section-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h2,
.section-title p {
  margin: 0;
}

.section-title h2 {
  font-size: 1.08rem;
  margin-bottom: 3px;
}

.section-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--e-global-color-accent);
  background: var(--mint);
  border-radius: 12px;
  font-weight: bold;
}

.scope-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scope-heading span {
  padding: 4px 10px;
  color: white;
  background: var(--e-global-color-9866d27);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
}

.hint {
  margin: 10px 0 20px!important;
  font-size: 0.875rem;
  line-height: 1.5;
}

.fuel-rows {
  display: grid;
  gap: 12px;
}

.fuel-row {
  display: grid;
  grid-template-columns: 1fr 1fr 42px;
  gap: 10px;
  padding: 20px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
}

#carbonWidge label {
  display: grid;
  gap: 6px;
  color: #5d625b;
  font-size: 0.875rem;
  font-weight: bold;
  margin-top: 20px;
}
#carbonWidge label .unit-field {
  margin-bottom: 10px;
}

#carbonWidget input,
#carbonWidget select,
#carbonWidge textarea {
  width: 100%!important;
  min-height: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line)!important;
  border-radius: 12px!important;
  padding: 10px!important;
	margin-top: 15px !important;
	font-size: 0.875rem;
}

#carbonWidge input:focus,
#carbonWidge select:focus,
#carbonWidge textarea:focus {
  outline: 3px solid rgba(28, 143, 93, 0.16);
  border-color: var(--green-2);
}
.s2-label {
	margin-top: 20px;
}
.s2-label .unit-field {
	margin-bottom: 20px;
}
.field-error {
  border-color: var(--danger) !important;
  background: #fff8f6;
  box-shadow: 0 0 0 4px rgba(217, 58, 47, 0.1);
}

#carbonWidge textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
	margin-top: 10px;
}

.unit-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.remove-row {
  align-self: end;
  min-height: 44px;
  color: var(--e-global-color-primary)!important;
  background: #fff;
  border: 1px solid var(--e-global-color-primary)!important;
  border-radius: 12px;
  cursor: pointer;
}

.add-row-button {
  width: 100%;
	display: flex;
    align-items: center;
    justify-content: center;
  margin-top: 12px;
  min-height: 44px;
  color: var(--e-global-color-accent)!important;
  background: #fbfffd;
  border: 1px dashed #3bb476;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
}

.electricity-heading {
  margin-top: 28px;
}

.calculation-card {
  background:
    radial-gradient(circle at 100% 0, rgba(220, 244, 228, 0.85), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), #fffaf0);
}

.breakdown-box {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 16px 16px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9dfd4;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(27, 45, 34, 0.06);
}

.breakdown-box::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--green-2);
}

.breakdown-box + .breakdown-box::before {
  background: var(--gold);
}

.breakdown-box span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.breakdown-box strong {
  font-size: 1.125rem;
  letter-spacing: 0;
}

.breakdown-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
	font-weight: 300;
}

.formula-list {
  display: grid;
  gap: 8px;
}

.formula-item {
  display: grid;
  gap: 5px;
  padding: 20px;
  color: #334039;
  background: #f7fbf8;
  border: 1px solid #dfe8e1;
  border-radius: 12px;
  line-height: 1.35;
}

.formula-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.formula-topline strong {
  overflow: hidden;
  color: var(--e-global-color-accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-topline em {
  color: var(--ink);
  font-style: normal;
  font-weight: bold;
  white-space: nowrap;
}

.formula-item small {
  color: var(--muted);
  font-size: 0.875rem;
}

.factor-details {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf0, #fffdf8);
  border: 1px solid #f0ca63;
  border-radius: 16px;
}

.factor-details summary {
  cursor: pointer;
  font-weight: bold;
  line-height: 1.2;
}

.factor-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.factor-chips span {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-height: 58px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.factor-chips strong {
  overflow: hidden;
  color: var(--e-global-color-accent);
  font-size: 0.875rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factor-chips small {
  color: #37433c;
  font-size: 0.875rem;
  line-height: 1.25;
}

.factor-details p {
  margin: 14px 0 0;
  padding-top: 12px;
  color: #4f554e;
  border-top: 1px dashed #e4c874;
  line-height: 1.45;
	font-size: 0.875rem;
}

.result-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fffdf8);
}

.total-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: #e9fff2;
  background: radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.12), transparent 34%), var(--e-global-color-accent);
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(15, 107, 67, 0.2);
}

.total-card span {
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.total-card strong {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
}

.donut-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.donut {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0%, var(--gold) 0);
  border-radius: 50%;
}

.donut span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--muted);
  font-weight: bold;
}

.legend {
  display: grid;
  gap: 8px;
}

.legend p {
  display: flex;
	font-size: 0.875rem;
  gap: 8px;
  margin: 0;
  color: #4f554e;
}

.legend strong {
  justify-self: end;
}

.dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
}

.scope-one {
  background: var(--green);
}

.scope-two {
  background: var(--gold);
}

.tree-equivalent-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #edf9f0, #fff7e4);
  border: 1px solid #d0dfc7;
  border-radius: 20px;
}

.mini-tree {
  width: 78px;
  height: 90px;
  background:
    radial-gradient(circle at 52% 34%, #4caf5d 0 28px, transparent 29px),
    radial-gradient(circle at 34% 45%, #5ebe69 0 24px, transparent 25px),
    linear-gradient(#87572b 0 0) center 52px / 10px 42px no-repeat;
  filter: drop-shadow(0 12px 12px rgba(30, 111, 59, 0.18));
}

.tree-equivalent-card span,
.carbon-slider {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tree-equivalent-card strong {
  display: block;
  color: var(--e-global-color-accent);
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
}

.tree-equivalent-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.carbon-slider {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.carbon-slider input {
  padding: 0;
  accent-color: var(--green-2);
}

.carbon-cost {
  margin: 10px 0 0;
  color: var(--green);
  font-weight: bold;
}

.action-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: bold;
}

.lead-card .form-message:not(:empty) {
  padding: 10px 12px;
  background: #fff0ed;
  border: 1px solid #f2c7bf;
  border-radius: 12px;
  line-height: 1.35;
}

.action-row button,
.lead-card button[type="submit"] {
  min-height: 46px;
  color: #fff;
  background: var(--green-2);
  border: 0;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.widget-footer {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 29, 26, 0.48);
}

.lead-card {
  width: min(520px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.modal-heading h2,
.modal-heading p {
  margin: 0;
}

.modal-heading p {
  color: var(--muted);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-grid label > input:not(#consultation), .lead-grid label select, .lead-grid label #leadMessage {
	margin-top: 15px;
}

.action-row > span {
	font-size: 0.875rem;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}
#generateReport {
	width: fit-content;
    padding: 15px 20px;
    border-radius: 50px;
    background-color: var(--e-global-color-accent);
    color: white;
    font-size: 1rem;
	cursor: pointer;
}
#leadForm .action-row a {
	border-radius: 100px;
	border: 1px solid var(--e-global-color-accent);
	color: var(--e-global-color-accent)!important;
}
#leadForm .action-row a:hover {
	color: white!important;
	background: var(--e-global-color-accent);
}
@media screen and (width < 1199px) {
	.carbon-widget {
		bottom: 40px;
		top: 75px;
	}
}
@media (max-width: 620px) {
  .widget-launcher {
    right: 14px;
    bottom: 14px;
  }
	.widget-header {
		padding: 20px;
	}
	.icon-button {
		width: 35px;
  		height: 35px;
	}
  .launcher-copy {
    display: none;
  }

  .carbon-widget {
    right: 10px;
    bottom: 82px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 98px);
  }

  .tree-card,
  .donut-row,
  .tree-equivalent-card,
  .fuel-row,
  .lead-grid,
  .factor-chips {
    grid-template-columns: 1fr;
  }

  .remove-row {
    justify-self: end;
    width: 48px;
  }
}
