/* ============================================================
 * Bouncie Quote — Form Styles
 * ============================================================
 * Every style the quote form and its post-submit pages use.
 *
 * Previously split across forms-shared.css and quote.css, when the
 * project carried three forms and needed a shared layer. Merged when
 * the project narrowed to quote alone — a "shared" file with one
 * consumer is just indirection.
 *
 * Sections:
 *   1. @font-face declarations (Monotype Helvetica Now)
 *   2. Webflow form widget primitives (.w-form-formradioinput*)
 *   3. Base typography (body element + .body class)
 *   4. Generic layout primitives (.div, .div-copy)
 *   5. Heading bar (.c-heading*)
 *   6. Form block + form layout (.c-formblock, .c-form)
 *   7. Input system — base + floating-label
 *   8. Dropdown (.c-form__dropdown*)
 *   9. Section sub-headings
 *  10. Field error displays
 *  11. Submit button + button wrapper
 *  12. Disclaimer, utilities
 *  13. Submitting overlay + spinner
 *  14. Post-submit common blocks
 *  15. Callout + carried-over field marker
 *  16. Responsive overrides
 *  17. Quote-specific styles (formerly quote.css)
 * ============================================================ */
/* ============================================================
 * 1. @font-face declarations
 * ============================================================ */

@font-face {
  font-family: Monotype Helvetica Now Display;
  src: url('../fonts/Monotype----Helvetica-Now-Display-Medium.otf') format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Monotype Helvetica Now Text;
  src: url('../fonts/Monotype----Helvetica-Now-Text-Medium.otf') format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Monotype Helvetica Now Text;
  src: url('../fonts/Monotype----Helvetica-Now-Text.otf') format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Monotype Helvetica Now Text;
  src: url('../fonts/Monotype----Helvetica-Now-Text-Bold.otf') format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Monotype Helvetica Now Display;
  src: url('../fonts/Monotype----Helvetica-Now-Display-Bold.otf') format("opentype"), url('../fonts/Monotype----Helvetica-Now-Display-XBold.otf') format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
 * 2. Webflow form widget primitives
 * ============================================================ */

/* ============================================================
 * 3. Base typography
 * ============================================================ */

body {
  color: #333;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.body {
  color: #2a3141;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  font-size: 14px;
}

/* ============================================================
 * 4. Generic layout primitives
 * ============================================================ */

.div {
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  display: flex;
}

.div.is--leftalign-pad40 {
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
}

.div-copy {
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  display: flex;
}

.div-copy.is--leftalign-pad40 {
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
}

/* ============================================================
 * 5. Heading bar
 * ============================================================ */

.c-heading {
  float: none;
  background-color: #091f49;
  padding: 20px 0;
  position: static;
}

.c-heading__title {
  color: #fff;
  text-align: center;
  background-color: #fff0;
  margin-top: 10px;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.c-heading__subtitle {
  color: #fff;
  text-align: center;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 18px;
  display: none;
}

.c-heading__copy {
  text-align: center;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  font-size: 22px;
}

.c-heading__special-state {
  color: #fff;
  text-align: center;
  padding-top: 20px;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 18px;
  display: none;
}

.c-heading__submessage {
  color: #fff;
  text-align: center;
  padding-top: 0;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 14px;
}

/* ============================================================
 * 6. Form block + form layout
 * ============================================================ */

.c-formblock {
  text-align: center;
  cursor: auto;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  padding-top: 0;
  transition: opacity .2s;
  display: block;
  transform: translate(0);
}

.c-form {
  flex-flow: column;
  width: 350px;
  margin: 0 auto 40px;
  padding-top: 20px;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  display: block;
}

/* ============================================================
 * 7. Input system — base + floating-label
 * ============================================================
 * Inputs use a placeholder-as-label pattern: the original
 * placeholder text becomes a label that animates into the
 * top-left corner when the field is focused or has a value.
 */

.c-form__input {
  color: #000;
  width: 100%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 1.25rem 0.75rem 0.5rem;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 16px;
  /* #8a8a8a: 3.5:1 on white (WCAG 1.4.11 needs 3:1; #ccc was 1.6:1) */
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
  display: block;
  position: relative;
}

.c-form__input.is--narrow {
  width: 167px;
}

.c-form__input.is--textarea {
  height: 100px;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.c-form__input::placeholder {
  color: transparent;
}

.c-form__input-wrapper {
  position: relative;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
}

.c-form__label-placeholder {
  position: absolute;
  top: 1.65rem;
  left: 0.65rem;
  transform: translateY(-50%);
  font-size: 0.875rem;
  /* #767676: 4.5:1 on white (#999 was 2.9:1) */
  color: #767676;
  background-color: white;
  pointer-events: none;
  /* Only the three properties that actually change between the rest
     and floated states. `all` forced the compositor to watch every
     property on an element that also had paint containment. */
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  font-style: normal;
  display: inline-block;
  visibility: hidden;
  white-space: nowrap;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0 0.25rem;
  line-height: 1.2;
  overflow: visible;
  /* Was `layout paint style`. Paint containment on an absolutely
     positioned label can leave iOS painting it at its old position
     after the sibling input gains .has-value, until an unrelated
     scroll invalidates the layer — the modify-quote prefill collision.
     `style` containment is the part worth keeping; it costs nothing
     and carries none of that risk. */
  contain: style;
}

/* ------------------------------------------------------------
 * Callout
 * ------------------------------------------------------------
 * A short notice sitting between the page header and the first form
 * question. The ?email= handoff uses it to say why more is being
 * asked of someone who already submitted something upstream.
 *
 * Deliberately quiet. The header above it is a large saturated navy
 * block; a second emphatic element immediately beneath competes with
 * it instead of guiding the eye onward. A soft tint plus one accent
 * edge reads as "this is addressed to you" without raising its voice.
 *
 * The accent is the same green as the carried-over field badge, so
 * the callout and the ticked fields read as one idea rather than two
 * unrelated highlights.
 *
 * Left-aligned on purpose: it inherits centring from .c-formblock,
 * and centred body copy in a narrow column wraps into the ragged,
 * orphan-prone shape the heading copy had to be hand-broken to avoid.
 * Left-aligned text wraps cleanly at any width with no hard breaks.
 *
 * Visibility is the `hidden` attribute, not a display rule — so no
 * `display` is declared here, or it would override `hidden`.
 */
/* Bouncie Blue, not green: green on this page means "already done"
   (the prefilled bars); the callout asks for something still to do.
   20% wider than the form column, centred on it, but never closer than
   8px to the screen edge on phones. Negative margins do the widening —
   percentages here are of the form's width. */
.c-callout {
  margin: 0 calc((100% - min(120%, 100vw - 16px)) / 2) 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid #cfdcf7;
  border-left: 4px solid #1f69f2;
  border-radius: 6px;
  background-color: #eef4fe;
  color: #0b2a5b;
  font-weight: 600;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
}

/* ------------------------------------------------------------
 * Carried-over field marker
 * ------------------------------------------------------------
 * A green bar down the left edge of a field whose value arrived from an
 * upstream step (the ?email= / ?qty= handoff), so the page reads as
 * "already started" rather than "fill this in again". A bar, not a
 * check (build 103): the green check on the right belongs to the SMS
 * opt-in, which is something to tap; this is only a marker.
 *
 * The bar lives on the wrapper, not the input — inputs are void
 * elements and can't carry pseudo-elements. ::before, so it never
 * competes with the SMS spinner on ::after. Applied by JS adding
 * .is--prefilled to the wrapper (markPrefilled, utils-v2.js).
 */
.c-form__input-wrapper.is--prefilled::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #22C55E;
  border-radius: 4px 0 0 4px;
  pointer-events: none;
  z-index: 1;
}

/* Keep long values clear of the SMS check. The phone field keeps the
   space at all times, check or not, so a password manager's autofill
   icon (1Password), placed at page load, lands left of the check — with
   a little air — rather than under it. No other field has anything on
   its right edge since the prefilled marker became a bar (103). */
.c-form__input-wrapper:has(.c-form__sms-toggle) .c-form__input {
  padding-right: 2.875rem;
}

/* Any programmatic write to a field — modify-quote prefill, the
   ?email=/?qty= handoff, the website field auto-filled from the email
   domain. Labels must snap to their floated position rather than
   animate from rest: a transition that begins outside a user gesture
   can leave the label painted at its old position on iOS until an
   unrelated scroll. Toggled by bouwebFloatingLabels.setValue() and by
   js/prefill.js around bindFields(). */
/* A label's trailing "(…)" qualifier — "(mobile preferred)" — stepped back
   so the field name leads: regular weight, a little smaller, same grey.
   Relative size, so it follows the label at rest and floated alike.
   Wrapped by floating-labels.js setLabelText(). */
.c-form__label-note {
  font-weight: 400;
  font-size: 0.85em;
}

.is--prefilling .c-form__label-placeholder {
  transition: none;
}

.c-form__input:focus + .c-form__label-placeholder,
.c-form__input.has-value + .c-form__label-placeholder,
.c-form__input:-webkit-autofill + .c-form__label-placeholder {
  top: -0.35rem;
  font-size: 0.75rem;
  color: #555;
  transform: none;
}

/* ============================================================
 * 8. Dropdown
 * ============================================================ */

.c-form__dropdown {
  color: #000;
  background-color: #fff;
  border-color: #8a8a8a; /* matches .c-form__input; overrides .w-select #ccc */
  border-radius: 4px;
  width: 350px;
  height: 52.5px;
  margin-top: 10px;
  margin-bottom: 0;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 16px;
  display: block;
  /* Own chevron instead of the native arrow, which each browser draws
     differently (iOS pins a thin one against the border). Text starts
     at the same 0.75rem as the text inputs. */
  -webkit-appearance: none;
  appearance: none;
  padding: 0 2.5rem 0 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

/* Country: circular flag of the selected country, left of the text.
   ui.js mirrors the value into data-country. (The chevron is repeated
   because background-image is one list; a url() in a custom property
   would resolve against the page, not this file, in some browsers.) */
.c-form__dropdown[data-country] {
  padding-left: 2.6rem;
  background-position: left 0.75rem center, right 0.9rem center;
  background-size: 22px 22px, 12px 8px;
}

.c-form__dropdown[data-country="US"] {
  background-image: url("../images/flag-us-circle.svg"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.c-form__dropdown[data-country="CA"] {
  background-image: url("../images/flag-ca-circle.svg"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.c-form__dropdown.is--narrow {
  width: 167px;
  height: 52.5px;
  font-size: 16px;
  /* "State/Territory*" needs nearly the full 167px */
  padding-right: 1.9rem;
  background-position: right 0.7rem center;
}

.c-form__dropdown.is--custom {
  width: 250px;
  margin-top: 0;
  margin-left: 30px;
}

/* ============================================================
 * 9. Section sub-headings
 * ============================================================ */


.c-form__details-h2 {
  text-align: left;
  width: 350px;
  margin-top: 40px;
  font-size: 18px;
  line-height: 16px;
}

.c-form__details-h3 {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 5px;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 500;
}

.c-form__help-h2 {
  text-align: left;
  width: 350px;
  margin-top: 40px;
  font-size: 18px;
  line-height: 16px;
}

/* ============================================================
 * 10. Field error displays
 * ============================================================ */

.c-form__error-required {
  color: #b70039;
  text-align: left;
  padding-left: 5px;
  font-size: 12px;
  display: none;
}

/* SMS opt-in, shown only once the number checks out as textable
   (wrapper.is--sms-ok, sms-check.js). The green check inside the phone
   field is the opt-in itself — a real checkbox, ticked by default; tap
   it (or the caption under it) to turn texting off. Errors and the SMS
   warning stay on the left; this sits on the right, and never shows at
   the same time as either.

   The box is 2rem square for an easy tap target; the visible circle
   is an 18px background — a green check — and an empty field-border-grey ring (3.5:1 on white) when off. A 1px
   ring 2px outside it (24px overall) marks it as something to tap —
   dark green #15803D when on, so it reads as the control's edge rather
   than a halo around the check (build 116).
   Out of the tab order
   (tabindex="-1", user's call, build 089): the caption label still
   toggles it, and screen readers still reach it. */
.c-form__sms-toggle {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 1.65rem;
  right: 0.3125rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%238a8a8a' stroke-width='1'/%3E%3Cg transform='translate(3 3) scale(.28125)'%3E%3Ccircle cx='32' cy='32' r='29' fill='%23FFFFFF' stroke='%238a8a8a' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E") center / 1.5rem no-repeat;
  cursor: pointer;
}

.c-form__sms-toggle:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%2315803D' stroke-width='1'/%3E%3Cg transform='translate(3 3) scale(.28125)'%3E%3Ccircle cx='32' cy='32' r='30' fill='%2322C55E'/%3E%3Cpath d='M18 32 L28 42 L46 23' fill='none' stroke='%23FFFFFF' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
}

.c-form__input-wrapper.is--sms-ok .c-form__sms-toggle {
  display: block;
}

/* While the SMS lookup runs (~1.5s, Make + Twilio): a small spinner
   where the check will appear — same 18px circle, same centre. Placed
   with margin-top rather than translateY, which the rotation would
   overwrite. */
.c-form__input-wrapper.is--sms-pending::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  right: 0.75rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  box-sizing: border-box;
  border: 2px solid #d5dbe8;
  border-top-color: #1f69f2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

/* The phone field always reserves one line beneath it. Once a number is
   entered something always shows there — the caption on the right, or
   an error or the SMS warning on the left, never two at once — so
   swapping between them, or showing the first, mustn't move the page.
   Each sits in the reserved line rather than in the flow. */
.c-form__field-wrapper.is--with-note {
  position: relative;
  padding-bottom: 20px;
}

.c-form__field-wrapper.is--with-note > .c-form__error-required,
.c-form__field-wrapper.is--with-note > .c-form__field-warning,
.c-form__field-wrapper.is--with-note > .c-form__field-helper,
.c-form__field-wrapper.is--with-note > .c-form__sms-optin {
  position: absolute;
  top: calc(100% - 20px);
  left: 0;
  right: 0;
  margin: 0;
  padding-top: 4px;
  line-height: 16px;
}

/* SMS manual confirmation (build 111; bouwebConfig.features): on a
   business VoIP number the warning gets a second line, an unticked
   "This number can receive texts". The wrapper grows by that one line
   (24px) only while it shows, and the warning keeps its place. */
.c-form__sms-confirm {
  display: none;
}

.c-form__field-wrapper.is--with-note.is--sms-confirm {
  padding-bottom: 44px;
}

.c-form__field-wrapper.is--with-note.is--sms-confirm > .c-form__field-warning,
.c-form__field-wrapper.is--with-note.is--sms-confirm > .c-form__field-helper {
  top: calc(100% - 44px);
}

.c-form__field-wrapper.is--with-note.is--sms-confirm > .c-form__sms-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: calc(100% - 24px);
  left: 0;
  margin: 0;
  padding-top: 4px;
  line-height: 16px;
  color: #4a4a4a;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.c-form__sms-confirm input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #22C55E;
  cursor: pointer;
}

/* Only the caption's own text is a tap target, not the empty left. */
.c-form__field-wrapper.is--with-note > .c-form__sms-optin {
  left: auto;
}

/* Helper on the left of the line under the phone field: "We can text
   your quote immediately." (build 119). It is the default occupant of
   that line and steps aside for anything with more to say — the red
   error (aria-invalid, set by markFieldInvalid), an amber SMS warning,
   or "We won't text your quote. Undo" on the right. While the green
   check shows, it is what explains the check. */
.c-form__field-helper {
  padding-left: 5px;
  color: #4a4a4a;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

/* Hint phase — before a textable number — a little more present: navy
   and medium weight, the callout's colour (#0b2a5b, 13:1 on white).
   Once the green check shows it reverts to the soft grey above and
   reads "We'll text your quote immediately." (build 120). */
.c-form__field-helper.is--hint {
  color: #0b2a5b;
  font-weight: 600;
  font-size: 13px;
}

/* Hint phase only: a text-message bubble (our own SVG, inline in the
   page — no emoji, so it renders the same everywhere), Bouncie Blue,
   19px (option B, 20% over the 16px proposal). Build 121. */
.c-form__field-helper-icon {
  display: none;
}

.c-form__field-helper.is--hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-form__field-helper.is--hint .c-form__field-helper-icon {
  display: block;
  flex: none;
  width: 19px;
  height: 19px;
}

.c-form__field-wrapper:has(.c-form__input[aria-invalid="true"]) > .c-form__field-helper,
.c-form__field-wrapper.is--sms-warning > .c-form__field-helper,
.c-form__field-wrapper.is--sms-declined > .c-form__field-helper {
  display: none;
}

/* Right of that line, only once the visitor turns texting off: "We
   won't text your quote. Undo". (Through build 118 it also showed "We'll
   also text your quote." while on; the helper says that now.) */
.c-form__sms-optin {
  display: none;
  margin: 4px 0 0;
  padding-right: 5px;
  color: #4a4a4a;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  cursor: pointer;
}

/* "We won't text your quote. Undo" — the caption stays neutral grey
   (texting off is a choice, not an error); "Undo" in Bouncie Blue,
   underlined, 4.8:1 on white. Build 118; 117 had the caption in red. */
.c-form__sms-undo {
  color: #1f69f2;
  text-decoration: underline;
}

.c-form__field-wrapper.is--sms-declined .c-form__input-wrapper.is--sms-ok + .c-form__sms-optin {
  display: block;
}

/* Non-blocking note under a field ("Please check this number, it may
   not be valid."). Deliberately not .c-form__error-required, so the submit
   sweep ignores it. Amber #8a5a00 is 5.9:1 on white. */
.c-form__field-warning {
  display: none;
  padding-left: 5px;
  color: #8a5a00;
  text-align: left;
  font-size: 12px;
}

/* "Did you mean jane@acme.com?" — the suggested address, inside an
   email error or warning (email-check.js). Reads as a link; tapping it
   fixes the field. */
.c-form__suggest {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.c-form__error-required.is--custom {
  width: 200px;
  margin-left: 30px;
  padding-left: 5px;
}

.c-form__error-page {
  color: #b70039;
  text-align: center;
  padding-left: 5px;
  font-size: 12px;
  display: none;
}

.c-form__error-page.is--custom {
  width: 200px;
  margin-left: 30px;
  padding-left: 5px;
}

/* ============================================================
 * 11. Submit button + button wrapper
 * ============================================================ */

/* Bouncie Blue. White on it is 4.8:1 — passes WCAG AA for this text
   size. (The brand green #81b81a was 2.4:1.) */
.c-form__submit {
  background-color: #1f69f2;
  min-width: 200px;
  margin-bottom: 10px;
}

.c-form__field-wrapper.is--button {
  margin-bottom: 40px;
}

/* ============================================================
 * 12. Disclaimer
 * ============================================================ */

/* As wide as the fields above it, edge to edge, so it reads as part of
   the form rather than an indented aside. No one-word last line: the
   wording changes length with the SMS opt-in, and "sell&nbsp;it." keeps
   the last two words together. (Not text-wrap: pretty — on a paragraph
   this short it re-wraps every line and leaves a ragged, narrow block.) */
.lbldisclaimer {
  text-align: left;
  width: 350px;
  margin: 0 auto;
  padding: 15px 0 30px;
  font-size: 12px;
  line-height: 16px;
  display: block;
}

.lbldisclaimer a {
  color: inherit;
  text-decoration: underline;
}



/* ============================================================
 * 14. Utilities
 * ============================================================ */

.c-form__hidden {
  display: none;
}

/* ?hdnYes — the hidden fields, shown for testing (ui.js §14). */
.is--show-hidden .c-form__hidden {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid #c9b458;
  border-radius: 3px;
  background: #fffdf0;
  color: #000;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.c-hdn-panel {
  margin: 24px 0 20px;
  padding: 8px 10px 10px;
  border: 1px dashed #c9b458;
  border-radius: 6px;
  background: #fffbe6;
  text-align: left;
}

.c-hdn-panel legend {
  padding: 0 4px;
  color: #6b5a00;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.c-hdn-panel__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  font-weight: 400;
}

.c-hdn-panel__row > span {
  flex: 0 0 9.5rem;
  overflow: hidden;
  color: #555;
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-query__results {
  display: none;
}

/* Same top gap as the form it replaces (20px) plus room to breathe;
   line-height in em so the longer "couldn't load" message wraps cleanly. */
.c-form__notfound-h2 {
  text-align: center;
  width: 350px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 18px;
  line-height: 1.35;
  display: block;
}

/* ============================================================
 * 15. Submitting overlay + spinner
 * ============================================================ */

.c-div-submitting {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  padding: 0;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  border: 4px solid black;
  background-color: rgba(0, 0, 0, 0.85);
  text-align: center;
}

.c-div-submitting__title {
  color: #fff;
  flex: 0 auto;
  order: 0;
  align-self: center;
  width: 300px;
  max-width: 500px;
  margin-bottom: 0;
  padding-bottom: 0;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
  position: relative;
  top: auto;
}

.c-div-submitting__spinner {
  text-align: center;
  border: 0 solid #000;
  border-radius: 0%;
  flex-flow: row;
  order: 0;
  justify-content: center;
  align-self: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin-top: 0;
  display: block;
  position: relative;
  inset: auto;
}

.c-div-submitting__parent {
  z-index: 9999;
  gap: 16px;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  max-width: 90vh;
  display: flex;
  position: fixed;
  inset: 15vh auto auto;
}

.c-div-submitting__message {
  color: #fff;
  flex: 1;
  order: 0;
  align-self: center;
  width: 350px;
  max-width: 500px;
  margin-bottom: 0;
  padding-bottom: 0;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 42px;
  position: relative;
  top: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.c-div-submitting__svg-spinner {
  width: 100px;
  height: 100px;
  flex: none;
  animation: spin 0.75s linear infinite;
  transform-origin: center;
  display: block;
}

/* ============================================================
 * 16. Post-submit common blocks
 * ============================================================ */

.c-div__email {
  text-align: center;
  width: 500px;
  padding-top: 0;
  padding-bottom: 40px;
  font-family: Monotype Helvetica Now Display, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.c-div__questions {
  text-align: center;
  width: 400px;
  padding: 60px 0;
  font-size: 16px;
  font-weight: 700;
  display: none;
}

/* ============================================================
 * 17. Responsive overrides for shared classes
 * ============================================================ */

@media screen and (max-width: 767px) {
  .c-div-submitting__title {
    order: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .c-div-submitting__parent {
    justify-content: center;
  }

  .c-div-submitting__message {
    order: 0;
    margin-bottom: 100px;
    padding-bottom: 0;
  }
}

@media screen and (max-width: 479px) {
  .c-form__input,
  .c-form__input.is--narrow,
  .c-form__input.is--textarea {
    font-size: 16px;
  }

  .c-form__dropdown {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 16px;
  }

  .c-form__dropdown.is--narrow,
  .c-form__details-h3 {
    font-size: 16px;
  }

  /* NOTE: the overlay's `display` is intentionally NOT set in this media query.
   * The base rule (.c-div-submitting { display: none }) hides it; JS sets
   * inline `style.display = "flex"` only when a submission is in flight.
   * The original Webflow CSS had `display: flex` here, which made the spinner
   * appear on every page load at viewports ≤ 479px. */

  .c-div-submitting__title {
    margin-bottom: 0;
  }

  .c-div-submitting__parent {
    justify-content: center;
    align-items: center;
    display: flex;
    top: 20vh;
  }

  .c-div-submitting__message {
    margin-bottom: 0;
  }

  .c-form__label-placeholder {
    font-size: 16px;
  }
}

/* ============================================================
 * 17. Quote-specific styles
 * ============================================================
 * Formerly css/quote.css.
 * ============================================================ */

.c-form__quote-h2 {
  text-align: left;
  width: 350px;
  margin-top: 40px;
  margin-left: 0;
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 18px;
  line-height: 16px;
}

/* A section heading with a short note at the right of the same line
   ("Shipping Address · Used to calculate sales tax"). If both don't
   fit, the note wraps under. Spacing must match a bare heading: the
   row carries the heading's 40px top / 10px bottom margins (the bottom
   one collapses with the next field's, as a bare h2's does), and the
   note's line box is the heading's 16px so the row is no taller. */
.c-form__heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 12px;
  width: 350px;
  max-width: 100%;
  margin: 40px 0 10px;
}

.c-form__heading-row > .c-form__quote-h2 {
  width: auto;
  margin: 0;
}

.c-form__heading-note {
  margin: 0;
  color: #767676; /* 4.5:1 on white */
  font-family: Monotype Helvetica Now Text, Arial, sans-serif;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap; /* moves under the heading whole, never splits */
}

.c-form__quantity-h2 {
  text-align: left;
  width: 350px;
  font-size: 18px;
  line-height: 16px;
}

.c-form__radiogroup {
  text-align: left;
  padding-left: 20px;
}

.c-form__telematicswrapper {
  display: block;
}

.c-form__telematicswrapper.is--hidden {
  display: none;
}

/* "Which system?" — shown under the dropdown when "Other" is chosen;
   lined up with the dropdown's 30px indent and 250px width. */
.c-form__telematics-other {
  width: 250px;
  margin: 12px 0 0 30px;
}

.c-form__telematics-other.is--hidden {
  display: none;
}

.c-form__telematics-other .c-form__error-required.is--custom {
  margin-left: 0;
}

.c-div-section-quote {
  display: block;
}

.c-div__spam-title {
  text-align: center;
  width: 400px;
  padding-top: 60px;
  font-size: 16px;
  font-weight: 700;
}

.c-div__spam-copy {
  text-align: center;
  width: 400px;
  padding-top: 0;
  font-size: 14px;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .code-embed {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    display: block;
  }
}

@media screen and (max-width: 479px) {
  .c-form__radiolabel {
    font-size: 16px;
  }
}

/* ============================================================
 * 18. Accessibility and narrow screens
 * ============================================================ */

/* Keyboard focus. Webflow's base styles remove the outline; text inputs
   keep their border-colour cue, but the button, radios and dropdowns
   had no visible focus at all. :focus-visible, so mouse and touch users
   see no change. */
.c-form__submit:focus-visible,
.c-form__radiobutton:focus-visible,
.c-form__suggest:focus-visible,
.c-form__dropdown:focus-visible {
  outline: 2px solid #1f69f2;
  outline-offset: 2px;
}

/* Below 380px the fixed 350px column plus page edges overflowed — a
   sideways scroll on iPhone SE and with Display Zoom. Let the column
   shrink to the screen instead; wider screens are untouched. */
@media screen and (max-width: 379px) {
  .c-form {
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* The paired rows (First/Last, State/ZIP) are two fixed 167px
     fields plus a 16px gap — wider than the column here. Split the
     row instead. */
  .div-copy > .c-form__field-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }

  .c-form__input.is--narrow,
  .c-form__dropdown.is--narrow {
    width: 100%;
  }

  /* Keeps "Shipping Address · Used to calculate sales tax" on one line
     down to 360px-wide phones; narrower, the note wraps under whole. */
  .c-form__heading-row {
    column-gap: 8px;
  }

  .c-form__heading-note {
    font-size: 12px;
  }

  .c-form__dropdown,
  .c-form__details-h2,
  .c-form__help-h2,
  .c-form__notfound-h2,
  .c-form__quote-h2,
  .c-form__quantity-h2,
  .c-div-submitting__message,
  .lbldisclaimer {
    width: 100%;
    max-width: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-div-submitting__svg-spinner,
  .c-form__input-wrapper.is--sms-pending::after {
    animation-duration: 3s;
  }

  .c-form__label-placeholder,
  .c-formblock {
    transition: none;
  }
}
