/* Popup background overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Popup container */
  .popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
  }

  /* Fade-in animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -60%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  /* Close button */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
  }
  .popup-close:hover {
    color: #ff4d4d;
  }

  /* Popup heading and text */
  .popup-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
  }

  .popup-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
  }

  /* Email input and button */
  .popup-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
  }

  .popup-form button {
    width: 100%;
    padding: 10px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  .popup-form button:hover {
    background: #45a049;
  }

  /* Success message */
  .popup-success {
    display: none;
    font-size: 1rem;
    color: #4caf50;
    margin-top: 10px;
  }