/* FeTNA 2026 Liability Waiver
   Styles | v1.0.0
   Color scheme: Deep Navy & Gold */

*,*::before,*::after { box-sizing: border-box; }

.fw-wrap {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────── */
.fw-header {
  background: linear-gradient(135deg, #0f2a4a 0%, #1e3a5f 55%, #c8922a 100%);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 28px 32px 24px;
}
.fw-header-org {
  margin: 0 0 4px;
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .75;
  color: #fff;
}
.fw-title {
  margin: 0 0 2px;
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
}
.fw-subtitle {
  margin: 0 0 4px;
  font-size: 1.05em;
  font-weight: 600;
  color: #fff;
  opacity: .93;
}
.fw-header-sub {
  margin: 0;
  font-size: .82em;
  color: #fff;
  opacity: .72;
  letter-spacing: .2px;
}

/* ── Notice bar ──────────────────────────────────── */
.fw-notice {
  background: #e8f4fd;
  border: 1px solid #b9d4ec;
  border-top: none;
  padding: 12px 24px;
  font-size: .88em;
  color: #0f2a4a;
}

/* ── Alerts ──────────────────────────────────────── */
.fw-alert {
  padding: 13px 20px;
  border-radius: 6px;
  margin: 14px 0;
  font-weight: 600;
  font-size: .94em;
  line-height: 1.5;
}
.fw-alert--ok  { background: #e8f4fd; color: #0f2a4a; border: 1px solid #b9d4ec; }
.fw-alert--err { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }

/* ── Sections ────────────────────────────────────── */
.fw-section {
  background: #fff;
  border: 1px solid #cfe0f5;
  border-top: none;
  padding: 0 24px 22px;
}
.fw-section--turnstile {
  padding: 16px 24px;
}

.fw-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .97em;
  color: #1e3a5f;
  padding: 18px 0 12px;
  border-bottom: 2px solid #e8f4fd;
  margin-bottom: 18px;
}
.fw-section-num {
  background: linear-gradient(135deg, #1e3a5f, #c8922a);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82em;
  flex-shrink: 0;
}

/* ── Grid ────────────────────────────────────────── */
.fw-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fw-field {
  display: flex;
  flex-direction: column;
}
.fw-field--full       { flex: 0 0 100%; }
.fw-field--half       { flex: 1; min-width: 230px; }
.fw-field--two-thirds { flex: 2; min-width: 280px; }
.fw-field--third      { flex: 1; min-width: 160px; }

/* ── Labels & inputs ─────────────────────────────── */
.fw-field label {
  font-weight: 600;
  font-size: .87em;
  margin-bottom: 5px;
  color: #444;
  line-height: 1.5;
}
.fw-req { color: #c8922a; }

.fw-field input[type="text"],
.fw-field input[type="email"],
.fw-field input[type="tel"],
.fw-field input[type="date"],
.fw-field select {
  border: 1.5px solid #b9d4ec;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: .94em;
  background: #fff;
  font-family: inherit;
  color: #333;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.fw-field input:focus,
.fw-field select:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}

/* ── Role buttons ────────────────────────────────── */
.fw-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.fw-role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #b9d4ec;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9em;
  color: #333;
  background: #fff;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.fw-role-btn input[type="radio"] {
  accent-color: #1e3a5f;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.fw-role-btn:has(input:checked) {
  border-color: #1e3a5f;
  background: #e8f4fd;
  color: #1e3a5f;
  font-weight: 600;
}

/* ── Clauses accordion ───────────────────────────── */
.fw-clauses-note {
  font-size: .85em;
  color: #666;
  margin: -8px 0 14px;
  font-style: italic;
}
.fw-clause {
  border: 1px solid #cfe0f5;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.fw-clause-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  background: #f8fafd;
  user-select: none;
}
.fw-clause-head:hover { background: #eef5fc; }
.fw-clause-num {
  background: linear-gradient(135deg, #1e3a5f, #c8922a);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75em;
  flex-shrink: 0;
}
.fw-clause-title {
  flex: 1;
  font-size: .9em;
  font-weight: 600;
  color: #1e3a5f;
}
.fw-clause-chevron {
  font-size: 1.1em;
  color: #999;
  transition: transform .2s;
  flex-shrink: 0;
}
.fw-clause-body {
  display: none;
  padding: 12px 14px;
  font-size: .88em;
  color: #555;
  line-height: 1.7;
  border-top: 1px solid #cfe0f5;
  background: #fff;
}
.fw-clause-body p { margin: 0; }
.fw-clause-body.fw-clause-open { display: block; }

/* ── Agree row ───────────────────────────────────── */
.fw-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 14px 16px;
  background: #f0f5fc;
  border: 1.5px solid #b9d4ec;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9em;
  color: #333;
  line-height: 1.6;
}
.fw-agree-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #1e3a5f;
  cursor: pointer;
}

/* ── Signature pads ──────────────────────────────── */
.fw-sig-wrap {
  border: 1.5px solid #b9d4ec;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.fw-sig-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8fafd;
  border-bottom: 1px solid #cfe0f5;
}
.fw-sig-label {
  font-size: .8em;
  color: #888;
}
.fw-sig-clear {
  font-size: .8em;
  color: #1e3a5f;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.fw-sig-clear:hover { background: #e8f4fd; }
.fw-sig-canvas {
  display: block;
  width: 100%;
  height: 130px;
  cursor: crosshair;
  touch-action: none;
}

/* ── Minor toggle ────────────────────────────────── */
.fw-minor-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92em;
  color: #333;
  cursor: pointer;
  padding: 4px 0;
}
.fw-minor-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #1e3a5f;
  cursor: pointer;
}

/* ── Submit ──────────────────────────────────────── */
.fw-submit-row {
  background: #fff;
  border: 1px solid #cfe0f5;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 22px 24px;
  text-align: center;
}
#fw-btn {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #c8922a 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 42px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
  transition: transform .1s, box-shadow .2s;
}
#fw-btn:hover {
  box-shadow: 0 4px 16px rgba(30,58,95,.3);
  transform: translateY(-1px);
}
#fw-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.fw-privacy {
  margin: 12px 0 0;
  font-size: .78em;
  color: #777;
  line-height: 1.5;
}

/* ── Closed ──────────────────────────────────────── */
.fw-closed {
  margin: 0;
  font-weight: 600;
  color: #880e4f;
  text-align: center;
  font-size: .95em;
  padding: 14px;
  background: #fce4ec;
  border-radius: 6px;
}

/* ── Branding ────────────────────────────────────── */
.fw-branding {
  text-align: center;
  margin: 16px 0 0;
  font-size: .8em;
  color: #999;
}
.fw-branding a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
}
.fw-branding a:hover { text-decoration: underline; }

/* ── Errors ──────────────────────────────────────── */
.fw-err {
  display: block;
  color: #880e4f;
  font-size: .85em;
  margin-top: 6px;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  .fw-header { padding: 20px 18px 16px; }
  .fw-title  { font-size: 1.2em; }
  .fw-section { padding: 0 16px 18px; }
  .fw-section-head { font-size: .9em; padding: 14px 0 10px; }
  .fw-field--half,
  .fw-field--two-thirds,
  .fw-field--third { min-width: 100%; }
  .fw-role-btn { min-width: calc(50% - 5px); }
  #fw-btn { padding: 12px 28px; font-size: .95em; width: 100%; }
  .fw-submit-row { padding: 18px 16px; }
}
