/* ============================================================
   Module: estimator — chair-capacity revenue estimator.
   Visitor-input-only planning tool, clearly labelled illustrative.
   ============================================================ */

.estimator {
  border-radius: calc(var(--r-card) + 8px);
  border: 1px solid var(--border);
  background: var(--surface);
  background-image: var(--card-wash);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4.5vw, 48px);
}
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 980px) { .estimator-grid { grid-template-columns: 1.1fr 0.9fr; } }

.est-field { margin-bottom: var(--s6); }
.est-field:last-child { margin-bottom: 0; }
.est-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s3);
  font-weight: 700;
  font-size: var(--fs-label);
}
.est-label output {
  font-weight: 800;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

/* Range input — brand-styled, both themes */
.est-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.est-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--g1), var(--g3)) no-repeat var(--surface-2);
  background-size: var(--fill, 50%) 100%;
}
.est-range::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.est-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--g1), var(--g3));
}
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--blue);
  box-shadow: var(--shadow-sm);
}
.est-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--shadow-sm);
}

.est-result {
  text-align: center;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: var(--s7) var(--s6);
}
.est-result .est-caption {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s3);
}
.est-result .est-value {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05; /* display numerals need their own line-height */
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s2);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .est-result .est-value {
    background-image: linear-gradient(98deg, var(--link) 10%, var(--accent-text) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.est-result .est-sub { color: var(--text-2); font-size: var(--fs-label); margin-bottom: var(--s5); }
.est-result .est-disclaimer {
  font-size: var(--fs-eyebrow);
  color: var(--text-2);
  margin-top: var(--s5);
  margin-bottom: 0;
}
