/* ============================================================
   19-cost-estimator.css — interactive cost estimator
   Module: <section id="estimator">
   Logic: js/cost-estimator.js
   ============================================================ */

#estimator {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-white) 100%);
}
#estimator .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-6);
  align-items: start;
}

.est-intro h2 { margin-bottom: var(--s-3); }
.est-intro p { color: var(--c-muted); font-size: 1.05rem; }
.est-disclaimer {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--c-card);
  border-left: 3px solid var(--c-blue);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--c-muted);
}

.est-tool {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.est-field { margin-bottom: var(--s-4); }
.est-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.est-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-ink);
}
.est-field-value {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
}

/* Range slider */
.est-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--c-line);
  outline: none;
}
.est-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  border: 3px solid var(--c-white);
  box-shadow: 0 2px 8px rgba(45,106,79,0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.est-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.est-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  border: 3px solid var(--c-white);
  cursor: pointer;
}

/* Pill toggle group */
.est-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.est-pill {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid var(--c-line);
  background: var(--c-white);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  white-space: nowrap;
}
.est-pill:hover { border-color: var(--c-blue); color: var(--c-blue); }
.est-pill.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
}

/* Result panel */
.est-result {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  text-align: center;
}
.est-result-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 4px;
}
.est-result-range {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.est-result-note {
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.85;
}
.est-result-cta {
  margin-top: var(--s-3);
  display: block;
  width: 100%;
}

@media (max-width: 880px) {
  #estimator .container { grid-template-columns: 1fr; }
  .est-tool { position: static; }
}
