/* Driver earnings calculator (EfastEarningsCalculator) */

.calc {
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(12, 23, 18, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.calc__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.slider__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider__label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(12, 23, 18, 0.6);
}

.slider__value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 2px 0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  /* --pct is set by js/calculator.js so the green fill follows the knob */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--pct, 50%), rgba(12, 23, 18, 0.09) var(--pct, 50%), rgba(12, 23, 18, 0.09) 100%);
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 1px rgba(12, 23, 18, 0.08), 0 2px 6px rgba(12, 23, 18, 0.2);
  transition: transform 150ms ease;
}

.slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 1px rgba(12, 23, 18, 0.08), 0 2px 6px rgba(12, 23, 18, 0.2);
}

.slider input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.calc__results {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 260px;
  padding: 24px;
  border-radius: 24px;
  background: radial-gradient(120% 100% at 100% 0%, #17231d 0%, var(--panel) 60%);
  color: var(--on-dark);
}

.calc__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 255, 248, 0.6);
}

.calc__big {
  margin-top: 6px;
  font-size: 46px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.calc__note {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(244, 255, 248, 0.5);
}

.calc__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calc__stat {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc__stat b {
  display: block;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.calc__stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(244, 255, 248, 0.6);
}

.calc__stat--hi {
  background: var(--accent);
  border: 0;
  color: var(--on-accent);
}

.calc__stat--hi b { font-size: 28px; }
.calc__stat--hi span { color: rgba(5, 32, 18, 0.7); }

.calc__foot {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(244, 255, 248, 0.55);
}

.calc__ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cta-btn__text small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.cta-btn--whatsapp {
  background: linear-gradient(180deg, #25d366 0%, #1ebe57 100%);
  color: var(--on-accent);
  box-shadow: 0 12px 32px -14px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-btn--whatsapp:hover {
  box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-btn--survey {
  background: rgba(12, 23, 18, 0.04);
  color: var(--ink);
}

.cta-btn--survey:hover {
  background: rgba(18, 199, 101, 0.1);
}

.cta-btn--survey small {
  opacity: 1;
  color: var(--text-soft);
}

@media (max-width: 1199px) {
  .slider input[type="range"] {
    height: 6px;
  }

  .slider input[type="range"]::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    box-shadow: 0 0 0 1px rgba(12, 23, 18, 0.06), 0 3px 8px rgba(12, 23, 18, 0.18), 0 0 0 5px rgba(18, 199, 101, 0.13);
  }

  .slider input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    box-shadow: 0 0 0 1px rgba(12, 23, 18, 0.06), 0 3px 8px rgba(12, 23, 18, 0.18), 0 0 0 5px rgba(18, 199, 101, 0.13);
  }
}
