.snapppay-loan-calculator {
/*  font-family: 'IRANSans', Tahoma, sans-serif;*/
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 992px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .calculator-side {
    order: -1;
  }
}

/* بخش اصلی */
.calculator-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.loan-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
}

/* برچسب‌های اسلایدر */
.amount-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* اسلایدر */
#amount-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to left, #4CAF50 var(--slider-progress), #e0e0e0 var(--slider-progress));
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 20px;
}

#amount-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#amount-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* نمایش مبلغ */
.amount-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.step-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #4CAF50;
  background: #fff;
  color: #4CAF50;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-btn:hover:not(:disabled) {
  background: #4CAF50;
  color: #fff;
}

.step-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.amount-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#loan-amount {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

.amount-value > span:last-child {
  font-size: 14px;
  color: #666;
}

/* فیلدها */
.field-block {
  margin-bottom: 20px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.field-block label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* دکمه‌های مدت */
.term-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.term-option {
  flex: 1;
  min-width: 80px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.term-option:hover {
  border-color: #4CAF50;
}

.term-option.active {
  border-color: #4CAF50;
  background: #4CAF50;
  color: #fff;
}

/* دکمه‌های ضمانت */
.guarantee-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guarantee-option {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.guarantee-option:hover {
  border-color: #4CAF50;
}

.guarantee-option.active {
  border-color: #4CAF50;
  background: #4CAF50;
  color: #fff;
}

/* تأمین‌کننده */
.provider-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
}

.provider-help {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px 0;
}

.provider-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.provider-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.provider-option:hover {
  border-color: #4CAF50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.provider-option.active {
  border-color: #4CAF50;
  background: #f1f8f4;
}

.provider-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.provider-option span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* کارت نتیجه */
.calculator-side {
  position: sticky;
  top: 20px;
}

.result-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row.total {
  background: #f9f9f9;
  margin: 16px -24px 0;
  padding: 16px 24px;
  border-radius: 0 0 16px 16px;
}

.result-row span {
  font-size: 14px;
  color: #666;
}

.result-row strong {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.result-row.total strong {
  font-size: 20px;
  color: #4CAF50;
}

.request-btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.request-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.request-btn:active {
  transform: translateY(0);
}
