/* Overlay */
#cf7PopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Popup box */
.cf7PopupBox {
  background: #fff;
  width: 720px;
  max-width: 92%;
  height: 80vh;
  max-height: 80vh;
  display: flex;
  /* border-radius: 14px; */
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: popupScale 0.35s ease;
  position: relative;
}


/* Image section */
.cf7PopupImage {
  width: 45%;
  height: 100%;
}

.cf7PopupImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Form section */
.cf7PopupForm {
  width: 55%;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ===== Scrollbar (optional, modern look) ===== */
.cf7PopupForm::-webkit-scrollbar {
  width: 6px;
}
.cf7PopupForm::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.cf7PopupForm h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
}

.cf7PopupForm p {
  margin-bottom: 18px;
  color: #666;
  font-size: 14px;
}

/* CF7 inputs */
.cf7PopupForm input[type="text"],
.cf7PopupForm input[type="email"],
.cf7PopupForm input[type="tel"],
.cf7PopupForm textarea {
  width: 100%;
  /* padding: 11px 14px; */
  /* margin-bottom: 12px; */
  border-radius: 8px;
  border: 1px solid #ddd;
  /* font-size: 14px; */
}

.cf7PopupForm textarea {
  resize: none;
  min-height: 90px;
}

/* Submit button */
.cf7PopupForm input[type="submit"] {
  background: #1e73be;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cf7PopupForm input[type="submit"]:hover {
  background: #155a96;
}

/* Close button */
.cf7PopupClose {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
  color: #ff0000;
}

/* Animation */
@keyframes popupScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cf7PopupBox {
    flex-direction: column;
    width: 92%;
    height: 90vh;
    max-height: 90vh;
  }
  
  .cf7PopupImage {
    width: 100%;
    height: 180px;
  }
  
  .cf7PopupForm {
    width: 100%;
    padding: 24px;
  }
}
