/* ==========================================================================
   社團法人臺灣建築韌性協會 - 全國發起人線上連署系統專屬樣式 (petition.css)
   嚴格遵守 UI 終極鐵律：
   1. 零文字截斷 (Zero Text Clipping)
   2. 語意斷行防禦 (word-break: keep-all; text-wrap: balance)
   3. 大螢幕流體容器 (Fluid Container max-width: min(1080px, 94vw))
   4. 專屬 A4 官方表件列印樣式
   ========================================================================== */

:root {
  --bg-primary: #f4f6f9;
  --bg-card: #ffffff;
  --bg-header: #0f1e36;
  --bg-header-accent: #162b4d;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #64748b;
  --border-color: #dce3ec;

  --brand-navy: #0f294a;
  --brand-blue: #1d4ed8;
  --brand-gold: #b45309;
  --brand-gold-bg: #fef3c7;

  --status-pass: #15803d;
  --status-pass-bg: #dcfce7;
  --status-fail: #b91c1c;
  --status-fail-bg: #fee2e2;

  --font-xs: clamp(0.78rem, 0.9vw, 0.86rem);
  --font-sm: clamp(0.88rem, 1vw, 0.96rem);
  --font-base: clamp(0.95rem, 1.1vw, 1.05rem);
  --font-lg: clamp(1.1rem, 1.3vw, 1.25rem);
  --font-xl: clamp(1.3rem, 1.6vw, 1.55rem);
  --font-2xl: clamp(1.5rem, 2.2vw, 1.95rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 54, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 30, 54, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  word-break: keep-all;
  text-wrap: balance;
  line-height: 1.35;
}

/* 獨立官方導覽 Header */
.petition-header {
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-header-accent) 100%);
  color: #ffffff;
  border-bottom: 3px solid #f59e0b;
  padding: clamp(16px, 2.5vw, 24px) 0;
}

.header-container {
  max-width: min(1200px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
}

.header-emblem {
  width: clamp(56px, 6vw, 70px);
  height: clamp(56px, 6vw, 70px);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f1e36;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.header-emblem-text {
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 1px;
  line-height: 1.1;
}

.header-emblem-sub {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
}

.header-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.header-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
}

.header-badge--green {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.header-main-title {
  font-size: var(--font-xl);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-sub-title {
  font-size: var(--font-xs);
  color: #cbd5e1;
  margin-top: 3px;
}

/* 主體排版容器 */
.main-container {
  max-width: min(1200px, 94vw);
  margin: clamp(16px, 2.5vw, 28px) auto;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
}

/* 卡片容器 */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: var(--shadow-sm);
}

/* 緣起橫幅 */
.intro-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro-icon {
  font-size: clamp(32px, 4vw, 44px);
  flex-shrink: 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: clamp(52px, 5.5vw, 68px);
  height: clamp(52px, 5.5vw, 68px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-content {
  flex: 1;
}

.intro-title {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.intro-p {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.statutory-notice-pill {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  color: #78350f;
  margin-top: 10px;
}

/* 法律效力 3 欄 */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  align-items: stretch;
}

.legal-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(16px, 1.8vw, 22px);
  box-sizing: border-box;
  min-height: 100%;
}

.legal-item-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.legal-item-info {
  flex: 1;
  min-width: 0;
}

.legal-item-title {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.legal-item-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* 戰情進度看板 */
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--brand-navy);
}

.section-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-top: 3px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.kpi-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card-label {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--text-secondary);
}

.kpi-card-value {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 900;
  color: var(--brand-navy);
  margin: 6px 0;
}

.kpi-card-sub {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--brand-gold);
}

.kpi-card-note {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.kpi-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 8px;
}

.kpi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.county-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  min-height: 28px;
}

.empty-tag-note {
  font-size: 11px;
  color: var(--text-muted);
}

.county-tag {
  font-size: 11px;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 2px 8px;
}

/* 連署表單網格 (雙欄大器排版，拒絕碎片化三欄) */
.petition-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}

@media (max-width: 960px) {
  .petition-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.info-col {
  background: #ffffff;
}

.sign-col {
  background: #ffffff;
  position: relative;
}

.col-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.col-title {
  font-size: var(--font-base);
  font-weight: 900;
  color: var(--brand-navy);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.col-title-sub {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: normal;
}

.col-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 4px;
  margin-bottom: 4px;
}

.step-subhead {
  font-size: var(--font-sm);
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #e2e8f0;
}

.info-privacy-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: clamp(11.5px, 0.9vw, 12.5px);
  color: #166534;
  line-height: 1.5;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 9px 12px;
  font-size: var(--font-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.field-feedback {
  font-size: 11px;
  margin-top: 3px;
  font-weight: 700;
}

/* 專業身分單選方塊卡片網格 */
.role-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .role-radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .role-radio-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.role-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
}

.role-radio-card:hover {
  border-color: var(--brand-blue);
  background: #f8fafc;
}

.role-radio-card.active {
  border-color: var(--brand-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}

.role-radio-card input[type="radio"] {
  accent-color: var(--brand-blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.role-radio-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.role-radio-text {
  font-size: clamp(0.76rem, 0.85vw, 0.82rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.role-other-wrap {
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}

/* 身分證上傳頂部面板（第一步） */
.id-top-panel {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.id-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.id-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-badge {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.id-panel-title {
  font-size: var(--font-base);
  font-weight: 900;
  color: var(--brand-navy);
  margin: 0;
}

.badge-ai-sparkle {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.id-panel-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.watermark-toggle-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
}

.id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.id-grid-hero {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.id-box {
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-sm);
  background: #ffffff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 12px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.id-box:hover {
  border-color: var(--brand-blue);
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}

.id-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.id-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.id-btn-text {
  font-weight: 800;
  color: var(--brand-navy);
  font-size: var(--font-sm);
  margin-top: 4px;
}

.id-sub-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.id-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 4px;
}

.id-done-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* OCR 狀態進度提示盒 */
.ocr-status-card {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: all 0.3s ease;
}

.ocr-status-card.status-success {
  background: #f0fdf4;
  border-color: #86efac;
}

.ocr-status-card.status-info {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ocr-status-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ocr-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #bfdbfe;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: ocr-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes ocr-spin {
  to { transform: rotate(360deg); }
}

.ocr-status-title {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--brand-navy);
}

.ocr-status-detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.col-title-sub {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: normal;
}

/* 欄位自動填入呼吸高亮動畫 */
.field-autofilled {
  animation: flash-green 1.8s ease-out;
}

@keyframes flash-green {
  0% { background-color: #dcfce7; border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  100% { background-color: #ffffff; border-color: var(--border-color); box-shadow: none; }
}

/* 簽名板 */
.signature-canvas-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sign-canvas {
  width: 100%;
  height: 220px;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.sign-watermark-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: #cbd5e1;
  pointer-events: none;
  user-select: none;
}

.sign-ctrl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.sign-notice {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.agreement-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 4px;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.agreement-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.agreement-text {
  font-size: var(--font-xs);
  color: var(--brand-navy);
  line-height: 1.5;
}

.charter-link-text {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline;
  transition: all 0.15s ease;
}

.charter-link-text:hover {
  color: #b45309;
  text-decoration-thickness: 2px;
}

.submit-wrap {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-privacy-pledge {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: clamp(12px, 0.95vw, 13px);
  color: #166534;
  line-height: 1.6;
  text-align: left;
}

.submit-privacy-pledge strong {
  color: #14532d;
}

.submit-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px 18px;
  font-size: var(--font-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: normal;
  line-height: 1.3;
}

.btn-block {
  width: 100%;
  font-size: var(--font-base);
  padding: 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--font-xs);
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: #1d4ed8;
}
.btn-primary:hover {
  background: #1e40af;
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: #92400e;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-primary);
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge-live {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
}

.badge-info {
  background: #eff6ff;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 內政部標準表三（發起人連署同意書）紙張模擬排版 */
.moi-form3-paper {
  background: #ffffff;
  border: 2px solid #334155;
  border-radius: var(--radius-sm);
  padding: clamp(16px, 3vw, 36px);
  max-width: 860px;
  margin: 14px auto 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.moi-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.moi-header-assoc {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: 2px;
}

.moi-header-doc {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 900;
  margin: 4px 0;
  letter-spacing: 4px;
}

.moi-header-sub {
  font-size: 12px;
  color: #475569;
}

.moi-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: var(--font-sm);
}

.moi-table th,
.moi-table td {
  border: 1px solid #475569;
  padding: 8px 10px;
  vertical-align: middle;
}

.moi-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
}

.th-note {
  font-weight: normal;
  color: #64748b;
}

.moi-id-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.moi-id-cell {
  flex: 1;
  min-width: 200px;
  border: 1px dashed #94a3b8;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
  background: #fafafa;
}

.moi-id-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.moi-id-cell img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.moi-sign-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 6px;
  gap: 12px;
  flex-wrap: wrap;
}

.moi-sign-decl {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.moi-sign-trace {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

.moi-sign-box {
  text-align: center;
  min-width: 180px;
}

.moi-sign-box img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
}

.moi-sign-caption {
  font-size: 11px;
  color: #475569;
  border-top: 1px solid #cbd5e1;
  margin-top: 4px;
  padding-top: 2px;
}

.moi-date-row {
  text-align: right;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

/* 發起人榮譽名冊清冊 */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.roster-empty-card {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.roster-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roster-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #93c5fd;
}

.roster-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.roster-info {
  flex: 1;
  min-width: 0;
}

.roster-name-row {
  font-size: var(--font-base);
  font-weight: 800;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.roster-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Footer */
.petition-footer {
  background: #0f1e36;
  color: #94a3b8;
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: min(1120px, 94vw);
  margin: 0 auto;
}

/* ==========================================================================
   📜 章程全文與彈跳視窗專屬樣式
   ========================================================================== */
.charter-section-body {
  margin-top: 16px;
  padding: 20px 24px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-height: 520px;
  overflow-y: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.charter-section-body::-webkit-scrollbar {
  width: 8px;
}

.charter-section-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.charter-section-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.charter-chapter {
  margin-bottom: 24px;
}

.charter-chapter:last-child {
  margin-bottom: 0;
}

.charter-chapter-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  border-left: 4px solid var(--brand-gold);
  padding-left: 12px;
  margin-bottom: 12px;
  background: rgba(217, 119, 6, 0.06);
  padding-top: 6px;
  padding-bottom: 6px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.charter-article {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 12px;
  text-align: justify;
  text-wrap: pretty;
}

.charter-article strong {
  color: var(--brand-navy);
  font-weight: 700;
}

/* Modal 彈跳視窗 */
.charter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.charter-modal-overlay.active {
  display: flex;
}

.charter-modal-content {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 880px;
  height: 82vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.charter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #0f1e36;
  color: #ffffff;
  border-bottom: 2px solid var(--brand-gold);
  flex-shrink: 0;
}

.charter-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.charter-modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.charter-modal-close-btn:hover {
  color: #ffffff;
}

.charter-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 300px;
  background: #f8fafc;
  color: #334155;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.charter-modal-body::-webkit-scrollbar {
  width: 8px;
}

.charter-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.charter-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.charter-modal-footer {
  padding: 14px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   🖨️ A4 專用列印樣式（列印時僅保留法定同意書紙張，其餘全部隱藏）
   ========================================================================== */
@media print {
  .no-print,
  .petition-header,
  .petition-footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  .main-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #resultSection {
    display: block !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .moi-form3-paper {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    padding: 10mm 12mm !important;
    max-width: 100% !important;
    margin: 0 !important;
    page-break-inside: avoid;
  }
}


/* ==========================================================================
   🛡️ 籌備處管理端專屬樣式 (Admin Dossier & Batch PDF)
   ========================================================================== */
.admin-badge-tag {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12.5px;
}

.admin-table th {
  background: #0f1e36;
  color: #ffffff;
  padding: 10px 8px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f1f5f9;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.status-chip-yes {
  background: #dcfce7;
  color: #15803d;
}

.status-chip-no {
  background: #fee2e2;
  color: #b91c1c;
}

/* 批次列印 A4 表三專用容器 */
#batchPrintContainer {
  display: none;
}

@media print {
  body.printing-batch * {
    visibility: hidden !important;
  }

  body.printing-batch #batchPrintContainer,
  body.printing-batch #batchPrintContainer * {
    visibility: visible !important;
  }

  body.printing-batch #batchPrintContainer {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .batch-form3-page {
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 auto !important;
    padding: 12mm 15mm !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 210mm !important;
    min-height: 290mm !important;
  }
}


/* ==========================================================================
   🔄 已連署發起人：查詢／修改資料／補傳證件 專區樣式
   ========================================================================== */
.supplement-lookup-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.supplement-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.supplement-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.supplement-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.supplement-title {
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.4;
}

.supplement-sub {
  font-size: 12.5px;
  color: #475569;
  margin-top: 2px;
  line-height: 1.45;
}

.supplement-lookup-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #93c5fd;
}

.supplement-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.supplement-active-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  color: #14532d;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ✂️ 身分證拍攝導引框與互動式裁切工具樣式
   ========================================================================== */
.id-crop-guide-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.id-guide-frame-demo {
  border: 2px dashed #60a5fa;
  border-radius: 10px;
  padding: 16px 14px;
  background: rgba(239, 246, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 90%;
  max-width: 340px;
  position: relative;
}

.id-done-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  padding: 5px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.id-badge-action-btn {
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #ffffff;
}

.id-btn-crop {
  background: #2563eb;
}

.id-btn-crop:hover {
  background: #1d4ed8;
}

.id-btn-replace {
  background: #475569;
}

.id-btn-replace:hover {
  background: #334155;
}

.id-crop-modal-content {
  max-width: min(760px, 95vw) !important;
  width: 100%;
}

.id-crop-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
}

.id-crop-instruction {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.5;
  margin-bottom: 12px;
}

.id-crop-stage-wrap {
  width: 100%;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #334155;
  touch-action: none;
  user-select: none;
}

#idCropCanvas {
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 680 / 420;
  display: block;
  cursor: grab;
  touch-action: none;
}

#idCropCanvas:active {
  cursor: grabbing;
}

.id-crop-controls {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.id-crop-ctrl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.id-crop-ctrl-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.id-crop-slider {
  flex: 1;
  min-width: 110px;
  accent-color: #2563eb;
  cursor: pointer;
}

.id-crop-val-badge {
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  font-family: monospace;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
}

.id-crop-modal-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
}


/* ==========================================================================
   TWBR 發起人個資防外洩與防冒用六大最高規格保證專用樣式
   符合排版終極鐵律：零裁切、自適應寬度、長輩模式彈性防禦
   ========================================================================== */

/* 頂部 Header 管理員登錄按鈕 */
.header-admin-login-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f1f5f9;
  font-size: clamp(11.5px, 1.1vw, 13px);
  font-weight: 700;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 1.4vw, 16px);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.header-admin-login-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

/* 頂部管理員快捷內部導覽條 (解鎖後出現) */
.admin-top-nav-bar {
  background: linear-gradient(135deg, #091e3a 0%, #1e3a8a 100%);
  border-bottom: 2px solid #3b82f6;
  color: #ffffff;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-top-nav-inner {
  max-width: min(1160px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-nav-title {
  color: #86efac;
  font-size: clamp(12px, 1.2vw, 13px);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav-pill {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-nav-pill:hover {
  background: #2563eb;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.btn-admin-logout-pill {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fecaca;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-logout-pill:hover {
  background: #ef4444;
  color: #ffffff;
}

/* 個資防外洩六大核心保證專區卡片 */
.section-security-pledge {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.15) !important;
  position: relative;
  overflow: hidden;
}

.security-pledge-header {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  align-items: flex-start;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.security-seal-icon {
  font-size: clamp(36px, 4.5vw, 48px);
  line-height: 1;
  flex-shrink: 0;
  background: #dcfce7;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-pledge-titles {
  flex: 1;
  min-width: 0;
}

.security-badge-gold {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.security-main-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  color: #14532d;
  margin: 0 0 6px;
  word-break: keep-all;
  text-wrap: balance;
  line-height: 1.35;
}

.security-sub-title {
  font-size: clamp(12.5px, 1.25vw, 14px);
  color: #166534;
  margin: 0;
  line-height: 1.55;
  word-break: keep-all;
}

.security-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}

.sec-card {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: clamp(14px, 1.6vw, 18px);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.08);
}

.sec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.16);
  border-color: #4ade80;
}

.sec-card-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.sec-card-content {
  flex: 1;
  min-width: 0;
}

.sec-card-title {
  font-size: clamp(14px, 1.3vw, 15px);
  font-weight: 800;
  color: #166534;
  margin: 0 0 6px;
  word-break: keep-all;
  text-wrap: balance;
  line-height: 1.4;
}

.sec-card-desc {
  font-size: clamp(12px, 1.15vw, 13px);
  color: #334155;
  margin: 0;
  line-height: 1.6;
  word-break: keep-all;
}

.sec-card-desc strong {
  color: #0f172a;
}

/* 第一步身分證拍攝區塊安心提示卡 */
.id-security-callout {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: clamp(12px, 1.5vw, 16px);
  margin: 12px 0 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.id-sec-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.id-sec-body {
  flex: 1;
  min-width: 0;
}

.id-sec-title {
  display: block;
  font-size: clamp(13px, 1.25vw, 14.5px);
  color: #15803d;
  font-weight: 800;
  margin-bottom: 6px;
  word-break: keep-all;
}

.id-sec-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: clamp(12px, 1.15vw, 13px);
  color: #334155;
  line-height: 1.55;
}

.id-sec-list li {
  position: relative;
  padding-left: 4px;
}

.id-sec-list em {
  font-style: normal;
  color: #dc2626;
  font-weight: 700;
  background: #fee2e2;
  padding: 1px 4px;
  border-radius: 3px;
}

/* 表單欄位隱私保障微標記 */
.label-privacy-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid #bbf7d0;
  vertical-align: middle;
  white-space: nowrap;
}

/* 送出前隱私安全承諾盒 */
.submit-privacy-pledge {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: clamp(12px, 1.15vw, 13px);
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: left;
}

.submit-privacy-pledge strong {
  color: #0f294a;
}

/* 個資安全常見問答 FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 1.5vw, 16px);
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(13.5px, 1.3vw, 15px);
  color: #0f294a;
  background: #f8fafc;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-answer {
  padding: clamp(12px, 1.6vw, 18px);
  font-size: clamp(12.5px, 1.2vw, 13.5px);
  color: #334155;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 6px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer code {
  background: #e2e8f0;
  color: #0f172a;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}
