@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype"), url("../assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100vw;
  background-color: hsl(202, 86%, 94%);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: hsl(202, 55%, 16%);
}

main {
  width: 100%;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calculator {
  flex: 1;
  width: 100vw;
  background-color: hsl(0, 0%, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  color: hsl(202, 55%, 16%);
}

.header {
  width: 100%;
  display: flex;
  font-weight: 700;
  justify-content: flex-start;
  margin-left: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
}
.form__label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
.form__input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border: solid 1px hsl(202, 55%, 16%);
  border-radius: 0.3rem;
  background-color: hsl(0, 0%, 100%);
  font-size: 1rem;
}
.form__input:focus, .form__input:hover {
  border-color: hsl(61, 70%, 52%);
}
.form__input::-webkit-outer-spin-button, .form__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form__input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield;
}
.form__input-icon {
  position: absolute;
  top: 67.9%;
  transform: translateY(-50%);
  color: hsl(203, 41%, 72%);
  width: 5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  right: 0.5px;
  border-radius: 0 0.3rem 0.3rem 0;
  transition: color 0.3s ease-in-out;
}
.form__input-icon.error-icon {
  color: hsl(4, 69%, 50%);
}
.form__error-message {
  position: absolute;
  bottom: -18px;
  left: 0;
  color: hsl(4, 69%, 50%);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}
.form__group, .form__fieldset {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: auto;
}
.form__fieldset {
  border: 1px solid hsl(200, 24%, 40%);
  border-radius: 0.3rem;
  padding: 1rem;
  margin-top: 0.5rem;
  background-color: #f1f5f9;
}
.form__fieldset legend {
  font-weight: bold;
  font-size: 1.1rem;
  color: hsl(202, 55%, 16%);
  padding: 0 0.5rem;
}
.form__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.form__label--radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(202, 55%, 16%);
  border-radius: 0.3rem;
  background-color: hsl(0, 0%, 100%);
  transition: border-color 0.3s ease-in-out;
}
.form__label--radio:hover {
  border-color: hsl(61, 70%, 52%);
}
.form__label--radio input[type=radio] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid hsl(200, 24%, 40%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}
.form__label--radio input[type=radio]:checked {
  border-color: hsl(61, 70%, 52%);
  background-color: #f0f1b1;
  box-shadow: inset 0 0 0 4px #f0f1b1;
}
.form__button {
  padding: 0.5rem;
  border: none;
  border-radius: 0.3rem;
  font-size: 1rem;
  cursor: pointer;
  color: hsl(202, 55%, 16%);
  transition: background 0.3s ease-in-out;
}
.form__button--submit {
  background-color: hsl(61, 70%, 52%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.form__button--submit:hover {
  background-color: #b4b620;
}
.form__button--reset {
  background-color: hsl(200, 24%, 40%);
  color: hsl(0, 0%, 100%);
}
.form__button--reset:hover {
  background-color: #3a535f;
}
.form__button-div {
  display: grid;
  grid-column: 1fr;
  gap: 1rem;
}
.form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.error {
  border: 2px solid hsl(4, 69%, 50%) !important;
}

.results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100vw;
  background-color: hsl(202, 55%, 16%);
  color: hsl(0, 0%, 100%);
  text-align: center;
  padding: 1.5rem;
  padding-bottom: 5rem;
}
.results--visible {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.results--hidden {
  margin-top: 2rem;
  padding: 0 1rem;
  gap: 1rem;
  color: hsl(203, 41%, 72%);
  display: none;
  flex-direction: column;
  text-align: left;
}
.results--hidden-result {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  height: auto;
  padding: 1.5rem;
  border-top: 2px solid hsl(61, 70%, 52%);
  background-color: #0d202b;
  border-radius: 10px 10px 10px 40px;
}
.results--hidden h2 {
  color: hsl(0, 0%, 100%);
}
.results--hidden .outRepayment {
  font-weight: 700;
  font-size: 3rem;
  color: hsl(61, 70%, 52%);
  border-bottom: inset hsl(200, 26%, 54%);
}
.results--hidden .outAnualRepay {
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  font-size: 2rem;
}

@media screen and (min-width: 660px) {
  .form__group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .form__label--radio {
    display: flex;
    flex-direction: row;
  }
  .form__button-div {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
  }
}
@media (min-width: 900px) {
  main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: auto 3rem;
  }
  .calculator {
    padding: 1rem;
    gap: 0;
    height: 500px;
    border-radius: 20px 0px 0px 20px;
    position: relative;
  }
  .calculator::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: -1;
    right: -80px;
    bottom: 0;
    width: 90px;
    background-color: hsl(0, 0%, 100%);
  }
  .form {
    gap: 1rem;
  }
  .results {
    height: 500px;
    border-radius: 0px 20px 20px 90px;
  }
}/*# sourceMappingURL=index.css.map */