/**
 * ============================================================================
 * Copyright (c) 2026 BAWASLU-M FH ULM. All Rights Reserved.
 * Badan Pengawas Pemilihan Umum Mahasiswa
 * Fakultas Hukum, Universitas Lambung Mangkurat
 *
 * PROPRIETARY & CONFIDENTIAL SOURCE CODE
 * ----------------------------------------------------------------------------
 * This software, web application, source code, scripts, styles, architecture,
 * and associated assets are the exclusive intellectual property of BAWASLU-M FH ULM.
 *
 * Any unauthorized copying, reproduction, distribution, scraping, decompilation,
 * reverse engineering, modification, or appropriation of this source code,
 * in whole or in part, is strictly prohibited and deemed highly unethical under
 * institutional, academic, and applicable intellectual property legal frameworks.
 * ============================================================================
 */

.complaint-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-paper-dark);
  border-bottom: var(--border-ink-thick);
}

.complaint-form-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-paper-cream);
  border: var(--border-ink-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pinned), 8px 8px 0px var(--ink-primary);
  padding: var(--space-8);
  position: relative;
}

.complaint-form-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
}

.complaint-single-channel {
  margin-bottom: 1.75rem;
}

.channel-card-featured {
  background: var(--min-surface-card, var(--bg-card-pure));
  border: 1px solid var(--min-border, var(--border-ink));
  border-left: 5px solid #2B579A;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.channel-card-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.featured-channel-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.channel-icon-docx-large {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EBF3FC 0%, #D4E5F9 100%);
  color: #2B579A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(43, 87, 154, 0.15);
}

.featured-channel-body {
  flex: 1;
}

.featured-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.channel-badge-official {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  letter-spacing: 0.05em;
  color: #2B579A;
  background: rgba(43, 87, 154, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.channel-tag-format {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--min-text-muted, var(--ink-muted));
  background: var(--min-surface-elevated, rgba(255, 255, 255, 0.06));
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--min-border, var(--border-ink));
}

.featured-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--min-text-main, var(--ink-primary));
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.featured-desc {
  font-size: 0.88rem;
  color: var(--min-text-muted, var(--ink-secondary));
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 680px;
}

.featured-channel-specs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--min-text-muted, var(--ink-secondary));
  background: var(--min-surface-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--min-border-subtle, rgba(255, 255, 255, 0.08));
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.featured-channel-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-channel-featured-docx {
  background: linear-gradient(135deg, #2B579A 0%, #1E3E6D 100%);
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(43, 87, 154, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-channel-featured-docx:hover {
  background: linear-gradient(135deg, #1E3E6D 0%, #152B4D 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 87, 154, 0.45);
}

.action-helper-hint {
  font-size: 0.72rem;
  color: var(--min-text-muted, var(--ink-muted));
  text-align: center;
}

[data-theme="dark"] .channel-icon-docx-large {
  background: rgba(43, 87, 154, 0.25);
  color: #60A5FA;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .channel-badge-official {
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.15);
}

@media (max-width: 860px) {
  .channel-card-featured {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .featured-channel-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .featured-channel-action-wrap {
    width: 100%;
  }

  .btn-channel-featured-docx {
    width: 100%;
    justify-content: center;
  }
}

.complaint-dual-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.channel-card {
  background: var(--min-surface-card, var(--bg-card-pure));
  border: 1px solid var(--min-border, var(--border-ink));
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.channel-card-docx {
  border-left: 4px solid #2B579A;
}

.channel-card-online {
  border-left: 4px solid var(--brand-sage-dark);
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-sage-ghost);
  color: var(--brand-sage-dark);
}

.channel-card-docx .channel-icon-wrap {
  background: #EBF3FC;
  color: #2B579A;
}

.channel-badge {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.channel-badge-accent {
  color: var(--brand-sage-dark);
}

.channel-title {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink-primary);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.channel-desc {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

.btn-channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-channel-docx {
  background: #2B579A;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(43, 87, 154, 0.25);
}

.btn-channel-docx:hover {
  background: #1E3E6D;
  transform: translateY(-1px);
}

.btn-channel-online {
  background: linear-gradient(135deg, #A81B5B 0%, #780F3B 100%);
  background-color: #780F3B;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(120, 15, 59, 0.35);
}

.btn-channel-online:hover {
  background: linear-gradient(135deg, #C2185B 0%, #8E1248 100%);
  background-color: #8E1248;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(120, 15, 59, 0.45);
}

.complaint-hybrid-banner {
  background: var(--bg-card-pure);
  border: 1px solid var(--border-ink);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hybrid-banner-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.hybrid-badge {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--brand-sage-ghost);
  color: var(--brand-sage-dark);
  border: 1px solid var(--brand-sage-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.hybrid-title {
  font-size: 0.98rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink-primary);
  margin: 0;
}

.hybrid-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.hybrid-steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-paper-dark);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hybrid-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.hybrid-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-sage-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  margin-top: 0.1rem;
}

[data-theme="light"] .hybrid-step-num {
  background: #780F3B;
  color: #FFFFFF;
  border: 1.5px solid #5A0A2C;
  box-shadow: 0 2px 6px rgba(120, 15, 59, 0.28);
}

.hybrid-step div {
  display: flex;
  flex-direction: column;
}

.hybrid-step strong {
  font-size: 0.82rem;
  font-family: var(--font-display);
  color: var(--ink-primary);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

[data-theme="light"] .hybrid-step strong {
  color: #0F172A;
}

.hybrid-step span {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

[data-theme="light"] .hybrid-step span {
  color: #334155;
}

.hybrid-step-arrow {
  color: var(--brand-sage-dark);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

[data-theme="light"] .hybrid-step-arrow {
  color: #780F3B;
}

[data-theme="light"] .hybrid-steps-row {
  background: #F3E5EC;
  border: 1px solid rgba(120, 15, 59, 0.16);
}

[data-theme="light"] .hybrid-badge {
  background: rgba(120, 15, 59, 0.08);
  color: #780F3B;
  border-color: rgba(120, 15, 59, 0.24);
}

.form-fieldset {
  border: 1px solid var(--min-border, var(--border-ink));
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  background: var(--min-surface-card, var(--bg-card-pure));
}

.form-legend-minimal {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-paper-dark);
  border: 1px solid var(--border-ink);
  border-radius: 8px;
}

.form-field-helper {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0.25rem 0 1rem;
  line-height: 1.45;
}

.form-sub-heading {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--brand-sage-dark);
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.form-control-minimal {
  background: var(--bg-card-pure);
  border: 1px solid var(--border-ink);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-primary);
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.form-control-minimal:focus {
  outline: none;
  border-color: var(--brand-sage-dark);
  box-shadow: 0 0 0 3px var(--brand-sage-ghost);
}

.witness-block {
  background: var(--bg-paper-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.95rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.witness-badge {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-sage-dark);
  display: inline-block;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.evidence-list-inputs {
  display: flex;
  flex-direction: column;
}

.form-submit-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.legal-declaration-box {
  background: var(--bg-paper-dark);
  border-left: 3px solid var(--brand-sage-dark);
  padding: 0.95rem 1.1rem;
  border-radius: 0 10px 10px 0;
  border: 1px solid var(--border-ink);
  border-left-width: 3.5px;
  border-left-color: var(--brand-sage-dark);
  transition: all 0.25s ease;
}

.legal-declaration-box:hover {
  background: var(--bg-card-pure);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.legal-declaration-box:focus-within {
  border-left-color: var(--brand-sage-light);
  box-shadow: 0 0 0 2px rgba(212, 34, 91, 0.25);
}

.declaration-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.declaration-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.declaration-custom-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid var(--card-hub-border);
  background: var(--input-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.declaration-custom-checkbox svg {
  width: 12px;
  height: 12px;
  stroke: #FFFFFF;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 0.22s ease, opacity 0.15s ease;
  opacity: 0;
}

.declaration-checkbox-input:checked + .declaration-custom-checkbox {
  background: var(--brand-sage-dark);
  border-color: var(--brand-sage-dark);
  box-shadow: 0 0 12px rgba(212, 34, 91, 0.45);
}

.declaration-checkbox-input:checked + .declaration-custom-checkbox svg {
  stroke-dashoffset: 0;
  opacity: 1;
}

.declaration-checkbox-input:focus-visible + .declaration-custom-checkbox {
  outline: 2px solid var(--brand-sage-dark);
  outline-offset: 2px;
}

.declaration-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.declaration-text {
  font-size: 0.835rem;
  color: var(--ink-primary);
  line-height: 1.55;
  margin: 0;
}

.declaration-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: block;
  line-height: 1.45;
}

.legal-declaration-box.declaration-error-highlight {
  border-left-color: #EF4444 !important;
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  animation: declarationShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.legal-declaration-box.declaration-error-highlight .declaration-custom-checkbox {
  border-color: #EF4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
}

@keyframes declarationShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

[data-theme="light"] .legal-declaration-box {
  background: #FFF5F9;
  border: 1px solid #2B0616;
  border-left: 3.5px solid #780F3B;
}

[data-theme="light"] .legal-declaration-box:hover {
  background: #FFFFFF;
}

[data-theme="light"] .declaration-custom-checkbox {
  border-color: #2B0616;
  background: #FFFFFF;
}

[data-theme="light"] .declaration-checkbox-input:checked + .declaration-custom-checkbox {
  background: #780F3B;
  border-color: #2B0616;
  box-shadow: 0 0 8px rgba(120, 15, 59, 0.35);
}

[data-theme="light"] .declaration-text {
  color: #2B0616;
}

[data-theme="light"] .declaration-sub {
  color: #5E1738;
}

.btn-submit-complaint {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 58, 47, 0.25);
  transition: all 0.2s ease;
}

.btn-submit-complaint:active {
  transform: translateY(1px);
}

.statute-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast, 9999);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 8, 0.78);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 1.25rem;
}

.statute-modal-backdrop.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: statuteBackdropFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.statute-modal-backdrop.closing {
  pointer-events: none !important;
  animation: statuteBackdropFadeOut 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.statute-modal-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: var(--bg-card-pure);
  border: 1.5px solid var(--statute-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 30px rgba(224, 36, 36, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.statute-modal-backdrop.open .statute-modal-card {
  animation: statuteCardEntrance 0.46s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.statute-modal-backdrop.closing .statute-modal-card {
  animation: statuteCardExit 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes statuteBackdropFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
  }
}

@keyframes statuteBackdropFadeOut {
  0% {
    opacity: 1;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
  }
}

@keyframes statuteCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.92);
  }
  65% {
    opacity: 0.98;
    transform: translateY(-2px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statuteCardExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
}

.statute-ambient-glow {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 110px;
  background: radial-gradient(circle, rgba(224, 36, 36, 0.22) 0%, rgba(224, 36, 36, 0.05) 50%, transparent 80%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
  animation: ambientBreathe 3.5s ease-in-out infinite alternate;
}

@keyframes ambientBreathe {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.statute-timer-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.statute-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #DC2626 0%, #F43F5E 60%, #FDA4AF 100%);
  transform-origin: left center;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

@keyframes statuteTimerCountdown {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.statute-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.25rem 1.25rem 0.6rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
}

.statute-modal-backdrop.open .statute-modal-header {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.3s ease 0.08s;
}

.statute-icon-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: var(--statute-bg);
  border: 1px solid var(--statute-border);
  color: var(--statute-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(224, 36, 36, 0.2);
  transform: scale(0.85);
  opacity: 0;
}

.statute-modal-backdrop.open .statute-icon-badge {
  transform: scale(1);
  opacity: 1;
  animation: statuteBadgePop 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) 0.08s both;
}

@keyframes statuteBadgePop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.statute-icon-badge svg {
  animation: statuteIconGentlePulse 2.8s ease-in-out infinite;
}

@keyframes statuteIconGentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.statute-modal-titles {
  flex: 1;
}

.statute-badge-sub {
  display: block;
  font-family: var(--font-typewriter);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  color: var(--statute-border);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.statute-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
}

.statute-modal-close {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.18s ease, background 0.18s ease;
  margin-left: auto;
}

.statute-modal-close:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg) scale(1.08);
}

.statute-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.statute-modal-body {
  padding: 0.5rem 1.25rem 1.15rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s ease 0.1s;
}

.statute-modal-backdrop.open .statute-modal-body {
  opacity: 1;
  transform: translateY(0);
}

.statute-desc {
  margin: 0 0 0.95rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.statute-desc strong {
  color: var(--ink-primary);
  font-weight: 750;
}

.statute-meta-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.statute-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: var(--statute-bg);
  color: var(--statute-text);
  border: 1px solid var(--statute-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.statute-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: statuteDotBlink 1.8s ease-in-out infinite;
}

@keyframes statuteDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.statute-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-paper-dark);
  border-top: 1px solid var(--border-ink);
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.3s ease 0.15s;
}

.statute-modal-backdrop.open .statute-modal-footer {
  opacity: 1;
  transform: translateY(0);
}

.statute-timer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.statute-timer-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: statutePulse 1.2s ease infinite;
}

@keyframes statutePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.statute-btn-dismiss {
  padding: 0.5rem 1.25rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 750;
  border: 1px solid var(--border-ink);
  background: var(--bg-card-pure);
  color: var(--ink-primary);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.statute-btn-dismiss:hover {
  background: var(--brand-sage-dark);
  color: #FFFFFF;
  border-color: var(--brand-sage-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(212, 34, 91, 0.35);
}

.statute-btn-dismiss:active {
  transform: translateY(1px);
}

[data-theme="light"] .statute-modal-card {
  background: #FFFFFF;
  border: 1.5px solid #C02626;
  box-shadow: 0 24px 60px rgba(120, 15, 59, 0.2), 0 0 0 1px rgba(192, 38, 38, 0.25), 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .statute-ambient-glow {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, rgba(120, 15, 59, 0.04) 50%, transparent 80%);
}

[data-theme="light"] .statute-timer-bar {
  background: linear-gradient(90deg, #9F1239 0%, #E11D48 60%, #FB7185 100%);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
}

[data-theme="light"] .statute-icon-badge {
  background: #FFF1F2;
  border-color: #E11D48;
  color: #9F1239;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}

[data-theme="light"] .statute-badge-sub {
  color: #9F1239;
}

[data-theme="light"] .statute-title {
  color: #2B0616;
}

[data-theme="light"] .statute-desc {
  color: #4A122B;
}

[data-theme="light"] .statute-desc strong {
  color: #2B0616;
}

[data-theme="light"] .statute-meta-badge {
  background: #FFF1F2;
  border-color: #E11D48;
  color: #9F1239;
}

[data-theme="light"] .statute-modal-footer {
  background: #FFF5F8;
  border-top: 1px solid rgba(43, 6, 22, 0.12);
}

[data-theme="light"] .statute-timer-status {
  color: #5E1738;
}

[data-theme="light"] .statute-modal-close:hover {
  color: #2B0616;
  background: rgba(43, 6, 22, 0.08);
}

[data-theme="light"] .statute-btn-dismiss {
  background: #FFFFFF;
  border-color: #2B0616;
  color: #2B0616;
}

[data-theme="light"] .statute-btn-dismiss:hover {
  background: #780F3B;
  border-color: #780F3B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(120, 15, 59, 0.3);
}

@media (max-width: 960px) {
  .hybrid-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hybrid-step-arrow {
    align-self: center;
    transform: rotate(90deg);
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .complaint-dual-channels {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-fieldset {
    padding: 1rem 0.85rem;
  }

  .btn-submit-complaint {
    height: 44px;
    font-size: 0.85rem;
  }
}
