/* =========================
   MODAL PSS
========================= */

.modal-pss .modal-content {
  border-radius: 16px;
  border: none;
  background: #f8fafc;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

/* Header */
.pss-header {
  background: linear-gradient(90deg, #0d6efd, #1e88e5);
  color: #fff;
  padding: 18px 22px;
  border-radius: 16px 16px 0 0;
}

.pss-logo {
  width: 54px;
}

.pss-header h5 {
  font-size: 1.25rem;
  font-weight: 700;
}

.pss-header small {
  font-size: .85rem;
}

/* Corpo */
.pss-body-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}


/* =========================
   SEÇÃO PSS
========================= */

.pss-section {
  padding-top: 28px;
  padding-bottom: 64px;
}

.pss-section > .container > :first-child {
  margin-top: 0 !important;
}


/* =========================
   CARD PSS — MODELO INSTITUCIONAL PREMIUM
========================= */

.pss-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 56px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,.10),
    0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Faixa institucional lateral */
.pss-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 6px;
  background: linear-gradient(
    to bottom,
    #1d4ed8,
    #facc15
  );
  border-radius: 6px;
}

/* Linha institucional lateral (mais elegante) */
.pss-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(
    to bottom,
    #2563eb,
    #facc15
  );
}

/* Hover institucional (sem exagero) */
.pss-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 42px 90px rgba(0,0,0,.12),
    0 12px 26px rgba(0,0,0,.08);
}

/* Badge superior */
.pss-card .badge {
  background: #facc15;
  color: #1f2937;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Título principal */
.pss-card h4 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

/* Texto */
.pss-card p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  max-width: 95%;
}

/* Lista de benefícios */
.pss-card ul {
  margin-top: 24px;
}

.pss-card ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: #334155;
}

.pss-card ul li i {
  color: #facc15;
  font-size: 1rem;
}

/* Área de botões (base do card) */
.pss-card .d-grid {
  margin-top: 32px;
}

/* Botão principal */
.pss-card .btn-light {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  padding: 14px 26px;
  box-shadow: 0 10px 26px rgba(37,99,235,.35);
}

.pss-card .btn-light:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Botões secundários */
.pss-card .btn-outline-light {
  border-radius: 12px;
  font-weight: 600;
}

.pss-card .btn-outline-warning {
  border-radius: 14px;
  font-weight: 700;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .pss-card {
    padding: 36px 28px;
  }

  .pss-card h4 {
    font-size: 1.55rem;
  }
}




.pss-status {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: .9rem;
  color: #334155;
}

.pss-status strong {
  color: #0f172a;
}




.pss-card .btn-light {
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #fff;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 28px;
  box-shadow: 0 14px 30px rgba(37,99,235,.4);
}




.pss-card .btn-outline-light {
  border: 1px solid #cbd5f5;
  color: #1e40af;
  background: #f8fafc;
}

.pss-card .btn-outline-light:hover {
  background: #eef2ff;
}




.pss-status span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}




.pss-status span strong {
  font-weight: 700;
  color: #0f172a;
}



.pss-status span strong {
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1e293b;
}


.pss-status i {
  color: #2563eb;
  font-size: .9rem;
}





@media (max-width: 768px) {
  .pss-status {
    flex-direction: column;
    gap: 10px;
  }
}


  .pss-status {
    flex-direction: column;
    gap: 10px;
  }



  .pss-body-card h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
}

.pss-body-card small {
  font-size: .78rem;
  color: #64748b;
}

.pss-body-card input[type="file"] {
  background: #f8fafc;
  border-style: dashed;
}



/* Mantém modal principal ativa */
.modal-info {
  z-index: 1065; /* acima da modal principal */
}

/* Evita scroll quebrado */
body.modal-open {
  overflow: hidden;
}


/* ===============================
   MODAL INFORMATIVA (INTERNA)
=============================== */

/* Modal informativa acima da principal */
.modal-no-backdrop {
  z-index: 1065;
}

/* Remove backdrop APENAS da modal interna */
.modal-no-backdrop + .modal-backdrop {
  display: none !important;
}

/* Garante que o formulário continue clicável */
.modal-pss {
  pointer-events: auto;
}

/* Mantém scroll correto */
body.modal-open {
  overflow: hidden;
}



/* Accordion informativo do edital */
.alert-info {
  background: #eff6ff;
  color: #1e3a8a;
  font-size: .9rem;
}

.alert-info ul {
  padding-left: 18px;
}

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

.btn-link {
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}
