/* assets/css/demo.css
 * Book a demo. The form is the page, so it gets the white panel and the
 * explanation sits beside it rather than above.
 */

.demo {
  padding: 72px 0 84px;
  background: var(--band);
}

.demo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 70px;
  align-items: start;
  max-width: var(--hero-w);
  margin-inline: auto;
}

.demo__title {
  --hard-shadow-offset: 3px;
  font-size: 54px;
  line-height: 68px;
}

.demo__lead {
  max-width: 470px;
  margin-top: 18px;
  font-size: var(--lead);
  line-height: 28px;
}

/* ---- What happens next ------------------------------------------------ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 44px;
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--band);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.step__title {
  font-size: var(--h6);
  line-height: var(--h6-lh);
}

.step__body {
  margin-top: 5px;
  max-width: 420px;
  color: var(--ink-soft);
}

.demo__art {
  width: 100%;
  height: auto;
  margin-top: 34px;
}

.demo__note {
  margin-top: 22px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-soft);
}

.demo__note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- The panel --------------------------------------------------------- */

.demo__panel {
  padding: 44px 46px 40px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(5, 52, 36, 0.12);
}

.form-row--picks {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-row--picks {
  margin-top: 22px;
}

.demo__submit {
  width: 100%;
  margin-top: 26px;
}

.demo__small {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1340px) {
  .demo__inner {
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 48px;
  }
}

@media (max-width: 1100px) {
  .demo {
    padding-top: 52px;
  }

  .demo__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .demo__title {
    --hard-shadow-offset: 2px;
    font-size: 40px;
    line-height: 52px;
  }

  .demo__title .marker {
    display: none;
  }

  .demo__panel {
    padding: 34px 30px 32px;
  }
}

@media (max-width: 640px) {
  .demo__title {
    --hard-shadow-offset: 2px;
    font-size: 33px;
    line-height: 43px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .demo__panel {
    padding: 26px 22px 26px;
  }
}
