/* Basic Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* 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 */
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 600px; /* Max width for larger screens */
  border-radius: 8px;
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-summary p {
  margin-bottom: 5px;
}

.modal-summary strong {
  display: inline-block;
  width: 100px; /* Align labels */
}

.confirmation-form .form-group {
  margin-bottom: 15px;
}

.confirmation-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.confirmation-form input[type="text"],
.confirmation-form input[type="email"] {
  width: calc(100% - 22px); /* Adjust for padding and border */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Optional: Improve styling for the main form elements if needed */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Guest Popup specific styles */
#guest-popup {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 250px;
  /* Adjust positioning as needed */
  top: 100%; /* Position below the guests input */
  left: 0;
}

.form-group-guests-wrapper {
  position: relative; /* Needed for positioning the guest popup */
}

#guest-popup .counter-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#guest-popup .counter-group label {
  flex: 1;
  margin-bottom: 0; /* Override default label margin */
}

#guest-popup .counter-group button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
  margin: 0 10px;
}

#guest-popup .toggle-group {
  margin-top: 20px;
}

#guest-popup .toggle-group label {
  display: inline-block;
  margin-right: 10px;
}

#guest-popup .done-btn {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}