*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: "Nunito", sans-serif;
}

body {
  height: 100vh;
  width: 100vw;
  background-color: #e8eaf6;
}

.hidden {
  display: none !important;
}

.input.valid {
  border-color: #81c784;
}

.input.invalid {
  border-color: #ff1744;
}

.validation-msg.show {
  opacity: 100%;
}

.container {
  max-width: 1250px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  border-radius: 12px;
  border: none;
  padding: 4rem;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
  background-color: #fff;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.card-header {
  text-align: center;
  font-size: 4.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.card-body {
  flex-grow: 1;
  text-align: center;
  font-size: 4.8rem;
  font-weight: 400;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.form-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  width: 100%;
}

.form-item {
  width: 100%;
}

.slider-label {
  font-size: 3rem;
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.5rem;
}

.slider-sub-label {
  font-size: 2rem;
  font-weight: 400;
  text-align: left;
  color: #616161;
}

.slider {
  width: 100%;
  accent-color: #304ffe;
}

.btn {
  cursor: pointer;
  text-align: center;
}

#calculate-btn {
  padding: 1rem 2rem;
  width: 100%;
  font-size: 3.6rem;
  background-color: #304ffe;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.estimation-display {
  justify-content: center;
  text-align: center;
}

.estimation-number {
  font-size: 10rem;
  font-weight: 200;
}

.estimation-text {
  font-size: 5rem;
  font-weight: 400;
}

.instructions {
  text-align: center;
  font-size: 1.8rem;
  padding-left: 10rem;
  padding-right: 10rem;
}

.input-label {
  font-size: 3rem;
  font-weight: 500;
  text-align: left;
}

.input {
  width: 100%;
  margin-bottom: 8px;
  margin-top: 8px;
  padding: 1rem 2rem;
  border: solid 2px #212121;
  border-radius: 8px;
  font-size: 1.8rem;
}

.validation-msg {
  font-size: 2rem;
  font-weight: 400;
  color: #ff1744;
  padding-left: 8px;
  opacity: 0;
  text-align: left;
}

.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

#recalculate-btn {
  padding: 1rem 2rem;
  width: 100%;
  font-size: 3.6rem;
  background-color: #304ffe;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.recalculate-btn {
  padding: 1rem 2rem;
  width: 100%;
  font-size: 3.6rem;
  background-color: #304ffe;
  color: #fff;
  border: none;
  border-radius: 8px;
}

#request-estimate-btn {
  padding: 1rem 2rem;
  width: 100%;
  font-size: 3.6rem;
  background-color: #304ffe;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.thank-you-card {
  border-radius: 12px;
  border: none;
  padding: 4rem;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 90%;
}

.thank-you-card-header {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  html {
    font-size: 42%;
  }

  .instructions {
    text-align: justify;
    font-size: 1.8rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .buttons {
    flex-direction: column;
  }
}
