.enquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 50;
  overflow-y: auto;
  display: none;
  place-items: center;
  padding: 20px;
}

.enquiry-overlay .popup {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem 3rem;
  border-radius: 5px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  overflow: visible;
}

.enquiry-overlay .popup .closeButton {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #555;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
  font-weight: 600;
  line-height: 1;
}

.enquiry-overlay .popup .closeButton:hover {
  color: #0071bc;
}

.enquiry-overlay .popup h2 {
  margin-bottom: 1.75rem;
  font-weight: 700 !important;
  font-size: 25px;
  color: #003d66;
  text-align: center;
  letter-spacing: 0.02em;
}

.enquiry-overlay .popup form .input {
  width: 100%;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  border: 1.8px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 1px 1px 6px #f7f7f7;
  outline: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  min-height: 40px;
}

.enquiry-overlay .popup form .input:focus {
  border-color: #0071bc;
  box-shadow: 0 0 8px #66aaff88;
  background-color: #fff;
}

.enquiry-overlay .popup form textarea.input {
  min-height: 100px;
  font-family: inherit;
}

.enquiry-overlay .popup form .error {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 2px #f4cccc88;
}

.enquiry-overlay .popup form .button {
  width: 100%;
  background: linear-gradient(135deg, #005f99 0%, #0071bc 100%);
  color: white;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 6px 12px rgba(0, 113, 188, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.enquiry-overlay .popup form .button:hover {
  background: linear-gradient(135deg, #0071bc 0%, #005f99 100%);
  box-shadow: 0 8px 16px rgba(0, 113, 188, 0.85);
}

.enquiry-overlay .popup form .button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 113, 188, 0.5);
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 768px) and (min-width: 360px) {
  .enquiry-overlay .popup {
    padding: 30px 15px;
  }
}
