/* ==========================================================================
   NIVESHALAYA LLP - FINANCIAL CALCULATORS STYLESHEET
   High Contrast Fintech Layouts, Interactive Dual-Sliders & Visual Data
   ========================================================================== */

.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.calc-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 950px) {
  .calc-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .calc-results-panel {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 600px) {
  .calc-wrapper {
    padding: 20px 15px;
  }
  .calc-results-panel {
    padding: 20px 15px;
  }
  .wizard-card {
    padding: 24px 16px;
  }
  .calc-field-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .calc-field-input-box {
    width: 100%;
    justify-content: space-between;
  }
}

/* Calculator Header */
.calc-page-header {
  margin-bottom: 40px;
  text-align: center;
}

.calc-page-header .section-title {
  margin-bottom: 12px;
}

/* Input Fields & Sliders */
.calc-field-group {
  margin-bottom: 28px;
}

.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-field-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-field-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.calc-field-input-box span {
  font-weight: 700;
  color: var(--cyan-primary);
  font-size: 0.9rem;
}

.calc-field-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  width: 110px;
  text-align: right;
}

/* Slider Track styling */
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-primary), #10b981);
  box-shadow: 0 0 16px var(--cyan-glow);
  border: 3px solid #031710;
  cursor: grab;
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover, .calc-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
}

.calc-slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Results Card Right Column */
.calc-results-panel {
  background: linear-gradient(145deg, rgba(6, 35, 25, 0.95), rgba(3, 20, 14, 0.98));
  border: 1px solid rgba(0, 245, 160, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 160, 0.1);
  position: sticky;
  top: 100px;
}

.results-panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

/* Chart Container */
.calc-chart-box {
  position: relative;
  height: 220px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Value Summary Cards */
.results-metric-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-row.highlight-cyan {
  background: rgba(0, 245, 160, 0.08);
  border-color: rgba(0, 245, 160, 0.25);
}

.metric-row.highlight-gold {
  background: rgba(255, 183, 3, 0.08);
  border-color: rgba(255, 183, 3, 0.25);
}

.metric-row.highlight-emerald {
  background: rgba(0, 245, 160, 0.1);
  border-color: rgba(0, 245, 160, 0.3);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.metric-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
}

.metric-val.total-wealth {
  font-size: 1.55rem;
  color: var(--emerald-primary);
  text-shadow: 0 0 15px rgba(0, 245, 160, 0.3);
}

/* Comparison Bar */
.ratio-progress-wrap {
  margin-bottom: 24px;
}

.ratio-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.ratio-bar-invested {
  background: var(--gold-primary);
  transition: width 0.6s ease;
}

.ratio-bar-returns {
  background: var(--emerald-primary);
  transition: width 0.6s ease;
}

.ratio-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Table Growth Breakdown */
.growth-table-wrap {
  margin-top: 50px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.growth-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.growth-table th {
  background: rgba(8, 40, 29, 0.95);
  padding: 16px 20px;
  color: var(--cyan-primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(0, 245, 160, 0.2);
}

.growth-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: 'Space Grotesk', monospace;
}

.growth-table tr:hover td {
  background: rgba(0, 245, 160, 0.05);
}

/* Goal Selection Cards for Financial Goal Calculator */
.goal-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .goal-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .goal-selector-grid {
    grid-template-columns: 1fr;
  }
}

.goal-card-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.goal-card-option:hover {
  border-color: var(--cyan-primary);
  background: rgba(0, 245, 160, 0.08);
}

.goal-card-option.active {
  border-color: var(--cyan-primary);
  background: rgba(0, 245, 160, 0.15);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.goal-card-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.goal-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
}

/* Fact Finder Step Wizard */
.wizard-steps-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-steps-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-dim);
  transition: all var(--transition-smooth);
}

.wizard-step-node.active {
  border-color: var(--cyan-primary);
  color: #02140d;
  background: var(--cyan-primary);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.wizard-step-node.completed {
  border-color: var(--emerald-primary);
  background: var(--emerald-primary);
  color: #02140d;
}

.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
}

.wizard-question-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 24px;
}

.radio-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .radio-pill-group {
    grid-template-columns: 1fr;
  }
}

.radio-pill-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-pill-label:hover {
  background: rgba(0, 245, 160, 0.08);
  border-color: var(--cyan-primary);
}

.radio-pill-label input[type="radio"] {
  accent-color: var(--cyan-primary);
  width: 18px;
  height: 18px;
}

.radio-pill-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-pure);
}

.radio-pill-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
