.vs-contact-modal {
  width: min(60rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(58rem, calc(100dvh - 2rem));
  margin: auto;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #071944;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2rem 6rem rgb(0 10 24 / 0.35);
}

.vs-contact-modal::backdrop {
  background: rgb(3 12 25 / 0.78);
  backdrop-filter: blur(4px);
}

.vs-contact-modal[open] {
  animation: vs-contact-modal-enter 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes vs-contact-modal-enter {
  from { opacity: 0; transform: translateY(0.75rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.vs-contact-modal__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.22fr);
  max-height: min(58rem, calc(100dvh - 2rem));
  overflow: auto;
  background: #f7fafc;
}

.vs-contact-modal__visual {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: #071944;
}

.vs-contact-modal__visual::after {
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(180deg, transparent, rgb(3 17 35 / 0.86));
  content: "";
}

.vs-contact-modal__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vs-contact-modal__visual-copy {
  position: absolute;
  z-index: 1;
  inset: auto 1.5rem 1.75rem;
  color: #ffffff;
}

.vs-contact-modal__visual-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vs-contact-modal__visual-copy p + p {
  max-width: 24rem;
  margin: 0.6rem 0 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.vs-contact-modal__content {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.vs-contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #516071;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.vs-contact-modal__close:hover {
  background: rgb(7 25 68 / 0.08);
  color: #071944;
}

.vs-contact-modal__close:focus-visible {
  outline: 2px solid #2d187e;
  outline-offset: 2px;
}

.vs-contact-modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vs-contact-modal__eyebrow {
  margin: 0 2.5rem 0.65rem 0;
  color: #2d187e;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-contact-modal__title {
  max-width: 34rem;
  margin: 0;
  color: #071944;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}

.vs-contact-modal__title em {
  color: #2d187e;
  font-style: normal;
}

.vs-contact-modal__intro {
  margin: 0.65rem 0 0.9rem;
  color: #5a6675;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.vs-contact-modal__panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.vs-contact-modal .vs-form__form {
  gap: 0.7rem;
}

.vs-contact-modal .vs-form__row {
  gap: 0.65rem 1.1rem;
}

.vs-contact-modal .vs-form__field {
  gap: 0.2rem;
}

.vs-contact-modal .vs-form__label {
  color: #344356;
  font-size: 0.75rem;
}

.vs-contact-modal .vs-form__input {
  border: 0;
  border-bottom: 1px solid #c5ced8;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0;
  color: #071944;
}

.vs-contact-modal .vs-form__input:focus {
  border-color: #2d187e;
  box-shadow: 0 2px 0 #2d187e;
}

.vs-contact-modal .vs-form__input::placeholder {
  color: #8995a3;
}

.vs-contact-modal .vs-form__consent {
  margin-top: 0.2rem;
  color: #4c5968;
  font-size: 0.75rem;
  line-height: 1.55;
}

.vs-contact-modal .vs-form__consent a {
  color: #2d187e;
}

.vs-contact-modal__actions {
  display: block;
  margin-top: 0.35rem;
}

.vs-contact-modal .vs-form__submit {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: #071e2b;
  padding: 0.75rem 1.25rem;
  text-align: left;
}

.vs-contact-modal .vs-form__submit:hover {
  background: #2d187e;
}

.vs-contact-modal .vs-form__submit svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #78b9ff;
}

.vs-contact-modal .vs-form__success {
  padding: 1.5rem 0;
}

.vs-contact-modal__direct {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  border-top: 1px solid #d5dde5;
  padding-top: 0.75rem;
  color: #687584;
  font-size: 0.8125rem;
}

.vs-contact-modal__direct > div {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.vs-contact-modal__direct a {
  color: #071944;
  font-weight: 700;
  text-decoration: none;
}

.vs-contact-modal__direct a:hover {
  color: #2d187e;
}

@media (max-width: 700px) {
  .vs-contact-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 0.6rem;
  }

  .vs-contact-modal__layout {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 1rem);
  }

  .vs-contact-modal__visual {
    min-height: 0;
    height: 10rem;
  }

  .vs-contact-modal__visual-copy {
    inset: auto 1rem 1rem;
  }

  .vs-contact-modal__visual-title { font-size: 1.1rem; }
  .vs-contact-modal__visual-copy p + p { max-width: 22rem; font-size: 0.8125rem; }
  .vs-contact-modal__content { padding: 1.5rem 1.25rem; }
  .vs-contact-modal__title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .vs-contact-modal__intro { margin-bottom: 1rem; font-size: 0.875rem; }

  .vs-contact-modal .vs-form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .vs-contact-modal__direct {
    flex-direction: column;
    gap: 0.4rem;
  }

  .vs-contact-modal__direct > div {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-contact-modal[open] {
    animation: none;
  }

  .vs-contact-modal__close,
  .vs-contact-modal .vs-form__submit {
    transition: none;
  }
}
