/* Home page: the inquiry form slides in from the right when "Inquire Here" is clicked.
   The panel reuses the /form page's .form_wrapper styles so it looks the same. */

.inquire-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}

.inquire-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 901;
  width: 100%;
  max-width: 30rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--black);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .6s;
}

.inquire-panel:focus {
  outline: none;
}

.inquire-open .inquire-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease;
}

.inquire-open .inquire-panel {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.inquire-open,
.inquire-open body {
  overflow: hidden;
}

/* Fade the home text while the panel is open: the panel repeats the headline,
   and on narrower screens the panel would otherwise cut through it. */
.introduction {
  transition: opacity .4s ease;
}

.inquire-open .introduction {
  opacity: 0;
}

.inquire-panel .form_wrapper {
  height: auto;
  min-height: 100%;
}

/* Same look as the page's h1, but an h2 since the home page already has its h1. */
.inquire-heading {
  margin-bottom: 0;
  font-family: B612 Mono, sans-serif;
  font-size: 2rem;
  line-height: 2.25rem;
  text-transform: none;
}

.inquire-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1;
  padding: .5rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--gray);
  font-family: B612 Mono, sans-serif;
  font-size: .75rem;
  line-height: .75rem;
  transition: color .2s ease;
}

.inquire-close:hover,
.inquire-close:focus-visible {
  color: var(--white);
}

@media screen and (max-width: 767px) {
  .inquire-panel {
    max-width: none;
  }

  .inquire-heading {
    font-size: 1.625rem;
    line-height: 2rem;
  }

  .inquire-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inquire-overlay,
  .inquire-panel,
  .inquire-open .inquire-overlay,
  .inquire-open .inquire-panel {
    transition: none;
  }
}
