/* ----------------------------------------
   Contact Page
---------------------------------------- */

#contact .container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* Match footer layout */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: 2rem;
}

/* Left copy mirrors footer header.style1 */
#contact .contact-copy {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;

  margin: 0;
}

#contact .contact-copy h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 2em;
  color: #cd533b;
  font-weight: 525;
}

#contact .contact-copy p {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.6;
  color: #0a2463;
  font-weight: 500;
}

#contact .contact-copy a {
  color: #1f4fd8;
  font-weight: 500;
  text-decoration: none;
}

#contact .contact-copy a:hover {
  text-decoration: underline;
}

/* Right side card */
#contact .contact-card {
  width: 100%;
  max-width: 900px;
  justify-self: center;

  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;

  margin: 0;
}

#contact #contact-form {
  width: 100%;
}

#contact #contact-form iframe,
#contact #contact-form > * {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

#contact #contact-form iframe {
  border: none;
  height: 720px;
}

/* Responsive matches footer */
@media screen and (max-width: 900px) {
  #contact .contact-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    align-items: start;
  }

  #contact .contact-copy {
    align-items: center;
    text-align: center;
    max-width: 34rem;
  }

  #contact .contact-card {
    max-width: 560px;
  }

  #contact #contact-form iframe {
    height: 650px;
  }
}
