﻿.hub-closed {
  display: none !important;
}

/* Modal background - covers the whole screen */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(98, 0, 32, 0.7); /* Dark overlay */
  z-index: 1000; /* Make sure the modal is the top-most element */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Ensure the modal takes focus */
.modal:focus {
  outline: none;
}

/* Button to open the form 
#openModalBtn {
  background-color: #007bff; 
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

#openModalBtn:hover {
  background-color: #0056b3; 
  }
*/

/* Modal background */
.modal {
  /*display: none;*/
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(98, 0, 32, 0.1);
  overflow: hidden; /* Disable scrolling on the body when modal is open */
}

/* Modal content styling */
.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 95%;
  max-height: 80vh; /* Constrain modal height */
  overflow-y: auto; /* Enable vertical scrolling within the modal content */
  animation: fadeIn 0.4s ease-in-out;
}




/* Fade-in animation for the modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button styling */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

  .close-btn:hover {
    color: #000;
  }

/* Form title */
.modal-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* Form labels */
.modal-content label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}

/* Form inputs */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content select,
.modal-content input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Optional fields container */
#optionalFields {
  margin-top: 20px;
}

/* Toggle optional fields button */
#toggleAddress {
  background-color: #ffffff; /* Standard blue for secondary actions */
  color: black;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

/* Submit button styling */
.modal-content button[type="submit"] {
  background-color: rgb(51, 122, 183);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

  .modal-content button[type="submit"]:hover {
    background-color: #218838; /* Darker green on hover */
  }

/* Close message button */
#closeModalBtn {
  background-color: #dc3545; /* Red for closing */
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

  #closeModalBtn:hover {
    background-color: #c82333;
  }

/* Success/Error message styling */
#message p {
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}



* Style for the select dropdown to match input */
select {
  width: 100%; /* Full-width */
  padding: 10px; /* Padding for uniformity with inputs */
  font-size: 16px; /* Font size for readability */
  border: 2px solid #007bff; /* Same border as input with primary color */
  border-radius: 5px; /* Rounded corners */
  background-color: #ffffff; /* White background */
  color: #333; /* Dark text color */
  box-shadow: none; /* Remove any default shadow */
  transition: border-color 0.3s ease-in-out; /* Smooth transition for focus */
  outline: none; /* Remove default outline */
}

/* Style on focus (same as input) */
select:focus {
  border-color: #0056b3; /* Darker blue on focus */
}

/* Disabled select style */
select:disabled {
  background-color: #e9ecef; /* Light gray background */
  cursor: not-allowed; /* Change cursor to not-allowed */
}

/* Option styling (not all browsers allow customizing) */
option {
  background-color: #fff; /* White background */
  color: #333; /* Dark text color */
  padding: 10px; /* Padding for readability */
}
/* Ensure modal content scrolls while background does not */
body.modal-open {
  overflow: hidden; /* Disable background scroll */
}

/* Mobile friendly adjustments */

@media (max-width: 768px) {
  .modal {
    width: 95%; /* Almost full width on smaller screens */
    max-height: 90%; /* Ensure it doesn't take full screen */
    padding: 15px;
  }
}


@media (min-width: 769px) {

  /* Ensure modal's content can scroll if needed */
  .modal-content {
    max-width: 600px;
    padding: 20px;
  }
}

/* Styling the close button */
.modal-close {
  /*position: absolute;*/
  position: sticky;
  margin-left: 20px;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: maroon;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

  /* Hover effect to make the X pop */
  .modal-close:hover {
    color: #ffd200;
    transform: scale(1.2); /* Slight zoom-in effect */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Shadow for pop-up effect */
    background-color: #333; /* Darker shade on hover */
  }

  /* Accessibility for focus */
  .modal-close:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Glow when focused */
  }

  /* Add some padding for the X */
  .modal-close::before {
    content: '✕'; /* X symbol */
    position: relative;
    top: -1px;
  }

.modal-hidden {
  opacity: 0; /* Hidden state */
}