.calculator {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  margin: auto;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

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

.calculator__field {
  margin-bottom: 20px;
}

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

.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,
    #2563eb 0%,
    #2563eb 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: 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"]::-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: 20px;
  line-height: 36px;
  font-weight: 700;
  text-align: right;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 36px;
  outline: none;
}

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

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

.calculator__input-wrapper input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.calculator__suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  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: 24px 16px 20px 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;
}

/* HOVER EFFECTS */
@media (hover: hover) and (pointer: fine) {
  #amountInput:hover {
    border-color: #3b82f6;
  }
  #durationInput:hover {
    border-color: #3b82f6;
  }
}
