/* ==========================================================================
   Team Form block — group photo with a contact form card on the right.
   ========================================================================== */

.team-form {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  background: #4a4a4a;
  isolation: isolate;
}

.team-form__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.team-form__inner {
  position: relative;
  z-index: 1;
  max-width: 1640px;
  margin: 0 auto;
  padding: 80px 20px 0;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 40px;
  align-items: end;
}

/* ------------------------------ Group photo ------------------------------ */

.team-form__group {
  display: block;
  width: 100%;
  height: auto;
  max-height: 780px;
  object-fit: contain;
  object-position: bottom left;
  align-self: end;
}

/* ------------------------------ Card / form ----------------------------- */

.team-form__card {
  position: relative;
  align-self: center;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  margin-bottom: 60px;
}

/* Header bar — dark navy with logo left + heading right. */
.team-form__card-header {
  display: flex;
  align-items: center;
  gap: 75px;
  padding: 20px;
  background: #0c171c;
  color: #ffffff;
}

.team-form__card-logo {
  flex: 0 0 auto;
  max-width: 160px;
  height: auto;
  display: block;
}

.team-form__card-heading {
  margin: 0;
  flex: 1 1 auto;
  font-family: 'Quattrocento', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
}

/* Body — the form itself. */
.team-form__card-body {
  padding: 26px 20px;
}

.team-form__placeholder {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #9aa1a8;
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0 12px, rgba(0, 0, 0, 0.04) 12px 24px);
}

/* CF7 form styles live in _assets/src/css/components/_cf7-form.css. */

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1100px) {
  .team-form__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 20px 0;
    min-height: 0;
  }
  .team-form__group {
    max-height: 520px;
    order: 2;
  }
  .team-form__card {
    margin: 0 0 40px;
    order: 1;
  }
  .team-form__placeholder {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  /* Mobile design: form card on top (with 16px side gutter), then the group
     photo bleeding to the section edges below it. */
  .team-form__inner {
    padding: 20px 0 0;
    gap: 0;
    align-items: stretch;
  }
  .team-form__card {
    align-self: stretch;
    margin: 0 16px 24px;
    border-radius: 16px;
  }
  .team-form__card-header {
    gap: 20px;
    padding: 18px 20px;
  }
  .team-form__card-logo {
    max-width: 120px;
  }
  .team-form__card-heading {
    font-size: 14px;
    line-height: 1.4;
  }
  .team-form__card-body {
    padding: 20px 16px 24px;
  }
  .team-form__group {
    max-height: none;
    object-position: bottom center;
  }
  .team-form__placeholder {
    min-height: 420px;
    font-size: 12px;
  }
}

/* ------------------------------ Editor preview -------------------------- */

.team-form--is-preview {
  zoom: 0.55;
}
