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

:root {
  --black:      #111111;
  --red:        #cc0000;
  --red-dark:   #990000;
  --red-light:  #fff0f0;
  --white:      #ffffff;
  --grey:       #f4f4f4;
  --border:     #d1d5db;
  --text:       #111111;
  --text-mid:   #4b5563;
  --text-hint:  #9ca3af;
  --green:      #16a34a;
  --green-light:#f0fff4;
  --amber:      #f59e0b;
  --amber-light:#fffbeb;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --radius:     10px;
  --radius-sm:  6px;
  --max-w:      720px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: #f0f0f0; color: var(--text); min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; }

/* ─── NAVBAR ─── */
.navbar { background: var(--black); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-badge { width: 32px; height: 32px; object-fit: contain; }
.nav-back { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; }
.nav-back:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ─── PAGE ─── */
.page { flex: 1; padding: 2rem 1rem 3rem; }
.page-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

/* ─── PAGE HEADER ─── */
.page-header { text-align: center; margin-bottom: 0.5rem; }
.page-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--black); margin-bottom: 0.5rem; }
.page-header p { font-size: 0.95rem; color: var(--text-mid); max-width: 520px; margin: 0 auto 1rem; }

.anon-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

/* ─── CARDS ─── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--black); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid #f3f4f6; }

/* ─── ANON TOGGLE ─── */
.anon-toggle-row { margin-bottom: 1rem; }
.anon-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}
.anon-label:hover { background: var(--amber-light); border-color: #fde68a; }
.anon-label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: var(--black); cursor: pointer; }

#reporter-fields { transition: opacity 0.2s; }
#reporter-fields.faded { opacity: 0.35; pointer-events: none; }

/* ─── FIELDS ─── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.04em; }
.req { color: var(--red); }

input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; padding: 0.55rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
input.error, select.error, textarea.error { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: var(--text-hint); }
textarea { resize: vertical; min-height: 120px; }

.field-grid { display: grid; gap: 0 1rem; }
.field-grid.two-col { grid-template-columns: 1fr 1fr; }

/* ─── EMERGENCY CARD ─── */
.emergency-card { border-color: #fca5a5; background: #fff5f5; }
.emergency-card .card-title { color: var(--red); border-bottom-color: #fecaca; }
.emergency-card p { font-size: 0.88rem; color: #7f1d1d; margin-bottom: 0.75rem; }
.emergency-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.emergency-list li { font-size: 0.88rem; color: #7f1d1d; padding: 0.4rem 0 0.4rem 1rem; border-bottom: 1px solid #fecaca; position: relative; }
.emergency-list li:last-child { border-bottom: none; }
.emergency-list li::before { content: '•'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ─── BUTTONS ─── */
.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.btn-secondary { background: transparent; color: var(--text-mid); border: 1.5px solid var(--border); padding: 0.65rem 1.25rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.btn-secondary:hover { background: #f3f4f6; }
.btn-submit { background: var(--black); color: var(--white); border: 2px solid var(--red); padding: 0.7rem 2rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: background 0.15s, transform 0.1s; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.btn-submit:hover { background: var(--red); transform: translateY(-1px); }

/* ─── ERROR MSG ─── */
.error-msg { font-size: 0.78rem; color: var(--red); margin-top: 3px; }

/* ─── SUCCESS ─── */
.success-screen { background: var(--white); border: 1.5px solid #bbf7d0; border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.success-screen[hidden] { display: none; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-screen h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.success-screen p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 0.75rem; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.success-contacts { background: #f3f4f6; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-mid); margin: 0.75rem auto 1.25rem; max-width: 340px; line-height: 1.8; }
.btn-home { display: inline-block; background: var(--black); color: var(--white); padding: 0.65rem 1.5rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border: 2px solid var(--red); transition: background 0.15s; }
.btn-home:hover { background: var(--red); }

/* ─── FOOTER ─── */
.page-footer { text-align: center; padding: 1.25rem; font-size: 0.78rem; color: var(--text-hint); border-top: 1px solid var(--border); background: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 560px) {
  .field-grid.two-col { grid-template-columns: 1fr; }
}

/* ─── INFO LIST ─── */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.info-list li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-mid);
  border-bottom: 1px solid #f3f4f6;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ─── CTA CARD ─── */
.cta-card { text-align: center; border-color: #1d4ed8; background: #eff6ff; }
.cta-card .card-title { color: #1e3a8a; border-bottom-color: #bfdbfe; }

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d4ed8;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 12px rgba(29,78,216,0.3);
}
.btn-report:hover { background: #1e3a8a; transform: translateY(-2px); }

.cta-note {
  font-size: 0.78rem;
  color: #1e40af;
  margin-top: 0.75rem !important;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav { display: flex; gap: 0.75rem; }
.btn-home {
  background: var(--black);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.15s;
}
.btn-home:hover { background: var(--red); }
