/* ouvidoria.css — Estilos institucionais da Ouvidoria & e-SIC sobre os tokens do DETCREDE */

/* Modal Backdrop & Container com z-index seguro */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1050 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}
.modal-overlay[hidden] {
  display: none !important;
}

.saas-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  color: var(--text);
  position: relative;
  z-index: 1051;
}

/* Hero Section */
.ouv-hero {
  background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 75%);
  padding: 48px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ouv-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px 0;
  color: var(--text);
}
.ouv-hero-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* Caixa de Consulta de Protocolo */
.ouv-search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}
.ouv-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.ouv-search-box input::placeholder {
  color: var(--text-3);
}

/* Container do Conteúdo */
.ouv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* Grade de Cards das 6 Manifestações */
.ouv-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.ouv-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.ouv-type-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong, var(--accent));
  box-shadow: var(--shadow);
}
.ouv-type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
}
.ouv-type-card.denuncia::before { background: #a855f7; }
.ouv-type-card.reclamacao::before { background: var(--risk); }
.ouv-type-card.elogio::before { background: var(--ok); }
.ouv-type-card.sugestao::before { background: var(--warn); }
.ouv-type-card.solicitacao::before { background: var(--accent); }
.ouv-type-card.sic::before { background: #f97316; }

.ouv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.denuncia .ouv-card-icon { background: color-mix(in srgb, #a855f7 16%, var(--surface)); color: #a855f7; }
.reclamacao .ouv-card-icon { background: var(--risk-soft); color: var(--risk); }
.elogio .ouv-card-icon { background: var(--ok-soft); color: var(--ok); }
.sugestao .ouv-card-icon { background: var(--warn-soft); color: var(--warn); }
.solicitacao .ouv-card-icon { background: var(--accent-soft); color: var(--accent); }
.sic .ouv-card-icon { background: color-mix(in srgb, #f97316 16%, var(--surface)); color: #f97316; }

.ouv-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ouv-card-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.ouv-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Card de Consulta e Timeline */
.saas-card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.active { background: var(--ok-soft); color: var(--ok); }
.status-pill.grace { background: var(--warn-soft); color: var(--warn); }
.status-pill.expired { background: var(--risk-soft); color: var(--risk); }

.saas-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.ouv-timeline {
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}
.ouv-timeline::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px; left: 8px;
  width: 2px;
  background: var(--border);
}
.ouv-timeline-step {
  position: relative;
  margin-bottom: 20px;
}
.ouv-timeline-bullet {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}

.star-rating {
  display: flex;
  gap: 8px;
  font-size: 24px;
  cursor: pointer;
}
.star-rating span.active { color: #facc15; }
.star-rating span { color: var(--text-3); transition: color 0.15s; }
