.estimate-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: end;
  color: #fff;
  background: #303132;
  isolation: isolate;
}
.estimate-hero img, .estimate-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.estimate-hero img { object-fit: cover; object-position: center 72%; }
.estimate-hero::after { content: ""; background: linear-gradient(90deg, #171511dc, #17151172); }
.estimate-hero-content { padding: clamp(32px, 6vw, 82px) 7%; }
.estimate-hero .eyebrow { margin: 0 0 16px; }
.estimate-hero h1 { font-size: clamp(34px, 5.3vw, 76px); max-width: 21ch; margin: 0; letter-spacing: -.045em; }
.estimate-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 2.3fr); gap: clamp(25px, 5vw, 70px); background: var(--paper); }
.estimate-aside h2 { font-size: 1em; font-weight: 700; line-height: 1.4; letter-spacing: normal; }
.estimate-aside h2 { margin: 0 0 18px; }
.estimate-contact-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.estimate-contact-list li { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 12px; align-items: center; }
.estimate-contact-list svg { width: 17px; height: 17px; }
.estimate-aside a { color: inherit; overflow-wrap: anywhere; text-underline-offset: 4px; }
.estimate-aside a:hover { text-decoration: underline; }
.estimate-contact-list .estimate-contact-email { align-items: start; }
.estimate-contact-email svg { margin-top: .15em; }
.estimate-contact-email p { margin: 8px 0 0; font-size: .875em; line-height: 1.5; color: #615b54; }
.estimate-contact-email p a { font-weight: 600; text-decoration: underline; }
.estimate-form { min-width: 0; padding: clamp(20px, 3vw, 44px); border: 1px solid var(--line); background: #fff; }
.estimate-form fieldset { min-width: 0; margin: 27px 0; padding: 18px 0 2px; border: 0; border-top: 1px solid var(--line); }
.estimate-form legend { padding: 0 10px 0 0; font-size: 19px; font-weight: 600; }
.estimate-form legend span { color: #826b56; margin-right: 8px; font-size: 12px; }
.estimate-form h3 { margin: 16px 0 8px; font-size: 15px; }
.estimate-fields, .estimate-product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.estimate-product { padding: 14px; margin-bottom: 12px; background: #f8f6f3; }
.estimate-wide { grid-column: 1 / -1; }
.estimate-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.estimate-form :is(input:not([type="radio"], [type="checkbox"]), select, textarea) { width: 100%; min-width: 0; border: 1px solid #c7bfb4; color: var(--ink); background: #fff; padding: 9px; border-radius: 0; font: inherit; min-height: 42px; }
.estimate-form input[type="date"] {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  height: 42px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.estimate-form input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.estimate-form textarea { resize: vertical; }
.estimate-form :is(input, select, textarea, button):focus-visible { outline: 2px solid #826b56; outline-offset: 2px; }
.estimate-add { padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.estimate-hint { color: #615b54; font-size: 13px; }
.estimate-form .estimate-lead-time { margin: 0 0 20px; padding: 8px 0 0; border: 0; }
.estimate-lead-time legend { font-size: 15px; }
.estimate-form .estimate-lead-time label { flex-direction: row; align-items: flex-start; gap: 10px; padding: 11px 12px; background: var(--paper); border-bottom: 1px solid var(--line); cursor: pointer; }
.estimate-lead-time input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #826b56; }
.estimate-lead-time small { display: block; margin-top: 3px; color: #615b54; font-size: inherit; line-height: 1.4; }
.estimate-lead-time .estimate-hint { margin: 9px 0 0; }
.estimate-submit { display: inline-flex; align-items: center; gap: 22px; border: 0; background: var(--ink); color: #fff; padding: 14px 19px; }
.estimate-submit:disabled { opacity: .65; cursor: wait; }
#estimate-status { margin: 14px 0 0; }
.estimate-inbox details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.estimate-inbox summary { cursor: pointer; }
.estimate-inbox pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); padding: 16px; }
@media (max-width: 800px) { .estimate-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .estimate-fields, .estimate-product { grid-template-columns: 1fr; } }

.estimate-form :is(input, select, textarea).review-missing {
  background: #fde8e7;
  border-color: #a83939;
}
.estimate-form :is(input, select, textarea).review-pending {
  background: #fff3d8;
  border-color: #9b7533;
}
.form-review-options:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.form-review-options button {
  border: 1px solid #c7bfb4;
  background: #fff;
  color: inherit;
  font: inherit;
  padding: 5px 9px;
  cursor: pointer;
}
.form-review-options button[aria-pressed="true"] {
  background: #fff3d8;
  border-color: #9b7533;
  font-weight: 700;
}
