/* A clear sequence: choose services, adjust details, continue with the estimate. */
.estimator .section-top { border: 0; padding-bottom: 0; margin-bottom: 28px; }
.estimator .section-top > p { max-width: 30ch; }
.estimator .planning-modes { margin-bottom: 36px; }
.estimator .planning-modes button {
  grid-template-columns: 24px minmax(0, 1fr); align-content: center;
  gap: 6px 14px; padding: 22px 24px; min-height: 108px;
  background: #e1d4eb; border-color: #89647a;
}
.estimator .planning-modes button[aria-pressed=true] { background: var(--cream); border-color: var(--wine); }
.estimator .planning-modes strong { font-size: 1.25rem; line-height: 1.4; }
.estimator .planning-modes small { font-size: 1rem; line-height: 1.5; }
.mode-mark {
  width: 24px; height: 24px; margin-top: 2px; grid-row: 1/3;
  border: 1px solid #89647a; border-radius: 50%; color: transparent;
  display: inline-flex; align-items: center; justify-content: center; font: 16px/1 Arial, sans-serif;
}
[aria-pressed=true] > .mode-mark { background: var(--green); border-color: var(--green); color: var(--cream); }
.service-picker-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.service-picker-heading h3 { font-size: 1.5rem; line-height: 1.4; text-wrap: initial; }
.service-picker-heading p { font-size: 1rem; line-height: 1.5; }
.estimator .service-picker { margin-bottom: 24px; }
.estimator .service-picker label { background: #f5f1e770; border-color: #89647a; padding: 20px; }
.estimator .service-picker label:has(input:checked) { background: var(--green); border-color: var(--green); }
.estimator .service-picker label span { font-size: 1.1875rem; line-height: 1.4; }
.estimator .service-picker label small { margin-top: 4px; }
.estimator .service-picker input { width: 24px; height: 24px; margin-top: 1px; }
.estimator .estimate-layout { grid-template-columns: 1fr; gap: 28px; }
.estimator .estimate-layout.has-services { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); }
.estimator .estimate-controls::before { content: none !important; display: none !important; }
.control-guide { font-size: 1rem; line-height: 1.6; margin: 0 0 18px; }
.estimator .estimate-controls > div {
  background: #f5f1e7; padding: 26px; margin: 0 0 18px;
  border: 1px solid #56183120; border-radius: 14px;
}
.estimator .control-heading { margin-bottom: 20px; }
.estimator .receiving-service-options { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.estimator .receiving-service-options select { width: 100%; font-size: 1rem; }
.estimator .input-grid input, .estimator .input-grid select { background: #fffdf8; border-color: #89647a; }
.estimator .estimate-controls .small { line-height: 1.6; }
.estimator .planner-assistance { border: 0; padding: 18px 0 0; margin-top: 22px !important; border-top: 1px solid var(--line); }
.estimator .planner-assistance .text-link { display: flex; width: fit-content; font-size: 1rem; }
.estimator .calculator-options, .estimator .estimate-help { border-top: 1px solid var(--line); border-bottom: 0; padding: 12px 0; margin: 0; }
.estimator .calculator-options > summary, .estimator .estimate-help > summary { font-size: 1rem; min-height: 44px; }
.estimator .estimate-result { padding: 28px; border-top: 4px solid #f5b68f; box-shadow: none; }
.estimator .estimate-result .eyebrow { font-size: .875rem; margin-bottom: 18px; }
.estimator .estimate-value { font-size: clamp(2.75rem, 4.3vw, 3.5rem); line-height: 1.12; }
.estimator .estimate-result dl { margin: 24px 0 0; }
.estimator .estimate-result dt { font-size: 1rem; line-height: 1.5; }
.estimator .estimate-result dt small { font-size: .9375rem; line-height: 1.6; }
.estimator .estimate-result .button { margin-top: 20px; }
.estimator .estimate-next-help { margin-top: 14px; }
.estimate-team-help { font-size: 1rem; margin-top: 10px; }
.estimate-reference { margin-top: 24px; border-top: 1px solid var(--line); }
.estimator .estimate-assumptions, .estimator .estimate-sharing { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.estimator .estimate-sharing { border-bottom: 0; padding-bottom: 0; }
.estimate-reference summary { font-size: 1rem; min-height: 44px; line-height: 1.5; }
.estimator .estimate-actions { margin-top: 8px; gap: 8px 20px; }
.estimate-contact { font-size: 1rem; line-height: 1.6; margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.estimate-contact a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.estimator.is-assisted .service-picker::before { content: none; }
.estimator.is-assisted .estimate-layout { display: none; }
.estimate-mobile-summary { display: none; }

@media (max-width: 1000px) {
  .estimator .estimate-layout.has-services { grid-template-columns: 1fr; }
  .estimator .estimate-result { position: static; }
  .estimate-mobile-summary {
    display: flex; position: fixed; z-index: 10; bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right));
    margin-inline: auto; max-width: 560px; padding: 12px 16px; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: var(--wine); color: var(--cream); border: 1px solid #f5f1e755; border-radius: 14px; box-shadow: 0 6px 24px #56183130;
  }
  .estimate-mobile-summary span { display: block; font-size: .875rem; line-height: 1.4; }
  .estimate-mobile-summary strong { display: block; font-weight: 400; font-size: 1.5rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .estimate-mobile-summary .button { flex-shrink: 0; background: var(--cream); color: var(--wine); border-color: var(--cream); padding: 12px 16px; font-size: 1rem; }
}
@media (max-width: 700px) {
  .estimator .section-top { margin-bottom: 24px; }
  .estimator .section-top > p { margin-top: 16px; max-width: 28ch; }
  .estimator .planning-modes { margin-bottom: 30px; }
  .estimator .planning-modes button { min-height: 0; padding: 18px; gap: 4px 12px; }
  .estimator .planning-modes strong { font-size: 1.1875rem; }
  .service-picker-heading { display: block; margin-bottom: 16px; }
  .service-picker-heading h3 { font-size: 1.375rem; }
  .service-picker-heading p { margin-top: 6px; }
  .estimator .service-picker label { padding: 16px; }
  .estimator .estimate-controls > div { padding: 22px; margin-inline: -8px; }
  .estimator .estimate-controls .input-grid { grid-template-columns: 1fr; gap: 20px; }
  .estimator .estimate-result { padding: 24px; margin-inline: -8px; }
  .estimator .estimate-result dt { font-size: 1rem; }
  .estimator .estimate-result dd { font-size: 1.125rem; }
  .estimator .estimate-value { font-size: 3rem; }
  .estimator .estimate-controls .item-row { padding: 16px; margin-inline: -8px; }
  .estimator .control-heading h3 { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .estimator .planning-modes button { padding: 16px; }
  .estimate-mobile-summary { gap: 10px; padding-inline: 12px; }
  .estimate-mobile-summary .button { padding-inline: 12px; }
}
@media print {
  .estimate-mobile-summary, .estimate-contact, .estimate-team-help, .estimate-next-help, .estimate-sharing, .control-guide { display: none !important; }
  .estimator .estimate-layout.has-services { display: block; }
  .estimator .estimate-result { border: 0; padding: 0; margin: 0; }
}
