/* ==========================================================================
   Estimate page: the form card in the hero. Loaded only by /estimate/,
   after style.css, and built on its tokens (--bone, --ink, --gold, fonts).
   ========================================================================== */
.estimate-hero .page-hero-grid { align-items: start; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.estimate-or { font-size: 15px; color: var(--stone-light); }

.estimate-card {
  background: var(--bone); color: var(--ink);
  border-radius: 4px; padding: clamp(24px, 3.4vw, 48px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.estimate-form { display: grid; gap: 22px; }
.estimate-form[hidden] { display: none; } /* the grid above would otherwise override the hidden attribute */
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label {
  font-family: var(--f-accent); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid rgba(23, 21, 15, 0.22); border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317150f' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:invalid { color: var(--stone); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(23, 21, 15, 0.45); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 131, 58, 0.28);
}
.field [aria-invalid="true"] { border-color: #a3261d; }
.field-error { margin: 0; font-size: 13px; line-height: 1.35; color: #a3261d; }

/* honeypot: off-screen rather than display:none, which some bots skip */
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.estimate-form .btn { justify-self: start; cursor: pointer; font-family: inherit; min-height: 48px; padding: 14px 28px; }
.estimate-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; font-size: 15px; line-height: 1.45; color: #a3261d; }
.form-status:empty { display: none; }
.form-status a { text-decoration: underline; }
.form-note { margin: 0; font-size: 13px; color: var(--stone); }

.estimate-done h2 { font-size: clamp(26px, 3vw, 40px); margin: 0 0 16px; }
.estimate-done p { margin: 0 0 12px; color: var(--stone); }
.estimate-done a { color: var(--ink); font-weight: 600; }
.estimate-done:focus { outline: none; }

/* without JavaScript the form cannot send: show the phone and email instead */
.estimate-nojs { display: none; }
.estimate-nojs a { font-weight: 600; text-decoration: underline; }
.no-js .estimate-form { display: none; }
.no-js .estimate-nojs { display: block; }

@media (max-width: 1080px) {
  .estimate-hero .page-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .estimate-form .btn { justify-self: stretch; justify-content: center; }
}
