html,
body,
.contactPage {
  max-width: 100%;
  overflow-x: hidden;
}

.contactPage {
  overflow: hidden;
  color: var(--yofo-navy);
  background: #fff;
}

.contactPage img {
  display: block;
}

.contactHero {
  position: relative;
  width: 100%;
  height: 11.26rem;
  overflow: hidden;
  color: #fff;
  padding-top: 1.54rem;
  background: var(--yofo-navy);
}

.contactHero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contactHeroInner {
  position: absolute;
  inset: 0;
  padding-top: 2.54rem;
}

.contactHeroLabel {
  width: fit-content;
  min-width: 1.2rem;
  padding-bottom: 0.08rem;
  font-size: clamp(24px, 0.38rem, 38px);
  font-weight: 600;
  line-height: 1.29;
  position: relative;
}
.contactHeroLabel::after {
  content: "";
  width: 1.2rem;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--yofo-orange);
}

.contactHeroCopy {
  position: absolute;
  top: 6.76rem;
  left: 8.86rem;
  width: 7rem;
}

.contactHeroCopy h1 {
  font-size: clamp(42px, 0.65rem, 65px);
  font-weight: 600;
  line-height: 1.08;
  color: #2c3247;
}

.contactHeroCopy p {
  margin-top: 0.27rem;
  font-family: 'Inter';
  font-size: clamp(18px, 0.28rem, 28px);
  line-height: 1.29;
  color: #2c3247;
}

.contactSection {
  width: 94%;
  max-width: 14.4rem;
  height: 14.11rem;
  padding-top: 0.94rem;
}

.contactSection > h2 {
  font-size: clamp(28px, 0.38rem, 38px);
  font-weight: 600;
  line-height: 1.29;
  text-align: center;
}

.contactColumns {
  display: grid;
  grid-template-columns: 3.78rem minmax(0, 8.14rem);
  column-gap: 0.49rem;
  margin-top: 0.66rem;
}

.contactDetails {
  display: flex;
  flex-direction: column;
  gap: 0.41rem;
  min-width: 0;
}

.contactDetail h3,
.contactForm > h3,
.contactStatus > h3 {
  font-size: clamp(22px, 0.28rem, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.contactDetail p,
.contactDetail a {
  margin-top: 0.14rem;
  color: var(--yofo-navy);
  font-family: 'Inter';
  font-size: clamp(16px, 0.22rem, 22px);
  line-height: 1.25;
}

.contactDetail p strong {
  font-size: clamp(16px, 0.22rem, 22px);
  line-height: 1.25;
  font-weight: 600;
}

.contactDetail a {
  display: inline-block;
  margin-top: 0.03rem;
  text-decoration: underline;
  text-underline-offset: 0.03rem;
  transition: color 0.3s ease;
}

.contactDetail a:hover {
  color: var(--yofo-orange);
}

.contactForm {
  width: 8.14rem;
  min-width: 0;
}

.contactFormGrid {
  display: grid;
  /* grid-template-columns: 2.6rem 4.01rem; */
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  column-gap: .5rem;
  row-gap: 0.3rem;
  margin-top: 0.31rem;
}

.contactFormGrid label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 0.9rem;
}

.contactFormGrid label > span {
  display: block;
  height: 0.3rem;
  color: #2c3247;
  font-family: 'Inter';
  font-size: clamp(15px, 0.22rem, 22px);
  line-height: 1.18;
}

.contactFormGrid label > span small {
  font-size: 0.15rem;
}

.contactFormGrid input,
.contactFormGrid select,
.contactFormGrid textarea {
  width: 100%;
  height: 0.46rem;
  margin-top: 0.08rem;
  padding: 0.06rem 0.12rem;
  border: 1px solid #6d778a;
  border-radius: 0;
  color: var(--yofo-navy);
  background: #fff;
  font: inherit;
  font-family: 'Inter';
  font-size: 0.18rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contactFormGrid select {
  padding-right: 0.4rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6d778a 50%),
    linear-gradient(135deg, #6d778a 50%, transparent 50%);
  background-position:
    calc(100% - 0.18rem) 0.2rem,
    calc(100% - 0.13rem) 0.2rem;
  background-repeat: no-repeat;
  background-size:
    0.06rem 0.06rem,
    0.06rem 0.06rem;
}

.contactFormGrid input:focus,
.contactFormGrid select:focus,
.contactFormGrid textarea:focus {
  border-color: var(--yofo-blue);
  box-shadow: 0 0 0 2px rgba(8, 49, 155, 0.12);
}

.contactFieldWide {
  grid-column: 2;
}

.contactFieldFull {
  grid-column: 1 / -1;
}

.contactFormGrid .contactMessage {
  height: 1.83rem;
}

.contactFormGrid .contactMessage textarea {
  height: 1.39rem;
}

.contactPrivacy {
  margin-top: 0.31rem;
  font-family: 'Inter';
  font-size: clamp(12px, 0.15rem, 15px);
  line-height: 1.35;
  color: #2c3247;
}

.contactPrivacy a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contactPrivacy a:hover {
  color: var(--yofo-orange);
}

.contactSubscribe {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.3rem;
  cursor: pointer;
  font-family: 'Inter';
  font-size: clamp(12px, 0.15rem, 15px);
  line-height: 1.3;
}

.contactSubscribe input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contactSubscribe input::after,
.contactSubscribe input:checked::after {
  content: none;
}

.contactSubscribe i {
  position: relative;
  flex: 0 0 auto;
  width: 0.18rem;
  height: 0.18rem;
  margin-right: 0.15rem;
  border: 1px solid #6d778a;
  background: #fff;
}

.contactSubscribe input:checked + i {
  border-color: #6d778a;
  background: #fff;
}

.contactSubscribe input:checked + i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.1rem;
  height: 0.1rem;
  border: 0;
  border-radius: 50%;
  background: var(--yofo-navy);
  content: "";
  transform: translate(-50%, -50%);
}

.contactSubscribe input:focus-visible + i {
  outline: 2px solid var(--yofo-blue);
  outline-offset: 2px;
}

.contactButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 1.97rem;
  min-height: 0.51rem;
  padding: 0.09rem 0.32rem;
  border: 1px solid var(--yofo-blue);
  border-radius: 0.27rem;
  color: #fff;
  background: var(--yofo-blue);
  font-family: 'Inter';
  font-size: clamp(14px, 0.22rem, 22px);
  line-height: 1.23;
  margin: 0 auto;
  text-align: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contactForm > .contactButton {
  min-width: 2.7rem;
  margin-top: 0.79rem;
}

.contactButton:hover {
  color: #fff;
  background: var(--yofo-orange);
  border-color: var(--yofo-orange);
  transform: translateY(-0.02rem);
}
.contactProducts a:hover .contactButton {
  color: #fff;
  background: var(--yofo-orange);
  border-color: var(--yofo-orange);
  transform: translateY(-0.02rem) translateX(50%);
}

.contactStatus {
  width: 7.5rem;
  padding-top: 0;
}

.contactStatus > p {
  max-width: 7.65rem;
  margin-top: 0.32rem;
  font-family: 'Inter';
  font-size: clamp(17px, 0.28rem, 28px);
  line-height: 1.21;
}

.contactStatus > p + p {
  margin-top: 0.31rem;
}

.contactDownloads {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.48rem;
}

.contactDownloads a {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.18rem;
  min-height: 0.73rem;
  color: var(--yofo-navy);
}

.contactDownloads a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.contactDownloads img {
  width: 0.5rem;
  height: 0.58rem;
  object-fit: contain;
}

.contactDownloads span {
  font-family: 'Inter';
  font-size: clamp(15px, 0.22rem, 22px);
  line-height: 1.18;
}

.contactDownloads b {
  padding-bottom: 0.03rem;
  color: var(--yofo-blue);
  font-family: 'Inter';
  font-size: clamp(14px, 0.18rem, 18px);
  font-weight: 400;
  line-height: 1.2;
  width: 1.55rem;
  height: 0.51rem;
  text-align: center;
  border-radius: 0.26rem;
  background: #08319b;
  line-height: 0.51rem;
  color: #fff;
  transition: all 0.3s;
}

.contactDownloads b:hover{
  background: var(--yofo-orange);
  transform: translateY(-0.02rem);
}

.contactProducts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.29rem;
  max-width: 15.86rem;
}

.contactProducts > a {
  position: relative;
  height: 5.19rem;
  overflow: hidden;
  background: var(--yofo-pale);
}

.contactProducts > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.contactProducts > a:first-child > img {
  object-position: center;
}

.contactProducts > a:nth-child(2) > img {
  object-position: center 44%;
}

.contactProducts > a:hover > img {
  transform: scale(1.04);
}

.contactProducts .contactButton {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 0.5rem;
  min-width: 2.4rem;
}

@media (max-width: 1024px) {
  .contactHeroCopy {
    right: 6%;
    left: auto;
  }

  .contactColumns {
    grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
    column-gap: 6%;
  }

  .contactForm,
  .contactStatus {
    width: 100%;
  }

  .contactFormGrid {
    grid-template-columns: minmax(180px, 0.8fr) minmax(250px, 1.2fr);
    column-gap: 7%;
  }
}

@media (max-width: 750px) {
  .contactPage {
    padding-top: 105px;
  }

  .contactHero {
    height: 500px;
  }

  .contactHero > img {
    object-position: 39% center;
  }

  .contactHeroInner {
    padding-top: 30px;
  }

  .contactHeroLabel {
    font-size: 25px;
  }

  .contactHeroCopy {
    top: auto;
    right: 5%;
    bottom: 46px;
    left: 5%;
    width: auto;
  }

  .contactHeroCopy h1 {
    font-size: 34px;
  }

  .contactHeroCopy p {
    margin-top: 14px;
    font-size: 17px;
  }

  .contactSection {
    width: calc(100% - 30px);
    height: auto;
    padding-top: 50px;
  }

  .contactSection > h2 {
    font-size: 30px;
  }

  .contactColumns {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 35px;
  }

  .contactDetails {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .contactDetail:last-child {
    grid-column: auto;
  }

  .contactDetail h3,
  .contactForm > h3,
  .contactStatus > h3 {
    font-size: 23px;
  }

  .contactDetail p,
  .contactDetail a {
    margin-top: 10px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .contactFormGrid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
  }

  .contactFormGrid label,
  .contactFormGrid .contactMessage {
    grid-column: 1;
    height: auto;
  }

  .contactFormGrid label > span {
    height: auto;
    font-size: 15px;
  }

  .contactFormGrid label > span small {
    font-size: 13px;
  }

  .contactFormGrid input,
  .contactFormGrid select,
  .contactFormGrid textarea {
    height: 45px;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 16px;
  }

  .contactFormGrid select {
    background-position:
      calc(100% - 18px) 19px,
      calc(100% - 13px) 19px;
    background-size:
      6px 6px,
      6px 6px;
  }

  .contactFormGrid .contactMessage textarea {
    height: 130px;
  }

  .contactPrivacy,
  .contactSubscribe {
    font-size: 14px;
  }

  .contactPrivacy {
    margin-top: 25px;
  }

  .contactSubscribe {
    margin-top: 18px;
  }

  .contactSubscribe i {
    width: 18px;
    height: 18px;
    margin-right: 15px;
  }

  .contactSubscribe input:checked + i::after {
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
  }

  .contactButton {
    min-height: 48px;
    padding: 9px 28px;
    border-radius: 25px;
    font-size: 16px;
  }

  .contactForm > .contactButton {
    min-width: 220px;
    margin-top: 32px;
  }

  .contactStatus {
    min-height: 300px;
  }

  .contactStatus > p {
    max-width: none;
    margin-top: 24px;
    font-size: 18px;
  }

  .contactStatus > p + p {
    margin-top: 24px;
  }

  .contactDownloads {
    width: 100%;
    margin-top: 35px;
  }

  .contactDownloads a {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .contactDownloads img {
    grid-row: 1 / 3;
    width: 44px;
    height: 52px;
  }

  .contactDownloads span {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .contactDownloads b {
    grid-column: 2;
    justify-self: start;
    font-size: 14px;
  }

  .contactProducts {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 30px);
    margin-top: 70px;
  }

  .contactProducts > a {
    height: 320px;
  }

  .contactProducts .contactButton {
    bottom: 22px;
    min-width: 190px;
  }
}

@media (max-width: 480px) {
  .contactHero {
    height: 460px;
  }

  .contactHeroCopy h1 {
    font-size: 30px;
  }

  .contactProducts > a {
    height: 260px;
  }
}

/* Mobile layout refinements */
@media (max-width: 750px) {
  .contactPage {
    padding-top: 64px;
  }

  .contactHero {
    height: 520px;
  }

  .contactHeroInner {
    width: 100%;
    max-width: none;
    padding: 30px 20px 0;
  }

  .contactHeroLabel {
    font-size: 25px;
  }

  .contactHeroCopy {
    right: 20px;
    bottom: 42px;
    left: 20px;
  }

  .contactHeroCopy h1 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.14;
  }

  .contactHeroCopy p {
    font-size: 16px;
    line-height: 1.45;
  }

  .contactSection,
  .contactProducts {
    width: calc(100% - 40px);
    max-width: none;
  }

  .contactSection {
    height: auto;
    padding-top: 44px;
  }

  .contactSection > h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .contactColumns {
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin-top: 30px;
  }

  .contactDetails {
    gap: 26px;
  }

  .contactDetail h3,
  .contactForm > h3,
  .contactStatus > h3 {
    font-size: 22px;
  }

  .contactDetail p,
  .contactDetail a {
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .contactFormGrid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .contactFormGrid label,
  .contactFormGrid .contactMessage {
    grid-column: 1;
    height: auto;
  }

  .contactFormGrid input,
  .contactFormGrid select,
  .contactFormGrid textarea {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    padding: 9px 12px;
    font-size: 16px;
  }

  .contactFormGrid .contactMessage textarea {
    height: 132px;
  }

  .contactPrivacy,
  .contactSubscribe {
    font-size: 14px;
    line-height: 1.45;
  }

  .contactButton {
    min-height: 48px;
    padding: 10px 26px;
    font-size: 15px;
  }

  .contactForm > .contactButton {
    min-width: 220px;
    margin-top: 28px;
  }

  .contactStatus {
    min-height: 260px;
    padding: 28px 0;
  }

  .contactStatus > p {
    max-width: none;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.5;
  }

  .contactDownloads {
    width: 100%;
    margin-top: 30px;
  }

  .contactProducts {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 54px;
  }

  .contactProducts > a {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .contactProducts .contactButton {
    bottom: 20px;
    min-width: 180px;
  }
}
.contactFormError {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 3px solid #b42318;
  background: #fff1f0;
  color: #8a1c14;
  font-size: 14px;
  line-height: 1.6;
}

.contactThanksPage .contactStatus.contactThanks {
  scroll-margin-top: 100px;
}

/* Final Contact and status-page mobile pass. */
@media (max-width: 750px) {
  .contactPage {
    max-width: 100%;
    overflow-x: clip;
  }

  .contactHero {
    position: relative;
  }

  .contactHero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(44, 50, 71, .58) 0%, rgba(44, 50, 71, .04) 45%, rgba(44, 50, 71, .7) 100%);
  }

  .contactHeroInner,
  .contactHeroCopy {
    z-index: 1;
  }

  .contactHeroLabel,
  .contactHeroCopy h1,
  .contactHeroCopy p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
  }

  .contactDetail,
  .contactForm,
  .contactStatus,
  .contactProducts,
  .contactProducts > a {
    min-width: 0;
  }

  .contactDetail p,
  .contactDetail a,
  .contactForm label,
  .contactStatus p {
    overflow-wrap: anywhere;
  }
}

.contactFormGrid label.contactFieldInvalid input,
.contactFormGrid label.contactFieldInvalid select,
.contactFormGrid label.contactFieldInvalid textarea {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.14);
}
