/* GEODIS-only leftovers. Shared listing look lives in board/static/css/listing.css. */

body.geodis-site {
  background-color: #f4f4f4;
}

body.geodis-site .album.bg-body-tertiary {
  background-color: transparent !important;
}

/* Onboarding. Forms swap into #maincontent via HTMX; IDs and hx-* stay
   untouched. The hero is a .container with an inline max-width:1290px; do
   not set max-width:none or it goes full-bleed. Match Bootstrap .container
   widths so it lines up with #maincontent, then join them as one column. */
body.geodis-site main > br {
  display: none;
}

/* Stretch the white form panel (not the hero) so short steps like ZIP
   don't leave a large grey field under the card. */
body.geodis-site:has(main > section.background-image) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.geodis-site:has(main > section.background-image) > .gtranslate_wrapper {
  flex: 0 0 auto;
  height: 0;
}

body.geodis-site:has(main > section.background-image) > main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body.geodis-site:has(main > section.background-image) > footer.site-footer {
  flex: 0 0 auto;
}

/* Same footer as the listing stylesheet. job-cards.css loads after Bootstrap,
   so these have to live here or GEODIS onboarding falls back to unstyled
   body/link defaults (listing.css only styles the homepage footer). */
body.geodis-site footer.site-footer {
  padding: 1.15rem 4.5rem 2.25rem;
  border-top: 1px solid #eceef1;
  background: transparent;
  color: #8a94a3;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

body.geodis-site footer.site-footer .site-footer-copy,
body.geodis-site footer.site-footer .site-footer-links {
  margin-bottom: 0;
  color: #8a94a3;
  font-family: inherit;
  font-size: inherit;
}

body.geodis-site footer.site-footer .site-footer-copy {
  margin-bottom: 0.35rem;
}

body.geodis-site footer.site-footer a {
  color: #8a94a3;
  text-decoration: none;
}

body.geodis-site footer.site-footer a:hover,
body.geodis-site footer.site-footer a:focus {
  color: #243759;
  text-decoration: underline;
}

body.geodis-site footer.site-footer .site-footer-sep {
  margin: 0 0.45rem;
  color: #c5cad3;
}

body.geodis-site main:has(> section.background-image) > .album {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body.geodis-site #maincontent {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: #fff;
  border-radius: 0 0 1.1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(36, 55, 89, 0.12);
  border: 1px solid rgba(36, 55, 89, 0.08);
  border-top: 0;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

body.geodis-site main:has(> section.background-image) #maincontent {
  flex: 1 1 auto;
  min-height: 22rem;
}

body.geodis-site section.container.background-image {
  max-height: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(36, 55, 89, 0.08);
  border-bottom: 0;
  border-radius: 1.1rem 1.1rem 0 0;
  margin-top: 2rem;
  padding-top: 3.1rem !important;
  padding-bottom: 3.1rem !important;
  max-width: 100% !important;
}

@media (min-width: 576px) {
  body.geodis-site section.container.background-image {
    max-width: 540px !important;
  }
}

@media (min-width: 768px) {
  body.geodis-site section.container.background-image {
    max-width: 720px !important;
  }
}

@media (min-width: 992px) {
  body.geodis-site section.container.background-image {
    max-width: 960px !important;
  }
}

@media (min-width: 1200px) {
  body.geodis-site section.container.background-image {
    max-width: 1140px !important;
  }
}

@media (min-width: 1400px) {
  body.geodis-site section.container.background-image {
    max-width: 1320px !important;
  }
}

body.geodis-site section.background-image > .row.py-lg-5 {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-height: none !important;
}

body.geodis-site section.background-image h1 {
  font-size: clamp(1.2rem, 2.2vw + 0.7rem, 2rem) !important;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

body.geodis-site section.background-image p {
  font-size: clamp(0.92rem, 1vw + 0.7rem, 1.15rem) !important;
  line-height: 1.4;
  margin-bottom: 0 !important;
  padding: 0 0.75rem !important;
}

body.geodis-site section.background-image p br {
  display: none;
}

body.geodis-site main > .container.my-4:not(#maincontent) {
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

body.geodis-site #maincontent > .card {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

body.geodis-site #maincontent > .card > .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(36, 55, 89, 0.1);
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

body.geodis-site #maincontent > .card > .card-body {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

@media (max-width: 575.98px) {
  body.geodis-site section.container.background-image {
    margin-top: 1.35rem;
    padding-top: 2.35rem !important;
    padding-bottom: 2.35rem !important;
  }

  body.geodis-site section.background-image h1 {
    font-size: 1.2rem !important;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  body.geodis-site section.background-image p {
    font-size: 0.92rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}
