/* محاسبه‌گر اقساط باجت‌استایل — UI دو ستونه مشابه mybajet.ir/kalano-plan */
.hpb-bajet-calc {
  direction: rtl;
  text-align: right;
}

.hpb-bajet-calc__head {
  margin-bottom: 1.25rem;
}

.hpb-bajet-calc__lead {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.hpb-bajet-calc__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.hpb-bajet-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hpb-bajet-calc__grid {
    grid-template-columns: 1fr;
  }
}

.hpb-bajet-calc__inputs {
  background: linear-gradient(180deg, #f3f8ff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hpb-bajet-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hpb-bajet-calc__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.hpb-bajet-calc__plan-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hpb-bajet-calc__select {
  flex: 1;
  min-height: 46px;
  border: 1px solid #c9d8ec;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.8rem;
  font: inherit;
  color: #0f172a;
}

.hpb-bajet-calc__plan-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 4px;
}

.hpb-bajet-calc__plan-logo--empty {
  display: none;
}

.hpb-bajet-calc__amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.hpb-bajet-calc__amount-value {
  color: #1d4ed8;
  font-size: 1.05rem;
}

.hpb-bajet-calc__range {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  outline: none;
}

.hpb-bajet-calc__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  cursor: pointer;
}

.hpb-bajet-calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  cursor: pointer;
}

.hpb-bajet-calc__range-ends {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.8rem;
}

.hpb-bajet-calc__seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.hpb-bajet-calc__seg--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpb-bajet-calc__seg-btn {
  min-height: 44px;
  border: 1px solid #d0dcea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.hpb-bajet-calc__seg-btn.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #2563eb;
  background: #eff6ff;
}

.hpb-bajet-calc__seg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
}

.hpb-bajet-calc__field--period {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.hpb-bajet-calc__period-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 8px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.9rem;
}

.hpb-bajet-calc__results {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.35rem 1rem 1rem;
  background: #fff;
}

.hpb-bajet-calc__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.hpb-bajet-calc__row > span {
  color: #64748b;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.hpb-bajet-calc__row > div {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hpb-bajet-calc__row strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.hpb-bajet-calc__row small {
  color: #94a3b8;
  font-size: 0.78rem;
}

.hpb-bajet-calc__row--total {
  border-bottom: 0;
}

.hpb-bajet-calc__row--total strong {
  font-size: 1.08rem;
  color: #0f172a;
}

.hpb-bajet-calc__notes {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.7;
}

.hpb-bajet-calc__notes ul {
  margin: 0;
  padding-right: 1.1rem;
}

.hpb-bajet-calc__notes li + li {
  margin-top: 0.35rem;
}
