/* ESTILOS DA PÁGINA */
/* denuncia.html — formulário de denúncia, mapa e uploads
   Complementa css/base.css (não repete o que já está lá). */

/* Override de tom desta página (o restante vem de base.css) */
html[data-theme="light"] {
  --card-soft: #f5efe3;
}

:root {
  --header-h: 70px;
  --radius: 14px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  transition:
    background 0.25s ease,
    color 0.25s ease;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

header {
  min-height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 12px 5%;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 3px 8px rgba(232, 98, 44, 0.25);
}

.brand-title {
  font-size: clamp(14px, 1.3vw, 15.5px);
  font-weight: 800;
  letter-spacing: -0.2px;
}

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  font-size: clamp(13px, 1.05vw, 14px);
  color: var(--muted);
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 50%;
  padding: 0;
  flex: none;
  overflow: hidden;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.2s ease;
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle i,
.theme-toggle svg {
  width: 17px;
  height: 17px;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  transform-origin: center;
}

.theme-toggle.switching i,
.theme-toggle.switching svg {
  transform: rotate(180deg) scale(0.4);
  opacity: 0;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 35%, transparent);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.theme-toggle.rippling::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.btn {
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 700;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(232, 98, 44, 0.25);
}

.btn-outline {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--input-border);
  box-shadow: 0 1px 2px rgba(50, 38, 20, 0.04);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.user-name {
  font-size: clamp(12.5px, 1vw, 13.5px);
  font-weight: 700;
}

main {
  width: min(760px, 92%);
  margin: 0 auto;
  flex: 1;
  padding: clamp(24px, 3vw, 40px) 0 clamp(30px, 4vw, 50px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12.5px, 1vw, 13.5px);
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  font-weight: 600;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--orange);
}

.back-link i {
  width: 14px;
  height: 14px;
}

.page-label {
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}

.page-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  line-height: 1.15;
}

.page-subtitle {
  color: var(--muted);
  font-size: clamp(13.5px, 1.2vw, 15px);
  margin: 0 0 12px;
  line-height: 1.55;
}

.required-legend {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
}

.required-legend .star {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.1em;
  flex: none;
  margin-top: 1px;
}

.required-legend strong {
  color: var(--text);
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
}

.form-section {
  padding-bottom: clamp(18px, 2.4vw, 24px);
  margin-bottom: clamp(18px, 2.4vw, 24px);
  border-bottom: 1px solid var(--border-soft);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.form-section-title {
  font-size: clamp(13px, 1.15vw, 14.5px);
  font-weight: 800;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.form-section-title .badge-opt {
  font-size: clamp(10.5px, 0.85vw, 11.5px);
  font-weight: 600;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.form-section-sub {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.section-label {
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(18px, 2.2vw, 22px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip i {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(232, 98, 44, 0.25);
}

.chip.active i {
  color: #fff;
}

.chip-sm {
  padding: 7px 14px;
  font-size: clamp(12.5px, 1vw, 13.5px);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 2.2vw, 22px);
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--input-border);
  font-size: clamp(12.5px, 1vw, 13.5px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.radio-pill.active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.radio-pill i {
  width: 14px;
  height: 14px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: clamp(18px, 2.2vw, 22px);
}

/* ===== CHECK-ITEM CORRIGIDO ===== */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: transparent;
  cursor: pointer;
  font-size: clamp(13px, 1.05vw, 14px);
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.check-item:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.check-item.checked {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 600;
}

.check-item .check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--input-border);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
  background: var(--input-bg);
  position: relative;
}

.check-item .check-box svg,
.check-item .check-box i {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  stroke-width: 3;
  pointer-events: none;
}

.check-item.checked .check-box {
  background: var(--orange);
  border-color: var(--orange);
}

.check-item.checked .check-box svg,
.check-item.checked .check-box i {
  opacity: 1;
}
/* ===== FIM CHECK-ITEM ===== */

.risk-block {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background: var(--card-soft);
  margin-bottom: clamp(18px, 2.2vw, 22px);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.risk-block.has-risk {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.risk-block .radio-group {
  margin-bottom: 0;
}

.risk-block.has-risk .radio-pill.active[data-value="sim"] {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.field {
  margin-bottom: clamp(16px, 2vw, 20px);
}

.field label {
  display: block;
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.field label .req {
  color: var(--orange);
  font-weight: 800;
  margin-left: 2px;
}

.field label .opt {
  color: var(--muted);
  font-weight: 500;
}

.field label i.label-icon {
  width: 15px;
  height: 15px;
  color: var(--orange);
  vertical-align: -2px;
  margin-right: 4px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 15px);
  background: var(--input-bg);
  color: var(--text);
  transition:
    border 0.15s,
    box-shadow 0.15s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23847a6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field .field-hint {
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field .field-hint i {
  width: 12px;
  height: 12px;
  color: var(--orange);
  flex: none;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-error-msg {
  display: none;
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--danger);
  font-weight: 600;
  margin-top: 6px;
}

.field.error .field-error-msg {
  display: block;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.ok {
  color: #22c55e;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.coords-box {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--card-soft);
  border: 1px dashed var(--input-border);
  border-radius: 10px;
  font-size: clamp(12.5px, 1vw, 13.5px);
  margin-top: 12px;
}

.coords-box .coord-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.coords-box .coord-item strong {
  color: var(--text);
  font-weight: 700;
  font-family: monospace;
}

.coords-box .coord-item i {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  min-width: 0;
}

.gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.gps-btn i {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.gps-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.gps-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.map-wrap {
  margin-top: 12px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
  position: relative;
}

#map {
  width: 100%;
  height: clamp(260px, 45vw, 360px);
  background: #e5e3df;
}

.map-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: #231c14;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 5;
  pointer-events: none;
}

html[data-theme="dark"] .map-hint {
  background: rgba(31, 25, 18, 0.94);
  color: #f4ede0;
}

.map-hint i {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex: none;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--input-bg);
  border-top: 1px solid var(--border-soft);
}

.map-actions .mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--input-border);
  color: var(--text);
  font-size: clamp(12.5px, 1vw, 13.5px);
  font-weight: 600;
  transition: all 0.15s ease;
}

.map-actions .mini-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.map-actions .mini-btn i {
  width: 14px;
  height: 14px;
}

.coord-readout {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--input-bg);
}

.coord-readout strong {
  color: var(--text);
  font-weight: 700;
  font-family: monospace;
}

.coord-readout i {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.pac-container {
  border-radius: 10px !important;
  border: 1px solid var(--input-border) !important;
  box-shadow: var(--shadow) !important;
  font-family: inherit !important;
  margin-top: 6px;
  z-index: 1000 !important;
}

html[data-theme="dark"] .pac-container {
  background: #241d15 !important;
  border-color: #3a2f21 !important;
}

html[data-theme="dark"] .pac-item {
  color: #f4ede0 !important;
  border-top-color: #3a2f21 !important;
}

html[data-theme="dark"] .pac-item:hover,
html[data-theme="dark"] .pac-item-selected {
  background: #2e2013 !important;
}

html[data-theme="dark"] .pac-item-query {
  color: #f4ede0 !important;
}

html[data-theme="dark"] .pac-matched {
  color: var(--orange) !important;
}

.pac-item {
  padding: 8px 12px !important;
  font-size: 14px !important;
}

.pac-item-query {
  font-weight: 600 !important;
}

.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: clamp(24px, 3.5vw, 36px) 16px;
  border: 1.5px dashed var(--input-border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.upload-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 10px;
  margin-bottom: 2px;
}

.upload-icon i {
  width: 20px;
  height: 20px;
}

.upload-title {
  font-size: clamp(13px, 1.1vw, 14.5px);
  font-weight: 600;
  color: var(--text);
}

.upload-hint {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 20%, transparent);
  margin: clamp(18px, 2.4vw, 24px) 0;
}

.note i {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--orange);
  margin-top: 2px;
}

.note p {
  margin: 0;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.55;
  color: var(--text);
  opacity: 0.9;
}

/* LGPD / INFO BOXES */

/* ===== CHECKBOX-ROW CORRIGIDO ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 20px);
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-row .check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--input-border);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  transition: all 0.15s ease;
  background: var(--input-bg);
  position: relative;
}

.checkbox-row .check-box svg,
.checkbox-row .check-box i {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  stroke-width: 3;
  pointer-events: none;
}

.checkbox-row input:checked + .check-box {
  background: var(--orange);
  border-color: var(--orange);
}

.checkbox-row input:checked + .check-box svg,
.checkbox-row input:checked + .check-box i {
  opacity: 1;
}

.checkbox-row span.text {
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row span.text strong {
  color: var(--text);
  font-weight: 700;
}

.checkbox-row span.text a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.checkbox-row span.text a:hover {
  text-decoration: underline;
}
/* ===== FIM CHECKBOX-ROW ===== */

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 20%, transparent);
  margin-bottom: 14px;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.5;
}

.info-box.success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

.info-box i {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--orange);
}

.info-box.success i {
  color: var(--success);
}

.info-box a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.info-box.success a {
  color: var(--success);
}

.info-box a:hover {
  text-decoration: underline;
}

.info-box strong {
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.4vw, 24px);
  align-items: center;
}

.form-actions .btn {
  padding: 13px 22px;
  font-size: clamp(14px, 1.15vw, 15px);
  border-radius: 10px;
}

.form-actions .btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 13px 18px;
}

.form-actions .btn-ghost:hover {
  color: var(--orange);
}

footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: clamp(28px, 3.4vw, 42px) 5% clamp(18px, 2vw, 26px);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand .brand-mark i {
  width: 17px;
  height: 17px;
}

.footer-copy {
  color: var(--muted);
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.footer-col h3 {
  font-size: clamp(13px, 1.1vw, 14.5px);
  margin: 0 0 12px;
  font-weight: 800;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  margin: 9px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: clamp(20px, 2.4vw, 30px) auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: clamp(11px, 1vw, 12.5px);
  text-align: center;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 420px;
  margin-left: auto;
  background: var(--toast-bg);
  color: var(--toast-text);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: clamp(13px, 1.1vw, 14px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 60;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main {
    grid-column: 1/-1;
  }
}

@media (max-width: 800px) {
  header {
    padding: 12px 4%;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5%;
    gap: 10px;
    z-index: 15;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  nav.open {
    display: flex;
  }
  nav a,
  nav button,
  nav .btn,
  nav .user-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }
  .theme-toggle {
    width: 42px;
    height: 42px;
    margin: 6px auto 0;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  main {
    width: 94%;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-main {
    grid-column: auto;
  }
  .input-row {
    flex-direction: column;
  }
  .gps-btn {
    justify-content: center;
    padding: 12px 16px;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .form-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Erros de grupo (pílulas de seleção) e lista de arquivos ===== */
.group-error {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  margin: 8px 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.group-error.show {
  display: block;
}
.radio-group.error .radio-pill {
  border-color: var(--danger);
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
}
.file-list li i,
.file-list li svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex: none;
}
.file-list li .fname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.file-list li .fsize {
  color: var(--muted);
  font-weight: 700;
  font-size: 11.5px;
  flex: none;
}
.file-list li.invalido {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.file-list li.invalido i,
.file-list li.invalido svg {
  color: var(--danger);
}
.file-total {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 10px 0 0;
}

/* ==========================================================
   COMBOBOX DE CIDADES — substitui o <datalist> nativo feio
   (mesmo bloco do auth.css, adaptado para denuncia.css)
   ========================================================== */

.aq-combo {
  position: relative;
  width: 100%;
}

.aq-combo input {
  width: 100%;
  padding-right: 38px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23847a6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
html[data-theme="dark"] .aq-combo input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a89b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.aq-combo input:focus {
  cursor: text;
}

/* Lista */
.aq-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  z-index: 50;
  animation: aqComboIn 0.14s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
html[data-theme="dark"] .aq-combo-list {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.aq-combo-list::-webkit-scrollbar {
  width: 8px;
}
.aq-combo-list::-webkit-scrollbar-track {
  background: transparent;
}
.aq-combo-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.aq-combo-list::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

@keyframes aqComboIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Itens */
.aq-combo-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: clamp(13px, 1.05vw, 14px);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.1s ease,
    color 0.1s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aq-combo-item strong {
  color: var(--orange);
  font-weight: 800;
}
.aq-combo-item:hover,
.aq-combo-item.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* Estado vazio */
.aq-combo-empty {
  padding: 14px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
} /* Formulário aberto: campos visíveis e seções numeradas. */
.form-section-title[data-step] {
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.5;
}
.form-section-title[data-step]::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 800;
}
.form-subtitle {
  font-size: 15px;
  line-height: 1.5;
  margin: 18px 0 12px;
  color: var(--text);
  font-weight: 700;
}
.address-complement {
  margin-top: 20px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.visible-map {
  margin-bottom: 20px;
}
.visible-map .map-wrap {
  margin-top: 12px;
}
#optionalDetails .form-section {
  margin-top: 0;
}
.required-legend {
  line-height: 1.6;
}
@media (max-width: 600px) {
  .form-section-title[data-step] {
    font-size: 18px;
  }
  .form-subtitle .opt {
    display: block;
    margin-top: 4px;
  }
}

.address-row .field > :is(input, select),
.address-row .municipio-combo > input {
  width: 100%;
  height: 46px;
}


/* Reserva o espaço enquanto a sessão é conferida para o rodapé não saltar. */
#reportForm[hidden] {
  display: block !important;
  visibility: hidden;
}
