/* STR Violation Reporting Page — Team Tina for Newport */
:root {
  --navy: #12263a;
  --blue: #2563eb;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e2e5ea;
  --text: #1a2330;
  --muted: #5b6676;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.campaign-name { font-weight: 700; font-size: 18px; }
.page-tag { color: #9fb3c8; font-size: 13px; font-style: italic; }

main.wrap { padding: 36px 20px 60px; }

.intro h1 { font-size: 26px; margin-bottom: 10px; }
.intro p { color: var(--muted); font-size: 15px; }

.lookup { margin-top: 28px; }
.lookup-row { display: flex; gap: 10px; flex-wrap: wrap; }
#address-input {
  flex: 1 1 320px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
#lookup-submit {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
#lookup-submit:hover { background: #1d4ed8; }
#lookup-submit:disabled { background: #94a3b8; cursor: not-allowed; }

.lookup-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
}
.lookup-result.state-matched {
  background: #ecfdf3; border: 1px solid #a6f0c6; color: var(--green);
}
.lookup-result.state-no-match {
  background: #fff7e6; border: 1px solid #ffe3a3; color: var(--amber);
}
.lookup-result.state-error {
  background: #fef2f2; border: 1px solid #fecaca; color: var(--red);
}
.lookup-result strong { color: inherit; }
.lookup-result .nbpd-line { display: block; margin-top: 8px; font-weight: 600; }

.report-section {
  margin-top: 40px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.report-section h2 { font-size: 19px; margin-top: 0; }
.report-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.field-row { margin-bottom: 16px; }
.field-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field-row input[type="text"],
.field-row input[type="email"],
.field-row input[type="tel"],
.field-row textarea,
.field-row input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row label { font-weight: 400; margin: 0; }

.file-hint { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 16px; }
.file-hint.file-hint-error { color: var(--red); font-weight: 600; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

#report-submit {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
#report-submit:disabled { background: #94a3b8; cursor: not-allowed; }

.report-status { margin-top: 12px; font-size: 14px; }
.report-status.status-success { color: var(--green); }
.report-status.status-error { color: var(--red); }

.site-footer {
  background: #eef1f5;
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  margin-top: 40px;
}
.disclaimer-placeholder {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px dashed #c7cdd6;
  border-radius: 6px;
  background: #fff;
  position: relative;
}
.disclaimer-draft-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.disclaimer-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 480px) {
  .intro h1 { font-size: 22px; }
}
