/* The public estimate flow. Other pages keep their existing form styles. */
.estimate-page .contact-hero { padding: 175px 0 48px; }
.estimate-page .contact-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.04; }
.estimate-page .contact-hero .hero-copy { max-width: 680px; font-size: 1.1rem; margin-top: 20px; }
.estimate-page .estimate-section { padding: 48px 0 80px; }
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 48px; align-items: start; }
.estimate-layout > * { min-width: 0; }
.estimate-page #estimate-form { scroll-margin-top: 160px; }
.estimate-page .estimate-form { border: 1px solid #ded9cf; border-radius: 12px; padding: clamp(22px, 3vw, 40px); gap: 24px; box-shadow: 0 12px 40px #24201609; }
.estimate-form-heading h2 { margin: 0; font: 400 clamp(1.8rem, 3vw, 2.35rem)/1.12 Georgia, serif; letter-spacing: -.03em; }
.estimate-form-heading p { margin: 14px 0 0; color: #625c50; font-size: .9rem; line-height: 1.5; }
.estimate-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.estimate-steps li { border-top: 3px solid #ded9cf; padding-top: 12px; color: #676053; font-size: .82rem; line-height: 1.35; }
.estimate-steps li > span:first-child { display: block; font-size: .72rem; letter-spacing: .1em; margin-bottom: 4px; }
.estimate-steps li[aria-current="step"] { color: #171714; border-color: #a47119; font-weight: 800; }
.estimate-steps li.is-complete { border-color: #d8ad50; }
.estimate-page #estimate-form .intake-notice { padding: 14px 18px; border: 0; border-left: 3px solid #b7852b; border-radius: 0; background: #f8f4e9; }
.estimate-page #estimate-form .intake-notice strong { font-size: .92rem; }
.estimate-page #estimate-form .intake-notice p { font-size: .85rem; line-height: 1.5; margin: 6px 0 0; }
.estimate-form[data-current-step="0"] #intake-mode-note,
.estimate-form[data-current-step="1"] #intake-mode-note { display: none; }
.estimate-step { display: grid; gap: 22px; min-width: 0; border: 0; padding: 0; margin: 0; }
.estimate-step legend { padding: 0 0 22px; font-size: 1.2rem; font-weight: 750; line-height: 1.3; }
.estimate-step legend:focus { outline: none; }
.estimate-page .estimate-field { display: grid; gap: 9px; min-width: 0; }
.estimate-page .estimate-field label { margin-top: 0; font-size: .92rem; }
.estimate-page .form input:not([type="checkbox"]):not([type="file"]),
.estimate-page .form select, .estimate-page .form textarea { min-height: 52px; padding: 13px 14px; border: 1px solid #a8a294; border-radius: 6px; background: #fff; font-size: 16px; }
.estimate-page .form textarea { min-height: 130px; line-height: 1.5; }
.estimate-page .form input::placeholder, .estimate-page .form textarea::placeholder { color: #746e61; opacity: 1; }
.estimate-page .form input:focus-visible, .estimate-page .form select:focus-visible, .estimate-page .form textarea:focus-visible { outline: 3px solid #b98528; outline-offset: 2px; }
.estimate-page .estimate-field small, .estimate-page .file-field > small { display: block; font-size: .82rem; line-height: 1.5; color: #625c50; }
.estimate-page .address-tools { align-items: start; gap: 8px 12px; margin: 0; }
.estimate-page .field-action { min-height: 44px; }
.estimate-page .address-status { align-self: center; }
.estimate-step-intro { margin: -8px 0 0; color: #625c50; font-size: .95rem; }
.estimate-page .photo-picker { min-height: 112px; padding: 18px; margin: 8px 0 12px; border-color: #b9aa8d; border-radius: 8px; background: #fcfaf5; }
.estimate-page .photo-picker strong { color: #171714; }
.estimate-page .photo-picker span { color: #625c50; font-weight: 400; font-size: .86rem; }
.estimate-page .file-input-native:focus-visible + .photo-picker { outline: 3px solid #946000; outline-offset: 3px; }
.estimate-photo-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 14px 0 0; }
.estimate-photo-previews:empty { display: none; }
.estimate-photo-previews li { min-width: 0; padding: 8px; border: 1px solid #ded9cf; border-radius: 6px; }
.estimate-photo-thumb { display: grid; place-items: center; position: relative; aspect-ratio: 4 / 3; background: #eee9df; color: #6f5a34; overflow: hidden; border-radius: 3px; }
.estimate-photo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.estimate-photo-name { display: block; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.4; margin-top: 8px; }
.estimate-photo-previews button, .estimate-clear-photos { min-height: 44px; border: 0; background: none; color: #78500e; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; font: inherit; font-size: .82rem; }
.estimate-clear-photos { margin-top: 4px; }
.estimate-page .estimate-consent { padding: 16px; margin: 0; border-radius: 6px; font-weight: 400; background: #faf7ef; }
.estimate-page .estimate-consent input { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; }
.estimate-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; }
.estimate-step-actions .btn { border-radius: 6px; min-height: 52px; }
.estimate-step-actions .btn.primary { flex: 1; }
.estimate-private-note { width: 100%; font-size: .8rem; line-height: 1.5; color: #625c50; }
.estimate-page .estimate-form button:disabled { cursor: not-allowed; }
.estimate-page .estimate-form .btn:disabled { opacity: .65; transform: none; }
.estimate-page .form-status { font-size: .85rem; }
.estimate-page .form-status:empty, .estimate-form[data-current-step="2"] > .form-status { display: none; }
.estimate-errors { border-left: 3px solid #a62b21; padding: 16px; background: #fff2ee; font-size: .92rem; }
.estimate-errors ul { margin: 8px 0 0; padding-left: 20px; }
.estimate-errors a { color: #85221a; text-decoration: underline; text-underline-offset: 3px; }
.estimate-errors li + li { margin-top: 6px; }
.estimate-page .form [aria-invalid="true"] { border-color: #a62b21; }
.estimate-page .estimate-field-error { color: #a0251c; font-size: .85rem; }
.estimate-page .estimate-consent .estimate-field-error { flex-basis: 100%; }
.estimate-page .estimate-consent:has(.estimate-field-error:not([hidden])) { flex-wrap: wrap; }
.estimate-page .estimate-consent span { flex: 1; }
.estimate-page .estimate-review { margin-top: 0; border-radius: 8px; }
.estimate-page .estimate-review h3 { font-family: Georgia, serif; text-transform: none; letter-spacing: -.02em; font-size: 1.9rem; }
.estimate-page .estimate-review-details dd { overflow-wrap: anywhere; }
.estimate-page .estimate-review-files li { overflow-wrap: anywhere; }
.estimate-page #direct-estimate-submit { width: 100%; border-radius: 6px; }
.estimate-page .estimate-review-actions { display: flex; flex-wrap: wrap; }
.estimate-page .estimate-review-edit { flex: 1; }
.estimate-help { padding: 8px 0; }
.estimate-help .kicker { font-size: .67rem; }
.estimate-help h2 { font: 400 2.1rem/1.1 Georgia, serif; letter-spacing: -.03em; margin: 14px 0 20px; }
.estimate-help > p { color: #625c50; line-height: 1.65; font-size: .95rem; }
.estimate-help-contacts { display: grid; margin-top: 22px; }
.estimate-help-contacts a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; border-bottom: 1px solid #d8d2c6; font-size: .9rem; font-weight: 700; }
.estimate-help-contacts a:hover { color: #775016; }
.estimate-next { margin-top: 32px; padding: 24px; background: #eee8db; border-radius: 8px; }
.estimate-next h3 { font-size: 1.1rem; margin: 0 0 18px; }
.estimate-next ol { padding-left: 20px; margin: 0; }
.estimate-next li { padding-left: 6px; font-size: .92rem; line-height: 1.6; }
.estimate-next li + li { margin-top: 14px; }
.estimate-next p { font-size: .8rem; line-height: 1.5; color: #625c50; margin: 18px 0 0; }
.estimate-hours { border-block: 1px solid #d8d2c6; margin-top: 24px; padding: 8px 0; }
.estimate-hours summary { padding: 14px 0; font-size: .9rem; font-weight: 750; cursor: pointer; }
.estimate-hours p, .estimate-hours a { font-size: .85rem; line-height: 1.65; }
.estimate-hours a, .estimate-faq-link { color: #78500e; text-decoration: underline; text-underline-offset: 4px; }
.estimate-faq-link { display: block; padding: 24px 0; font-size: .9rem; line-height: 1.7; }
.estimate-nojs { padding: 28px; background: #fff; }
.estimate-nojs a { display: block; padding: 14px 0; }
.estimate-form [hidden] { display: none !important; }

@media (max-width: 980px) {
  .estimate-page .contact-hero { padding-top: 118px; }
  .estimate-page #estimate-form { scroll-margin-top: 95px; }
  .estimate-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .estimate-help { max-width: 650px; }
}
@media (max-width: 600px) {
  .estimate-page .contact-hero { padding-bottom: 32px; }
  .estimate-page .contact-hero h1 { font-size: 2.7rem; }
  .estimate-page .contact-hero .hero-copy { font-size: 1rem; }
  .estimate-page .estimate-section { padding: 24px 0 48px; }
  .estimate-page .estimate-form { padding: 22px 18px; gap: 22px; border-radius: 8px; }
  .estimate-form-heading h2 { font-size: 1.9rem; }
  .estimate-steps { gap: 8px; }
  .estimate-steps li { font-size: .75rem; }
  .estimate-page .estimate-step-actions { flex-direction: column; align-items: stretch; }
  .estimate-step-actions .btn { width: 100%; }
  .estimate-page .estimate-step-actions .estimate-back { order: 1; }
  .estimate-photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-page .estimate-review { padding: 20px 16px; }
  .estimate-page .estimate-review h3 { font-size: 1.65rem; }
  .estimate-page .estimate-review-actions { flex-direction: column; align-items: stretch; }
}
