/* === MODAL GERAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal.show {
  display: block;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1rem auto;
  max-width: 800px;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
}
.modal.show .modal-dialog {
  transform: translate(0, 0);
  pointer-events: auto;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 1.25rem;
  outline: 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0;
}

/* === ESPAÇAMENTO === */
.modal-header,
.modal-body,
.modal-footer {
  padding: 1.25rem;
}
.modal-footer {
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

/* === TÍTULO === */
.modal-title {
  font-weight: bold;
  font-size: 1.25rem;
}

/* === BOTÃO DE FECHAR (X) === */
.btn-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 16 16'%3e%3cpath d='M2.146 2.146a.5.5 0 0 1 .708 0L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
  border: none;
  opacity: 1;
  cursor: pointer;
}
.btn-close:hover {
  opacity: 0.8;
}

.btn-close:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}
.btn-close:disabled {
  pointer-events: none;
  opacity: 0.25;
}


/* === BACKDROP === */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal-backdrop.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}
.modal-backdrop.show {
  opacity: 0.5;
}

/* === BOTÕES === */
.modal-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
}
.modal-header .btn-close:hover {
  opacity: 0.75;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 2rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  font-weight: bold;
  border-radius: 2rem;
  padding: 0.5rem 2rem;
  border: none;
}
.btn-secondary:hover {
  background-color: #5c636a;
}
.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* === TRANSIÇÃO === */
.fade {
  transition: opacity 0.15s linear;
}
.fade:not(.show) {
  opacity: 0;
}
.custom-modal {
  border-radius: 1.5rem;
  background-color: #f8f9fa;
  padding: 0;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-header {
  border-bottom: 1px solid #ddd;
  position: relative;
}

.modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}




