/* Hero estimate widget. Sits in the hero on desktop, stacks under the copy
   on phones. It must stay legible at 375px - the line-item list is the whole
   point of the section, so it never becomes a horizontal scroller. */

.estimator {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 18px 44px rgba(20, 24, 29, 0.1);
}

.estimator-heading {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.estimator-fields {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.field label,
.tier-group legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  width: 100%;
  min-width: 0;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.input-suffix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-suffix span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Says plainly that the footprint is assumed, not measured. Do not remove
   this without a real measurement source behind the address field. */
.field-hint {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.tier-group {
  border: 0;
  padding: 0;
  margin: 1.1rem 0 0;
}

.tier-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tier-option {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  min-height: 2.9rem;
  justify-content: center;
}

.tier-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(180, 68, 31, 0.07);
}

.tier-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.tier-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.tier-note {
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.estimate-lines {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.estimate-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.estimate-line-label {
  color: var(--ink-soft);
  min-width: 0;
}

.estimate-line-detail {
  display: block;
  font-size: 0.75rem;
  color: #78828e;
}

.estimate-line-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.estimate-total-label {
  font-weight: 700;
}

.estimate-total-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: right;
}

.estimator-disclaimer {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 30rem) {
  .estimator {
    padding: 1.75rem 1.5rem;
  }

  .estimator-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}
