/* =========================================================
DENSITY OVERRIDES (PUT THIS LAST IN styles.css)
One place to tighten ALL form spacing (home + quote).
========================================================= */

:root {
  /* --- Form sizing knobs --- */
  --field-h: 38px; /* input height */
  --pad-y: 8px; /* input vertical padding */
  --pad-x: 10px; /* input horizontal padding */
  --gap: 8px; /* vertical spacing between fields */
  --label-gap: 4px; /* label to input spacing */
  --textarea-min: 58px; /* textarea minimum height */

  /* --- Card spacing knobs --- */
  --card-pad: 12px; /* card padding */

  /* --- Services grid knobs --- */
  --svc-gap: 7px; /* grid gap */
  --svc-pad-y: 7px; /* service chip padding Y */
  --svc-pad-x: 9px; /* service chip padding X */
}

/* ---------- Shared form spacing (HOME + QUOTE) ---------- */
.form {
  margin-top: var(--gap);
}
.form__row {
  margin-bottom: var(--gap);
}

.label,
.field label {
  margin: 0 0 var(--label-gap);
  font-size: 11.5px;
}

/* Homepage inputs */
.input {
  height: var(--field-h);
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.1;
}

/* Quote page inputs */
.quote-form {
  gap: var(--gap);
}

.quote-form input,
.quote-form textarea {
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.1;
}
.quote-form input {
  height: var(--field-h);
}

/* Textareas (home + quote) */
.input--area,
.quote-form textarea {
  min-height: var(--textarea-min);
  max-height: 84px;
  resize: none;
}

/* Compact error text */
.error,
.err {
  margin-top: 3px;
  min-height: 12px;
  font-size: 11px;
}

/* Cards that hold forms */
.hero__card,
.quote-card {
  padding: var(--card-pad);
}

/* Buttons slightly tighter */
.btn--full {
  padding: 10px 12px;
}
.quote-btn {
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13.5px;
}
.fineprint,
.quote-fine {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.25;
}

/* ---- Standalone /quote/ page: undo the compact sizing -------------------
   The density overrides above exist for the homepage HERO form, where space
   is genuinely tight. The standalone quote page has a full column to work
   with, and 11px consent text / 11.5px field labels are uncomfortable to
   read on a phone — measured at 375px. Scoped to .quote-page so the hero
   form keeps its compact treatment. */
.quote-page .label,
.quote-page .field label {
  font-size: 13px;
}
.quote-page .fineprint,
.quote-page .quote-fine {
  font-size: 12.5px;
  line-height: 1.45;
}
.quote-page .svc {
  font-size: 13.5px;
}

/* Form field labels inside the inline quote forms on service pages were
   computing to 10px — too small to read comfortably on a phone, and they
   carry real instructions. Floor them at 12px. The standalone /quote/ rules
   above are more specific and still win there. Badge-style micro-labels
   (.pill, .dksKpi__tag, .abtStrip__label) are deliberately small and are
   left alone — they are short, high-weight, uppercase design devices, not
   reading text. */
form .label,
form .field label {
  font-size: 12px;
}
