.installment-calculator {
  width: 100%;
}

.installment-calculator__card {
  background-color: #ffffff;
  border: 1px solid #d1e1f0;
  border-radius: 12px;
  padding: 24px;
}

.installment-calculator__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.installment-calculator__step.installment-calculator__step--rates {
  margin-top: 20px;
}

.installment-calculator__step[hidden] {
  display: none !important;
}

.installment-calculator__label {
  display: block;
  color: #333333;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.installment-calculator .installment-calculator__input,
.installment-calculator .installment-calculator__select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid #5fa9e0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #333333;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}
.installment-calculator select.installment-calculator__select {
  background: none;
}

.installment-calculator .installment-calculator__input::placeholder {
  color: #a0a0a0;
}

.installment-calculator .installment-calculator__input:focus,
.installment-calculator .installment-calculator__select:focus {
  border-color: #3d8ec9;
}

.installment-calculator .installment-calculator__select {
  appearance: auto;
  cursor: pointer;
}

.installment-calculator__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.installment-calculator__button--primary {
  background-color: #e33e2b;
  color: #ffffff;
}

.installment-calculator__button--primary:hover,
.installment-calculator__button--primary:focus {
  background-color: #c93524;
  color: #ffffff;
}

.installment-calculator__button--secondary {
  background-color: #e33e2b;
  color: #ffffff;
}

.installment-calculator__button--secondary:hover,
.installment-calculator__button--secondary:focus {
  background-color: #c93524;
  color: #ffffff;
}

.installment-calculator__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.installment-calculator__footer {
  margin: 0;
  color: #999999;
  font-size: 12px;
  line-height: 1.5;
}

.installment-calculator__spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #d1e1f0;
  border-top-color: #5fa9e0;
  border-radius: 50%;
  animation: installment-calculator-spin 0.8s linear infinite;
}

.installment-calculator__spinner.is-visible {
  display: block;
}

@keyframes installment-calculator-spin {
  to {
    transform: rotate(360deg);
  }
}

.installment-calculator__results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.installment-calculator__results[hidden] {
  display: none !important;
}

.installment-calculator__result-row {
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}

.installment-calculator__highlight {
  color: #e33e2b;
  font-weight: 700;
}
