/* calculator.css — ROI Missed Call Calculator widget styles */

/* === SECTION SHELL === */
.roi-calc-section {
  padding: 80px 0 100px;
  background: var(--bg-2);
  position: relative;
}
.roi-calc-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-dim), transparent);
}
.roi-calc-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-dim), transparent);
}

.roi-calc-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === HEADER === */
.roi-calc-header {
  text-align: center;
  margin-bottom: 48px;
}
.roi-calc-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.roi-calc-sub {
  font-size: 16px;
  color: var(--text-2);
}

/* === CARD === */
.roi-calc-card {
  background: var(--bg-3);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* === SLIDERS COLUMN === */
.roi-sliders {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

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

.roi-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.roi-slider-label-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.roi-slider-val {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-2);
  min-width: 56px;
  text-align: right;
}

/* Custom range slider track + thumb */
.roi-slider-track-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  /* touch-action: none helps on iOS */
  touch-action: pan-y;
}

/* Fill overlay (visual left fill behind the thumb) */
.roi-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(to right, var(--accent-3), var(--accent-2));
  border-radius: 100px;
  pointer-events: none;
  z-index: 1;
  transition: width 0.05s;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid var(--bg-3);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  cursor: grab;
  transition: box-shadow 0.2s, transform 0.15s;
}
.roi-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.3);
}
.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid var(--bg-3);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  cursor: grab;
}
.roi-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35);
}

.roi-slider-minmax {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
}
.roi-slider-hint {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  flex: 1;
  padding: 0 8px;
}

/* === OUTPUT COLUMN === */
.roi-output {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 84px;
}

.roi-output-main {
  background: var(--bg-4);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-output-monthly {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roi-big-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #F87171; /* warm red — money leaving */
  letter-spacing: -0.03em;
  line-height: 1;
  /* smooth number changes */
  transition: color 0.2s;
}

.roi-big-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.roi-output-year {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.roi-year-number {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-3);
}

.roi-year-label {
  font-size: 13px;
  color: var(--text-3);
}

/* Recovery callout */
.roi-output-recover {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.roi-recover-icon {
  font-size: 18px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.4;
  flex-shrink: 0;
}

.roi-recover-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}
.roi-recover-text strong {
  color: var(--text);
}

/* CTA button */
.roi-cta-btn {
  display: block;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.roi-cta-btn:hover {
  background: var(--accent-3);
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
  .roi-calc-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 28px;
  }
  .roi-output {
    position: static;
  }
}

@media (max-width: 480px) {
  .roi-calc-inner { padding: 0 20px; }
  .roi-calc-card { padding: 24px 20px; }
  .roi-slider-hint { display: none; }
  .roi-big-number { font-size: 40px; }
}
