
.my-modal-form {
    width: 640px !important;
    max-width: 640px !important;
}

/* Modal overlay */
.ui-widget-overlay {
    background-color: #000000; 
    opacity: 0.8;
  }
  
  #popup-form .btn-container {
    text-align: center;
  }

  #popup-form .btn-validate {
    color: #fff;
    background-color: #388b5d;
    border-color: #388b5d;
  }


  #popup-form .btn-validate:hover {
    color: #fff;
    background-color: #107d3f;
    border-color: #388b5d;
  }
  
  /* Main modal container */
  .my-modal-form .ui-dialog.ui-front[data-dialog-type="modal"] {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    border: 1px solid #ddd;
    max-width: 600px; /* Adjust width */
    margin: 0 auto;
    top: 10%; /* Center vertically */
    transform: translateY(0);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  /* Title bar */
  .my-modal-form .ui-dialog-titlebar {
    background-color: #388b5d;
    color: #ffffff;
    padding: 15px;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  /* Close button */
  .my-modal-form .ui-dialog-titlebar-close {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
  }
  
  .my-modal-form .ui-dialog-titlebar-close:hover {
    opacity: 1;
    color: #ffd700;
  }
  
  /* Modal content */
  .my-modal-form .ui-dialog-content {
    padding: 20px;
    font-size: 1rem;
    color: #349968;
    background: #f8f9fa; /* Light Bootstrap background */
  }
  
  /* Buttons pane */
  .my-modal-form .ui-dialog-buttonpane {
    padding: 10px 20px;
    background: #ffffff;
    border-top: 1px solid #ddd;
  }
  
  /* Button styling (Bootstrap-like) */
  .my-modal-form .ui-dialog-buttonpane .ui-button {
    background: #ff6f61;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
  }
  
  .my-modal-form .ui-dialog-buttonpane .ui-button:hover {
    background: #e55a50;
  }
  
  /* Animation for modal entrance */
  @keyframes fadeIn {
    from {
      opacity: 1;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 640px) {
    .my-modal-form {
        width: 80% !important;
        max-width: 80% !important;
    }
  }