/* محاسبه‌گر اقساط بانکی — استایل نزدیک کالانو */
.hpb-bpmt-calc {
  --bpmt-ink: #1a365d;
  --bpmt-muted: #64748b;
  --bpmt-accent: #812990;
  --bpmt-accent-2: #0e7c7b;
  --bpmt-soft: #f7f2fa;
  --bpmt-card: #ffffff;
  padding: 12px 16px 28px;
}

.hpb-bpmt-calc--gam {
  --bpmt-accent: #0b3b5a;
  --bpmt-accent-2: #0e7c7b;
  --bpmt-soft: #f3faf9;
}

.hpb-bpmt-calc__head {
  margin-bottom: 16px;
}

.hpb-bpmt-calc__lead {
  margin: 6px 0 0;
  color: var(--bpmt-muted);
  line-height: 1.8;
}

.hpb-bpmt-calc__card {
  background: var(--bpmt-card);
  border: 1px solid rgba(129, 41, 144, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(26, 54, 93, 0.08);
  padding: 22px;
}

.hpb-bpmt-calc--gam .hpb-bpmt-calc__card {
  border-color: rgba(11, 59, 90, 0.12);
}

.hpb-bpmt-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hpb-bpmt-calc__field {
  display: block;
  margin-bottom: 18px;
}

.hpb-bpmt-calc__label {
  display: block;
  margin-bottom: 8px;
  color: var(--bpmt-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.hpb-bpmt-calc__select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.hpb-bpmt-calc__plan-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bpmt-soft);
  margin-bottom: 18px;
}

.hpb-bpmt-calc__plan-chip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}

.hpb-bpmt-calc__plan-chip strong {
  display: block;
  color: var(--bpmt-ink);
}

.hpb-bpmt-calc__plan-chip small {
  color: var(--bpmt-muted);
}

.hpb-bpmt-calc__amount-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.hpb-bpmt-calc__amount-value {
  color: var(--bpmt-accent);
  font-size: 1.05rem;
}

.hpb-bpmt-calc__range {
  width: 100%;
  accent-color: var(--bpmt-accent);
}

.hpb-bpmt-calc__range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--bpmt-muted);
  font-size: 0.82rem;
}

.hpb-bpmt-calc__seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hpb-bpmt-calc__seg-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--bpmt-ink);
}

.hpb-bpmt-calc__seg-btn.is-active {
  background: linear-gradient(135deg, var(--bpmt-accent), var(--bpmt-accent-2));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.hpb-bpmt-calc__results {
  background: linear-gradient(160deg, var(--bpmt-soft), #fff 55%);
  border-radius: 16px;
  padding: 8px 4px;
}

.hpb-bpmt-calc__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.25);
  color: var(--bpmt-muted);
}

.hpb-bpmt-calc__row:last-of-type {
  border-bottom: 0;
}

.hpb-bpmt-calc__row strong {
  display: block;
  color: var(--bpmt-ink);
  font-size: 1.02rem;
}

.hpb-bpmt-calc__row small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}

.hpb-bpmt-calc__row--hero {
  background: rgba(129, 41, 144, 0.08);
  border-radius: 14px;
  border-bottom: 0;
  margin-bottom: 6px;
}

.hpb-bpmt-calc--gam .hpb-bpmt-calc__row--hero {
  background: rgba(14, 124, 123, 0.1);
}

.hpb-bpmt-calc__row--hero strong {
  color: var(--bpmt-accent);
  font-size: 1.25rem;
}

.hpb-bpmt-calc__cta {
  display: inline-flex;
  margin: 12px 14px 4px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bpmt-accent), var(--bpmt-accent-2));
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hpb-bpmt-calc__notes {
  margin: 10px 14px 8px;
  color: var(--bpmt-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.hpb-bpmt-calc__notes ul {
  margin: 0;
  padding-right: 18px;
}

@media (max-width: 900px) {
  .hpb-bpmt-calc__grid {
    grid-template-columns: 1fr;
  }
}
