/* استایل کلی کادر اصلی */
#slider-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 80px; /* افزایش فاصله بین فیلدها */
    flex-wrap: wrap;
}
  
/* استایل کلی هر ورودی */
#slider-section .input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
}
  
/* استایل برچسب (label) */
#slider-section label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}
  
/* استایل لیست کشویی */
#slider-section .custom-select {
    width: auto;
    padding: 10px 12px;
    border: 2px solid #016fd1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #016fd1;
    outline: none;
    cursor: pointer;
}
  
/* استایل محدوده‌ی رنج */
#slider-section .range {
    position: relative;
    width: 30rem; /* تغییر عرض به 30rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
  
/* استایل نوار لغزنده */
#slider-section input[type="range"] {
    width: 100%;
    height: 12px; /* ارتفاع بیشتر */
    border-radius: 6px;
    background: linear-gradient(to left, #016fd1 0%, #016fd1 50%, #e0e0e0 50%, #e0e0e0 100%);
    appearance: none;
}
  
/* استایل دسته‌ی اسلایدر */
#slider-section input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    background: #016fd1;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
  
/* استایل عدد بالای اسلایدر */
#slider-section .value-range {
    position: absolute;
    top: -35px;
    font-size: 16px;
    font-weight: bold;
    color: #434343;
}

.hide {
    display: none !important;
}
  
/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    #slider-section {
      flex-direction: column;
      align-items: stretch;
      gap: 24px; /* در موبایل فاصله کمتر بشه */
    }
  
    #slider-section .input {
      width: 100%;
      justify-content: flex-start;
      margin-bottom: 24px; /* فاصله بیشتر بین لیست کشویی و اسلایدر */
    }
  
    #slider-section .custom-select {
      width: 100%;
    }
  
    #slider-section .range {
      width: 100%;
      margin-bottom: 24px; /* در صورت نیاز باز هم فاصله اضافه کن */
    }
  
    #slider-section input[type="range"] {
      height: 12px;
    }
}
