#estimate {
  scroll-margin-top: 6rem;
}

#estimate a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

#estimate fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #c1d0d4;
  border-radius: 6px;
  background: #f8fafa;
}

#estimate legend {
  padding: 0 .4rem;
  font-weight: 600;
}

#estimate label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .25rem;
  font-size: .94rem;
}

#estimate input {
  width: 100%;
  min-width: 0;
  padding: .6rem;
  border: 1px solid #8398a2;
  border-radius: 4px;
  background: white;
  color: #0c2638;
  font-size: 1rem;
}

#estimate .estimate-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

#estimate button {
  padding: .65rem 1rem;
  border: 1px solid #0c2638;
  border-radius: 4px;
  background: #fff;
  color: #0c2638;
  font: inherit;
  cursor: pointer;
}

#estimate button[type=submit] {
  background: #0c2638;
  color: white;
}

#estimate #calcOut:not(:empty) {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 3px solid #2e6f95;
  background: #edf3f5;
  white-space: pre-line;
}

#estimate h3 {
  margin: 1rem 0 .5rem;
}
