body.demo-open { overflow: hidden; }
.big-bird-mark { pointer-events: none; }

.demo-dialog {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: min(1080px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  color: #173029;
  background: #f7f6f0;
  border: 0;
  box-shadow: 0 35px 100px rgba(3, 24, 19, .42);
  overflow: auto;
}

.demo-dialog.is-fallback-modal {
  box-shadow: 0 35px 100px rgba(3, 24, 19, .42), 0 0 0 100vmax rgba(4, 23, 18, .72);
}

.demo-dialog[open],.demo-dialog:target { display: grid; grid-template-columns: .82fr 1.18fr; }
.demo-dialog::backdrop { background: rgba(4, 23, 18, .72); backdrop-filter: blur(8px); }

.demo-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
}

.demo-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 650px;
  padding: 55px 50px 45px;
  color: #fff;
  background: radial-gradient(circle at 80% 15%, rgba(118, 198, 177, .17), transparent 34%), #0a211c;
  overflow: hidden;
}

.demo-intro::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -330px;
  bottom: -330px;
  border: 1px solid rgba(124, 202, 184, .15);
  border-radius: 50%;
}

.demo-intro img { width: 64px; height: 56px; object-fit: contain; margin-bottom: 105px; }
.demo-intro span,.demo-success > span { color: #82c9bb; font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.demo-intro h2 { margin: 20px 0; font: 500 42px/1.04 Manrope, sans-serif; letter-spacing: -2px; }
.demo-intro p { color: #a7bbb5; font-size: 14px; line-height: 1.7; }
.demo-intro small { margin-top: auto; color: #75948b; font-size: 10px; line-height: 1.6; letter-spacing: 1px; text-transform: uppercase; }

.demo-form-panel { padding: 60px 55px 45px; }
.demo-form-panel [hidden] { display: none !important; }
.demo-form-panel form { display: grid; gap: 20px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-field { display: grid; gap: 8px; }
.demo-field label { color: #51645e; font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.demo-field label span { color: #168d80; }
.demo-field input,.demo-field select,.demo-field textarea {
  width: 100%;
  padding: 12px 0;
  color: #173029;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23, 48, 41, .2);
  border-radius: 0;
  outline: none;
  font: 400 15px DM Sans, sans-serif;
}
.demo-field textarea { resize: vertical; }
.demo-field input:focus,.demo-field select:focus,.demo-field textarea:focus { border-bottom-color: #168d80; }
.demo-trap { position: absolute; left: -9999px; opacity: 0; }
.demo-status { min-height: 18px; color: #a4473d; font-size: 11px; }
.demo-submit-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 25px; padding-top: 5px; }
.demo-submit-row p { margin: 0; color: #71817c; font-size: 9px; line-height: 1.55; }
.demo-submit-row a { color: inherit; }
.demo-submit-row button,.demo-success > a {
  padding: 15px 20px;
  color: #142820;
  background: #b7d94a;
  border: 0;
  font: 600 11px DM Sans, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.demo-submit-row button span { margin-left: 22px; }
.demo-submit-row button:disabled { opacity: .55; cursor: wait; }

.demo-success { align-self: center; }
.demo-success h3 { margin: 18px 0; font: 500 42px/1.08 Manrope, sans-serif; letter-spacing: -2px; }
.demo-success p { color: #63766f; line-height: 1.7; }
.demo-success > a { display: inline-block; margin-top: 25px; }

@media (max-width: 760px) {
  .demo-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .demo-dialog[open],.demo-dialog:target { grid-template-columns: 1fr; }
  .demo-intro { min-height: auto; padding: 35px 28px 30px; }
  .demo-intro img { width: 50px; height: 44px; margin-bottom: 45px; }
  .demo-intro h2 { max-width: 85%; font-size: 32px; }
  .demo-intro small { display: none; }
  .demo-form-panel { padding: 35px 28px; }
  .demo-row,.demo-submit-row { grid-template-columns: 1fr; }
  .demo-submit-row button { width: 100%; }
}
