/* --- Lead Popup (City Pearl) --- */
.leadPopupCityPearl .modal-dialog.leadPopup-dialog{
  width: 920px;
  max-width: 92%;
  margin: 0px auto;
}
@media (max-width: 767px){
  .leadPopupCityPearl .modal-dialog.leadPopup-dialog{
    width: 94%;
    margin: 15px auto;
  }
}

.leadPopupCityPearl .modal-content.leadPopup-content{
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
  background: #fff;
}

.leadPopup-close{
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 26px;
  line-height: 34px;
  text-align: center;
  color: #2b2b2b;
  cursor: pointer;
}
.leadPopup-close:hover{ background: rgba(255,255,255,1); }

.leadPopup-body{ padding: 0; }
.leadPopup-grid{
  display: table;
  width: 100%;
}
.leadPopup-visual,
.leadPopup-formWrap{
  display: table-cell;
  vertical-align: top;
}
.leadPopup-visual{
  width: 44%;
  background: #f3f3f3;
}
.leadPopup-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.leadPopup-formWrap{
  width: 56%;
  padding: 26px 26px 22px 26px;
}

@media (max-width: 767px){
  .leadPopup-grid{ display:block; }
  .leadPopup-visual, .leadPopup-formWrap{ display:block; width:100%; }
  .leadPopup-formWrap{ padding: 18px; }
}

.leadPopup-title{
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
}
.leadPopup-subtitle{
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #5a5a5a;
}

.leadPopupCityPearl .form-control{
  border-radius: 10px;
  height: 44px;
  box-shadow: none;
  border: 1px solid #dcdcdc;
}

.leadPopup-consents{
  margin: 10px 0 14px 0;
  font-size: 12px;
  color: #555;
}
.leadPopup-consents .checkbox{
  margin: 8px 0;
}
.leadPopup-consents input[type="checkbox"]{
  margin-right: 8px;
}

.leadPopup-btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;            /* pill jak na screenie */
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
  border: 0;
}
.leadPopup-btn:hover{ background: #1f1f1f; color:#fff; }

.leadPopup-msg{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.leadPopup-msg.ok{ background:#f1f8f1; color:#1f5a2a; border:1px solid #cfe9d2; }
.leadPopup-msg.err{ background:#fff1f1; color:#7a1e1e; border:1px solid #f0c9c9; }


/* wysokość modala */
.leadPopupCityPearl .modal-dialog.leadPopup-dialog{
  width: 920px;
  max-width: 92%;
}

/* ustawiamy minimalną wysokość treści */
.leadPopupCityPearl .modal-content.leadPopup-content{
  overflow: hidden;
}

/* Układ */
.leadPopup-grid{
  display: flex;
  min-height: 420px; /* desktop: żeby zawsze było "pełno" */
}

.leadPopup-visual{
  flex: 0 0 44%;
  background-size: cover;       /* klucz */
  background-position: center;  /* klucz */
  background-repeat: no-repeat; /* klucz */
  background-color: #f3f3f3;    /* fallback */
}

/* prawa strona */
.leadPopup-formWrap{
  flex: 1;
  padding: 26px;
}

/* mobile: grafika jako górny baner */
@media (max-width: 767px){
  .leadPopup-grid{ display:block; min-height: unset; }
  .leadPopup-visual{
    width: 100%;
    height: 180px; /* wysokość grafiki na mobile */
    flex: none;
  }
  .leadPopup-formWrap{ padding: 18px; }
}


/* ===================================== */
/* Wyśrodkowanie modala w pionie */
/* ===================================== */
/*
.leadPopupCityPearl {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.leadPopupCityPearl .modal-dialog {
  margin: 0;
}
*/
/* centrowanie, gdy Bootstrap ustawi display:block (otwieranie + zamykanie) */
.leadPopupCityPearl[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* reszta */
.leadPopupCityPearl { padding: 15px; }
.leadPopupCityPearl .modal-dialog { margin: 0; }




