/* AFH wrapper for the embedded PBD application forms. The page fills the
   viewport and the form scrolls inside its frame, on desktop and mobile. */
html,
body {
  height: 100%;
}

.pbd-form-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.pbd-form-page .pbd-header {
  flex: none;
  border-bottom: 1px solid #ece6ea;
}

.pbd-form-intro {
  flex: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 10px;
}

.pbd-form-intro a {
  color: #715566;
  font-size: 14px;
  text-decoration: none;
}

.pbd-form-intro a:hover {
  text-decoration: underline;
}

.pbd-form-intro h1 {
  margin: 4px 0 0;
  color: #40383e;
  font-size: 22px;
  line-height: 1.25;
}

.pbd-form-frame {
  flex: 1 1 auto;
  min-height: 0;
  background: #f6f3f4;
}

.pbd-form-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .pbd-form-intro {
    padding: 8px 16px;
  }

  .pbd-form-intro h1 {
    font-size: 18px;
  }
}
