@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/open-sans/open-sans-variable.woff2') format('woff2'),
       url('../fonts/open-sans/open-sans-variable.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.pallpack-content-module {
  width: min(1200px, calc(100vw - 2rem));
  max-width: none;
  margin: 3rem 0;
  margin-left: 50%;
  transform: translateX(-50%);
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.pallpack-content-module__inner {
  width: 1200px;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
}

.pallpack-content-module__heading {
  margin: 0 0 1rem;
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.pallpack-content-module__text-card {
  position: relative;
  z-index: 1;
  text-align: left;
}

.pallpack-content-module__text-card .pallpack-content-module__heading,
.pallpack-content-module__text-card .pallpack-content-module__text,
.pallpack-content-module__text-card .pallpack-content-module__text p,
.pallpack-content-module__text-card .pallpack-content-module__text li {
  text-align: left;
}

.pallpack-content-module__text {
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.pallpack-content-module__text > *:first-child {
  margin-top: 0;
}

.pallpack-content-module__text > *:last-child {
  margin-bottom: 0;
}

.pallpack-content-module__media {
  margin: 0;
}

.pallpack-content-module__image {
  display: block;
  width: 100%;
  height: auto;
}

.pallpack-content-module__form {
  width: 100%;
}

/* Keep the HubSpot form visually aligned with the Pallpack content module,
   without affecting forms elsewhere on the site. */
.pallpack-content-module--hubspot .hbspt-form {
  width: 100%;
  margin: 0;
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.pallpack-content-module--hubspot .hbspt-form form {
  box-sizing: border-box;
  padding: 1.5rem 1.65rem;
  border: 1px solid #d8e1e6;
  background: #f2f6f8;
}

.pallpack-content-module--hubspot .hbspt-form .gform_title {
  background-color: transparent !important;
}

.pallpack-content-module--hubspot .hs_recaptcha {
  height: 0;
  margin: 0;
  padding: 0;
}

.pallpack-content-module--hubspot .grecaptcha-badge {
  position: absolute;
  visibility: hidden;
}

.pallpack-content-module__captcha-note {
  box-sizing: border-box;
  margin: 0;
  padding: 0.25rem 1.65rem 1rem;
  border: 1px solid #d8e1e6;
  border-top: 0;
  background: #f2f6f8;
  color: #36566c;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.pallpack-content-module__captcha-note a {
  color: #004876;
  text-decoration: underline;
}

.pallpack-content-module--hubspot .hbspt-form form label {
  margin: 0 0 0.3rem;
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pallpack-content-module--hubspot .hbspt-form form input[type='email'],
.pallpack-content-module--hubspot .hbspt-form form input[type='text'],
.pallpack-content-module--hubspot .hbspt-form form input[type='tel'],
.pallpack-content-module--hubspot .hbspt-form form textarea,
.pallpack-content-module--hubspot .hbspt-form form select {
  box-sizing: border-box;
  min-height: 2.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #aebfc9;
  border-radius: 0;
  background-color: #fff;
  color: #00263d;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pallpack-content-module--hubspot .hbspt-form form textarea {
  min-height: 6.5rem;
  padding-top: 0.65rem;
}

.pallpack-content-module--hubspot .hbspt-form form input:focus,
.pallpack-content-module--hubspot .hbspt-form form textarea:focus,
.pallpack-content-module--hubspot .hbspt-form form select:focus {
  outline: 3px solid rgba(0, 72, 118, 0.2);
  outline-offset: 1px;
  border-color: #004876;
}

.pallpack-content-module--hubspot .hbspt-form form .legal-consent-container p {
  color: #36566c;
  font-size: 0.84rem;
  line-height: 1.55;
}

.pallpack-content-module--hubspot .hbspt-form form input[type='submit'] {
  float: none;
  min-height: 2.7rem;
  margin-top: 0.2rem;
  border: 1px solid #004876;
  border-radius: 0;
  background: #004876;
  color: #fff;
  font-family: 'OpenSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pallpack-content-module--hubspot .hbspt-form form input[type='submit']:hover {
  border-color: #00263d;
  background: #00263d;
  color: #fff;
}

@media (max-width: 767px) {
  .pallpack-content-module {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    transform: none;
  }

  .pallpack-content-module__inner {
    width: 100%;
    max-width: 100%;
  }

  .pallpack-content-module__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .pallpack-content-module--image .pallpack-content-module__content {
    flex-direction: column-reverse;
    gap: 0;
  }

  .pallpack-content-module--image .pallpack-content-module__text-card {
    position: static;
    z-index: auto;
    margin: 0;
    padding: 1.5rem 2rem 1.75rem;
    transform: none;
    background: #fff;
  }

  .pallpack-content-module--image .pallpack-content-module__media {
    overflow: hidden;
  }

  .pallpack-content-module--image .pallpack-content-module__image {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
  }

  .pallpack-content-module__text-card,
  .pallpack-content-module__media,
  .pallpack-content-module__form {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .pallpack-content-module__inner > .pallpack-content-module__heading {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .pallpack-content-module__heading {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .pallpack-content-module__text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .pallpack-content-module--hubspot .hbspt-form form {
    padding: 1.2rem;
  }
}

@media (min-width: 768px) {
  .pallpack-content-module--image .pallpack-content-module__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
  }

  .pallpack-content-module--hubspot .pallpack-content-module__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
  }

  .pallpack-content-module--hubspot .pallpack-content-module__text-card,
  .pallpack-content-module--hubspot .pallpack-content-module__form {
    min-width: 0;
  }

  .pallpack-content-module--image .pallpack-content-module__text-card {
    box-sizing: border-box;
    display: flex;
    min-height: 26.25rem;
    padding: clamp(2.5rem, 4vw, 4rem);
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-shadow: none;
  }

  .pallpack-content-module--image .pallpack-content-module__media {
    min-height: 26.25rem;
  }

  .pallpack-content-module--image .pallpack-content-module__image {
    width: 100%;
    height: 100%;
    min-height: 26.25rem;
    object-fit: cover;
  }

  .pallpack-content-module--image.pallpack-content-module--image-right .pallpack-content-module__text-card {
    margin-top: 0;
    margin-right: 0;
  }

  .pallpack-content-module--image.pallpack-content-module--image-left .pallpack-content-module__media {
    order: 1;
  }

  .pallpack-content-module--image.pallpack-content-module--image-left .pallpack-content-module__text-card {
    order: 2;
    margin-top: 0;
    margin-left: 0;
  }

  .pallpack-content-module--hubspot .pallpack-content-module__text-card {
    padding-right: 0;
  }

  .pallpack-content-module--full_width .pallpack-content-module__text-card {
    width: 100%;
    max-width: none;
  }
}
