/* CarbideTailor quote form.
   Kept in its own file because build.py regenerates site.css and
   seo-pages.css from their source on every run. Only this file is hand-written.
   The base .form / .field / .frow / .hint / .form__ok styles come from site.css.
   Prefix "q-" keeps everything scoped to the enquiry form. */

.q-section {
  padding: 84px 0;
  background: var(--paper-2, #f6f7f8);
  border-top: 1px solid var(--line, #e6e8ea);
}

.q-box { max-width: 780px; margin: 0 auto; }
.q-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-2, #b08d1a);
  margin-bottom: 12px;
}
.q-h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--ink, #0b0d0e);
}
.q-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted, #6b7280);
  max-width: 66ch;
  margin: 0 0 32px;
}

/* file input ------------------------------------------------------------- */
.q-file {
  display: block;
  border: 1.5px dashed var(--line, #e6e8ea);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--paper-2, #f6f7f8);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.q-file:hover, .q-file:focus-within { border-color: var(--gold, #c9a227); background: #fff; }
.q-file > b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2, #1c2226); margin-bottom: 6px; }
.q-file { position: relative; }
.q-file > .q-file__input { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; opacity: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; pointer-events: none; }
.q-file__btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 9px 18px; border: 1px solid #d9dde1; border-radius: 8px; background: #fff; color: var(--ink-2, #1c2226); font-size: 13px; font-weight: 650; line-height: 1.2; cursor: pointer; }
.q-file:hover .q-file__btn, .q-file:focus-within .q-file__btn { border-color: var(--gold, #c9a227); color: #8a6b10; }
.q-filelist { font-size: 12.5px; color: var(--muted-2, #9aa1a8); margin-top: 8px; word-break: break-word; }
.q-privacy { font-size: 12px; line-height: 1.55; color: var(--muted-2, #9aa1a8); margin: 16px 0 0; }

/* honeypot: visible to bots, invisible to people and screen readers ------ */
.q-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* status ----------------------------------------------------------------- */
.q-error {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1.5px solid #efc7c1;
  border-radius: 10px;
  background: #fdf1ef;
  color: #a83224;
  font-size: 13.5px;
  line-height: 1.6;
}
.q-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.btn.is-busy { opacity: .68; cursor: wait; }

/* success ---------------------------------------------------------------- */
.q-ref {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e6e8ea);
  font-size: 13px;
  color: var(--ink-2, #1c2226);
  letter-spacing: .02em;
}
.q-ref b { font-variant-numeric: tabular-nums; }
.form__ok .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.form__ok .hint { line-height: 1.6; }

@media (max-width: 720px) {
  .q-section { padding: 56px 0; }
  .frow { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
}
