/* apps/forms: the hosted forms' styles (HEX_ORGFIX OF3). Neutral on purpose: the system font stack, greys, the
   company's logo and name at the top. No company's or Hardek's colors or fonts. Works from 320 px wide, in an iframe.
   The class names are website/quote-form's, so the shared modules drive both. */
:root { --ink: #1f2328; --muted: #57606a; --line: #d0d7de; --soft: #f6f8fa; --accent: #24292f; --err-bg: #fdecea; --err-fg: #8e1b10; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hf-shell { max-width: 600px; margin: 0 auto; padding: 20px 16px 28px; }
.hf-brand { display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0 0 14px; }
.hf-brand:empty { display: none; }
.hf-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.hf-logo[hidden] { display: none; }
.hf-brand-name { font-weight: 700; font-size: 1.1rem; }
.hf-badlink[hidden] { display: none; }
.hf-title { font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; }
.hf-lead { margin: 0 0 18px; color: var(--muted); }
.hf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hf-full { grid-column: 1 / -1; }
.hf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 0; margin: 0; padding: 0; }
label, legend { font-weight: 600; font-size: .95rem; padding: 0; }
.hf-opt, .hf-help { font-weight: 400; color: var(--muted); }
.hf-help { font-size: 14px; }
.hf-req { margin: -10px 0 14px; }
input[type=text], input[type=tel], input[type=email], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid #8c959f; outline-offset: 1px; }
[aria-invalid=true] { border-color: var(--err-fg); background: #fffafa; }
.hf-err { display: none; background: var(--err-bg); color: var(--err-fg); border-radius: 6px; padding: 6px 10px; font-size: .9rem; }
.hf-err.on { display: block; }
.hf-link { background: none; border: 0; padding: 4px 0; color: var(--accent); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; align-self: flex-start; }
.hf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.hf-check { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 400; }
.hf-check:has(input:checked) { border-color: var(--accent); background: #eaeef2; }
.hf-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hf-manual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--soft); padding: 10px; border-radius: 6px; }
.hf-manual[hidden] { display: none; }
.hf-sub { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; }
.hf-sub.hf-half { grid-column: auto; }
.hf-addr { position: relative; }
.hf-picked { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.hf-picked .hf-link { margin-left: 6px; }
.hf-suggest { position: absolute; z-index: 5; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.hf-suggest li { padding: 10px 12px; cursor: pointer; border-top: 1px solid #eee; }
.hf-suggest li:first-child { border-top: 0; }
.hf-suggest li[aria-selected=true], .hf-suggest li:hover { background: var(--soft); }
.hf-suggest small { display: block; color: var(--muted); }
.hf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hf-thumbs li { position: relative; width: 72px; height: 72px; background: var(--soft); border-radius: 6px; overflow: hidden; font-size: .7rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.hf-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hf-thumbs .hf-doc { flex-direction: column; gap: 2px; padding: 4px; overflow-wrap: anywhere; line-height: 1.15; }
.hf-thumbs .hf-doc b { font-size: .8rem; letter-spacing: .05em; }
.hf-thumbs button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.hf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hf-msg { background: var(--err-bg); color: var(--err-fg); border-radius: 6px; padding: 10px 12px; font-weight: 600; }
.hf-msg[hidden] { display: none; }
.hf-btn { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 14px 20px; font: 700 1rem system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; cursor: pointer; }
.hf-btn:disabled { background: #8c959f; cursor: not-allowed; }
.hf-thanks { text-align: center; padding: 32px 8px; }
.hf-thanks h2 { font-size: 1.5rem; margin: 0 0 10px; }
.hf-thanks[hidden], [hidden] { display: none; }
.hf-thanks a { color: var(--accent); font-weight: 700; }
.hf-privacy { margin: 0; text-align: center; }
.hf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hf-ref { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.hf-ref-label { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hf-ref-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.hf-ref.is-off .hf-ref-name { font-weight: 400; font-size: .95rem; color: var(--muted); }
.hf-consent { align-items: flex-start; font-weight: 600; }
.hf-consent input { margin-top: 2px; }
.hf-after { margin: 0; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 420px) { .hf-grid { grid-template-columns: 1fr; } .hf-checks { grid-template-columns: 1fr; } }
