/* ================================================================
   DEBT PAYOFF CALCULATOR — Additions to calculators.css
   Append these rules to /assets/css/calculators.css
   ================================================================ */

/* Debt row wrapper */
.bsm-debt-row {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 50px 18px 18px;
  margin-bottom: 12px;
  transition: border-color 0.18s;
}

.bsm-debt-row:hover {
  border-color: #93c5fd;
}

/* 4-column grid inside debt row */
.bsm-debt-fields.cols-4 {
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  margin-bottom: 0;
}

/* Remove button */
.bsm-debt-remove {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.bsm-debt-remove:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Add another debt button */
.bsm-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px dashed #2563eb;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
  margin-top: 4px;
}

.bsm-btn-add:hover {
  background: #eff6ff;
}

/* Responsive: stack debt fields on mobile */
@media (max-width: 680px) {
  .bsm-debt-fields.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .bsm-debt-row {
    padding-right: 44px;
  }
}

@media (max-width: 420px) {
  .bsm-debt-fields.cols-4 {
    grid-template-columns: 1fr;
  }
}
