.sip-section {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  font-family: var(--rv-font);
  background: var(--rv-white);
}

.sip-left {
  flex: 1;
  min-width: 340px;
  background: var(--rv-primary);
  color: var(--rv-white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sip-left h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 600;
}

.slider-group {
  margin-bottom: 25px;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-top label {
  font-weight: 500;
  font-size: 16px;
}

.slider-top input[type="text"] {
  width: 90px;
  border: none;
  background: transparent;
  color: var(--rv-white);
  font-weight: 600;
  text-align: right;
}

/* jQuery UI Slider customization */
.ui-slider {
  position: relative;
  height: 6px;
  background: var(--rv-primary-light);
  border-radius: 10px;
  border: none;
}

.ui-slider-range {
  background: var(--rv-secondary);
  border-radius: 10px;
}

.ui-slider-handle {
  height: 18px;
  width: 18px;
  background: var(--rv-secondary);
  border: 2px solid var(--rv-white);
  border-radius: 50%;
  cursor: pointer;
  top: -6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s;
}

.ui-slider-handle:hover {
  transform: scale(1.15);
  background: var(--rv-secondary-light);
}

#sipchart {
  height: 220px;
  background: var(--rv-white);
  border-radius: 12px;
  margin-top: 20px;
  padding: 10px;
}

.output-values {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 10px;
}

.output-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
}

.output-card span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 5px;
}

/* Right Side */
.sip-right {
  flex: 1;
  min-width: 340px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sip-right h3 {
  font-size: 24px;
  color: var(--rv-primary);
  margin-bottom: 15px;
}

.sip-right p {
  color: var(--rv-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.sip-right ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.sip-right ul li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  color: var(--rv-black);
}

.sip-right ul li::before {
  content: "✓";
  color: var(--rv-primary);
  position: absolute;
  left: 0;
}

.btn-invest {
  background: var(--rv-primary);
  color: var(--rv-white);
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: max-content;
}

.btn-invest:hover {
  background: var(--rv-secondary);
  color: var(--rv-black);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .sip-section {
    flex-direction: column;
  }
}
/* --- SLIDER BASE --- */
.ui-slider {
  position: relative;
  height: 6px !important; /* slim bar */
  border-radius: 10px;
  background: linear-gradient(90deg, #ccc, #e0e0e0);
  border: none;
  margin-top: 8px;
  margin-bottom: 18px;
}

/* Active fill section */
.ui-slider-range {
  background: linear-gradient(90deg, var(--rv-primary), var(--rv-secondary));
  border-radius: 10px;
  height: 6px !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

/* --- HANDLE (POINTER) --- */
.ui-slider-handle {
  width: 22px !important;
  height: 22px !important;
  top: -8px !important;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--rv-primary));
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover and active states for the handle */
.ui-slider-handle:hover,
.ui-slider-handle:focus,
.ui-slider-handle.ui-state-active {
  transform: scale(1.1);
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--rv-secondary));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 2px 5px rgba(255, 255, 255, 0.8),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  outline: none;
}

/* --- SLIDER LABEL + INPUT --- */
.slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.slider-top label {
  font-weight: 500;
  font-size: 20px;
  color: WHITE;
}
.slider-top input {
  width: 90px;
  text-align: right;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 16px;
  color: var(--rv-black);
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
