.waiver-page {
  background: #0c0f12;
  color: var(--ink);
  padding-bottom: 36px;
}

.waiver-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 130px clamp(18px, 5vw, 80px) 42px;
  background:
    linear-gradient(135deg, rgba(12, 15, 18, 0.45), rgba(12, 15, 18, 0.92)),
    url("../assets/gallery/bungee-sky-jump.jpeg") center / cover no-repeat;
}

.waiver-hero h1 {
  margin-bottom: 14px;
}

.waiver-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.waiver-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 20, 24, 0.78);
  padding: 12px 16px;
  color: var(--yellow);
  font-weight: 900;
}

.waiver-form {
  display: grid;
  gap: 16px;
  width: min(1060px, calc(100% - 32px));
  margin: -18px auto 0;
}

.waiver-panel,
.waiver-submit {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 3vw, 28px);
}

.waiver-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.waiver-panel-head span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.waiver-panel-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.waiver-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.waiver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.waiver-note,
.waiver-alert {
  margin-top: 16px;
  border-radius: 8px;
  padding: 14px;
  font-weight: 800;
}

.waiver-note {
  background: rgba(247, 195, 49, 0.12);
  color: var(--yellow);
}

.waiver-alert {
  background: rgba(255, 43, 43, 0.12);
  color: #ff7777;
}

.guardian-fields {
  margin-top: 14px;
}

.guardian-mode {
  margin-top: 14px;
}

.wide {
  display: grid;
  margin-top: 16px;
}

.waiver-questions,
.waiver-checks {
  display: grid;
  gap: 10px;
}

.waiver-question {
  display: grid;
  grid-template-columns: 1fr 96px 96px;
  gap: 10px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.waiver-question legend {
  color: #fff;
  font-weight: 800;
}

.waiver-question label,
.waiver-choice label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  background: #0f1317;
  color: #fff;
}

.waiver-question input,
.waiver-choice input,
.waiver-checks input {
  width: auto;
  margin: 0;
  accent-color: var(--red);
}

.waiver-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1317;
  margin-bottom: 16px;
}

.waiver-rules summary {
  padding: 16px;
}

.waiver-rules div {
  max-height: 320px;
  overflow: auto;
  padding: 0 16px 16px;
}

.waiver-rules p {
  color: var(--muted);
  line-height: 1.55;
}

.waiver-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1317;
  padding: 13px;
  color: #e2e5df;
  line-height: 1.4;
}

.waiver-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 16px 0 0;
}

.waiver-choice legend {
  grid-column: 1 / -1;
  color: #fff;
  font-weight: 900;
}

.signature-box {
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  touch-action: none;
}

.signature-box canvas {
  display: block;
  width: 100%;
  height: 230px;
}

.clear-signature {
  margin-top: 12px;
}

.waiver-submit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
}

.waiver-submit p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.waiver-submit p.success {
  color: var(--green);
}

.waiver-submit p.error {
  color: var(--red);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .waiver-hero,
  .waiver-grid,
  .waiver-choice,
  .waiver-submit {
    grid-template-columns: 1fr;
  }

  .waiver-hero {
    padding: 106px 16px 36px;
  }

  .waiver-question {
    grid-template-columns: 1fr 1fr;
  }

  .waiver-question legend {
    grid-column: 1 / -1;
  }

  .waiver-submit .button {
    width: 100%;
  }
}
