/*
 * The "leave your details" panel.
 *
 * Only what is specific to this panel — the primitives it sits on (bh-card,
 * bh-field, bh-input, bh-btn) are defined for the public site in
 * bh-public.css, which the site layout loads for every page.
 *
 * Its own file rather than a block in bh-coverage.css because the partial is
 * included on two surfaces: the coverage map and the standalone enquiry page.
 */

.bh-enquiry { max-width: 46rem; }
.bh-enquiry h3 { margin: 0 0 calc(var(--bh-space-unit) * 2); }
/* The enquiry page's own heading: an h1 for what it is, drawn as the h3 it
   replaced, not the site's hero-sized one. */
.bh-enquiry h1 { margin: 0 0 calc(var(--bh-space-unit) * 2); font-size: var(--bh-size-scale-lg); }
.bh-enquiry-blurb { margin: 0 0 calc(var(--bh-space-unit) * 4); font-size: var(--bh-size-scale-sm); }
.bh-enquiry-said { margin: 0 0 calc(var(--bh-space-unit) * 4); }

/* Grid children space themselves with the gap, so they carry no margin. */
.bh-enquiry-grid .bh-field { margin-bottom: 0; }

/* The grid has no bottom margin of its own, so the field after it would sit
   closer than the fields inside it do to each other. */
.bh-enquiry-grid + .bh-enquiry-wide { margin-top: calc(var(--bh-space-unit) * 4); }

/*
 * Beside the map it is one narrow column, not a card inside a card: the panel
 * already sits within the map's own sidebar.
 */
.bh-coverage .bh-enquiry {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  max-width: none;
  padding: calc(var(--bh-space-unit) * 4) 0 0;
  margin-top: calc(var(--bh-space-unit) * 4);
  border-top: var(--bh-border-width) solid var(--bh-colour-border);
}

.bh-coverage .bh-enquiry-grid { grid-template-columns: 1fr; }
