.tb-contact {
  color: var(--tb-color-text);
  margin-inline: auto;
  max-width: 72rem;
  min-width: 0;
}

.tb-contact__header {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem;
}

.tb-contact__header h1 {
  color: var(--tb-color-navy);
  font: 700 clamp(2.25rem, 5vw, 3.5rem) / 1.1 Inter, Arial, sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.tb-contact__header p,
.tb-contact__form > p {
  color: var(--tb-color-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  margin: 0;
}

.tb-contact__layout {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tb-contact__panel {
  background: var(--tb-color-white);
  border-radius: 1rem;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.tb-contact__panel h2 {
  color: var(--tb-color-navy);
  font: 700 clamp(1.4rem, 3vw, 1.75rem) / 1.2 Inter, Arial, sans-serif;
  margin: 0 0 1.25rem;
}

.tb-contact__company {
  color: inherit;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.tb-contact__details dl {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.tb-contact__details dl > div {
  border-top: 1px solid rgb(255 255 255 / 20%);
  min-width: 0;
  padding-top: 1rem;
}

.tb-contact__details dt {
  color: #c6d2e5;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tb-contact__details dd {
  color: #fff;
  font-size: 1.0625rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.tb-contact__details address {
  font-style: normal;
}

.tb-contact__details a {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  text-decoration-color: #ffb0a7;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.tb-contact__note {
  color: #c6d2e5;
  font-size: 0.9375rem;
  margin: 1.5rem 0 0;
}

.tb-contact__form > p {
  margin: -0.5rem 0 1.5rem;
}

.tb-contact .tb-form-shell {
  background: transparent;
  border: 0;
  max-width: none;
  padding: 0;
}

.tb-contact .tb-form__fields {
  grid-template-columns: minmax(0, 1fr);
}

.tb-contact .tb-form__source-html {
  grid-column: 1 / -1;
}

.tb-contact .tb-form__submit {
  background: var(--tb-color-navy);
  border-radius: 0.75rem;
  justify-self: stretch;
  width: 100%;
}

.tb-contact__details {
  background: var(--tb-color-navy);
  color: #fff;
}

.tb-contact__details h2 { color: #fff; }
.tb-contact__form { background: var(--tb-color-canvas, #f4f6f9); }
.tb-contact__form h2 { scroll-margin-top: 9rem; }
.tb-contact .tb-form__field { min-width: 0; }
.tb-contact .tb-form__field--type-6 { grid-column: 1 / -1; }
.tb-contact input:not([type="checkbox"]):not([type="radio"]),
.tb-contact textarea {
  background: #fff;
  border: 1px solid var(--tb-color-border, #c8d0dc);
  border-radius: 0.625rem;
  font-size: 1rem;
}
.tb-contact textarea { min-height: 10rem; resize: vertical; }
.tb-contact .tb-form__fields { gap: 1.25rem; }
.tb-contact__jump { display: inline-flex; margin-top: 1rem; min-height: 44px; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .tb-contact__details a:hover { color: #ffb0a7; }
  .tb-contact .tb-form__submit:hover { background: var(--tb-color-deep-navy); }
}

@media (min-width: 720px) {
  .tb-contact .tb-form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-contact .tb-form__field--type-5,
  .tb-contact .tb-form__field--type-11 {
    grid-column: 1 / -1;
  }

  .tb-contact .tb-form__submit {
    justify-self: start;
    width: auto;
  }
}

@media (min-width: 960px) {
  .tb-contact__jump { display: none; }
  .tb-contact__layout {
    align-items: start;
    grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  }
}
