/* =====================================================
   Inmotech Lead Popup – Clean Luxury UI
   - Keeps existing listing layout intact (wrapper uses display:contents)
   - Styles popup + Gravity Forms inside popup
===================================================== */

/* Keep listing layout intact */
.inmotech-property-card{
  display: contents;
  cursor: pointer;
}

/* ================================
   POPUP OVERLAY + CONTAINER
================================ */
#imt-property-popup{
  display:none;
  position:fixed;
  inset:0;
  z-index:999999;
}

#imt-property-popup.open{ display:block; }

#imt-property-popup .imt-popup-overlay{
  position:absolute;
  inset:0;
  background: rgba(12, 24, 38, 0.78);
  backdrop-filter: blur(6px);
}

#imt-property-popup .imt-popup-inner{
  position:relative;
  max-width: 520px;
  margin: 6vh auto;
  padding: 36px 38px 34px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
}

/* Header */
#imt-property-popup .imt-popup-head{ margin: 0 0 18px 0; }
#imt-property-popup .imt-popup-head h3{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color:#0f2a44;
}
#imt-property-popup .imt-popup-head p{
  margin: 0;
  font-size: 13px;
  color:#55626f;
}

/* Close button */
#imt-property-popup .imt-popup-close{
  position:absolute;
  top: 16px;
  right: 18px;
  font-size: 20px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  color: #222;
  opacity: .45;
}
#imt-property-popup .imt-popup-close:hover{ opacity: 1; }
#imt-property-popup .gfield{ margin-bottom: 16px; }
#imt-property-popup .gfield_label{
  font-size: 13px;
  font-weight: 500;
  color: #3a3a3a;
  margin-bottom: 6px;
}

#imt-property-popup input[type="text"],
#imt-property-popup input[type="email"],
#imt-property-popup input[type="tel"],
#imt-property-popup textarea{
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d6dde3;
  padding: 14px 14px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

#imt-property-popup textarea{
  min-height: 120px;
  resize: vertical;
}

/* ReCAPTCHA spacing */
#imt-property-popup .gfield_recaptcha{ margin: 18px 0; }

/* Checkboxes */
#imt-property-popup .gfield_checkbox label{
  font-size: 13px;
  color: #444;
}

/* Optional: style existing Read More button inside cards (does not affect layout) */
.inmotech-property-card a.btn:not(.btn-floating),
.inmotech-property-card a.btn_link:not(.btn-floating){
  border-radius: 999px !important;
}

body.logged-in .inmotech-properties,
body.logged-in .properties-grid {
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:32px;
}


/* Lock scroll when popup open */
body.imt-popup-open{overflow:hidden;}
