/* --- Overlay --- */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 8px;
}

/* --- Popup Box --- */
.popup-content-wide {
  background: #fff;
  border-radius: 12px;
  padding: 15px 18px;
  width: 92%;
  max-width: 750px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease-in-out;
}

/* --- Layout --- */
.popup-inner {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.popup-left, .popup-right {
  flex: 1;
  min-width: 250px;
}

/* --- Right Side QR Image --- */
.popup-right img.qr-image-large {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  margin: 8px auto;
}

/* --- Close Button --- */
.popup-close {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 20px;
  color: #fff;
  background: #ff4d4d;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  transition: 0.3s;
  z-index: 100;
}

.popup-close:hover {
  background: #d9534f;
}

/* --- Floating Button --- */
.route-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1049;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* --- Text Adjustments --- */
.popup-left h5,
.popup-right h5 {
  font-size: 16px;
  margin-bottom: 10px;
}

.popup-left p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* --- Form Inputs --- */
.popup-left form .form-control {
  font-size: 13px;
  padding: 8px 8px;
  border-radius: 5px;
}

.popup-left form .mb-3 {
  margin-bottom: 8px;
}

.popup-left .btn {
  font-size: 13px;
  padding: 6px 14px;
}
.route-btn {
  position: fixed;
  bottom: 100px;   /* increased space from bottom */
  right: 20px;
  z-index: 1049;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  background-color: #00c97b !important; /* match green style */
  border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .popup-content-wide {
    width: 95%;
    padding: 12px;
  }
  .popup-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .popup-left, .popup-right {
    width: 100%;
  }
  .popup-right img.qr-image-large {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .popup-content-wide {
    width: 96%;
    padding: 10px;
  }
  .popup-close {
    top: 4px;
    right: 4px;
    font-size: 18px;
    width: 22px;
    height: 22px;
    line-height: 20px;
  }
  .popup-left h5,
  .popup-right h5 {
    font-size: 15px;
  }
  .popup-left p {
    font-size: 12px;
  }
  .popup-right img.qr-image-large {
    max-width: 180px;
  }
}

/* --- Animation --- */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}
