/* ============================================================
   COF Community Protection System — Premium Stylesheet
   Works with: css/style.css + css/health-tools.css
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --cp-brand:       #1e3a5f;
  --cp-brand-mid:   #2d5a8e;
  --cp-brand-light: #3b7bc7;
  --cp-fgm:         #be185d;
  --cp-child:       #1d4ed8;
  --cp-hiv:         #7c3aed;
  --cp-gbv:         #dc2626;
  --cp-safe:        #16a34a;
  --cp-urgent:      #dc2626;
}

/* ── Quick Exit Button ────────────────────────────────────── */
.cp-quick-exit {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 8000;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220,38,38,.45);
  letter-spacing: .03em;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.cp-quick-exit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,38,38,.55);
}

/* ── Shared Buttons ───────────────────────────────────────── */
.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.cp-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform .5s ease;
  pointer-events: none;
}
.cp-btn:hover::after { transform: translateX(110%); }

.cp-btn-primary  { background: #137547; color: #fff; border-color: #137547; box-shadow: 0 4px 16px rgba(19,117,71,.3); }
.cp-btn-primary:hover { background: #0f5c37; border-color: #0f5c37; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(19,117,71,.4); }
.cp-btn-outline  { background: transparent; border-color: #137547; color: #137547; }
.cp-btn-outline:hover { background: #137547; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(19,117,71,.25); }
.cp-btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.cp-btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.15); }
.cp-btn-lg { padding: 15px 32px; font-size: 1.0rem; border-radius: 10px; }
.cp-btn-sm { padding: 7px 14px; font-size: .78rem; border-radius: 6px; }

/* ── Badges: Status ───────────────────────────────────────── */
.cp-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
}
.cp-status-received    { background: #f1f5f9; color: #475569; }
.cp-status-reviewing   { background: #dbeafe; color: #1d4ed8; }
.cp-status-investigating { background: #fef3c7; color: #92400e; }
.cp-status-action      { background: #dcfce7; color: #15803d; }
.cp-status-closed      { background: #f1f5f9; color: #374151; }

/* ── Badges: Urgency / Type ───────────────────────────────── */
.cp-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
}
.cp-urgency-urgent { background: #fee2e2; color: #dc2626; }

.cp-track-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .73rem;
  font-weight: 700;
  color: #fff;
  background: var(--cp-brand);
}

/* ════════════════════════════════════════════════════════════
   LANDING: community-protection.html
   ════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.cp-hero {
  background: linear-gradient(135deg, #071527 0%, var(--cp-brand) 50%, #0e4a2a 100%);
  padding: 130px 0 100px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(59,123,199,.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(19,117,71,.15) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/G%3E%3C/svg%3E");
}

.cp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.cp-shield-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

.cp-hero h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.12;
}

.cp-hero h1 .highlight { color: #f4a61d; }

.cp-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.82);
  margin: 0 auto 40px;
  line-height: 1.75;
  max-width: 560px;
}

.cp-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cp-hero-escape {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* ── Promise Strip ────────────────────────────────────────── */
.cp-promise-strip {
  background: linear-gradient(90deg, #f0fdf4, #ecfdf5, #f0fdf4);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 36px 0;
}

.cp-promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.cp-promise-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cp-promise-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dcfce7;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(21,128,61,.15);
}

.cp-promise-item strong {
  display: block;
  font-size: .9375rem;
  color: #14532d;
  margin-bottom: 3px;
  font-weight: 700;
}

.cp-promise-item span {
  font-size: .825rem;
  color: #166534;
  line-height: 1.5;
}

/* ── Section Headings on Landing Page ────────────────────── */
.cp-section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.cp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #137547;
  margin-bottom: 12px;
}

.cp-section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #137547;
  border-radius: 2px;
}

.cp-section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #137547;
  border-radius: 2px;
}

.cp-section-main-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.2;
}

.cp-section-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Report Type Cards ────────────────────────────────────── */
.cp-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.cp-report-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 6px 32px rgba(0,0,0,.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  border-top: 5px solid #137547;
  position: relative;
  overflow: hidden;
}

.cp-report-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: inherit;
  transition: height .3s ease;
}

.cp-report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 56px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.06);
  color: inherit;
}

.cp-card-fgm   { border-top-color: var(--cp-fgm); }
.cp-card-child { border-top-color: var(--cp-child); }
.cp-card-hiv   { border-top-color: var(--cp-hiv); }
.cp-card-gbv   { border-top-color: var(--cp-gbv); }

.cp-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.cp-card-fgm   .cp-card-icon { background: #fce7f3; }
.cp-card-child .cp-card-icon { background: #dbeafe; }
.cp-card-hiv   .cp-card-icon { background: #ede9fe; }
.cp-card-gbv   .cp-card-icon { background: #fee2e2; }

.cp-card-type {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
}

.cp-report-card h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.cp-report-card p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.cp-card-examples {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-card-examples li {
  font-size: .8rem;
  color: #64748b;
  padding: 3px 0;
}

.cp-card-examples li::before {
  content: '› ';
  color: #94a3b8;
  font-weight: 700;
}

.cp-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: #137547;
  margin-top: 4px;
}

.cp-card-fgm   .cp-card-cta { color: var(--cp-fgm); }
.cp-card-child .cp-card-cta { color: var(--cp-child); }
.cp-card-hiv   .cp-card-cta { color: var(--cp-hiv); }
.cp-card-gbv   .cp-card-cta { color: var(--cp-gbv); }

/* ── Secondary Action Cards ───────────────────────────────── */
.cp-secondary-section {
  background: #eef1f4;
  padding: 80px 0;
}

.cp-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cp-secondary-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #137547;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.cp-secondary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
}

.cp-secondary-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border-radius: 12px;
}

.cp-secondary-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cp-secondary-card p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ── How It Works ─────────────────────────────────────────── */
.cp-how-section { padding: 80px 0; }

.cp-how-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cp-how-step {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  text-align: center;
  padding: 0 16px;
}

.cp-how-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #137547, #1a9d60);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(19,117,71,.35);
}

.cp-how-step h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.cp-how-step p {
  font-size: .825rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.cp-how-step code {
  font-size: .73rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #374151;
}

.cp-how-arrow {
  font-size: 1.5rem;
  color: #cbd5e1;
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 32px;
}

.cp-how-compact .cp-how-step { max-width: 160px; }
.cp-how-compact .cp-how-num  { width: 40px; height: 40px; font-size: 1rem; }

/* ── Emergency Banner ─────────────────────────────────────── */
.cp-emergency-banner {
  background: linear-gradient(90deg, #7f1d1d, #991b1b, #dc2626);
  padding: 22px 0;
  color: #fff;
}

.cp-emergency-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.cp-emergency-icon { font-size: 1.5rem; flex-shrink: 0; }

.cp-emergency-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.cp-emergency-content span {
  font-size: .875rem;
  color: rgba(255,255,255,.85);
}

.cp-emergency-content a {
  color: #fca5a5;
  font-weight: 700;
  text-decoration: none;
}

.cp-emergency-content a:hover { color: #fecaca; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   FORM PAGES (report-*.html)
   ════════════════════════════════════════════════════════════ */

/* ── Page Header ──────────────────────────────────────────── */
.cp-page-header {
  padding: 88px 0 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cp-brand) 0%, var(--cp-brand-mid) 100%);
}

.cp-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.07) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cp-page-header > .container { position: relative; z-index: 1; }

.cp-header-fgm   { background: linear-gradient(135deg, #6d0f3b 0%, #9d155a 50%, var(--cp-fgm) 100%); }
.cp-header-child { background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, var(--cp-child) 100%); }
.cp-header-hiv   { background: linear-gradient(135deg, #2e0052 0%, #4c1d95 50%, var(--cp-hiv) 100%); }
.cp-header-gbv   { background: linear-gradient(135deg, #4c0000 0%, #7f1d1d 50%, var(--cp-gbv) 100%); }
.cp-header-track { background: linear-gradient(135deg, #050f1f 0%, #0f2540 50%, var(--cp-brand) 100%); }
.cp-header-help  { background: linear-gradient(135deg, #042f2e 0%, #134e4a 50%, #0d9488 100%); }

.cp-breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cp-breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: var(--transition);
}

.cp-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.cp-page-header h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}

.cp-page-header p {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.7;
}

/* ── Confidentiality Notice ───────────────────────────────── */
.cp-confidential-notice {
  background: linear-gradient(90deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 32px 0 0;
  box-shadow: 0 2px 8px rgba(21,128,61,.08);
}

.cp-conf-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.cp-confidential-notice strong {
  color: #14532d;
  font-size: .9375rem;
  display: block;
  margin-bottom: 3px;
}

.cp-confidential-notice div {
  font-size: .84rem;
  color: #166534;
  line-height: 1.55;
}

/* ── Form Layout ──────────────────────────────────────────── */
.cp-form-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
}

.cp-form-main { min-width: 0; }

/* ── Form Sections ────────────────────────────────────────── */
.cp-form-section {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.03);
  border: 1px solid #e8ecf0;
  transition: box-shadow .22s ease;
}

.cp-form-section:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
}

.cp-section-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #137547, #1a9460);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(19,117,71,.28);
}

.cp-danger-section .cp-section-number {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}

.cp-section-body { flex: 1; min-width: 0; }

.cp-section-body h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px;
  line-height: 1.3;
}

.cp-section-desc {
  font-size: .84rem;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.55;
}

.cp-required { color: #dc2626; margin-left: 2px; }

/* ── Checkbox/Radio groups ────────────────────────────────── */
.cp-checkbox-group { display: flex; flex-direction: column; gap: 8px; }

/* ── Textarea + Char Count ────────────────────────────────── */
.cp-textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
  line-height: 1.65;
}

.cp-char-count {
  font-size: .75rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 5px;
}

/* ── Field Error ──────────────────────────────────────────── */
.cp-field-error {
  color: #dc2626;
  font-size: .82rem;
  margin-top: 6px;
  min-height: 18px;
}

/* ── File Upload ──────────────────────────────────────────── */
.cp-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #f8fafc;
}

.cp-upload-zone:hover,
.cp-upload-dragover {
  border-color: #137547;
  background: #f0fdf4;
}

.cp-upload-icon  { font-size: 2.25rem; display: block; margin-bottom: 10px; }
.cp-upload-label { font-size: .9rem; color: #475569; display: block; font-weight: 500; }
.cp-upload-hint  { font-size: .78rem; color: #94a3b8; display: block; margin-top: 5px; }
.cp-file-hidden  { display: none; }

.cp-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: .82rem;
  color: #334155;
}

.cp-file-size { color: #94a3b8; font-size: .75rem; }

/* ── Danger Section ───────────────────────────────────────── */
.cp-danger-section {
  background: #fffbfb;
  border-color: #fecaca;
}

.cp-danger-check span { font-size: .9375rem; }

.cp-danger-note {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .875rem;
  color: #991b1b;
  margin-top: 14px;
  line-height: 1.65;
}

.cp-safety-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .82rem;
  color: #92400e;
  margin-top: 12px;
  line-height: 1.55;
}

.cp-inline-link { color: #dc2626; font-weight: 700; text-decoration: none; }
.cp-inline-link:hover { text-decoration: underline; }

/* ── Submit Area ──────────────────────────────────────────── */
.cp-submit-area {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.03);
  border: 1px solid #e8ecf0;
  margin-bottom: 16px;
}

.cp-submit-privacy {
  font-size: .84rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
}

.cp-submit-note {
  font-size: .78rem;
  color: #94a3b8;
  margin: 14px 0 0;
  line-height: 1.5;
}

.cp-submit-area .cp-btn-primary {
  padding: 16px 40px;
  font-size: 1.0625rem;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(19,117,71,.35);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.cp-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.cp-sidebar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.03);
  border: 1px solid #e8ecf0;
}

.cp-sidebar-urgent {
  background: #fff8f8;
  border-color: #fecaca;
  border-left: 4px solid #dc2626;
}

.cp-sidebar-card h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.cp-sidebar-card p {
  font-size: .825rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 10px;
}

.cp-emergency-call {
  display: block;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 3px 12px rgba(220,38,38,.3);
}

.cp-emergency-call:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(220,38,38,.4);
}

.cp-shelter-call {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  box-shadow: 0 3px 12px rgba(13,148,136,.3);
}

.cp-shelter-call:hover {
  background: linear-gradient(135deg, #0d6b64, #0f766e);
}

.cp-sidebar-steps { padding-left: 18px; margin: 0; }
.cp-sidebar-steps li { font-size: .825rem; color: #475569; line-height: 2; }
.cp-sidebar-list { list-style: none; padding: 0; margin: 0; }
.cp-sidebar-list li { font-size: .825rem; color: #475569; padding: 3px 0; }
.cp-sidebar-list li::before { content: '✓ '; color: #16a34a; font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   SUCCESS PAGE (report-success.html)
   ════════════════════════════════════════════════════════════ */
.cp-success-section {
  background: linear-gradient(160deg, #eef1f4 0%, #e9edf2 50%, #eef1f4 100%);
  min-height: 80vh;
  padding: 60px 0;
  display: flex;
  align-items: center;
}

.cp-success-card {
  background: #fff;
  border-radius: 24px;
  padding: 52px 44px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 32px 80px rgba(0,0,0,.05);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.cp-urgent-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: .875rem;
  color: #991b1b;
  margin-bottom: 28px;
  text-align: center;
}

.cp-success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 20px;
  animation: cp-pop .45s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes cp-pop {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.cp-success-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 10px;
}

.cp-success-sub {
  font-size: .9375rem;
  color: #166534;
  margin: 0 0 32px;
  line-height: 1.7;
}

.cp-case-id-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.cp-case-id-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
  margin-bottom: 10px;
}

.cp-case-id {
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #14532d;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 12px;
  word-break: break-all;
}

.cp-case-id-note {
  font-size: .82rem;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.5;
}

.cp-case-id-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cp-success-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 32px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.cp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .875rem;
}

.cp-summary-row:last-child { border-bottom: none; }
.cp-summary-label { color: #64748b; font-weight: 500; }
.cp-summary-value { color: #0f172a; font-weight: 600; }

.cp-success-next { margin-bottom: 32px; }

.cp-success-next h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px;
}

.cp-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cp-success-emergency {
  font-size: .825rem;
  color: #64748b;
  line-height: 1.9;
}

.cp-success-emergency a { color: #dc2626; font-weight: 700; text-decoration: none; }
.cp-success-emergency a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   TRACK REPORT PAGE (track-report.html)
   ════════════════════════════════════════════════════════════ */
.cp-track-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 12px 48px rgba(0,0,0,.04);
  max-width: 620px;
  margin: 36px auto 0;
  border: 1px solid #e8ecf0;
}

.cp-track-search-inner { max-width: 100%; }

.cp-track-label {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.cp-track-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cp-track-input {
  flex: 1;
  font-family: 'Courier New', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cp-track-hint {
  font-size: .8rem;
  color: #94a3b8;
  line-height: 1.55;
}

.cp-track-result { margin-top: 28px; }

.cp-track-header {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #e8ecf0;
}

.cp-track-header-left  { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-track-header-right { font-size: .84rem; color: #64748b; text-align: right; }

.cp-track-case-id {
  font-family: monospace;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--cp-brand);
  letter-spacing: .04em;
}

.cp-track-meta-row     { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.cp-track-meta-label   { font-weight: 600; color: #374151; }
.cp-track-meta-value   { color: #64748b; }

.cp-track-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 16px;
  border: 1px solid #e8ecf0;
}

.cp-track-card h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 22px;
}

/* Status Timeline */
.cp-status-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cp-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 96px;
}

.cp-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  transition: all .3s;
}

.cp-step-label {
  font-size: .72rem;
  text-align: center;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.3;
  max-width: 90px;
}

.cp-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  min-width: 24px;
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 30px;
}

.cp-step-done .cp-step-icon    { background: #16a34a; color: #fff; box-shadow: 0 3px 10px rgba(21,128,61,.3); }
.cp-step-done .cp-step-label   { color: #16a34a; font-weight: 600; }
.cp-step-current .cp-step-icon { background: #2563eb; color: #fff; box-shadow: 0 0 0 5px rgba(37,99,235,.18), 0 4px 12px rgba(37,99,235,.3); }
.cp-step-current .cp-step-label { color: #2563eb; font-weight: 700; }
.cp-line-done { background: #16a34a; }

.cp-current-status-desc {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: .875rem;
  color: #1e40af;
  margin-top: 22px;
  line-height: 1.55;
}

.cp-notes-list { display: flex; flex-direction: column; gap: 12px; }

.cp-note-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid #e2e8f0;
}

.cp-note-date  { font-size: .73rem; color: #94a3b8; margin-bottom: 5px; }
.cp-note-text  { font-size: .875rem; color: #374151; line-height: 1.6; }

.cp-track-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.cp-not-found {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  margin-top: 28px;
  border: 1px solid #e8ecf0;
}

.cp-not-found-icon { font-size: 3.25rem; display: block; margin-bottom: 14px; }

.cp-not-found h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.2rem;
  color: #374151;
  margin: 0 0 10px;
}

.cp-not-found p    { font-size: .9rem; color: #64748b; line-height: 1.6; }
.cp-not-found-tips { text-align: left; font-size: .84rem; color: #64748b; padding-left: 22px; margin: 14px 0 0; line-height: 2; }
.cp-not-found code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #374151; font-size: .8rem; }

/* ════════════════════════════════════════════════════════════
   FIND HELP PAGE (find-help.html)
   ════════════════════════════════════════════════════════════ */
.cp-help-emergency-strip {
  background: linear-gradient(90deg, #7f1d1d, #991b1b);
  color: rgba(255,255,255,.9);
  text-align: center;
  padding: 14px 20px;
  font-size: .9rem;
}

.cp-help-emergency-strip strong { color: #fff; }
.cp-help-emergency-strip a { color: #fca5a5; font-weight: 700; text-decoration: none; }
.cp-help-emergency-strip a:hover { text-decoration: underline; }

.cp-help-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  margin-bottom: 10px;
  margin-top: 32px;
  border: 1px solid #e8ecf0;
}

.cp-filter-group { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 160px; }
.cp-filter-search { flex: 2; }
.cp-help-count  { font-size: .84rem; color: #64748b; margin-bottom: 20px; padding-left: 4px; }

.cp-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.cp-help-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid #e8ecf0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .22s ease, transform .22s ease;
}

.cp-help-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.cp-help-card-header { display: flex; justify-content: space-between; align-items: center; }

.cp-help-center-id {
  font-size: .73rem;
  font-weight: 700;
  color: var(--cp-brand);
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 5px;
}

.cp-help-hours       { font-size: .76rem; color: #64748b; }
.cp-help-center-name { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0; }
.cp-help-org         { font-size: .8rem; color: #64748b; margin: 0; }
.cp-help-address     { font-size: .84rem; color: #475569; margin: 0; }

.cp-help-phone {
  font-size: .875rem;
  color: #137547;
  font-weight: 700;
  text-decoration: none;
}

.cp-help-phone:hover { text-decoration: underline; }

.cp-help-services    { display: flex; flex-wrap: wrap; gap: 6px; }

.cp-service-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: .73rem;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 600;
}

.cp-help-card-actions { display: flex; gap: 8px; margin-top: 4px; }
.cp-help-card-actions .cp-btn { flex: 1; justify-content: center; }

/* ── Referral Modal ───────────────────────────────────────── */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cp-fade .2s ease;
}

@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }

.cp-modal {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: cp-slide-up .25s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}

@keyframes cp-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  color: #374151;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cp-modal-close:hover { background: #e2e8f0; }

.cp-modal-icon  { font-size: 2.75rem; display: block; margin-bottom: 14px; }
.cp-modal-title { font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.cp-modal-desc  { font-size: .875rem; color: #64748b; margin: 0 0 22px; line-height: 1.65; }

.cp-referral-center-name { font-size: .95rem; font-weight: 700; color: #374151; margin-bottom: 14px; }

.cp-referral-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cp-referral-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .07em;
  color: #137547;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 12px 20px;
  word-break: break-all;
}

.cp-referral-details { background: #f8fafc; border-radius: 10px; padding: 16px; text-align: left; margin-bottom: 18px; border: 1px solid #e8ecf0; }
.cp-ref-detail       { font-size: .84rem; color: #475569; margin-bottom: 8px; }
.cp-ref-detail:last-child { margin-bottom: 0; }
.cp-ref-detail strong { color: #374151; }
.cp-modal-actions    { display: flex; gap: 10px; margin-bottom: 16px; }
.cp-modal-actions .cp-btn { flex: 1; justify-content: center; }
.cp-referral-note    { font-size: .76rem; color: #94a3b8; margin: 0; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════
   ADMIN PAGE (admin-protection.html)
   ════════════════════════════════════════════════════════════ */
.cp-admin-login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #071527, #0f2540);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.cp-admin-login-box {
  background: #fff;
  border-radius: 22px;
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  text-align: center;
}

.cp-admin-login-logo {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 18px;
}

.cp-admin-login-box h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.cp-admin-login-box p {
  font-size: .875rem;
  color: #64748b;
  margin: 0 0 28px;
}

.cp-admin-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .84rem;
  color: #991b1b;
  margin-bottom: 16px;
  display: none;
}

/* Admin Panel */
.cp-admin-panel {
  background: #eef1f4;
  min-height: 100vh;
  padding-bottom: 80px;
}

.cp-admin-topbar {
  background: var(--cp-brand);
  color: #fff;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cp-admin-topbar h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-admin-topbar-actions { display: flex; gap: 10px; align-items: center; }

/* Stats Row */
.cp-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.cp-admin-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #e8ecf0;
  text-align: center;
}

.cp-admin-stat-num {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 6px;
}

.cp-admin-stat-label { font-size: .78rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Toolbar */
.cp-admin-toolbar {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #e8ecf0;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cp-admin-search {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.cp-admin-filters { display: flex; gap: 10px; flex-wrap: wrap; }

/* Table */
.cp-admin-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #e8ecf0;
  overflow: hidden;
}

.cp-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.cp-admin-table th {
  padding: 14px 18px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  border-bottom: 2px solid #e8ecf0;
  white-space: nowrap;
  background: #f8fafc;
}

.cp-admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  vertical-align: middle;
}

.cp-admin-table tr:last-child td { border-bottom: none; }
.cp-admin-table tbody tr:hover td { background: #f8fafc; cursor: pointer; }
.cp-row-urgent td { border-left: 4px solid #dc2626; }

/* Admin Detail Modal */
.cp-admin-modal {
  max-width: 700px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.cp-modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 22px;
}

.cp-admin-modal-id   { font-family: monospace; font-size: 1.375rem; font-weight: 800; color: var(--cp-brand); letter-spacing: .04em; }
.cp-admin-modal-dates { font-size: .82rem; color: #64748b; text-align: right; }
.cp-admin-modal-dates div { margin-bottom: 4px; }

.cp-admin-detail-body { margin-bottom: 22px; }
.cp-detail-row  { display: flex; gap: 10px; margin-bottom: 12px; font-size: .875rem; align-items: flex-start; }
.cp-detail-key  { font-weight: 600; color: #374151; min-width: 150px; flex-shrink: 0; text-transform: capitalize; }
.cp-detail-val  { color: #0f172a; word-break: break-word; }

.cp-admin-status-update { margin-bottom: 18px; padding-top: 18px; border-top: 1px solid #f1f5f9; }
.cp-admin-status-update h4 { font-size: .9375rem; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.cp-admin-status-row { display: flex; gap: 10px; align-items: center; }
.cp-admin-flag-row   { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
.cp-admin-note-section h4 { font-size: .9375rem; font-weight: 700; color: #0f172a; margin: 0 0 10px; }

/* ── Toast ────────────────────────────────────────────────── */
.cp-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #0f172a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: .9rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  pointer-events: none;
}

.cp-toast-visible { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto; }
.cp-toast-success { background: #15803d; }
.cp-toast-error   { background: #dc2626; }
.cp-toast-warning { background: #d97706; }
.cp-toast-info    { background: #1d4ed8; }
.cp-toast-icon    { font-size: 1.1rem; flex-shrink: 0; }
.cp-toast-msg     { flex: 1; line-height: 1.45; }
.cp-toast-close   { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.2rem; padding: 0; line-height: 1; flex-shrink: 0; }
.cp-toast-close:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cp-form-layout { grid-template-columns: 1fr; }
  .cp-form-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .cp-sidebar-card { flex: 1; min-width: 220px; }
}

@media (max-width: 768px) {
  .cp-hero { padding: 96px 0 80px; }
  .cp-hero-actions { flex-direction: column; align-items: center; }
  .cp-how-grid { flex-direction: column; align-items: center; }
  .cp-how-arrow { transform: rotate(90deg); padding: 0; margin: 6px 0; }
  .cp-how-step  { max-width: 100%; }
  .cp-success-card { padding: 36px 22px; }
  .cp-track-input-row { flex-direction: column; }
  .cp-track-search { padding: 24px 20px; }
  .cp-modal { padding: 28px 22px; }
  .cp-admin-toolbar { flex-direction: column; align-items: stretch; }
  .cp-admin-search  { max-width: 100%; }
  .cp-modal-header-row { flex-direction: column; }
  .cp-admin-modal-dates { text-align: left; }
  .cp-status-timeline { gap: 0; }
  .cp-quick-exit { top: 70px; right: 12px; }
  .cp-form-section { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .cp-section-number { width: 32px; height: 32px; font-size: .78rem; }
  .cp-help-filters { flex-direction: column; }
  .cp-emergency-content { text-align: center; flex-direction: column; }
  .cp-page-header { padding: 80px 0 52px; }
  .cp-promise-grid { grid-template-columns: 1fr; gap: 16px; }
  .cp-report-grid  { grid-template-columns: 1fr; }
  .cp-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cp-help-grid    { grid-template-columns: 1fr; }
  .cp-admin-stats  { grid-template-columns: repeat(2,1fr); }
  .cp-success-actions { flex-direction: column; }
  .cp-case-id-actions { flex-direction: column; }
  .cp-modal-actions { flex-direction: column; }
  .cp-success-card { padding: 28px 16px; }
  .cp-case-id { font-size: 1.6rem; }
  .cp-success-title { font-size: 1.5rem; }
  .cp-track-header { padding: 18px 16px; }
  .cp-track-card   { padding: 18px 16px; }
  .cp-toast        { bottom: 16px; right: 12px; left: 12px; max-width: 100%; }
}

@media print {
  .navbar, .footer, .cp-quick-exit, .cp-hero-actions,
  .cp-success-actions, .cp-track-actions, .cp-case-id-actions,
  .cp-submit-area { display: none !important; }
  .cp-success-section { background: #fff !important; min-height: auto; }
  .cp-success-card { box-shadow: none; border: 1px solid #e2e8f0; }
  .cp-case-id-box { border: 2px solid #000 !important; }
  .cp-form-section { box-shadow: none; border: 1px solid #ddd; }
}
