/* Post-event thank-you modal. Same mechanics as attend-modal.css so every
   dialog on the page opens, dims and closes the same way. */
.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.thanks-backdrop {
  position: absolute;
  inset: 0;
  background: #061c4399;
  opacity: 0;
  transition: opacity .2s ease;
}
.thanks-modal.is-open .thanks-backdrop { opacity: 1; }
.thanks-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 94dvh;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px #061c4370;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.thanks-modal.is-open .thanks-dialog { opacity: 1; transform: none; }

.thanks-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 16px;
  border-top: 4px solid var(--brand-red);
  flex: none;
}
.thanks-brand-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--brand-blue);
  margin-bottom: 6px;
}
.thanks-dialog-head #thanks-modal-title {
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--brand-navy);
}
.thanks-lede { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.thanks-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-navy);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.thanks-close:hover { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--white); }
.thanks-close .icon { width: 19px; height: 19px; }

/* The infographic carries the numbers, so it gets the body to itself and
   scrolls on short screens rather than being shrunk past legibility. */
.thanks-dialog-body {
  overflow: auto;
  padding: 0 22px;
  min-height: 0;
}
.thanks-figure { margin: 0; }
.thanks-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.thanks-dialog-foot {
  padding: 16px 22px 20px;
  flex: none;
}
.thanks-go { width: 100%; min-height: 50px; border-radius: 10px; justify-content: center; }

@media (max-width: 640px) {
  .thanks-modal { padding: 12px; }
  .thanks-dialog-head { padding: 14px 16px 12px; }
  .thanks-lede { font-size: 13.5px; }
  .thanks-dialog-body { padding: 0 16px; }
  .thanks-dialog-foot { padding: 12px 16px 16px; }
}
