
/* ==========================================================
   Ibeka Homes Contact Form v1.1
   Loaded only on pages containing [ibeka_contact_form]
   ========================================================== */

.ibeka-contact-form-wrap{
  --ibeka-gold:#c9a65b;
  --ibeka-gold-dark:#a78236;
  --ibeka-black:#090909;
  --ibeka-ink:#171717;
  --ibeka-muted:#69645d;
  --ibeka-line:#dfdbd4;
  --ibeka-soft:#faf9f7;
  font-family:"Poppins",sans-serif;
  width:100%;
}

.ibeka-contact-form-wrap *,
.ibeka-contact-form-wrap *::before,
.ibeka-contact-form-wrap *::after{
  box-sizing:border-box;
}

.ibeka-contact-form{
  width:100%;
  margin:0;
}

.ibeka-form-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:17px 16px;
}

.ibeka-field{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.ibeka-field-full{
  grid-column:1 / -1;
}

.ibeka-field label{
  margin:0;
  color:var(--ibeka-ink);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  letter-spacing:0;
}

.ibeka-field input:not([type="checkbox"]),
.ibeka-field select,
.ibeka-field textarea{
  display:block;
  width:100%;
  max-width:100%;
  margin:0;
  border:1px solid var(--ibeka-line);
  border-radius:10px;
  background:var(--ibeka-soft);
  color:#111;
  font-family:"Poppins",sans-serif;
  font-size:14px;
  font-weight:400;
  outline:none;
  box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.ibeka-field input:not([type="checkbox"]),
.ibeka-field select{
  min-height:50px;
  padding:0 14px;
}

.ibeka-field textarea{
  min-height:155px;
  padding:13px 14px;
  line-height:1.65;
  resize:vertical;
}

.ibeka-field input::placeholder,
.ibeka-field textarea::placeholder{
  color:#9a958e;
  opacity:1;
}

.ibeka-field input:focus,
.ibeka-field select:focus,
.ibeka-field textarea:focus{
  border-color:var(--ibeka-gold);
  background:#fff;
  box-shadow:0 0 0 3px rgba(201,166,91,.13);
}

.ibeka-field select{
  cursor:pointer;
}

.ibeka-consent{
  margin-top:1px;
}

.ibeka-consent label{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  align-items:start;
  gap:10px;
  color:#66615a;
  font-size:12px;
  line-height:1.6;
  font-weight:400;
  cursor:pointer;
}

.ibeka-consent input[type="checkbox"]{
  width:17px;
  height:17px;
  margin:2px 0 0;
  accent-color:var(--ibeka-gold-dark);
}

.ibeka-consent a{
  color:#876620;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}

.ibeka-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  margin:18px 0 0;
  padding:12px 20px;
  border:1px solid var(--ibeka-gold);
  border-radius:10px;
  background:var(--ibeka-gold);
  color:#111;
  font-family:"Poppins",sans-serif;
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease;
}

.ibeka-submit:hover{
  background:#d2b36d;
  border-color:#d2b36d;
  transform:translateY(-1px);
}

.ibeka-submit:focus-visible{
  outline:3px solid rgba(201,166,91,.28);
  outline-offset:2px;
}

.ibeka-submit:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.ibeka-form-status{
  display:none;
  margin:17px 0 0;
  padding:13px 14px;
  border-radius:10px;
  font-size:13px;
  line-height:1.6;
}

.ibeka-form-status.is-success{
  display:block;
  background:#eff8f1;
  border:1px solid #bad9c1;
  color:#24502e;
}

.ibeka-form-status.is-error{
  display:block;
  background:#fff3f2;
  border:1px solid #e5bcb7;
  color:#792d25;
}

.ibeka-security-note{
  margin:10px 0 0;
  color:#89847d;
  text-align:center;
  font-size:10.5px;
  line-height:1.55;
}

.ibeka-hp{
  position:absolute!important;
  left:-99999px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}

/* WPResidence comments should never appear on a contact-form page.
   This stylesheet is enqueued only when the Ibeka form shortcode is present. */
#comments,
.comments-area,
.comments_area,
.comment-respond,
#respond,
.wpestate_comments{
  display:none!important;
}

/* Tablet: do not squeeze two-column form fields into a narrow form card. */
@media(max-width:1024px){
  .ibeka-form-grid{
    grid-template-columns:1fr;
  }
  .ibeka-field-full{
    grid-column:auto;
  }
}

/* Mobile */
@media(max-width:767px){
  .ibeka-form-grid{
    gap:14px;
  }
  .ibeka-field input:not([type="checkbox"]),
  .ibeka-field select{
    min-height:48px;
  }
  .ibeka-field textarea{
    min-height:140px;
  }
  .ibeka-submit{
    min-height:50px;
  }
}
