/* Style for the popup background */
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

/* Popup content */
.popup-content {
  background-color: #fefefe;
  margin: auto; /* Centered */
  padding: 20px;
  border: 1px solid #888;
  width: 40%; /* Could be more or less, depending on screen size */
  position: absolute; /* Absolute positioning within the fixed popup */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Offset to ensure centering */
}

/* Close button */
.close {
  position: absolute;
  top: 8px; /* Position it inside the image */
  right: 10px; /* Position it inside the image */
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.form-style {
  margin-bottom: 10px;
}

/* Style the select box */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 0.75rem center;
  background-color: white;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 16px;
  font-family: Arial, sans-serif;
  width: 100%;
  max-width: 300px; /* Adjust as needed */
}

/* Add padding to prevent text from overlapping the arrow */
select option {
  padding-right: 1.5rem;
}

@media (min-width: 541px) and (max-width: 991px) {
  .popup-content {
    width: 60%;
    top: 50%;
  }
}

@media (max-width: 540px) {
  .popup-content {
    width: 80%;
    top: 50%;
  }
}
