/* Hotz "Request a Quote" form. Every rule is scoped to .hq-form or .hq-done so
   the form looks the same on the old template and on the location pages. */
.hq-form, .hq-done {
  --hq-navy: #061948;
  --hq-red: #d83434;
  --hq-red-dark: #b62525;
  --hq-ink: #1d2433;
  --hq-muted: #5a6475;
  --hq-line: #cfd6e2;
  box-sizing: border-box;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #fff;
  color: var(--hq-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.hq-form *, .hq-done * { box-sizing: border-box; }

.hq-form .hq-progress {
  display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0;
  font-size: 14px; font-weight: 600; color: var(--hq-muted);
}
.hq-form .hq-progress li {
  flex: 1; margin: 0; padding: 0 0 10px; border-bottom: 3px solid #e2e6ee;
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.hq-form .hq-progress li span {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #e2e6ee; color: var(--hq-muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.hq-form .hq-progress li.is-current { color: var(--hq-navy); border-color: var(--hq-red); }
.hq-form .hq-progress li.is-current span { background: var(--hq-red); color: #fff; }
.hq-form .hq-progress li.is-done { color: var(--hq-navy); border-color: var(--hq-navy); }
.hq-form .hq-progress li.is-done span { background: var(--hq-navy); color: #fff; }

.hq-form fieldset.hq-step { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.hq-form fieldset.hq-step[hidden] { display: none; }
/* The step heading stays for screen readers (and takes focus when the step
   changes) but is not shown: the progress bar above already names the step. */
.hq-form fieldset.hq-step legend {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  scroll-margin-top: 80px;
}
.hq-form fieldset.hq-step legend:focus { outline: none; }
/* No extra gap between a step's last field or note and the buttons. */
.hq-form fieldset.hq-step > :last-child { margin-bottom: 0; }

.hq-form .hq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hq-form .hq-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hq-form .hq-received { margin: 0 0 16px; padding: 14px; border-left: 4px solid #287249; background: #edf7f0; color: #184d32; font-size: 21px; line-height: 1.35; }
.hq-form .hq-step h4 { margin: 16px 0 8px; }
.hq-form .hq-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hq-form .hq-choices[hidden] { display: none; }
.hq-form .hq-field { margin: 0 0 16px; position: relative; }
.hq-form .hq-field[hidden] { display: none; }
.hq-form .hq-field label {
  display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--hq-ink);
}
.hq-form .hq-opt { font-weight: 400; color: var(--hq-muted); }
.hq-form .hq-input {
  display: block; width: 100%; height: auto; min-height: 46px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--hq-line); border-radius: 8px; background: #fff;
  color: var(--hq-ink); font: inherit; line-height: 1.4; box-shadow: none;
}
.hq-form textarea.hq-input { min-height: 90px; max-height: none; resize: vertical; }
.hq-form input[type="file"].hq-input { padding: 9px; }
.hq-form .hq-input:focus { outline: 3px solid #c9d6f5; border-color: var(--hq-navy); }
.hq-form .hq-input[aria-invalid="true"] { border-color: var(--hq-red-dark); }
.hq-form .hq-note { margin: 4px 0 16px; font-size: 14px; color: var(--hq-muted); line-height: 1.45; }
.hq-form .hq-field .hq-note { margin-bottom: 0; }
/* "Can't find it? Enter it manually" under the business search */
.hq-form .hq-linkbtn {
  display: inline-flex; align-items: center; width: auto; min-height: 40px; margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none; color: var(--hq-navy); font: inherit; font-size: 15px; font-weight: 600;
  line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.hq-form .hq-linkbtn:hover { color: var(--hq-red-dark); }
.hq-form .hq-linkbtn:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; border-radius: 4px; }
.hq-form .hq-linkbtn[hidden] { display: none; }
.hq-form.hq-searchonly .hq-search { margin-bottom: 0; }

.hq-form .hq-check {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px;
  font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--hq-ink); cursor: pointer;
}
.hq-form .hq-check input {
  flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
  appearance: auto; -webkit-appearance: checkbox; position: static; opacity: 1;
}
.hq-form .hq-check a { color: var(--hq-navy); text-decoration: underline; }
.hq-form .hq-check.hq-cantext { margin: 0; font-size: 15px; font-weight: 600; }
.hq-form .hq-sms-block { margin: 10px 0 0; padding: 12px; border: 1px solid #e2e6ee; border-radius: 8px; background: #f7f9fc; }
.hq-form .hq-sms-block[hidden] { display: none; }
.hq-form .hq-sms-block .hq-check { margin: 0; }
.hq-form .hq-sms-opt { font-weight: 700; color: var(--hq-navy); }

.hq-form .hq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hq-form .hq-turnstile { margin: 0 0 8px; min-height: 65px; }

.hq-form .hq-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: 74px; margin: 0; padding: 4px 0;
  list-style: none; background: #fff; border: 1px solid var(--hq-line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(6, 25, 72, .16);
}
.hq-form .hq-suggest[hidden] { display: none; }
.hq-form .hq-suggest li { margin: 0; padding: 9px 12px; cursor: pointer; font-size: 15px; }
.hq-form .hq-suggest li strong { display: block; font-weight: 600; }
.hq-form .hq-suggest li span { display: block; font-size: 13.5px; color: var(--hq-muted); }
.hq-form .hq-suggest li[aria-selected="true"], .hq-form .hq-suggest li[role="option"]:hover { background: #eef2fb; }
.hq-form .hq-suggest li.hq-powered { cursor: default; text-align: right; font-size: 12px; color: var(--hq-muted); padding: 4px 12px 2px; }

/* Takes no space while empty. It stays rendered (not display:none) so screen
   readers still announce messages written into it. */
.hq-form .hq-status { margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.hq-form .hq-status:empty { margin: 0; min-height: 0; padding: 0; }
.hq-form .hq-status.is-error { color: var(--hq-red-dark); }

.hq-form .hq-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 14px; }
.hq-form .hq-btn {
  display: inline-block; min-height: 48px; padding: 12px 24px; margin: 0;
  border: 2px solid var(--hq-navy); border-radius: 8px; background: #fff; color: var(--hq-navy);
  font: inherit; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; width: auto;
}
.hq-form .hq-btn[hidden] { display: none; }
.hq-form .hq-choices .hq-btn { padding: 8px 14px; min-height: 44px; }
.hq-form .hq-choices .hq-btn[aria-pressed="true"] { background: var(--hq-navy); color: #fff; }
.hq-form .hq-btn.hq-back { margin-right: auto; }
.hq-form .hq-btn.hq-primary { background: var(--hq-red); border-color: var(--hq-red); color: #fff; }
.hq-form .hq-btn.hq-primary:hover { background: var(--hq-red-dark); border-color: var(--hq-red-dark); }
.hq-form .hq-btn:disabled { background: #b9bfca; border-color: #b9bfca; color: #fff; cursor: not-allowed; }
.hq-form .hq-btn:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }

.hq-done { text-align: center; }
.hq-done:focus { outline: none; }
.hq-done h3 { margin: 0 0 8px; font-size: 24px; color: var(--hq-navy); }
.hq-done p { margin: 0; }

/* Phones: a compact form. Inputs keep 16px text so iOS does not zoom on focus. */
@media (max-width: 640px) {
  .hq-form .hq-progress { margin-bottom: 18px; }
  .hq-form .hq-field { margin-bottom: 12px; }
  .hq-form .hq-field label { font-size: 14px; }
  .hq-form .hq-input { min-height: 44px; max-height: 46px; padding: 9px 12px; font-size: 16px; }
  .hq-form textarea.hq-input { max-height: none; }
  .hq-form .hq-note { margin-bottom: 12px; font-size: 13.5px; }
  .hq-form .hq-field .hq-note { margin-bottom: 0; }
  .hq-form .hq-check { margin-bottom: 12px; }
  .hq-form .hq-check.hq-cantext { margin-bottom: 0; }
  .hq-form .hq-suggest { top: 69px; }
  .hq-form .hq-actions, .hq-form .hq-status { margin-top: 12px; }
  .hq-form .hq-status:empty { margin-top: 0; }
  .hq-form .hq-btn { min-height: 46px; padding: 11px 22px; }
}
@media (max-width: 560px) {
  .hq-form, .hq-done { padding: 20px 16px; }
  .hq-form .hq-row { grid-template-columns: 1fr; }
  .hq-form .hq-progress li { font-size: 0; gap: 0; }           /* numbers only on phones */
  .hq-form .hq-progress li span { font-size: 13px; }
  .hq-form .hq-actions { flex-wrap: wrap; }
  .hq-form .hq-btn.hq-primary { flex: 1; }
}
