/* =============================
   Performance calculator
   =============================
   Scoped styles so other pages don't change.
*/

.ht-calc {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 14px 30px;
}

.ht-calc__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 18px;
}

.ht-calc__title {
  margin: 0;
  font-family: "Acumin Pro ExtraCondensed", "Acumin Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.05;
}

.ht-calc__clear {
  font-family: "Acumin Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-decoration: underline;
  color: #14539B;
  background: none;
  border: 0;
  padding: 0;
}

.ht-calc__form {
  margin-top: 6px;
}

.ht-calc-field {
  margin-bottom: 16px;
}

.ht-calc-field__label {
  display: block;
  margin-bottom: 6px;
  font-family: "Acumin Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: #111;
}

.ht-calc-field__help {
  margin-top: 6px;
  font-size: 12px;
  color: #444;
}

.ht-calc-field__control,
.ht-calc-field__select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 2px solid #14539B;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  font-family: "Acumin Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}

.ht-calc-field__control:focus,
.ht-calc-field__select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20,83,155,0.18), 0 4px 10px rgba(0,0,0,0.10);
}

/* custom-ish select chevron */
.ht-calc-field__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #bdbdbd 50%),
    linear-gradient(135deg, #bdbdbd 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 19px,
    calc(100% - 14px) 19px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.ht-calc-field__control--result {
  box-shadow: none;
}

.ht-calc-field--result .ht-calc-field__control--result {
  height: 44px;
}

.ht-calc-field--result.is-filled .ht-calc-field__control--result {
  background: #1F8A3B;
  border-color: #1F8A3B;
  color: #fff;
  font-weight: 700;
}

.ht-calc__submit {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: #14539B;
  color: #fff;
  font-family: "Acumin Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.ht-calc__diagram {
  margin-top: 14px;
  text-align: center;
}

.ht-calc__diagram img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .ht-calc {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 575.98px) {
  .ht-calc__header {
    margin-bottom: 14px;
  }
  .ht-calc-field {
    margin-bottom: 14px;
  }
  .ht-calc-field__control,
  .ht-calc-field__select,
  .ht-calc__submit {
    height: 42px;
  }
}
