/* =====================================================
   Waiver Signing Page — Premium Styling
   Uses design tokens from tokens.css
   ===================================================== */

/* Page background */
.waiver-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
  padding: var(--space-8) var(--space-4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (max-width: 576px) {
  .waiver-page {
    padding: var(--space-4) var(--space-2);
  }
}

/* Main card with entrance animation */
.waiver-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-0);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: waiver-fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes waiver-fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Header with texture overlay and shield icon ---- */
.waiver-header {
  position: relative;
  background: linear-gradient(135deg, var(--brand-royal-base) 0%, #1a1a2e 100%);
  color: #ffffff;
  padding: var(--space-8) var(--space-6) var(--space-7);
  border-bottom: 3px solid var(--accent);
  text-align: center;
  overflow: hidden;
}

/* Subtle texture pattern on header */
.waiver-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232, 134, 52, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(232, 134, 52, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.waiver-header-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--accent);
  opacity: 0.9;
}

.waiver-header h2 {
  position: relative;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.waiver-header .waiver-subtitle {
  position: relative;
  color: var(--brand-cream);
  font-size: 0.9375rem;
  margin-top: var(--space-2);
  opacity: 0.75;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

/* ---- Card body ---- */
.waiver-body {
  padding: var(--space-7) var(--space-6);
}

@media (max-width: 576px) {
  .waiver-body {
    padding: var(--space-5) var(--space-4);
  }
}

/* ---- Section headings (Your Information, Sign Below) ---- */
.waiver-section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-subtle);
}

.waiver-section-heading i {
  font-size: 1.25rem;
  color: var(--accent);
}

.waiver-section-heading h4 {
  margin: 0;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

/* ---- Info section card (Your Information form) ---- */
.waiver-info-section {
  background: var(--surface-1);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

/* ---- Section styling (waiver content sections) ---- */
.waiver-section {
  background: var(--surface-1);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.waiver-section:last-child {
  margin-bottom: var(--space-5);
}

.waiver-section.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.waiver-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.waiver-section-number.completed {
  background: var(--success-soft);
  color: var(--success);
}

.waiver-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

/* ---- Content area (scrollable for long content) ---- */
.waiver-content-area {
  background: var(--surface-0);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-normal);
}

.waiver-content-area p {
  margin-bottom: var(--space-3);
}

.waiver-content-area h1,
.waiver-content-area h2,
.waiver-content-area h3 {
  color: var(--text-strong);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

/* ---- Signature pad — premium version ---- */
.signature-pad-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

.signature-pad-premium {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: var(--surface-0, #ffffff);
  border: 2px dashed var(--border-normal);
  border-radius: var(--radius-lg);
  cursor: crosshair;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-base), border-style var(--transition-base), box-shadow var(--transition-base);
}

/* CSS signing guide line */
.signature-pad-premium::after {
  content: '';
  position: absolute;
  bottom: 25%;
  left: 10%;
  right: 10%;
  border-bottom: 1px dashed var(--border-subtle);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.signature-pad-premium.has-signature::after {
  opacity: 0;
}

/* "X" signing marker */
.signature-pad-premium::before {
  content: '\00D7';
  position: absolute;
  bottom: calc(25% - 18px);
  left: 6%;
  font-size: 1.5rem;
  color: var(--text-disabled);
  pointer-events: none;
  transition: opacity var(--transition-base);
  line-height: 1;
}

.signature-pad-premium.has-signature::before {
  opacity: 0;
}

/* "Sign here" watermark text */
.signature-pad-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: var(--text-disabled);
  pointer-events: none;
  letter-spacing: 0.05em;
  opacity: 0.5;
  transition: opacity var(--transition-base);
  user-select: none;
  white-space: nowrap;
}

.signature-pad-premium.has-signature .signature-pad-watermark {
  opacity: 0;
}

.signature-pad-premium.has-signature {
  border-style: solid;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.signature-pad-premium canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  position: relative;
  z-index: 1;
}

.signature-pad-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

.signature-pad-label i {
  color: var(--accent);
  font-size: 1rem;
}

.signature-pad-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* Floating clear button inside signature pad */
.signature-pad-clear-float {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  padding: var(--space-1) var(--space-3);
  background: var(--surface-0);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: var(--shadow-1);
  opacity: 0;
  pointer-events: none;
}

.signature-pad-premium.has-signature .signature-pad-clear-float {
  opacity: 1;
  pointer-events: auto;
}

.signature-pad-clear-float:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

/* ---- Initials pad — compact inline ---- */
.initials-pad {
  position: relative;
  width: 200px;
  height: 90px;
  background: var(--surface-0, #ffffff);
  border: 2px dashed var(--border-normal);
  border-radius: var(--radius-md);
  cursor: crosshair;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-base), border-style var(--transition-base), box-shadow var(--transition-base);
  display: inline-block;
}

.initials-pad.has-initials {
  border-style: solid;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.initials-pad canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ---- Progress bar ---- */
.waiver-progress {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.waiver-progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-normal);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.waiver-progress-step:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.waiver-progress-step.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.waiver-progress-step.completed {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}

.waiver-progress-step .step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Form inputs — prominent, bordered style ---- */
.waiver-form-group {
  margin-bottom: var(--space-5);
}

.waiver-form-group:last-child {
  margin-bottom: 0;
}

.waiver-form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.waiver-form-group .form-control,
.waiver-form-group .form-select,
.waiver-form-group input[type="text"],
.waiver-form-group input[type="email"],
.waiver-form-group input[type="date"],
.waiver-form-group select {
  display: block;
  width: 100%;
  background: var(--surface-0);
  border: 1.5px solid var(--border-normal);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-normal);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.waiver-form-group .form-control:hover,
.waiver-form-group .form-select:hover,
.waiver-form-group input[type="text"]:hover,
.waiver-form-group input[type="email"]:hover,
.waiver-form-group input[type="date"]:hover,
.waiver-form-group select:hover {
  border-color: var(--border-strong);
}

.waiver-form-group .form-control:focus,
.waiver-form-group .form-select:focus,
.waiver-form-group input[type="text"]:focus,
.waiver-form-group input[type="email"]:focus,
.waiver-form-group input[type="date"]:focus,
.waiver-form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 2px rgba(0, 0, 0, 0.04);
  background: var(--surface-0);
}

.waiver-form-group .form-control::placeholder,
.waiver-form-group input::placeholder {
  color: var(--text-disabled);
}

/* Grouped name row */
.waiver-name-row {
  display: flex;
  gap: var(--space-4);
}

.waiver-name-row .waiver-form-group {
  flex: 1;
  min-width: 0;
}

@media (max-width: 576px) {
  .waiver-name-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ---- Age gate ---- */
.waiver-age-gate {
  background: var(--surface-1);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.waiver-age-gate h5 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

.waiver-age-gate > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.waiver-age-gate .age-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.waiver-age-gate .age-info.age-valid {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.waiver-age-gate .age-info.age-minor {
  background: var(--warning-soft);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.waiver-age-gate .age-info.age-blocked {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.waiver-guardian-form {
  background: var(--surface-0);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-5);
}

.waiver-guardian-form h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---- Consent checkbox — gold accent border ---- */
.waiver-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-normal);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: all var(--transition-fast);
}

.waiver-consent:has(input:checked) {
  border-left-color: var(--success);
  background: var(--success-soft);
  border-color: var(--success);
}

.waiver-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.waiver-consent input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.waiver-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.waiver-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.waiver-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waiver-consent label {
  font-size: 0.9375rem;
  color: var(--text-normal);
  cursor: pointer;
  line-height: 1.65;
}

/* ---- Sign Below section card ---- */
.waiver-sign-section {
  background: var(--surface-1);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

/* ---- Submit button — gold gradient with icon ---- */
.waiver-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 1rem var(--space-5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  box-shadow: 0 2px 8px rgba(232, 134, 52, 0.3);
  letter-spacing: 0.02em;
}

.waiver-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 134, 52, 0.4);
}

.waiver-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(232, 134, 52, 0.2);
}

.waiver-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Subtle glow when form is ready */
.waiver-submit-btn:not(:disabled) {
  animation: waiver-btn-glow 2.5s ease-in-out infinite;
}

@keyframes waiver-btn-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(232, 134, 52, 0.3); }
  50% { box-shadow: 0 2px 8px rgba(232, 134, 52, 0.3), 0 0 24px rgba(232, 134, 52, 0.2); }
}

.waiver-submit-btn:hover:not(:disabled) {
  animation: none;
  box-shadow: 0 4px 16px rgba(232, 134, 52, 0.4);
}

.waiver-submit-btn i {
  font-size: 1.125rem;
}

/* ---- Section signature/initials area ---- */
.waiver-section-capture {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

/* ---- Data capture fields inside sections ---- */
.waiver-section .waiver-form-group .form-control,
.waiver-section .waiver-form-group .form-select,
.waiver-section .waiver-form-group input[type="text"],
.waiver-section .waiver-form-group input[type="date"],
.waiver-section .waiver-form-group select {
  background: var(--surface-0);
}

/* ---- Success animation ---- */
.waiver-success {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.waiver-success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--success-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: waiver-success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.waiver-success-icon svg {
  width: 44px;
  height: 44px;
  color: var(--success);
}

.waiver-success h2 {
  color: var(--text-strong);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.waiver-success p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

@keyframes waiver-success-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Skeleton loader ---- */
.waiver-skeleton {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-1) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-100 { width: 100%; }

.skeleton-block {
  height: 200px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-1) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Error card ---- */
.waiver-error {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.waiver-error .error-icon {
  color: var(--danger);
  margin-bottom: var(--space-4);
}

/* ---- Legacy clear button (fallback) ---- */
.waiver-clear-btn {
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.waiver-clear-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

/* ---- Mobile improvements ---- */
@media (max-width: 576px) {
  .waiver-header {
    padding: var(--space-6) var(--space-4) var(--space-5);
  }

  .waiver-header h2 {
    font-size: 1.375rem;
  }

  .waiver-header-icon {
    width: 44px;
    height: 44px;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  .waiver-form-group .form-control,
  .waiver-form-group input,
  .waiver-form-group select,
  .waiver-form-group textarea {
    font-size: 16px;
  }

  /* Larger touch targets */
  .waiver-consent input[type="checkbox"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .waiver-consent input[type="checkbox"]:checked::after {
    left: 8px;
    top: 4px;
    width: 7px;
    height: 12px;
  }

  .waiver-submit-btn {
    padding: 1rem var(--space-5);
    font-size: 1.125rem;
  }

  .signature-pad-premium {
    min-height: 180px;
    border-radius: var(--radius-md);
  }

  .waiver-info-section {
    padding: var(--space-5);
  }

  .waiver-section {
    padding: var(--space-5);
  }

  .waiver-section-heading {
    margin-bottom: var(--space-4);
  }

  .waiver-age-gate {
    padding: var(--space-5);
  }

  .waiver-guardian-form {
    padding: var(--space-5);
  }

  .waiver-sign-section {
    padding: var(--space-5);
  }

  .waiver-consent {
    padding: var(--space-4);
  }

  .waiver-progress {
    padding: var(--space-3) var(--space-4);
  }
}

/* ---- Dark mode ---- */
[data-theme="dark"] .signature-pad-premium,
[data-theme="dark"] .initials-pad {
  background: var(--surface-2);
}

[data-theme="dark"] .signature-pad-premium canvas,
[data-theme="dark"] .initials-pad canvas {
  filter: none;
}

[data-theme="dark"] .waiver-content-area {
  background: var(--surface-2);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-info-section {
  background: var(--surface-2);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-section {
  background: var(--surface-2);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-consent {
  background: var(--surface-2);
  border-color: var(--border-normal);
  border-left-color: var(--accent);
}

[data-theme="dark"] .waiver-consent:has(input:checked) {
  border-left-color: var(--success);
  border-color: var(--success);
}

[data-theme="dark"] .signature-pad-clear-float {
  background: var(--surface-3);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-consent input[type="checkbox"] {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

[data-theme="dark"] .waiver-form-group .form-control,
[data-theme="dark"] .waiver-form-group .form-select,
[data-theme="dark"] .waiver-form-group input[type="text"],
[data-theme="dark"] .waiver-form-group input[type="email"],
[data-theme="dark"] .waiver-form-group input[type="date"],
[data-theme="dark"] .waiver-form-group select {
  background: var(--surface-2);
  border-color: var(--border-normal);
  color: var(--text-normal);
}

[data-theme="dark"] .waiver-age-gate {
  background: var(--surface-2);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-guardian-form {
  background: var(--surface-3);
  border-color: var(--border-normal);
}

[data-theme="dark"] .waiver-sign-section {
  background: var(--surface-2);
  border-color: var(--border-normal);
}

/* ---- Print rules ---- */
@media print {
  .waiver-page {
    background: #ffffff;
    padding: 0;
  }

  .waiver-card {
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }

  .waiver-header {
    background: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .waiver-progress,
  .waiver-clear-btn,
  .signature-pad-clear-float,
  .waiver-submit-btn,
  .waiver-consent,
  .waiver-section-heading {
    display: none !important;
  }

  .signature-pad-premium,
  .initials-pad {
    border: 1px solid #000000;
    page-break-inside: avoid;
  }

  .waiver-content-area {
    max-height: none;
    overflow: visible;
  }
}
