/* CoasTrade compact quote form — embedded at the bottom of every service page.
   Posts straight to the quote app's /api/lead and fires the Google Ads
   conversion inline, so an ad click converts on the SAME page it landed on
   (no cross-subdomain hop to lose the gclid). Design tokens come from
   site.css; the fallbacks keep it sane if this file loads standalone. */

.qf-section {
  background: var(--navy, #07135a);
  color: var(--white, #fff);
  padding: 64px 0;
}
.qf-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
.qf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #fdc556);
  margin: 0 0 10px;
}
.qf-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--white, #fff);
}
.qf-sub {
  margin: 0 0 26px;
  color: var(--muted-on-navy, #aab2d8);
  font-size: 16px;
  line-height: 1.5;
}

.qf-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.qf-field { display: flex; flex-direction: column; gap: 6px; }
.qf-field.qf-full { grid-column: 1 / -1; }
.qf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
}
.qf-field input,
.qf-field select,
.qf-field textarea {
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--white, #fff);
  width: 100%;
  transition: border-color .18s, background .18s;
}
.qf-field textarea { resize: vertical; min-height: 80px; }
.qf-field input::placeholder,
.qf-field textarea::placeholder { color: rgba(255, 255, 255, .42); }
.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: var(--gold, #fdc556);
  background: rgba(255, 255, 255, .1);
}
.qf-field select option { color: #141a33; background: #fff; }
.qf-field.qf-invalid input,
.qf-field.qf-invalid select { border-color: #ff8a8a; }
.qf-error {
  font-size: 12.5px;
  color: #ffc2c2;
  min-height: 0;
}

/* Honeypot — hidden from people, reachable by bots. Never display:none,
   which some bots skip. */
.qf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.qf-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.qf-submit {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gold, #fdc556);
  color: var(--navy-ink, #030a30);
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.qf-submit:hover:not(:disabled) { background: var(--gold-deep, #e6a72f); }
.qf-submit:active:not(:disabled) { transform: translateY(1px); }
.qf-submit:disabled { opacity: .6; cursor: not-allowed; }
.qf-alt {
  color: var(--muted-on-navy, #aab2d8);
  font-size: 14.5px;
}
.qf-alt a { color: var(--gold, #fdc556); }

.qf-status {
  grid-column: 1 / -1;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}
.qf-status[data-tone="error"] { color: #ffc2c2; }

/* Success panel replaces the form once the lead is confirmed accepted. */
.qf-done {
  text-align: center;
  padding: 26px 20px;
  border: 1.5px solid rgba(253, 197, 86, .35);
  border-radius: 14px;
  background: rgba(253, 197, 86, .08);
}
.qf-done h3 { margin: 0 0 8px; font-size: 22px; color: var(--white, #fff); }
.qf-done p { margin: 0; color: var(--muted-on-navy, #aab2d8); line-height: 1.55; }
.qf-done a { color: var(--gold, #fdc556); }

@media (max-width: 640px) {
  .qf-section { padding: 46px 0; }
  .qf-form { grid-template-columns: 1fr; }
}
