/* Estimator page â€” owns its own layout + breakpoints.
   v1.23.2 â€” aligned to site-wide tokens (var(--teal), --navy, --gray-*), uses
   the standard `.container` (max 1100px / 24px gutter) for shared horizontal
   margins, and ships a prominent teal-tinted main form so it reads as the
   focal element on the page. The submit buttons use the global `.btn .btn-primary`
   classes â€” no estimator-specific overrides. */

.estimator-page {
  padding: 32px 0 64px;
}

.estimator-breadcrumb {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
  word-break: break-word;
}
.estimator-breadcrumb a {
  color: var(--gray-700);
  text-decoration: none;
}
.estimator-breadcrumb a:hover { text-decoration: underline; }

.estimator-header { margin-bottom: 24px; }
.estimator-header h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--navy);
}
.estimator-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

/* Main form section â€” visually the focal element on the page.
   Teal-tinted background + thicker teal border so an at-a-glance scan lands
   on the estimator and the secondary sections (trust copy, quote follow-up)
   sit a level lower. */
.estimator-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.estimator-section--primary {
  background: var(--teal-light);
  border: 2px solid var(--teal);
  box-shadow: 0 6px 24px -12px rgba(13, 148, 136, 0.35);
  padding: 32px;
}
.estimator-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--navy);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 16px;
}
.estimator-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.estimator-field--full {
  grid-column: 1 / -1;
}
.estimator-field > span,
.estimator-field > legend {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.estimator-field small {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Inputs, selects, textareas â€” share one height + one border style so the
   zip box aligns with the city select and every other field. */
.estimator-field input[type=text],
.estimator-field input[type=email],
.estimator-field input[type=tel],
.estimator-field select,
.estimator-field textarea {
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  width: 100%;
  box-sizing: border-box;
  color: var(--navy);
}
.estimator-field textarea {
  height: auto;
  padding: 10px 12px;
  min-height: 96px;
  resize: vertical;
}
.estimator-field input:focus,
.estimator-field select:focus,
.estimator-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

#estimator-comorbidities {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
#estimator-comorbidities legend {
  padding: 0 8px;
}
#estimator-comorbidities label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}
#estimator-comorbidities small {
  grid-column: 1 / -1;
  margin-top: 6px;
}

#estimate-form button[type=submit],
#quote-form button[type=submit] {
  margin-top: 8px;
}

#estimate-result,
#quote-result {
  margin-top: 16px;
}

.estimate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
}
.estimate-card--success {
  background: var(--teal-light);
  border-color: var(--teal);
}
.estimate-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--navy);
}
.estimate-range {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}
.estimate-label {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.estimate-meta {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.estimate-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.estimator-trust ul {
  padding-left: 1.2em;
  line-height: 1.6;
  color: var(--gray-700);
}
.estimator-trust li {
  margin-bottom: 10px;
}

#quote-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
#quote-form fieldset[disabled] {
  opacity: 0.6;
}

@media (max-width: 720px) {
  .estimator-grid { grid-template-columns: 1fr; }
  #estimator-comorbidities { grid-template-columns: 1fr; }
  .estimator-header h1 { font-size: 28px; }
  .estimate-range { font-size: 26px; }
  .estimator-page { padding: 24px 0 48px; }
  .estimator-section { padding: 20px 16px; }
  .estimator-section--primary { padding: 24px 16px; }
}
