/* Modal overlay */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  font-family: 'Arial', sans-serif;
}

/* Dark semi-transparent overlay */
.custom-modal-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Modal box */
.custom-modal-content {
  position: relative;
  background: #fff;
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s ease-in-out;
  z-index: 10;
}

/* Close button */
.custom-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

/* Table styling */
.custom-modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.custom-modal-content table th,
.custom-modal-content table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.custom-modal-content table th {
  background: #f4f4f4;
}

/* Animation */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trigger styling */
.custom-modal-trigger {
    display: inline-block;
    padding: 12px 10px;
    background: #0056b3;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    margin: 0 12px 12px 0px;
    border-radius: 100px;
    /* text-transform: uppercase; */
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s;
}

/* .custom-modal-trigger:hover {
  background: #005bb5;
} */

/* Marquee */
.pfm-running-text {
  overflow: hidden; 
  white-space: nowrap; 
  margin-bottom: 10px;
}

.pfm-running-text div,
.pfm-category-marquee div {
  display: inline-block;
  animation: pfm-marquee 15s linear infinite;
  padding-left: 100%;
}

@keyframes pfm-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Loan range */
.loan-range-wrapper { margin-bottom: 20px; }

@media (max-width: 767px) {
  /* Styles for mobile phones */
  .custom-modal-content {
    width: 90%;
    padding: 15px;
    font-size: 14px;
  }

  .custom-modal table {
    font-size: 12px;
  }

  .custom-modal h2 {
    font-size: 18px;
  }
}