/* =======================
   Wedding Search Form
========================== */
#wedding-search-form {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
}

#wedding-search-form .form-group {
  display: flex;
  flex-direction: column;
  flex:1;
  min-width:190px;
}

/* Inputs and Select Boxes */
#wedding-search-form select,
#wedding-search-form input[type="text"],
#wedding-search-form input[type="number"],
#wedding-search-form input[type="date"] {
  flex: 1;
  min-width: 190px;
  padding: 16px;
  border: 1px solid #ddd;
  border: 1px solid #ad8400 !important;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  appearance: none;
  border-radius: 4px;
  position: relative;
}

/* Background Icons for Selects and Date Inputs */
#wedding-search-form input[name="destination"] {
  background-image: url('https://img.icons8.com/?size=100&id=85353&format=png&color=ad8400');
}

#wedding-search-form input[name="rooms"] {
  background-image: url('https://img.icons8.com/?size=100&id=nDPYKSLarmGI&format=png&color=ad8400');
}

#wedding-search-form input[name="start_date"],
#wedding-search-form input[name="end_date"] {
  background-image: url('https://img.icons8.com/?size=100&id=GlEOr5x0aJpH&format=png&color=ad8400');
}

/* Make full input clickable for calendar */
#wedding-search-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Submit Button Style */
#wedding-search-form button[type="submit"] {
  background-color: #ad8400;
  color: white;
  padding: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wedding-search-form button[type="submit"]::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* =======================
   Popup Form
========================== */
#popup-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: white;
  padding: 30px 25px;
  border-radius: 10px;
  z-index: 1001;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  display: none;
}

/* Close Button */
#popup-form .popup-close {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 25px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

#popup-form .popup-close:hover {
  color: #000;
}

/* Form Inside Popup */
#popup-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  font-size: 14px;
  border: 1px solid #c29317;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
}

#popup-form button[type="submit"] {
  background-color: #ad8400;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

#popup-form button[type="submit"]:hover {
  background-color: #fff;
  color: #ad8400;
  border: 1px solid #ad8400;
}

/* Thank You Message */
#thank-you-message {
  display: none;
  font-size: 16px;
  color: #28a745;
  margin-top: 10px;
}

/* =======================
   Overlay
========================== */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
}

/* Prevent Scrolling When Popup Open */
body.modal-open {
  overflow: hidden;
}

/* Remove number input arrows (spinners) */
#wedding-search-form input[type="number"]::-webkit-outer-spin-button,
#wedding-search-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#wedding-search-form input[type="number"] {
  -moz-appearance: textfield;
}


/* =======================
   Responsive
========================== */
@media (max-width: 600px) {
  #wedding-search-form {
    flex-direction: row;
    gap: 10px;
  }
  .form-group button[type="submit"]{
      align-self: center;
  }
}
