.modal {
  display: none; /* ✅ This keeps it hidden until triggered */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}
.modal-content {
  background-color: #fff;
  color: #222;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: inherit;
}

.modal-content input,
.modal-content textarea {
  width: 90%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f9f9f9;
  color: #222;
}

.modal-content textarea {
  height: 120x; /* ✅ Enlarged message box */
  resize: vertical;
}

.modal-content button {
  padding: 12px 20px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
 .modal-content {
    background-color: #1e1e1e;
    color: #f0f0f0;
    box-shadow: 0 8px 24px rgba(255,255,255,0.1);
  }

  .modal-content input,
  .modal-content textarea {
    background-color: #2a2a2a;
    color: #f0f0f0;
    border: 1px solid #444;
  }

  .modal-content button {
    background-color: #666;
    color: #fff;
  }

  .close {
    color: #ccc;
  }
}
