/* The public quote-request form (/f/<key>). Uses the app's tokens from styles.css.
 * On its own: a centered card on the canvas. Inside a firm's website (.is-embed): no page
 * background or outer padding, so it sits on whatever the website looks like. */
.intake { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.qf-page { max-width: 600px; margin: 0 auto; padding: 40px 16px 56px; }
.qf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 24px;
  box-shadow: var(--shadow); }
html:has(.is-embed), .is-embed { background: transparent; }
.is-embed .qf-page { max-width: none; padding: 2px; }

.qf-firm { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.qf-head { text-align: center; }
.qf-logo { display: block; max-width: min(312px, 100%); max-height: 100.8px; width: auto; height: auto; margin: 0 auto 18px; }
.qf-title { margin: 4px 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.qf-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.qf-alert { margin: -6px 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: var(--danger-soft); color: var(--danger); }

.qf-form { display: flex; flex-direction: column; gap: 16px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0;
  font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.qf-field legend { padding: 0; margin-bottom: 8px; }
.qf-field input[type=text], .qf-field input[type=tel], .qf-field input[type=email], .qf-field textarea {
  width: 100%; min-height: 44px; font-size: 16px; }  /* 16px: iPhones zoom in on smaller fields */
.qf-field textarea { min-height: 84px; resize: vertical; }
.qf-field.has-err input, .qf-field.has-err textarea { border-color: var(--danger); }
.qf-field.has-err input:focus { box-shadow: 0 0 0 3px oklch(0.55 0.2 25 / 0.15); }
.qf-err { font-size: 13px; font-weight: 400; color: var(--danger); }
.qf-err:empty { display: none; }
.qf-opt { font-weight: 400; color: var(--ink-faint); }

.qf-addr { position: relative; display: block; }
.qf-addr .qf-addr-ico { position: absolute; left: 12px; top: 14px; color: var(--ink-faint); z-index: 1; pointer-events: none; }
.qf-addr input { padding-left: 36px; }
.qf-addr .ac-item { font-size: 14px; padding: 10px 12px; }

.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-chip { display: inline-flex; margin: 0; cursor: pointer; }
.qf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background .12s, border-color .12s, color .12s; }
.qf-chip span:hover { border-color: oklch(0.8 0.01 259); background: var(--canvas); }
.qf-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.qf-chip input:focus-visible + span { box-shadow: var(--ring); }
.qf-field.has-err .qf-chip span { border-color: oklch(0.85 0.06 25); }

.qf-texts { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer;
  font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink-soft); }
.qf-texts input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; }

.qf-submit { width: 100%; height: 48px; margin-top: 4px; font-size: 16px; font-weight: 600; border-radius: 10px;
  color: var(--on-accent, #fff); }
.qf-submit:hover { color: var(--on-accent, #fff); }
.qf-fine { margin: 0; text-align: center; font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

/* Honeypot: invisible to people, irresistible to form-filling bots. */
.qf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.qf-done { text-align: center; padding: 20px 4px 8px; }
.qf-done .qf-lead { margin-bottom: 14px; }
.qf-done .qf-lead strong { color: var(--ink); font-weight: 500; }
.qf-check { display: flex; width: 56px; height: 56px; margin: 0 auto 14px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--good-soft); color: var(--good); }
.qf-check .ico { width: 28px; height: 28px; }

@media (max-width: 520px) {
  .qf-page { padding: 16px 12px 32px; }
  .qf-card { padding: 22px 18px 20px; }
  .is-embed .qf-card { padding: 20px 16px; }
  .qf-row { grid-template-columns: 1fr; }
  .qf-title { font-size: 22px; }
}
.qf-fine a { color: var(--accent-ink, var(--accent)); text-decoration: none; font-weight: 500; }
/* the firm's own address: its SMS Terms and Privacy Policy, right under the texting box (2026-11-01) */
.qf-texts-links { text-align: left; padding-left: 26px; margin-top: -8px; }
.qf-texts-links a { display: inline-block; padding: 12px 6px; margin: -12px 0; }
