/* Overlay */
.cifp-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

/* Popup */
.cifp-popup-content {
  background: #fff;
  width: 50%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.cifp-popup-inner {
  display: flex;
  height: 100%;
}

/* Left image (hidden on mobile) */
.cifp-left {
  width: 50%;
  background: #f7f7f7;
}
.cifp-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right form pane */
.cifp-right {
  width: 50%;
  padding: 30px;
  height: 450px;
  overflow-y: auto;
}
.cifp-right .gform_footer input {
  background: #ffd602 !important;
  color: #000 !important;
  margin: 0;
  padding: 15px 30px;
  font-weight: 600;
}
.cifp-right .gform_wrapper.gravity-theme .gform_footer {
  text-align: center !important;
}

.cifp-close {
  position: absolute;
  top: 0px;
  right: 0px;
  color: #000;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  background: transparent;
  border: 0;
}

/* Category image (in widget) */
.cifp-category-image img{
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  display: block;
}

/* Buttons below image */
.cifp-buttons {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.cifp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  justify-content: center;
  border: 1px solid #e5e5e5;
  background: #0a0a0a;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", "Montserrat-Regular", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  transition: box-shadow .2s ease, transform .05s ease;
}
.cifp-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cifp-btn:active { transform: translateY(1px); }

.cifp-btn-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* Sticky widget wrapper */
.cifp-sticky-widget {
  position: sticky;
  top: 20px; /* adjust for your header height */
}

/* Responsive */
@media (max-width: 1024px) {
  .cifp-popup-content {
    width: 70%;
    height: 80%;
  }
}
@media (max-width: 768px) {
  .cifp-popup-content {
    width: 90%;
    height: auto;
  }
  .cifp-left { display: none; }
  .cifp-right {
    width: 100%;
    padding: 20px;
  }
}

.cifp-sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
  z-index: 9999;
}
.cifp-footer-desktop { display: none; }
.cifp-footer-mobile { display: none; }
@media(min-width:768px){ .cifp-footer-desktop{display:block;} }
@media(max-width:767px){ .cifp-footer-mobile{display:block;} }