* {
  box-sizing: border-box;
}


p {
  color: #383838;;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.calculator {
  display: flex;
  flex-direction: column;
  margin: 10px auto;
  padding: 2em;
  max-width: 500px;
  width: auto;
  background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
  max-height: 800px;
  border: 1px solid #383838;;
  transition: max-height 2s ease-in-out;
}
.calculator form {
  margin: 1em 0;
  width: auto;
  max-width: 500px;
}
.calculator form label {
  color: #383838;;
  font-weight: 300;
  padding: 5px 0;
}
.calculator form span {
  color: #383838;;
  font-weight: 300;
  padding: 5px 0;
}
.calculator form p {
 color: #ffffff;
    font-family: arial;
    font-size: 1.2em;
    border-bottom: 1px solid #ffffff;
}

.calculator > form > div {
  display: grid;
  width: auto;
  grid-template-columns: 6fr 1fr 1fr;
  margin: 10px auto;
}
.calculator > form > div input {
  text-align: right;
  padding: 5px;
  margin: 0 10px;
  max-width: 70px;
  border-radius: 2px;
  border: 0px;
  transition: all 100ms ease-in-out;
}
.calculator > form > div label {
  text-align: left;
}

.roi-submit {
  box-sizing: border-box;
  margin: 10px auto;
  padding: 10px 50px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #6E30A0;
  color: #fff;
  width: auto;
  cursor: pointer;
}
.roi-submit:hover {
  box-sizing: border-box;
  background: transparent;
  border: 1px solid #69F0AE;
}

.clear-form {
  background: none;
  width: auto;
  color: #fff;
  font-size: 12px;
  border: none;
  padding: 0;
  margin: 5px auto;
  outline: inherit;
  box-sizing: border-box;
  cursor: pointer;
}
.clear-form:hover {
  text-decoration: underline;
}

.result {
  margin: auto;
  transition: all 2s ease-in;
  max-height: 200px;
}