/* ============================
   MODAL PSS – ESTILO OFICIAL
   ============================ */

/* Animação de entrada */
@keyframes modalFadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Estrutura geral da modal */
.modal-pss .modal-content {
  border-radius: 18px;
  border: 0;
  overflow: hidden;
  animation: modalFadeUp .35s ease-out;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  background: #fff;
}

/* Header */
.modal-pss .modal-header {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  padding: 1.2rem 1.5rem;
  border-bottom: none;
}

.modal-pss .modal-title {
  font-weight: 700;
  color: #fff;
}

.modal-pss .btn-close {
  filter: invert(1);
  opacity: .9;
}

/* Corpo */
.modal-pss .modal-body {
  background: #f8fafc;
}

/* Card interno */
.pss-body-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Títulos de seção */
.pss-body-card h6 {
  color: #1e40af;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* Labels */
.pss-body-card .form-label {
  font-weight: 600;
  font-size: .92rem;
  color: #374151;
}

/* Inputs */
.pss-body-card .form-control,
.pss-body-card .form-select {
  border-radius: 10px;
  padding: .6rem .75rem;
  border: 1px solid #d1d5db;
  transition: border-color .2s, box-shadow .2s;
}

.pss-body-card .form-control:focus,
.pss-body-card .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 .15rem rgba(37,99,235,.2);
}

/* Check */
.pss-body-card .form-check-label {
  font-size: .92rem;
  color: #374151;
}

/* Botão enviar */
.pss-body-card button[type="submit"] {
  border-radius: 12px;
  font-weight: 700;
  padding: .6rem 1.5rem;
}

/* Scroll interno elegante */
.modal-dialog-scrollable .modal-body {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-pss .modal-dialog {
    margin: .75rem;
  }

  .pss-body-card {
    padding: 1.2rem;
  }
}
