/*
 * Demo page chrome — styles for THIS page's own elements (brand header,
 * banner, page layout). Nothing here reaches the form: it renders in a
 * shadow root and is themed solely via the --tla-* tokens in
 * forms-theme.css (decision 0005).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lato — the legacy page's body face, copied from the form-builder CDN into
   ./assets/fonts so this page serves its own assets and carries no runtime
   dependency on the legacy platform's versioned (20260724.4) paths. */
@font-face {
  font-family: Lato;
  src:
    url('./assets/fonts/lato-regular.woff2') format('woff2'),
    url('./assets/fonts/lato-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src:
    url('./assets/fonts/lato-bold.woff2') format('woff2'),
    url('./assets/fonts/lato-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: Lato, -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #444444;
  text-align: left;
  background-color: #ffffff;
}

/* ==== legacy page chrome (header + footer) ====
   Ported from the production askaprice stylesheet
   (tlaformbuilder.blob.core.windows.net/prod/20260724.4/css/askaprice.css)
   so drive.askaprice.com and this form page share one look. Vendor-prefixed
   flexbox from the original is dropped — this page targets modern browsers. */
.block {
  background-color: #ffffff;
  color: #444444;
  border: none;
  border-radius: 0;
}

.block__container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}

.block__body img,
.block__container img {
  max-width: 100%;
  height: auto;
}

/* Bootstrap-style container breakpoints the legacy page inherits. */
@media (min-width: 576px) {
  .block__container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .block__container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .block__container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .block__container {
    max-width: 1140px;
  }
}

.block--center {
  text-align: center;
}

.block--header {
  color: #ffffff;
  background-color: #ffffff;
  border: 1px solid #dde1e5;
  border-radius: 0;
  padding: 0;
}

.header-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.header-logo--centered {
  justify-content: center;
}

/* width:auto is required alongside max-height because the <img> carries
   width/height attributes (they reserve space and stop layout shift). Without
   it the attribute width sticks at 501px while max-height squashes the height,
   stretching the logo. */
.header-logo__logo {
  max-height: 40px;
  width: auto;
}

.block--footer {
  border: none;
  border-top: 1px solid #dde1e5;
  border-radius: 0;
  padding-top: 40px;
  text-align: center;
  background-color: #ffffff;
}

.footer-logo {
  max-height: 50px;
  width: auto;
}

.navigation__list {
  padding-left: 0;
  list-style: none;
  margin: 30px 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.75;
}

.navigation__point {
  display: inline-block;
}

.navigation__point:not(:last-child) {
  padding-right: 1rem;
}

.navigation__point a {
  color: #f9a425;
}

.navigation__point a:hover {
  color: #fdae3d;
}

.navigation__link {
  text-decoration: underline;
}

.fca {
  margin-bottom: 30px;
}

.fca p {
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.29;
  margin-top: 0;
  margin-bottom: 1rem;
}

.copyright__text {
  display: inline-block;
  font-size: 80%;
  margin-bottom: 20px;
}

.embed-banner {
  background: #f5f5f5;
  border-bottom: 1px solid #cccccc;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666666;
  letter-spacing: 0.02em;
}

.embed-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Sticky footer: body owns the viewport height and <main> takes up the slack,
   so a short form still pushes the footer to the bottom rather than leaving
   it mid-page — and a long one lets it fall naturally below the fold. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* The form's banded sections bleed to viewport width via --tla-bleed
     (forms-theme.css). That measurement uses vw, which counts the scrollbar
     gutter, so on a scrolling page the bands overhang by the scrollbar width.
     Clipping it here keeps that from becoming a horizontal scrollbar. Safe on
     this page: nothing here is position: sticky, which this would trap. */
  overflow-x: hidden;
}

.page-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.page-header {
  text-align: center;
  padding: 2rem 1rem 0;
  max-width: 700px;
  width: 100%;
}

.page-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--tla-color-heading, #222222);
  line-height: 1.3;
}

.page-description {
  font-size: 0.95rem;
  color: var(--tla-color-text-muted, #666666);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page-header {
    padding: 1rem 1rem 0;
  }

  .page-title {
    font-size: 1.375rem;
  }
}
