/* ===========================================================
   Backwood's Horror — Waiver page styles (extends style.css)
   =========================================================== */

.waiver-page { background-color: var(--paper); }
.waiver-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 40px) 40px;
}
.waiver-main .section-head { margin-bottom: 30px; }
.waiver-main .section-head h2 {
  font-family: 'Bungee', cursive;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--orange);
  text-shadow: 3px 3px 0 var(--ink);
}
.waiver-main .section-head p { color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; }
.waiver-main .section-head strong { color: var(--orange-d); }

/* card */
.waiver-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--hard);
  padding: clamp(20px, 4vw, 40px);
}

/* agreement box */
.agreement h3 {
  font-family: 'Bungee', cursive;
  font-size: 1.05rem;
  color: var(--orange-d);
  margin-bottom: 12px;
  letter-spacing: .3px;
}
.agreement-body {
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.agreement-body p { margin-bottom: 10px; }
.agreement-body ol { margin: 0 0 10px 1.2em; display: grid; gap: 5px; }
.agreement-body strong { color: var(--ink); }
.agreement-version { font-size: .78rem; color: var(--fog, #8a7a63); margin-top: 8px; text-align: right; }

/* fieldsets */
.field-group {
  border: none;
  border-top: 2px dashed var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.field-group legend {
  font-family: 'Bungee', cursive;
  font-size: .95rem;
  color: var(--ink);
  padding-right: 12px;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 2px; }
.req { color: var(--orange-d); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"] {
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
}
input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
input.invalid { border-color: var(--orange-d); background: #fff4ee; }

/* checkboxes */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 12px;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--orange); }

/* roster picker (order mode) */
.roster-help { color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; }
.roster-label { display: block; font-weight: 800; color: var(--ink); margin: 10px 0 6px; }
.roster-none { color: #2c6e63; font-weight: 800; }
.picker { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--ink); background: #fff; }
.pick input { width: 20px; height: 20px; accent-color: var(--orange); }
.pick .pick-tag { margin-left: auto; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #2c6e63; }

/* minors */
.minors-block { margin-top: 14px; }
.minors-help { font-weight: 700; color: var(--ink); margin: 14px 0 8px; font-size: .9rem; }
.minor-row { display: grid; grid-template-columns: 1fr 90px 40px; gap: 10px; align-items: end; margin-bottom: 10px; }
.minor-row .remove-minor {
  height: 44px; border: 2px solid var(--ink); background: var(--paper);
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--orange-d);
}
.btn-sm { padding: 9px 16px; font-size: .72rem; box-shadow: var(--hard-sm); }

/* signature */
.sig-help { font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; font-size: .9rem; }
.sig-wrap { position: relative; margin-bottom: 14px; }
.sig-pad {
  width: 100%;
  height: 180px;
  background: #fff;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
  display: block;
}
.sig-clear {
  position: absolute; top: 8px; right: 8px;
  padding: 6px 12px; font-weight: 700; font-size: .75rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; cursor: pointer;
}

/* errors + submit */
.form-error {
  margin-top: 20px; padding: 12px 16px;
  background: #fff4ee; border: 2px solid var(--orange-d); border-radius: 8px;
  color: var(--orange-d); font-weight: 700;
}
.waiver-submit { margin-top: 26px; text-align: center; }
.waiver-submit .btn { font-size: 1rem; padding: 16px 40px; }
.legal-note { text-align: center; color: var(--ink-soft); font-size: .8rem; margin-top: 16px; }

/* success screen */
.waiver-done { text-align: center; padding: 40px 20px; }
.done-icon { font-size: 3rem; margin-bottom: 10px; }
.waiver-done h2 { font-family: 'Bungee', cursive; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); font-size: 2rem; margin-bottom: 10px; }
.waiver-done p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 24px; }
.done-coverage { color: var(--ink-soft); font-weight: 700; max-width: 460px; margin: 0 auto 18px; }
.done-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.is-busy { opacity: .6; pointer-events: none; }
