/* ═══════════════════════════════════════════════════════════════
   SIP CALCULATOR STYLES
   ═══════════════════════════════════════════════════════════════ */
.sip-calculator-section {
  padding: 100px 20px;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

.sip-calculator-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 122, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #e2e8f0;
}

.sip-calc-inputs {
  flex: 1;
  min-width: 320px;
  padding: 50px;
  background: #fff;
}

.sip-calc-results {
  flex: 1;
  min-width: 320px;
  padding: 50px;
  background: #fdfdff;
  border-left: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sip-calc-header {
  margin-bottom: 40px;
}

.sip-calc-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.sip-calc-header p {
  color: #64748b;
  font-size: 15px;
}

.calc-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 40px;
  gap: 4px;
}

.calc-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.calc-tab:hover {
  color: #1e293b;
}

.calc-tab.active {
  background: #ffffff;
  color: #007AFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-group {
  margin-bottom: 30px;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.input-label-row label {
  font-weight: 700;
  color: #334155;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-val-box {
  background: #f0f9ff;
  color: #007AFF;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

/* Slider Styling */
.sip-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 5px;
  outline: none;
  transition: .2s;
}

.sip-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #007AFF;
  cursor: pointer;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
}

.sip-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #007AFF;
  cursor: pointer;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
}

/* Results Display */
.result-item {
  margin-bottom: 25px;
}

.result-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

.result-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.result-value.highlight {
  color: #007AFF;
  font-size: 42px;
}

/* Chart Placeholder Styles */
.sip-chart-container {
  margin-top: 30px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  padding-bottom: 20px;
}

.bar-col {
  flex: 1;
  background: #f1f5f9;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.3s ease;
}

.bar-invested {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar-returns {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #007AFF;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.hidden { display: none !important; }

@media (max-width: 768px) {
  .sip-calc-inputs, .sip-calc-results {
    padding: 30px;
  }
}
