.estimate-section {
  padding: 100px 0;
  background: var(--cream);
}

.estimate-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.estimate-heading h2 {
  margin-bottom: 15px;
  color: var(--ink2);
}

.estimate-heading > p:last-child {
  margin: 0 auto;
  max-width: 670px;
  color: var(--muted);
}

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.estimate-form,
.estimate-result {
  min-width: 0;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(32, 40, 48, .08);
}

.estimate-form {
  display: grid;
  align-content: start;
  gap: 17px;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid #e4dfd5;
  background: #fff;
}

.estimate-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.estimate-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #27313a;
  font-size: .84rem;
  font-weight: 750;
}

.estimate-field[hidden],
.estimate-option[hidden] {
  display: none;
}

.estimate-field-note {
  color: #68717a;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.45;
}

.estimate-field input,
.estimate-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbc9c2;
  border-radius: 6px;
  background: #fff;
  color: #202830;
  font: 500 .92rem Inter, Arial, sans-serif;
}

.estimate-field select:focus-visible,
.estimate-field input:focus-visible,
.estimate-option input:focus-visible,
.estimate-button:focus-visible {
  outline: 3px solid rgba(200, 155, 60, .35);
  outline-offset: 2px;
  border-color: #a77b28;
}

.estimate-input-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #cbc9c2;
  border-radius: 6px;
  background: #fff;
}

.estimate-input-wrap:focus-within {
  outline: 3px solid rgba(200, 155, 60, .2);
  border-color: #a77b28;
}

.estimate-input-wrap input {
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.estimate-input-wrap > span {
  flex: 0 0 auto;
  padding: 0 13px;
  color: #606a73;
  font-size: .82rem;
  font-weight: 700;
}

.estimate-subtype-wrap[hidden],
.estimate-options[hidden],
.estimate-home-area[hidden],
.estimate-includes[hidden] {
  display: none;
}

.estimate-options {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 15px;
  border: 1px solid #e7e1d7;
  border-radius: 8px;
}

.estimate-options legend {
  padding: 0 6px;
  color: #545e67;
  font: 800 .75rem Montserrat, Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.estimate-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 46px;
  padding: 7px 2px;
  cursor: pointer;
}

.estimate-option input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.estimate-option strong,
.estimate-option small {
  display: block;
}

.estimate-option strong {
  color: #27313a;
  font-size: .84rem;
}

.estimate-option small {
  margin-top: 2px;
  color: #69727a;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.45;
}

.estimate-includes {
  margin: -3px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #faf7ef;
  color: #5d6265;
  font-size: .78rem;
  line-height: 1.5;
}

.estimate-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 12px 17px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #171717;
  cursor: pointer;
  font: 800 .96rem Montserrat, Arial, sans-serif;
  transition: transform .17s ease, background-color .17s ease, box-shadow .17s ease;
}

.estimate-button:hover {
  transform: translateY(-1px);
  background: #d6aa4b;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .12);
}

.estimate-button span {
  font-size: 1.35rem;
  line-height: 1;
}

.estimate-form-error {
  min-height: 1.3em;
  margin: -8px 0 0;
  color: #a33a32;
  font-size: .78rem;
}

.estimate-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(25px, 3.6vw, 42px);
  background: linear-gradient(145deg, #11171c, #202830);
  color: #fff;
}

.estimate-result-kicker {
  color: var(--gold2);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.estimate-result-empty {
  max-width: 360px;
  margin: 14px 0 0;
  color: #d0d4d8;
  font-size: 1.12rem;
  line-height: 1.6;
}

.estimate-result h3 {
  margin: 9px 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.estimate-result-caption {
  margin: 0 0 22px;
  color: #d0d4d8;
  font-size: .8rem;
}

.estimate-breakdown {
  display: grid;
  gap: 11px;
  margin: 0;
}

.estimate-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.estimate-breakdown dt {
  color: #d3d7da;
  font-size: .82rem;
}

.estimate-breakdown dd {
  margin: 0;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}

.estimate-total {
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 182, 91, .5);
}

.estimate-total-label {
  display: block;
  color: #e2e5e7;
  font-size: .8rem;
}

.estimate-total-range {
  display: block;
  margin-top: 4px;
  color: var(--gold2);
  font: 800 clamp(1.6rem, 3vw, 2.2rem) Montserrat, Arial, sans-serif;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.estimate-result-note {
  margin: 14px 0 0;
  color: #bfc5c9;
  font-size: .74rem;
  line-height: 1.55;
}

.estimate-result-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 15px;
  border-radius: 5px;
  background: var(--gold);
  color: #171717;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.estimate-result-cta:hover {
  background: #d6aa4b;
}

.estimate-result-manual {
  margin: 16px 0 0;
  color: #e2e5e7;
  font-size: .9rem;
  line-height: 1.65;
}

.estimate-disclaimer {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #e4dfd5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.estimate-info-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #eee5d0;
  color: #7b5b1b;
  font: 800 .8rem Montserrat, Arial, sans-serif;
}

.estimate-disclaimer p {
  margin: 0;
  color: #59636c;
  font-size: .75rem;
  line-height: 1.6;
}

.estimate-sources {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #e4dfd5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.estimate-sources summary {
  color: #27313a;
  cursor: pointer;
  font: 750 .84rem Montserrat, Arial, sans-serif;
}

.estimate-sources > div {
  max-width: 900px;
  padding-top: 8px;
  color: #5d6770;
  font-size: .76rem;
  line-height: 1.6;
}

.estimate-sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
  padding-left: 18px;
}

.estimate-sources a {
  color: #795a1d;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .estimate-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .estimate-result {
    min-height: 350px;
  }
}

@media (min-width: 851px) and (max-width: 1080px) {
  .nav { gap: 11px; }
  .nav a { font-size: .8rem; }
  .nav-wa { padding: 8px 11px; }
  .logo-link img { width: 122px; }
}

@media (max-width: 560px) {
  .estimate-section {
    padding: 68px 0 76px;
  }

  .estimate-heading {
    margin-bottom: 27px;
    text-align: left;
  }

  .estimate-heading h2 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .estimate-fields-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .estimate-form {
    gap: 15px;
    padding: 20px 17px;
    border-radius: 11px;
  }

  .estimate-field input,
  .estimate-field select,
  .estimate-input-wrap {
    min-height: 50px;
    font-size: 16px;
  }

  .estimate-input-wrap input {
    min-height: 48px;
  }

  .estimate-option {
    min-height: 52px;
    gap: 12px;
  }

  .estimate-result {
    min-height: 320px;
    padding: 25px 20px;
    border-radius: 11px;
  }

  .estimate-breakdown div {
    align-items: flex-start;
  }

  .estimate-breakdown dt,
  .estimate-breakdown dd {
    font-size: .77rem;
  }

  .estimate-total-range {
    font-size: 1.75rem;
  }

  .estimate-disclaimer {
    padding: 13px;
  }

  .estimate-sources {
    padding: 14px;
  }

  .estimate-sources ul {
    grid-template-columns: 1fr;
  }
}
