.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* Adjusted for better vertical centering */
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Use percentage for responsiveness */
  max-width: 450px; /* Maximum width from your original CSS */
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 575px) {
  .modal-content {
    margin: 5% auto; /* Less top margin on small screens */
    width: 95%; /* Slightly wider on very small screens */
    padding: 15px;
  }
}

/* Additional styles for form elements */
.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.main-btn {
  width: 100%;
  background: linear-gradient(to right,#fe8464 0%, #fe6e9a 50%, #fe8464 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.header-hero .main-btn{
  width: 60%;
}

.main-btn:hover {
  background-color: #0056b3;
}
