/* Calculator controls only. Selectors stay on the three calculator ids. */
#ev-calc.calc-controls,
#fit-calc.calc-controls,
#free-calc.calc-controls {
  background: var(--soft);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 16px;
}

#ev-calc .calc-help,
#fit-calc .calc-help,
#free-calc .calc-help {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

#ev-calc .calc-grid,
#fit-calc .calc-grid,
#free-calc .calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

#ev-calc .calc-field,
#fit-calc .calc-field,
#free-calc .calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

#ev-calc .calc-entry,
#fit-calc .calc-entry,
#free-calc .calc-entry {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

#ev-calc input[type="number"],
#ev-calc select,
#fit-calc input[type="number"],
#fit-calc select,
#free-calc input[type="number"],
#free-calc select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.2 var(--font);
}

#ev-calc .calc-entry input,
#fit-calc .calc-entry input,
#free-calc .calc-entry input {
  flex: 1 1 auto;
}

#ev-calc select,
#fit-calc select,
#free-calc select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

#ev-calc .calc-suffix,
#fit-calc .calc-suffix,
#free-calc .calc-suffix {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#ev-calc input:focus-visible,
#ev-calc select:focus-visible,
#fit-calc input:focus-visible,
#fit-calc select:focus-visible,
#free-calc input:focus-visible,
#free-calc select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-color: var(--leaf);
}

#ev-calc .calc-check,
#free-calc .calc-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#ev-calc .calc-check input,
#free-calc .calc-check input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--leaf);
}

#ev-calc .calc-actions,
#fit-calc .calc-actions,
#free-calc .calc-actions {
  margin-top: 14px;
}

#ev-calc .calc-reset,
#fit-calc .calc-reset,
#free-calc .calc-reset {
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 16px/1 var(--font);
  cursor: pointer;
}

#ev-calc .calc-reset:hover,
#fit-calc .calc-reset:hover,
#free-calc .calc-reset:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

#ev-calc .calc-reset:focus-visible,
#fit-calc .calc-reset:focus-visible,
#free-calc .calc-reset:focus-visible,
#ev-calc-more:focus-visible,
#fit-calc-more:focus-visible,
#free-calc-more:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

#ev-calc-more,
#fit-calc-more,
#free-calc-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 4px 0 16px;
  padding: 10px 18px;
  border: 1.5px solid var(--leaf);
  border-radius: 999px;
  background: #fff;
  color: var(--leaf);
  font: 700 16px/1 var(--font);
  cursor: pointer;
}

#ev-calc-more:hover,
#fit-calc-more:hover,
#free-calc-more:hover {
  background: var(--leaf);
  color: #fff;
}

@media (max-width: 600px) {
  #ev-calc .calc-grid,
  #fit-calc .calc-grid,
  #free-calc .calc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
