/* The Modal */
.modal1 {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Ensures it's on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* Modal Content */
.modal-content1 {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(50px); /* For smooth animation */
  animation: modalOpen 0.3s ease-out forwards;
}

/* Modal Open Animation */
@keyframes modalOpen {
  0% {
      transform: translateY(50px);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Close Button */
.close1 {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #000000;
  font-size: 24px;
  font-weight: bold;
  z-index: 1100; /* Ensure it’s on top of other elements */
  transition: color 0.3s ease, transform 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* Optional for a circular button */
  background-color: rgba(255, 255, 255, 0.8); /* Highlight on mobile */
  cursor: pointer;
}

.close1:hover,
.close1:focus {
  color: #060606;
  transform: scale(1.1); /* Slight zoom effect */
}

/* Form Elements */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* Submit Button */
button[type="submit"] {
  background-color: #aa9c71;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #b9957a;
  transform: translateY(-2px);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .modal-content1 {
      width: 90%;
      padding: 20px;
  }

  .close1 {
      top: 10px; /* Adjusted position for smaller screens */
      right: 10px;
  }
}
