/* The webinar sign-up page (views/pages/webinar.php, only at webinar.doctorberan.com). It uses the coming soon page's
   look (soon.css: logo row, glow, hexagons, form, thank you box) and adds: the date box, Dr Beran's photo with her name
   over it, the facts, what the webinar covers and the free ebook, and a footer.
   Phones: photo, then the words and form, then the details. From 992px: words and form on the left, photo and details
   on the right. */

.webinar__body {
  grid-template-areas: "photo" "words" "details";
  align-items: start;
}

.webinar__words   { grid-area: words; }
.webinar__photo   { grid-area: photo; }
.webinar__details { grid-area: details; }

.webinar__kicker {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-menu-button);
}

.webinar__title {
  text-wrap: balance;
}

.webinar__when {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
  color: var(--c-accent-text);
  background-color: var(--c-accent);
  border-radius: var(--radius-2);
}

.webinar__when strong {
  font-size: var(--fs-lead);
}

.webinar__when span {
  font-size: var(--fs-small);
}

.webinar__names {
  display: grid;
  gap: var(--sp-3);
  align-items: start; /* an error under one name leaves the other where it is */
}

.webinar__button {
  justify-self: start;
  min-height: var(--button-h-lg);
}

/* Dr Beran's photo, cropped around her, with her name and titles in a white box over the bottom. */
.webinar__photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
}

.webinar__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 22% 30%; /* she stands at the left of the wide photo */
}

/* Phones: the name sits under the photo, so it does not cover her. From 576px it floats over the bottom of the photo. */
.webinar__who {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--c-photo-label);
  border-radius: var(--radius-2);
}

.webinar__who span {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.webinar__details {
  display: grid;
  gap: var(--sp-6);
  min-width: 0;
}

.webinar__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0;
  list-style: none;
}

.webinar__facts li {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.webinar__explore {
  display: grid;
  gap: var(--sp-3);
}

.webinar__heading {
  font-size: var(--fs-h4);
}

.webinar__list {
  display: grid;
  gap: var(--sp-2);
  padding: 0;
  list-style: none;
}

.webinar__list li {
  display: flex;
  gap: var(--sp-2);
}

.webinar__list .bi {
  color: var(--c-menu-button);
}

.webinar__gift {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.webinar__gift span {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.webinar__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  max-width: var(--soon-max);
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  border-top: var(--border-1) solid var(--c-line);
}

@media (min-width: 576px) {
  .webinar__names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webinar__who {
    position: absolute;
    inset: auto var(--sp-3) var(--sp-3);
  }
}

@media (min-width: 992px) {
  .webinar__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "words photo" "words details";
    gap: var(--sp-10) var(--sp-16);
  }
}
