@charset "UTF-8";
/*
 * drm-overrides.css — fleet-wide CSS overrides for formio.js-rendered forms.
 *
 * Loaded AFTER formio.full.min.css to override its default Bootstrap-ish
 * styling. Targets formio's component classes; uses host-site CSS variables
 * (--brand, --accent, --paper-hi, --font-label, etc.) so each client site's
 * tokens flow through naturally. Hardcoded fallbacks are present for clients
 * that haven't adopted the token vocabulary yet.
 *
 * The visual model mirrors the bespoke "editorial / clean / dark-on-navy"
 * pattern Miles Ahead's site established before the formio migration:
 * transparent inputs with bottom-borders only, uppercase labels with
 * letter-spacing, accent color on focus + primary button, cream-tinted
 * placeholders, no boxed surfaces.
 */

/* ---------- Form root + component wrappers ---------- */
.formio-form { display: grid; gap: 1.5rem; }
.formio-component { margin-bottom: 0; }              /* override formio's default 16px */
.formio-component-hidden { display: none !important; }

/* ---------- Labels ---------- */
.formio-form .col-form-label,
.formio-form label.control-label {
  font-family: var(--font-label, system-ui, sans-serif);
  font-size: var(--fs-xs, 0.78rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper-hi, #fbf7ec);
  margin-bottom: 0.6rem;
  padding: 0;
}
.formio-form .field-required:after {
  content: " *";
  color: var(--accent, #5DA9E9);
  margin-left: 0.1em;
}

/* ---------- Inputs (textfield, email, phoneNumber, password, textarea) ---------- */
.formio-form .form-control,
.formio-form input.form-control,
.formio-form textarea.form-control {
  font: inherit;
  font-family: var(--font-body, system-ui, sans-serif);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(251, 247, 236, 0.38);
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--paper-hi, #fbf7ec);
  box-shadow: none;
  outline: none;
  transition: border-color 200ms ease;
  width: 100%;
}
.formio-form .form-control:focus {
  border-bottom-color: var(--accent, #5DA9E9);
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--paper-hi, #fbf7ec);
}
.formio-form .form-control::placeholder {
  color: rgba(251, 247, 236, 0.4);
}
.formio-form .form-control:disabled,
.formio-form .form-control[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Select component (formio wraps native select; some builds also
   use the choices.js library — style both surfaces) ---------- */
.formio-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(251, 247, 236, 0.6) 50%),
                    linear-gradient(135deg, rgba(251, 247, 236, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.formio-form select.form-control option {
  color: var(--ink, #0a0a0a);
  background: var(--paper-hi, #fbf7ec);
}
/* choices.js variant (formio sometimes wraps selects with it) */
.formio-form .choices__inner {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(251, 247, 236, 0.38);
  border-radius: 0;
  padding: 0.6rem 0;
  min-height: 0;
  color: var(--paper-hi, #fbf7ec);
  font-family: var(--font-body, system-ui, sans-serif);
}
.formio-form .choices__list--single { padding: 0; }
.formio-form .choices__placeholder { color: rgba(251, 247, 236, 0.4); opacity: 1; }
.formio-form .choices[data-type*="select-one"]::after {
  border-color: rgba(251, 247, 236, 0.6) transparent transparent;
}
.formio-form .choices.is-open .choices__inner { border-bottom-color: var(--accent, #5DA9E9); }
.formio-form .choices__list--dropdown {
  background: var(--paper-hi, #fbf7ec);
  border: 1px solid var(--rule, #d8d2c4);
  color: var(--ink, #0a0a0a);
}
.formio-form .choices__list--dropdown .choices__item--selectable { color: var(--ink, #0a0a0a); }
.formio-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: var(--accent, #5DA9E9);
  color: var(--brand, #0B1F3B);
}

/* ---------- Input masks (phone, zip) ---------- */
.formio-form .formio-component-phoneNumber input.form-control,
.formio-form .formio-component-day input.form-control {
  letter-spacing: 0.04em;
}

/* ---------- Submit button (matches .quote .btn--primary on Miles Ahead) ---------- */
.formio-form .btn,
.formio-form button.btn-primary {
  font-family: var(--font-label, system-ui, sans-serif);
  font-size: var(--fs-sm, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--accent, #5DA9E9);
  color: var(--brand, #0B1F3B);
  border: 0;
  border-radius: 999px;
  padding: 1.1rem 1.6rem;
  width: 100%;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.formio-form .btn:hover,
.formio-form button.btn-primary:hover {
  background: var(--paper-hi, #fbf7ec);
  color: var(--brand, #0B1F3B);
}
.formio-form .btn:focus-visible {
  outline: 2px solid var(--accent, #5DA9E9);
  outline-offset: 3px;
}
.formio-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hide formio's auto-inserted info hints. The "numeric only" text
   below masked inputs is formio's `description`/`hint` rendering — it uses
   varied class names across versions (.form-text, .help-block, .text-muted,
   .field-description, plain <small>), so cover the whole surface. ---------- */
.formio-form .form-text,
.formio-form .help-block,
.formio-form .text-muted,
.formio-form .field-description,
.formio-form small.form-text,
.formio-form .formio-component > small,
.formio-form .formio-component > p.field-description,
.formio-form .formio-component .input-mask-placeholder,
.formio-form .formio-component .input-mask-hint {
  display: none !important;
}

/* The screen-reader-only "numeric only" hint formio emits on masked inputs
   uses `.visually-hidden` — that utility class should be off-screen by
   construction, but if the host site (or formio's bundle) lacks the rule,
   the text bleeds onto the page. Apply the canonical visually-hidden recipe
   defensively scoped to the form. */
.formio-form .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Validation errors ---------- */
.formio-form .formio-errors,
.formio-form .formio-error-wrapper { color: var(--accent, #5DA9E9); }
.formio-form .formio-errors .error,
.formio-form .formio-error-wrapper .error {
  font-family: var(--font-label, system-ui, sans-serif);
  font-size: var(--fs-xs, 0.78rem);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  color: var(--accent, #5DA9E9);
}
.formio-form .has-error .form-control,
.formio-form .formio-error-wrapper .form-control {
  border-bottom-color: var(--accent, #5DA9E9);
}

/* ---------- Honeypot (defense-in-depth: even with hidden:true in schema,
   ensure the visual surface is zeroed) ---------- */
.formio-form .formio-component-_hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Required-fields alert (formio sometimes shows a top alert
   summarizing missing fields — make it match the form's voice) ---------- */
.formio-form .alert,
.formio-form .alert-danger {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--accent, #5DA9E9);
  color: var(--paper-hi, #fbf7ec);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-label, system-ui, sans-serif);
  font-size: var(--fs-sm, 0.95rem);
  letter-spacing: 0.05em;
  border-radius: 0;
}

/* ---------- Tabular layout safety (formio renders form groups inside
   .form-group; reset the Bootstrap inheritance that adds bottom margin
   competing with .formio-form's grid gap) ---------- */
.formio-form .form-group { margin-bottom: 0; }

/* ---------- Google PlaceAutocompleteElement (gmpAddress component) ----------
   Per Google's docs (https://issuetracker.google.com/399061524), the new
   <gmp-place-autocomplete> Web Component does NOT expose a public styling
   contract — no documented CSS custom properties, no documented ::part()
   selectors. Earlier attempts at Material-3 token overrides + part-based
   restyling were ineffective. Accept the native Google rendering; only
   layout-level (display/width) adjustments are needed so the element
   participates in the form's grid like any other component. */
.drm-gmp-pac,
gmp-place-autocomplete {
  display: block;
  width: 100%;
}
