/* CWT Suspicious Activity Reporting
   Brand: dark background (#0a0a0a), gold accents (#f3c016), Lora serif
   Aligned with christianwarriortraining.com
   Mobile-first responsive layout */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Reset ───────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background: #0a0a0a;
  color: #d9d9d9;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

/* ── Typography ──────────────────────────────────── */

h2 {
  color: #f3c016;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #262626;
  line-height: 1.3;
}

h3 {
  color: #f3c016;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

p {
  margin-bottom: 0.9rem;
}

ul, ol {
  margin-bottom: 0.9rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: #f3c016;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #f3c016;
  outline-offset: 2px;
}

/* ── Skip link (accessibility) ───────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #f3c016;
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ── Site header ─────────────────────────────────── */

.site-header {
  background: #000;
  border-bottom: 3px solid #f3c016;
  padding: 1.15rem 1rem 1rem;
  text-align: center;
}

.site-logo {
  display: block;
  margin: 0 auto 0.5rem;
  width: 80px;
  height: 80px;
}

.site-header h1 {
  color: #f3c016;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.site-header .subtitle {
  color: #999;
  font-size: 0.88rem;
  margin-top: 0.15rem;
  margin-bottom: 0;
  font-style: italic;
}

.site-header nav {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.site-header nav a {
  color: #bbb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  display: inline-block;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a:focus {
  color: #f3c016;
  background: rgba(243, 192, 22, 0.06);
  text-decoration: none;
}

/* ── Support CTA ────────────────────────────────── */

.support-cta {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  font-style: italic;
  color: #999;
}

.support-cta a {
  color: #d4a810;
  text-decoration: none;
}

.support-cta a:hover,
.support-cta a:focus {
  color: #f3c016;
  text-decoration: underline;
}

/* ── Emergency banner ────────────────────────────── */

.emergency-banner {
  background: #1a0000;
  border-bottom: 2px solid #661a1a;
  color: #d9a0a0;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

.emergency-banner strong {
  color: #ff6b6b;
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

/* ── Main content ────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.75rem 1.15rem 2.5rem;
}

/* ── Info box ────────────────────────────────────── */

.info-box {
  background: #111;
  border-left: 3px solid #f3c016;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box--warning {
  border-left-color: #cc3333;
  background: #140000;
}

/* ── Honeypot (hidden from real users) ───────────── */

.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
}

/* ── Form ────────────────────────────────────────── */

.report-form {
  margin-top: 1.25rem;
}

fieldset {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
  padding: 1.15rem 1.15rem 0.35rem;
  margin-bottom: 1.5rem;
}

legend {
  color: #f3c016;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0 0.5rem;
  letter-spacing: 0.025em;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  color: #ccc;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
}

.form-group-label {
  display: block;
  color: #ccc;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
}

.required-star {
  color: #cc3333;
  font-weight: 700;
}

.hint {
  display: block;
  color: #888;
  font-size: 0.83rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4a810;
  box-shadow: 0 0 0 2px rgba(243, 192, 22, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: auto;
  cursor: pointer;
}

/* File input */
.form-group input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  color: #999;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.88rem;
  cursor: pointer;
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: #d4a810;
  box-shadow: 0 0 0 2px rgba(243, 192, 22, 0.1);
}

.form-group input[type="file"]::file-selector-button {
  background: #1e1e1e;
  color: #ccc;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 0.6rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
  background: #262626;
  border-color: #d4a810;
}

/* File list (selected files feedback) */
.file-list:empty {
  display: none;
}

.file-list {
  margin-top: 0.5rem;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
}

.file-item--error {
  border-color: #cc3333;
  background: #140000;
}

.file-item-name {
  color: #d9d9d9;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.file-item-size {
  color: #888;
  white-space: nowrap;
}

.file-item-problem {
  color: #ff6b6b;
  font-size: 0.8rem;
  width: 100%;
}

.file-item-remove {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #d4a810;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.file-item-remove:hover,
.file-item-remove:focus {
  background: rgba(243, 192, 22, 0.08);
  border-color: #d4a810;
  color: #f3c016;
}

.file-item-remove:focus-visible {
  outline: 2px solid #f3c016;
  outline-offset: 2px;
}

.file-item--error .file-item-remove {
  color: #ff6b6b;
  border-color: #661a1a;
}

.file-item--error .file-item-remove:hover,
.file-item--error .file-item-remove:focus {
  background: rgba(204, 51, 51, 0.12);
  border-color: #cc3333;
  color: #ff8a8a;
}

.file-list-actions {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

.file-list-actions[hidden] {
  display: none;
}

.file-list-clear {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #bbb;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 0.3rem 0.8rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.file-list-clear:hover,
.file-list-clear:focus {
  background: rgba(204, 51, 51, 0.1);
  border-color: #cc3333;
  color: #ff8a8a;
}

.file-list-clear:focus-visible {
  outline: 2px solid #f3c016;
  outline-offset: 2px;
}

/* ── Radio and checkbox groups ────────────────────── */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #d9d9d9;
  font-size: 0.93rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
  padding: 0.15rem 0;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid #4a4a4a;
  background: #141414;
  cursor: pointer;
  margin-top: 0.15rem;
  transition: border-color 0.15s ease;
}

.radio-label input[type="radio"] {
  border-radius: 50%;
}

.checkbox-label input[type="checkbox"] {
  border-radius: 3px;
}

.radio-label input[type="radio"]:checked {
  border-color: #f3c016;
  background: radial-gradient(circle, #f3c016 38%, #141414 43%);
}

.checkbox-label input[type="checkbox"]:checked {
  border-color: #f3c016;
  background: #f3c016;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3L6 11.6 2.7 8.3l1.4-1.4L6 8.8l5.9-5.9 1.4 1.4z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.radio-label input:focus-visible,
.checkbox-label input:focus-visible {
  outline: 2px solid #f3c016;
  outline-offset: 2px;
}

.radio-label span,
.checkbox-label span {
  flex: 1;
}

/* ── Conditional section toggle ──────────────────── */

.conditional-section--hidden {
  display: none;
}

/* ── Acknowledgement group ───────────────────────── */

.form-group--acknowledge {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
}

.form-group--acknowledge .checkbox-label {
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.55;
}

.form-privacy-link {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 1.25rem;
}

/* ── Form row (side-by-side fields) ──────────────── */

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row-item {
  flex: 1;
}

.form-row-item label {
  display: block;
  color: #ccc;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
}

.form-row-item input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row-item input:focus {
  outline: none;
  border-color: #d4a810;
  box-shadow: 0 0 0 2px rgba(243, 192, 22, 0.1);
}

/* ── Validation error states ─────────────────────── */

.form-group--error input,
.form-group--error select,
.form-group--error textarea,
.form-row-item--error input {
  border-color: #cc3333;
}

.form-group--error input:focus,
.form-group--error select:focus,
.form-group--error textarea:focus,
.form-row-item--error input:focus {
  border-color: #cc3333;
  box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.12);
}

.form-group--error .radio-label input[type="radio"],
.form-group--error .checkbox-label input[type="checkbox"] {
  border-color: #cc3333;
}

.field-error {
  display: block;
  color: #ff6b6b;
  font-size: 0.83rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.form-error-summary {
  background: #140000;
  border: 1px solid #992222;
  border-left: 3px solid #cc3333;
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
}

.form-error-summary p {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ── Submit button ───────────────────────────────── */

.btn-submit {
  display: block;
  width: 100%;
  background: #f3c016;
  color: #0a0a0a;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  background: #e0b214;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-submit:active {
  background: #c89e0e;
}

.btn-submit:disabled {
  background: #555;
  color: #2a2a2a;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── Confirmation box ────────────────────────────── */

.confirmation-box {
  background: #0a1a0a;
  border: 1px solid #1e4a1e;
  border-radius: 5px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.confirmation-box h2 {
  color: #5cb85c;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.confirmation-box p {
  margin-bottom: 0;
  color: #b0b0b0;
}

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 1.25rem 1.15rem;
  text-align: center;
  font-size: 0.82rem;
  color: #808080;
  line-height: 1.65;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-emergency {
  color: #b35555;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #d4a810;
}

/* ── Responsive — mobile stacking ────────────────── */

@media (max-width: 499px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row-item {
    margin-bottom: 1.15rem;
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .emergency-banner {
    padding: 0.75rem 1rem;
  }
}

/* ── Responsive — tablet and up ──────────────────── */

@media (min-width: 600px) {

  .site-header {
    padding: 1.35rem 1.75rem 1.15rem;
  }

  .site-logo {
    width: 100px;
    height: 100px;
  }

  .site-header h1 {
    font-size: 1.55rem;
  }

  .site-header nav a {
    font-size: 0.88rem;
    padding: 0.3rem 0.75rem;
  }

  main {
    padding: 2.25rem 1.75rem 3rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  fieldset {
    padding: 1.35rem 1.5rem 0.45rem;
  }

  legend {
    font-size: 1rem;
  }

  .info-box {
    padding: 1.1rem 1.35rem;
  }

  .btn-submit {
    width: auto;
    min-width: 240px;
  }

  .form-group--acknowledge {
    padding: 1rem 1.25rem;
  }

  .confirmation-box {
    padding: 1.75rem 1.5rem;
  }
}

/* ── Responsive — wider desktop ──────────────────── */

@media (min-width: 768px) {
  main {
    padding: 2.5rem 2rem 3.5rem;
  }
}
