/* ===========================================================================
   events/waiver.css - the participation waiver pages (read-only + signing)
   and the RSVP confirmation page
   =========================================================================== */

.waiver {
  max-width: 760px;
  margin-inline: auto;
  padding: var(--page-top) var(--gutter) var(--section-y);
}

/* Lead note at the top of the signing flow (composes with .callout). */
.waiver__lead-note {
  margin-bottom: 2.25rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--brand-glow);
}

/* --- Masthead ----------------------------------------------------------- */
.waiver__masthead {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.waiver__kicker { margin-bottom: 1.4rem; }
.waiver__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 2rem;
}
.waiver__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--line);
}
.waiver__meta dt {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}
.waiver__meta dd {
  font-size: 0.98rem;
  color: var(--text);
}
.waiver__intro {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  color: var(--text-dim);
}

/* --- Sections ----------------------------------------------------------- */
.waiver-section {
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.waiver-section:first-of-type { border-top: 0; padding-top: clamp(1rem, 2vw, 1.5rem); }
.waiver-section__head,
.waiver-ack__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.waiver-section__num {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
}
.waiver-section p {
  margin-bottom: 0.85rem;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  line-height: 1.7;
}
.waiver-section p:last-child { margin-bottom: 0; }

/* Bullet lists */
.waiver-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.waiver-list li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  line-height: 1.6;
}
.waiver-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Section 7 - released parties, set apart (composes with .callout). */
.waiver-section .waiver-release {
  margin: 0.25rem 0 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  background: var(--surface-2);
}

/* --- RSVP acknowledgment block (read-only waiver page; composes with .panel) - */
.waiver-ack {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.waiver-ack p {
  margin-bottom: 0.85rem;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  line-height: 1.7;
}
.waiver-ack p:last-child { margin-bottom: 0; }

.waiver__back {
  display: inline-block;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* --- Waiver signing form (the panel composes with .panel) --------------- */
.waiver__end { display: block; height: 1px; }

.waiver-sign {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.waiver-sign__head {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.waiver-sign__statement {
  margin-bottom: 1.5rem;
}
.waiver-sign__statement p {
  font-family: var(--font-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.waiver-sign__statement p + p { margin-top: 0.7rem; }

.waiver-sign__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}
.waiver-sign__check input:disabled { cursor: not-allowed; }
.waiver-sign__hint {
  margin-top: 0.6rem;
  font-family: var(--font-primary);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.waiver-sign__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 1.9rem 0 0.5rem;
}
.waiver-sign__line {
  flex: 1;
  min-width: 200px;
}
.waiver-sign__value {
  display: block;
  min-height: 2.1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
}
.waiver-sign__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.waiver-sign__submit {
  margin-top: 1.75rem;
}
.waiver-sign__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- RSVP confirmation page --------------------------------------------- */
.confirmed {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: calc(var(--header-h) + clamp(4rem, 14vh, 9rem)) var(--gutter) var(--section-y);
}
.confirmed__mark {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.75rem;
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.confirmed__mark::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 14px;
  width: 13px;
  height: 25px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.confirmed__kicker {
  justify-content: center;
  margin-bottom: 1.25rem;
}
.confirmed__head {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.confirmed__text {
  margin-bottom: 2.25rem;
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.confirmed__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
