.calculator {
  background: #fff;
  border-radius: 32px;
  border: 1px solid #E4E4E7;
  width: 100%;
  margin: auto;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.01), 0px 2px 5px rgba(0, 0, 0, 0.06);
}

.calculator__top {
  padding: 16px 16px 0px 16px;
}

.calculator__field {
  margin-bottom: 32px;
}

.calculator__field:last-child {
  margin-bottom: 0px;
}

.calculator__input-row {
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calculator_field__legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: #64748b;
  margin-top: 8px;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #18181B 0%,
    #18181B 50%,
    #f1f5f9 50%,
    #f1f5f9 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 8px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 36px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  border: 8px solid #18181B;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 9999px;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #1f6ad4;
  border-radius: 9999px;
}

input[type="range"]::-moz-range-thumb {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  border: 4px solid #1f6ad4;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

input[type="range"]::-ms-track {
  height: 8px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type="range"]::-ms-fill-lower {
  background: #1f6ad4;
  border-radius: 9999px;
}

input[type="range"]::-ms-fill-upper {
  background: #f1f5f9;
  border-radius: 9999px;
}

input[type="range"]::-ms-thumb {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  border: 4px solid #1f6ad4;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

.calculator__input-wrapper {
  position: relative;
  display: inline-block;
}

.calculator__input-wrapper input {
  display: inline-block;
  vertical-align: middle;
  font-size: 16px;
  line-height: 36px;
  font-weight: 700;
  text-align: right;
  background-color: #F4F4F5;
  border-radius: 9999px;
  border: none;
  height: 36px;
  outline: none;
}

#amountInput {
  padding-right: 32px;
  width: 98px;
  transition: border-color 0.2s ease;
}

#durationInput {
  padding-right: 70px;
  width: 104px;
  transition: border-color 0.2s ease;
}

.calculator__input-wrapper input:focus {
  border: 1px solid #020617;
  background-color: #ffffff;
}

.calculator__suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 36px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.calculator__summary {
  margin-top: 24px;
}

.calculator__summary div {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  background-color: #f8fafc;
  font-size: 14px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

.calculator__summary div:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.calculator__summary-value {
  font-weight: 700;
  color: #020617;
}

.calculator__submit {
  padding: 32px 16px 16px 16px;
}

.calculator__users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
}
.calculator__users_img {
  height: 44px;
}

.calculator__users_stats {
  font-size: 12px;
}

.calculator__users_heading {
  font-weight: 700;
}

.calculator__users_text {
  font-weight: 450;
  color: #434E61;
}

.calculator__suggest {
  margin-top: 24px;
}

.calculator_suggest__title {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.calculator_suggest__title::before,
.calculator_suggest__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #E4E4E7;
}

.calculator_suggest__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

.suggest__btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 550;
  color: rgba(0, 0, 0, 0.6);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.02);
  padding: 10px 16px;
  background-color: #ffffff;
  border: 1px solid #D4D4D8;
  border-radius: 9999px;
}

/* RESPONSIVE */
@media (min-width: 640px) {
  .calculator__top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 20px 0px 20px;
  }
  .calculator__field {
    margin-bottom: 20px;
  }
  .calculator__submit {
    padding: 28px 20px 20px 20px;
  }
}

@media (min-width: 768px) {
  .calculator {
    max-width: 720px;
  }
  .calculator__submit .primary_button {
    width: 100%;
    justify-content: center;
  }
  .calculator__input-wrapper input {
    font-size: 18px;
    height: 40px;
  }
  input[type="range"]::-webkit-slider-thumb {
    height: 40px;
    width: 40px;
  }
  input[type="range"]::-moz-range-thumb {
    height: 40px;
    width: 40px;
  }
}

@media (min-width: 1024px) {
  .calculator {
    max-width: 880px;
  }
  .calculator__top {
    gap: 24px;
    padding: 24px 24px 0px 24px;
  }
  .calculator__submit {
    padding: 28px 24px 24px 24px;
  }
}