/* Capital Loan Calculator — без зовнішнього calc-box контейнера */

.capital-loan-calc,
.capital-loan-calc *,
.capital-loan-calc *::before,
.capital-loan-calc *::after {
  box-sizing: border-box;
}

.capital-loan-calc {
  font-family: "Gilroy Гилрой", Sans-serif, system-ui, sans-serif;
  width: 100%;
}

.capital-loan-calc .calc-range {
  margin-bottom: 20px;
}

.capital-loan-calc .calc-range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0;
}

.capital-loan-calc .calc-range-head label {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.capital-loan-calc .calc-range-head .range-value-input {
  border: none;
  border-bottom: 1px solid #c0c0c0;
  background: transparent;
  text-align: right;
  font-size: 18px;
  font-weight: 500;
  color: #111;
  width: 140px;
  padding: 4px 0;
  border-radius: 0;
}

.capital-loan-calc .calc-range-head .range-value-input::-webkit-outer-spin-button,
.capital-loan-calc .calc-range-head .range-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.capital-loan-calc .calc-range-head .range-value-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.capital-loan-calc input[type="range"].calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: #efefef;
  border-radius: 15px;
  outline: none;
  margin-top: 5px;
}

.capital-loan-calc input[type="range"].calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  margin-top: -2px;
}

.capital-loan-calc input[type="range"].calc-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: transparent;
  border-radius: 7px;
  border: none;
  box-shadow: none;
}

.capital-loan-calc input[type="range"].calc-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.capital-loan-calc input[type="range"].calc-slider::-moz-range-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: #efefef;
  border-radius: 7px;
}

.capital-loan-calc input[type="range"].calc-slider::-moz-range-progress {
  height: 14px;
  background: #2B9641;
  border-radius: 7px;
}

.capital-loan-calc .calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
  margin-top: 0;
}

.capital-loan-calc__title,
.capital-loan-calc h4 {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 15px;
}

.capital-loan-calc .calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 500px) {
  .capital-loan-calc .calc-inputs {
    grid-template-columns: 1fr;
  }
}

.capital-loan-calc .calc-inputs input,
.capital-loan-calc .calc-inputs select {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 25px;
  padding: 14px 18px;
  font-size: 15px;
  text-align: left;
  background: white;
  cursor: pointer;
}

.capital-loan-calc .calc-inputs input::placeholder {
  color: #aaa;
}

.capital-loan-calc .calc-inputs select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

.capital-loan-calc .calc-inputs select:disabled,
.capital-loan-calc .calc-inputs input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #aaa;
}

.capital-loan-calc .calc-btn {
  display: inline-block;
  background: #2B9641;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
  text-align: center;
  font-family: inherit;
  grid-column: 1 / -1;
  justify-self: start;
}

.capital-loan-calc .calc-btn:hover {
  background: #228535;
}

.capital-loan-calc .calc-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
