.finance-calculator {
  max-width: 720px;
  margin: 0 auto;
  color: #304b68;
  text-align: center;
  font-family: Arial, sans-serif;
}

.finance-calculator h2 {
  font-size: 38px;
  margin: 0 0 28px;
  font-weight: 500;
}

.finance-calculator h2 span {
  color: #b88c3c;
}

.finance-label {
  font-size: 19px;
  margin: 0 0 18px;
}

.finance-calculator .finance-amount {
  width: 200px;
  height: 52px;
  border: 1px solid #cbd5df;
  border-radius: 30px;
  text-align: center;
  font-size: 17px;
  color: #304b68;
  margin-bottom: 22px;
  outline: none;
  box-sizing: border-box;
}

.finance-calculator .finance-amount:focus {
  border-color: #b88c3c;
  box-shadow: 0 0 0 3px rgba(184, 140, 60, 0.12);
}

.finance-terms {
  width: 420px;
  max-width: 100%;
  height: 54px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 7px;
  border: 1px solid #d8e0e7;
  border-radius: 30px;
  background: #1a1f29;
  box-shadow: 0 4px 12px rgba(30,50,70,0.06);
  box-sizing: border-box;
}

.finance-terms button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa4b1;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.finance-terms button.active {
  background: #b88c3c;
  color: white;
}

.finance-terms button:focus-visible {
  outline: 2px solid #b88c3c;
  outline-offset: 2px;
}

.finance-result {
  background: #1a1f29;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 7px 25px rgba(30,50,70,0.08);
}

.monthly-payment {
  padding: 27px 15px;
  font-size: 23px;
  font-weight: 500;
  color: #b88c3c;
}

.finance-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 27px 18px 30px;
  gap: 18px;
}

.detail-title {
  font-size: 14px;
  margin-bottom: 17px;
  color: #fff;
}

.detail-value {
  font-size: 17px;
  margin-bottom: 6px;
  color: #fff;
}

.detail-small {
  font-size: 13px;
  color: #fff;
}

.finance-rep-example {
  font-size: 13px;
  line-height: 1.55;
  color: #4d5967;
  margin: 22px auto 10px;
  max-width: 620px;
}

.finance-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: #7a8695;
  margin: 0 auto;
  max-width: 620px;
}

@media only screen and (max-width: 1024px) {
  .finance-calculator h2 {
    font-size: 34px;
  }
}

@media only screen and (max-width: 600px) {
  .finance-calculator h2 {
    font-size: 30px;
  }

  .finance-label {
    font-size: 17px;
  }

  .finance-terms {
    width: 100%;
  }

  .finance-terms button {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .finance-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .monthly-payment {
    font-size: 21px;
  }
}
