/* ================================
   CONTACT FORM 7 GRID SYSTEM
================================ */

.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.cf7-row.cf7-4col .cf7-col {
  width: calc(25% - 15px);
}

.cf7-row.cf7-2col .cf7-col {
  width: calc(50% - 10px);
}

.cf7-col-full {
  width: 100%;
}

/* Tablet */
@media (max-width: 991px) {
  .cf7-row.cf7-4col .cf7-col {
    width: calc(50% - 10px);
  }
}

/* Mobile */
@media (max-width: 575px) {
  .cf7-row .cf7-col {
    width: 100%;
  }
}

/* ================================
   POPUP OVERLAY & CONTAINER
================================ */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  /* Center popup */
  align-items: center;
  justify-content: center;
}

.popup-overlay.active {
  display: flex;
}

/* Popup box */
.popup-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;

  /* IMPORTANT: prevent CF7 collapse */
  display: block;
  overflow-y: auto;
  max-height: 90vh;

  position: relative;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 0px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
color:red;
}

/* ================================
   CF7 VISIBILITY FIX (CRITICAL)
================================ */

.popup-box .wpcf7,
.popup-box .wpcf7-form {
  display: block !important;
  width: 100%;
  max-width: 100%;
  visibility: visible !important;
}

/* Prevent hidden inline styles */
.wpcf7-form[style*="display:none"] {
  display: block !important;
}

/* ================================
   CF7 FIELD STYLING (OPTIONAL)
================================ */

.cf7-input,
.cf7-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.cf7-textarea {
  min-height: 120px;
}

.cf7-checkbox input {
  margin-right: 6px;
}

.cf7-submit {
  padding: 12px 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Headings & dividers */
.wpcf7 h4 {
  margin: 30px 0 15px;
	color:#000;
}

.wpcf7 hr {
  margin: 5px 0;
}

/* ================================
   MOBILE POPUP FIX
================================ */

@media (max-width: 575px) {
  .popup-box {
    padding: 20px;
  }
}




/*bullet points*/
.custom-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  font-size: 13px;
  color: #000;
 
}
ul.custom-list {
    margin-top: -15px;
    padding-left: 3px;
}
.custom-list li {
  position: relative;
  padding-left: 20px;
}

.custom-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-weight: bold;
	font-size:13px;
}
/*servicepopup*/
.simple-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.simple-popup-overlay.active {
  display: flex;
}

.simple-popup-close {
  /*position: sticky;
  top: 12px;*/
  margin-left: auto;
  display: block;

  font-size: 22px;
  cursor: pointer;
  color: red;
  z-index: 10;
	float: right;
    margin-top: -30px;
}
.simple-popup-flex {
  display: flex;
  gap: 25px;
  align-items: center;
}

.simple-popup-col {
  flex: 1;
}

@media (max-width: 768px) {
  .simple-popup-flex {
    flex-direction: column;
  }
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
  background: #7c3aed;
  color: #fff;
  float: right;
	width:30%;
}
@media (max-width: 575px) {
  input.wpcf7-form-control.wpcf7-submit.has-spinner {
    width: auto;
    float: right;
  }
}
/*for success message*/
/* ================================
   CF7 SUCCESS / ERROR MESSAGE FIX
================================ */

.wpcf7-response-output {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 20px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

/* Success */
.wpcf7-mail-sent-ok {
  background: #e6fffa;
  color: #065f46;
  border: 1px solid #10b981;
}

/* Validation error */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fff5f5;
  color: #7f1d1d;
  /*border: 1px solid #ef4444;*/
}

/* FORCE full-width inputs on mobile */
@media (max-width: 575px) {
  .cf7-row .cf7-col input,
  .cf7-row .cf7-col select,
  .cf7-row .cf7-col textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 575px) {
  .cf7-row .cf7-col {
    width: 100% !important;
  }

  .cf7-row .cf7-col input,
  .cf7-row .cf7-col select,
  .cf7-row .cf7-col textarea {
    width: 100% !important;
    max-width: 100% !important;
  }
}

