/* =========================================================
   LUMINA ENERGY — ROI Calculator Styles
   Colors: #0D0D0D bg | #8BC53F green | #2D2D2D graphite | #FFFFFF text
   ========================================================= */

/* ---------------------------------------------------------
   Section wrapper
   --------------------------------------------------------- */
.section-roi {
  padding: 100px 0;
  background-color: #111111;
  position: relative;
  overflow: hidden;
}

.section-roi::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 197, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-roi .section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8BC53F;
  margin-bottom: 16px;
}

.section-roi .section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-roi .section-title .text-green {
  color: #8BC53F;
  font-style: normal;
}

.section-roi .section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---------------------------------------------------------
   Two-column grid
   --------------------------------------------------------- */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* ---------------------------------------------------------
   LEFT COLUMN — Inputs
   --------------------------------------------------------- */
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group > label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8BC53F;
}

/* ----- CFE Value display ----- */
.cfe-value-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cfe-value-display span {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ----- Range Slider ----- */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    #8BC53F 0%,
    #8BC53F calc(var(--progress, 4.9%) * 1%),
    #2D2D2D calc(var(--progress, 4.9%) * 1%),
    #2D2D2D 100%
  );
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: background 0.1s ease;
}

/* WebKit thumb */
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8BC53F;
  border: 3px solid #111111;
  box-shadow: 0 0 0 2px #8BC53F, 0 4px 12px rgba(139, 197, 63, 0.4);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #8BC53F, 0 6px 20px rgba(139, 197, 63, 0.6);
}

/* Firefox thumb */
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8BC53F;
  border: 3px solid #111111;
  box-shadow: 0 0 0 2px #8BC53F, 0 4px 12px rgba(139, 197, 63, 0.4);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.roi-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

/* Firefox track */
.roi-slider::-moz-range-track {
  height: 6px;
  background: #2D2D2D;
  border-radius: 99px;
}

.roi-slider::-moz-range-progress {
  height: 6px;
  background: #8BC53F;
  border-radius: 99px;
}

/* MS (IE/old Edge) */
.roi-slider::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8BC53F;
  border: 3px solid #111111;
  cursor: grab;
}

.roi-slider::-ms-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.roi-slider::-ms-fill-lower {
  background: #8BC53F;
  border-radius: 99px;
}

.roi-slider::-ms-fill-upper {
  background: #2D2D2D;
  border-radius: 99px;
}

/* Slider min/max labels */
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* ----- Type Toggle Pills ----- */
.type-toggle {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.type-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  outline: none;
}

.type-btn:hover {
  border-color: rgba(139, 197, 63, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.type-btn.active {
  background: #8BC53F;
  border-color: #8BC53F;
  color: #111111;
  box-shadow: 0 4px 16px rgba(139, 197, 63, 0.35);
}

.type-btn:focus-visible {
  outline: 2px solid #8BC53F;
  outline-offset: 2px;
}

/* ----- Select ----- */
.select-wrapper {
  position: relative;
}

.roi-select {
  width: 100%;
  padding: 13px 42px 13px 16px;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roi-select:focus {
  border-color: #8BC53F;
  box-shadow: 0 0 0 3px rgba(139, 197, 63, 0.15);
}

.roi-select option {
  background: #1A1A1A;
  color: #ffffff;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: color 0.2s ease;
}

.select-wrapper:focus-within .select-arrow {
  color: #8BC53F;
}

/* ----- Calc Button ----- */
.calc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   RIGHT COLUMN — Results Card
   --------------------------------------------------------- */
.results-card {
  background: #1A1A1A;
  border: 1px solid rgba(139, 197, 63, 0.2);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.results-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 197, 63, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.results-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ----- Metric List ----- */
.metrics-list {
  display: flex;
  flex-direction: column;
}

.metric-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.metric-item--last {
  border-bottom: none;
}

.metric-item:hover {
  opacity: 0.9;
}

.metric-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  width: 40px;
  text-align: center;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.metric-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  letter-spacing: 0.02em;
}

.metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.metric-value.text-green {
  color: #8BC53F;
}

/* ----- Disclaimer ----- */
.results-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 20px;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

/* ----- Results CTA ----- */
.results-cta {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .results-card {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .section-roi {
    padding: 70px 0;
  }

  .section-roi .section-subtitle {
    margin-bottom: 40px;
  }

  .cfe-value-display span {
    font-size: 2rem;
  }

  .roi-grid {
    gap: 32px;
  }

  .type-toggle {
    gap: 6px;
  }

  .type-btn {
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .metric-value {
    font-size: 1.1rem;
  }

  .metric-icon {
    font-size: 1.6rem;
    width: 32px;
  }

  .results-card {
    padding: 24px 20px;
  }
}
