/* ==============================================================================
   IDENTIDADE VISUAL OFICIAL - POLÍCIA FEDERAL (DPF/PCA/SP)
   TEMA DARK EXECUTIVO TÁTICO COM ACENTOS DOURADOS FEDERAIS
   ============================================================================== */

:root {
  --pf-dark-bg: #0b0f15;
  --pf-dark-surface: #121822;
  --pf-dark-card: #17202d;
  --pf-dark-card-hover: #1c2737;
  --pf-dark-input: #0c1118;
  --pf-dark-border: #263346;
  --pf-dark-border-gold: rgba(245, 158, 11, 0.45);
  
  --pf-gold: #f59e0b;
  --pf-gold-light: #fbbf24;
  --pf-gold-dark: #d97706;
  --pf-gold-glow: rgba(245, 158, 11, 0.25);
  --pf-gold-bg-translucent: rgba(245, 158, 11, 0.08);

  --pf-blue: #2563eb;
  --pf-blue-hover: #1d4ed8;
  --pf-blue-bg: rgba(37, 99, 235, 0.12);

  --pf-text-main: #f8fafc;
  --pf-text-secondary: #cbd5e1;
  --pf-text-muted: #94a3b8;
  --pf-text-dark: #0f172a;

  --pf-success: #22c55e;
  --pf-success-bg: rgba(34, 197, 94, 0.12);
  --pf-danger: #ef4444;
  --pf-danger-bg: rgba(239, 68, 68, 0.15);
  --pf-warning: #f59e0b;
  --pf-warning-bg: rgba(245, 158, 11, 0.12);

  --pf-radius-sm: 6px;
  --pf-radius: 10px;
  --pf-radius-lg: 14px;
  --pf-radius-pill: 9999px;

  --pf-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --pf-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --pf-container-max-width: 1100px;

  --pf-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--pf-font);
  background-color: var(--pf-dark-bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #090c12 0%, #0d121a 100%);
  color: var(--pf-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   1. CABEÇALHO INSTITUCIONAL
   ============================================================================== */
.pf-header {
  background-color: rgba(13, 18, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pf-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0.85rem 0;
}

.header-container {
  width: min(calc(100% - 2.5rem), var(--pf-container-max-width));
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pf-header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.pf-header-logo:hover {
  transform: scale(1.04);
}

.pf-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sup {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--pf-gold-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header-contact {
  font-size: 0.84rem;
  color: var(--pf-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: var(--pf-radius-pill);
}

.header-contact i {
  color: var(--pf-gold);
}

/* LINK DE E-MAIL CLICÁVEL E EM ITÁLICO */
.email-link {
  color: var(--pf-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, 0.5);
  transition: all 0.2s ease;
  font-weight: 600;
}

.email-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.email-link em {
  font-style: italic;
  font-weight: 700;
}

/* ==============================================================================
   2. HERO BANNER - IDENTIDADE VISUAL CONFORME OS PRINTS
   ============================================================================== */
.hero-banner-card {
  background: linear-gradient(135deg, #131a24 0%, #172232 50%, #0e141e 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--pf-radius-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--pf-shadow), var(--pf-shadow-gold);
  position: relative;
  overflow: hidden;
}

/* Faixa tática listrada amarela/preta no canto superior esquerdo */
.hero-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--pf-gold),
    var(--pf-gold) 10px,
    #0b0f15 10px,
    #0b0f15 20px
  );
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-main-content {
  flex: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--pf-gold);
  border-radius: var(--pf-radius-pill);
  color: var(--pf-gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.hero-badge-pill.presencial {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.hero-title {
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title-white {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title-gold {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--pf-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--pf-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 1.8rem;
}

.hero-subtitle strong {
  color: #ffffff;
}

/* CARDS DE DESTAQUE NO ESTILO DOS PRINTS */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 1.5rem;
}

.feature-card {
  background: rgba(10, 15, 22, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--pf-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--pf-gold);
  background: rgba(14, 20, 30, 0.95);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--pf-radius-pill);
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid var(--pf-gold);
  color: var(--pf-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.feature-highlight {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.feature-highlight strong {
  color: var(--pf-gold);
  font-weight: 700;
}

/* Brasão grande lateral na hero */
.hero-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.hero-brasao-large {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.2));
  animation: floatShield 6s ease-in-out infinite;
}

@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==============================================================================
   3. CONTAINER PRINCIPAL E CARDS DE SEÇÃO DO FORMULÁRIO
   ============================================================================== */
.main-container {
  width: min(calc(100% - 2.5rem), var(--pf-container-max-width));
  margin: 1.8rem auto 3rem;
  padding: 0;
  box-sizing: border-box;
  flex: 1;
}

.card {
  background: var(--pf-dark-card);
  border: 1px solid var(--pf-dark-border);
  border-radius: var(--pf-radius);
  padding: 1.8rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--pf-shadow);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.form-section {
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--pf-dark-border);
}

.section-num {
  width: 32px;
  height: 32px;
  border-radius: var(--pf-radius-sm);
  background: var(--pf-gold);
  color: #0b0f15;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==============================================================================
   4. GRID E FORMULÁRIO
   ============================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 20px;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pf-text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.req {
  color: var(--pf-gold);
  font-weight: 700;
  margin-left: 2px;
}

.label-with-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.label-with-checkbox label {
  margin-bottom: 0;
}

.custom-checkbox-inline {
  font-size: 0.78rem;
  color: var(--pf-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-checkbox-inline input {
  accent-color: var(--pf-gold);
}

/* INPUTS, SELECTS E TEXTAREAS */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--pf-dark-input);
  border: 1px solid var(--pf-dark-border);
  border-radius: var(--pf-radius-sm);
  color: #ffffff;
  font-size: 0.92rem;
  font-family: var(--pf-font);
  transition: all 0.2s ease;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pf-gold);
  box-shadow: 0 0 0 3px var(--pf-gold-glow);
  background-color: #0e1520;
}

select {
  cursor: pointer;
}

select option {
  background-color: #121822;
  color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 38px;
}

.validation-status-icon,
.validation-status-icon.is-valid,
.validation-status-icon.is-invalid {
  position: absolute;
  right: 12px;
  font-size: 1.1rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* ==============================================================================
   5. ALERTAS E FEEDBACKS EM VERMELHO E VERDE VIBRANTES
   ============================================================================== */
.field-feedback {
  font-size: 0.78rem;
  color: var(--pf-text-muted);
  margin-top: 5px;
  display: block;
  line-height: 1.4;
}

.field-feedback.error-text {
  color: #ff6b6b !important;
  font-weight: 600 !important;
  display: block !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.field-feedback.success-text {
  color: #4ade80 !important;
  font-weight: 600 !important;
  display: block !important;
}

/* DESTAQUE VISUAL PARA CAMPOS INVÁLIDOS (VERMELHO) */
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.is-invalid:not(.validation-status-icon) {
  border: 2px solid #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}

/* DESTAQUE VISUAL PARA CAMPOS VÁLIDOS (VERDE) */
input.is-valid,
select.is-valid,
textarea.is-valid,
.is-valid:not(.validation-status-icon) {
  border: 1.5px solid #22c55e !important;
  background-color: rgba(34, 197, 94, 0.05) !important;
}

.alert-box {
  border-radius: var(--pf-radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.alert-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
}

.alert-info i {
  color: #60a5fa;
  font-size: 1.25rem;
  margin-top: 2px;
}

.alert-info strong {
  color: #ffffff;
}

.alert-info ul {
  margin: 6px 0 0 18px;
}

.alert-info li {
  margin-bottom: 4px;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.alert-warning i {
  color: var(--pf-gold);
  font-size: 1.25rem;
  margin-top: 2px;
}

.alert-warning strong {
  color: #ffffff;
}

.info-note {
  font-size: 0.84rem;
  color: var(--pf-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--pf-gold);
  padding: 10px 14px;
  border-radius: 0 var(--pf-radius-sm) var(--pf-radius-sm) 0;
  margin-bottom: 1.2rem;
}

.btn-circunscricao-modal {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--pf-gold);
  color: var(--pf-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--pf-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-circunscricao-modal:hover {
  background: var(--pf-gold);
  color: #0b0f15;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* MODAL DE CIRCUNSCRIÇÃO */
.modal-circunscricao-card {
  max-width: 680px;
  text-align: left;
}

.modal-header-circunscricao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pf-dark-border);
  padding-bottom: 14px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pf-dark-border);
  color: var(--pf-text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--pf-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.cidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 10px;
}

.cidades-grid::-webkit-scrollbar {
  width: 6px;
}

.cidades-grid::-webkit-scrollbar-thumb {
  background: var(--pf-dark-border);
  border-radius: 4px;
}

.cidade-badge {
  background: rgba(12, 17, 24, 0.9);
  border: 1px solid var(--pf-dark-border);
  border-radius: var(--pf-radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  color: var(--pf-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cidade-badge i {
  color: var(--pf-gold);
  font-size: 0.75rem;
}

.cidade-badge.destaque {
  border-color: var(--pf-gold);
  background: rgba(245, 158, 11, 0.15);
  font-weight: 700;
  color: #ffffff;
}

.cidade-badge.destaque i {
  color: var(--pf-gold-light);
}

/* ==============================================================================
   6. DROPZONE DE UPLOAD COM IA AUDIT
   ============================================================================== */
.dropzone-container {
  border: 2px dashed rgba(245, 158, 11, 0.45);
  background: rgba(12, 17, 24, 0.7);
  border-radius: var(--pf-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone-container:hover,
.dropzone-container.dragover {
  border-color: var(--pf-gold);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-icon {
  font-size: 2.8rem;
  color: var(--pf-gold);
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.dropzone-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.dropzone-subtext {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
}

/* PREVIEW DO ARQUIVO ANEXADO */
.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid var(--pf-dark-border-gold);
  border-radius: var(--pf-radius-sm);
  padding: 12px 18px;
  width: 100%;
}

.preview-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-icon {
  font-size: 1.75rem;
  color: var(--pf-gold);
}

.file-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.file-size {
  font-size: 0.78rem;
  color: var(--pf-text-muted);
}

.btn-remove-file {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  width: 34px;
  height: 34px;
  border-radius: var(--pf-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-file:hover {
  background: #ef4444;
  color: #ffffff;
}

/* BARRA DE STATUS COMPACTA DO COMPROVANTE */
.compact-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--pf-radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.compact-status-bar.status-approved {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.compact-status-bar.status-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.compact-status-bar.status-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.compact-status-bar i {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.compact-status-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compact-status-title {
  font-weight: 600;
  line-height: 1.3;
}

.compact-status-desc {
  font-size: 0.8rem;
  color: var(--pf-text-secondary);
}

/* ==============================================================================
   7. TERMOS E BOTÕES DE AÇÃO
   ============================================================================== */
.terms-container {
  background: rgba(12, 17, 24, 0.6);
  border: 1px solid var(--pf-dark-border);
  border-radius: var(--pf-radius-sm);
  padding: 14px 18px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--pf-text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.custom-checkbox input {
  margin-top: 3px;
  accent-color: var(--pf-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--pf-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pf-gold), var(--pf-gold-dark));
  color: #0b0f15;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pf-gold-light), var(--pf-gold));
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pf-dark-border);
  color: var(--pf-text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==============================================================================
   8. RODAPÉ INSTITUCIONAL COM INDICADORES CENTRALIZADOS
   ============================================================================== */
.pf-footer {
  background-color: #080c11;
  border-top: 1px solid var(--pf-dark-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  width: min(calc(100% - 2.5rem), var(--pf-container-max-width));
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* CENTRALIZAÇÃO PERFEITA DOS 3 ÍCONES DO RODAPÉ */
.footer-indicators-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 4.5rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-indicator-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-indicator-icon {
  font-size: 1.75rem;
  color: var(--pf-gold);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.3));
}

.footer-indicator-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-indicator-sub {
  font-size: 0.74rem;
  color: var(--pf-text-muted);
}

.footer-bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--pf-text-muted);
}

.footer-bottom-info strong {
  color: var(--pf-gold-light);
}

/* ==============================================================================
   9. MODAIS DE TRANSMISSÃO E SUCESSO
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-card {
  background: var(--pf-dark-card);
  border: 1px solid var(--pf-dark-border-gold);
  border-radius: var(--pf-radius-lg);
  padding: 2.5rem 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--pf-shadow-gold);
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(245, 158, 11, 0.15);
  border-top-color: var(--pf-gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon-success {
  font-size: 3.5rem;
  color: var(--pf-success);
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.4));
}

.protocol-box {
  background: rgba(12, 17, 24, 0.95);
  border: 1px solid var(--pf-dark-border-gold);
  border-radius: var(--pf-radius);
  padding: 16px;
  margin: 1.5rem 0;
}

.protocol-box span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.protocol-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--pf-gold-light);
  font-family: monospace;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ==============================================================================
   9.5 AUTOCOMPLETE / COMBOBOX PESQUISÁVEL DE MUNICÍPIO (DESKTOP E MOBILE)
   ============================================================================== */
.cidade-combobox-wrapper {
  position: relative;
  width: 100%;
}

.cidade-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cidade-search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.cidade-input-box input[type="text"] {
  padding-left: 38px;
  padding-right: 74px;
  cursor: text;
}

.cidade-input-box input[type="text"]:focus ~ .cidade-search-icon,
.cidade-combobox-wrapper:focus-within .cidade-search-icon {
  color: var(--pf-gold);
}

.cidade-actions-box {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.btn-clear-cidade,
.btn-dropdown-arrow {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-clear-cidade:hover {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.12);
}

.btn-dropdown-arrow:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.cidade-combobox-wrapper.is-open .btn-dropdown-arrow i {
  transform: rotate(180deg);
}

.btn-dropdown-arrow i {
  transition: transform 0.2s ease;
}

/* Dropdown flutuante de cidades */
.cidade-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 280px;
  background-color: #0f172a;
  border: 1.5px solid var(--pf-gold);
  border-radius: var(--pf-radius-sm);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(217, 119, 6, 0.2);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cidadeFadeInDown 0.16s ease-out;
}

@keyframes cidadeFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cidade-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  user-select: none;
}

.cidade-dropdown-header #contadorCidadesUf {
  color: #f1f5f9;
  font-weight: 600;
}

.cidade-dropdown-tip {
  color: #64748b;
  font-size: 0.7rem;
}

.cidade-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 230px;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

.cidade-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.cidade-dropdown-list::-webkit-scrollbar-track {
  background: #0f172a;
}
.cidade-dropdown-list::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.cidade-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #e2e8f0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 42px;
  user-select: none;
}

.cidade-dropdown-item:last-child {
  border-bottom: none;
}

.cidade-dropdown-item:hover,
.cidade-dropdown-item.is-highlighted {
  background-color: #1e293b;
  color: #ffffff;
}

.cidade-dropdown-item.is-selected {
  background-color: rgba(217, 119, 6, 0.16);
  color: var(--pf-gold);
  font-weight: 600;
}

.cidade-dropdown-item .cidade-match-text {
  color: var(--pf-gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cidade-item-check {
  font-size: 0.85rem;
  color: var(--pf-gold);
  margin-left: 8px;
}

.cidade-empty-state {
  padding: 16px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.4;
  user-select: none;
}

.cidade-empty-state i {
  display: block;
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 6px;
}

/* Oculta select nativo de forma acessível */
.cidade-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==============================================================================
   10. RESPONSIVIDADE (MOBILE FIRST / CELULAR)
   ============================================================================== */
@media (max-width: 768px) {
  .header-container,
  .main-container,
  .footer-container {
    width: min(calc(100% - 1.5rem), var(--pf-container-max-width));
  }

  /* 1. CABEÇALHO HARMONIOSO PARA CELULAR */
  .pf-header {
    padding: 0.65rem 0;
  }
  
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .pf-brand {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 12px;
  }

  .pf-header-logo {
    height: 44px;
  }

  .brand-sup {
    font-size: 1.05rem;
    letter-spacing: 1px;
    line-height: 1.2;
  }

  .brand-sub {
    font-size: 0.72rem;
    line-height: 1.25;
    max-width: 260px;
  }

  .header-contact {
    font-size: 0.76rem;
    padding: 4px 12px;
    gap: 6px;
  }

  /* 2. HERO BANNER */
  .hero-layout {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.2rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .hero-title-white { font-size: 1.6rem; }
  .hero-title-gold { font-size: 1.9rem; }
  .hero-brasao-large { max-height: 130px; }
  
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 12;
  }
  
  .form-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 10px;
  }
  .btn { width: 100%; }

  /* 3. RODAPÉ E ÍCONES CENTRALIZADOS */
  .pf-footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-indicators-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .footer-indicator-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    width: 100%;
    max-width: 320px;
  }

  .footer-indicator-icon {
    font-size: 1.9rem;
    margin-bottom: 2px;
  }

  .footer-indicator-label {
    font-size: 0.84rem;
    letter-spacing: 0.5px;
  }

  .footer-indicator-sub {
    font-size: 0.74rem;
  }

  .footer-bottom-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* 4. AJUSTES MOBILE PARA BUSCA E AUTOCOMPLETE DE MUNICÍPIO */
  .cidade-dropdown-menu {
    max-height: 300px;
  }
  .cidade-dropdown-list {
    max-height: 250px;
  }
  .cidade-dropdown-item {
    min-height: 48px; /* Alvo de toque ideal para o polegar em smartphones */
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .btn-clear-cidade,
  .btn-dropdown-arrow {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}
