/* gocushy.co.nz/webinar — the free live session with Sam Bakker. Builds on
   nz-homepage.css (same tokens, header, footer, buttons); only what this page
   adds lives here. Sharp corners, ink borders, the yellow button with the ink
   shadow, Poppins. One page, one ask: save a seat. */

/* ---------- webinar introduction strip ---------- */

.webinar-strip {
  border-bottom: 1px solid var(--ink);
  background: var(--blue);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.webinar-strip p {
  margin: 0;
  padding-block: 9px;
  font-weight: 600;
}


/* ---------- the headline band: kicker, headline, one line. Nothing else. ---------- */

.webinar-hero-top {
  padding-block: 44px 32px;
}

.webinar-kicker {
  letter-spacing: 0.1em;
}

.webinar-hero-top h1 {
  max-width: 1040px;
  font-size: clamp(40px, 5.2vw, 64px);
}

.webinar-hero-top .hero-lead {
  max-width: 640px;
}

/* The homepage's underline is an absolute ::after, which only works while the
   highlighted words stay on one line. the headline can wrap, so paint
   the highlight as a background that is cloned onto each line instead. */
.webinar-hero h1 span {
  background: linear-gradient(transparent 68%, var(--yellow) 68%, var(--yellow) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.webinar-hero h1 span::after {
  display: none;
}

/* ---------- under the headline: the video on the left, the form on the right ---------- */

.webinar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  padding-block: 0 72px;
}

.webinar-video {
  margin: 0;
  min-width: 0;
}

.webinar-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.webinar-video-frame video,
.webinar-video-frame iframe,
.webinar-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--ink);
}

/* Until the video exists, Sam's photo holds the slot so the row never has a
   hole. The photo is square and the slot is 16:9, so it sits on the right on
   the brand blue rather than being cropped to a close-up. */
.webinar-video-poster {
  background: var(--blue);
}

.webinar-video-poster img {
  left: auto;
  width: 56.25%;
  object-fit: contain;
  background: var(--white);
}

.webinar-video-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 56.25% - 40px);
  padding: 6px 10px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.webinar-video-link {
  padding: 12px 18px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.webinar-video figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.webinar-form-card .webinar-next {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-left: 4px solid var(--ink);
  background: var(--yellow-soft);
  font-size: 15px;
}

/* ---------- your presenter, under the video ---------- */

.webinar-left {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.webinar-presenter {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.webinar-presenter img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--white);
}

.webinar-presenter p {
  margin: 0;
}

.webinar-presenter-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4c4c49;
}

.webinar-presenter-name {
  margin-top: 4px !important;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.webinar-presenter-line {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- under that: what you'll see ---------- */

.webinar-about {
  background: var(--paper);
}

.webinar-about-shell {
  max-width: 760px;
}

.webinar-see-heading {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.webinar-who {
  margin: 0;
  display: grid;
  gap: 6px;
}

.webinar-who strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.webinar-who span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.webinar-see {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.webinar-see li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
}

.webinar-see li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 25px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.webinar-form-card {
  margin-top: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(22px, 4vw, 36px);
  min-width: 0;
}

.webinar-form-card h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.webinar-form {
  display: grid;
  gap: 20px;
}

.webinar-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.webinar-field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.webinar-field label,
.webinar-sessions legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.webinar-field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
}

.webinar-field input:focus,
.webinar-choice input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.webinar-field [aria-invalid='true'] {
  border-width: 2px;
  border-color: #b3261e;
}

.webinar-error {
  margin: 0;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
}

/* The session picker (NzWebinar::sessionField): radios when there is a
   choice, one fixed slot when there is not. */
.webinar-sessions {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.webinar-sessions legend {
  margin-bottom: 8px;
}

.webinar-timezone {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.webinar-choice {
  display: block;
  cursor: pointer;
}

.webinar-choice input {
  position: absolute;
  opacity: 0;
}

.webinar-choice span {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 15px;
}

.webinar-choice strong {
  display: block;
  font-size: 22px;
}

.webinar-choice input:checked + span {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.webinar-one-session {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--yellow-soft);
  font-size: 15px;
}

.webinar-submit {
  width: 100%;
}

.webinar-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.webinar-status {
  margin: -12px 0 0;
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 600;
}

.webinar-status:empty {
  display: none;
}

.webinar-under {
  margin: -6px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.webinar-privacy-summary {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.webinar-privacy-details {
  margin: -8px 0 0;
}

.webinar-privacy-details summary {
  display: inline-block;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.webinar-privacy-details summary::-webkit-details-marker {
  display: none;
}

.webinar-privacy-details summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.webinar-privacy {
  margin-top: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
  color: #3f3f3c;
  font-size: 12.5px;
  line-height: 1.6;
}

.webinar-privacy p {
  margin: 0 0 8px;
}

.webinar-privacy p:last-child {
  margin-bottom: 0;
}

.webinar-privacy a,
.webinar-done a,
.webinar-small a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.webinar-small {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- the done state ---------- */

.webinar-done h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.webinar-done p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

.webinar-done [data-done-session] {
  font-weight: 700;
}

.webinar-done [data-done-session]:empty {
  display: none;
}

.webinar-done:focus {
  outline: none;
}

/* The form is display:grid, which would beat the browser's own [hidden]
   rule once the seat is saved. Pin hidden down in the booking row. */
.webinar-hero-grid [hidden] {
  display: none !important;
}

/* ---------- phones and small screens: the video first, then the form ---------- */

@media (max-width: 900px) {
  .webinar-hero-top {
    padding-block: 40px 28px;
  }

  .webinar-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 0 56px;
  }

}

@media (max-width: 680px) {
  .webinar-video-frame,
  .webinar-form-card {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .webinar-see li {
    font-size: 16px;
  }
}

/* On a phone the blue strip beside the photo is narrow: a smaller, sentence-case label. */
@media (max-width: 680px) {
  .webinar-video-label {
    left: 12px;
    bottom: 12px;
    max-width: calc(43.75% - 24px);
    padding: 5px 8px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

@media (max-width: 680px) {
  .webinar-presenter {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .webinar-presenter img {
    width: 88px;
    height: 88px;
  }

  .webinar-presenter-name {
    font-size: 22px;
  }
}

/* The same registration action is reachable before the video on a phone. */
.webinar-hero-note { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.webinar-hero-cta { margin-top: 24px; }
.webinar-form-card { scroll-margin-top: 100px; }
.webinar-see strong { display: block; margin-bottom: 6px; color: var(--ink); }
.webinar-fit { margin: 28px 0 0; font-size: 17px; line-height: 1.65; }
.webinar-about-cta { margin-top: 24px; }
@media (min-width: 901px) { .webinar-hero-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 380px) { .webinar-hero-top h1 { font-size: 36px; } }
