/* ===== Custom Contact Modal ===== */
.cf7-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.cf7-modal.is-open {
  display: block;
}

/* overlay */
.cf7-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.cf7-modal-wrapper{
  height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* modal box */
.cf7-modal__box {
  position: relative;
  max-width: 745px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
border: 1px solid #F8FAFC;
overflow: hidden;
}
.cf7-modal-content{
padding: 18px;
    overflow-y: auto;
    max-height: calc(100% - 47px);
}
.cf7-modal-header{
  display: flex;
justify-content: space-between;
align-items: center;
background-color: #F8FAFC;
border-bottom: 1px solid #F8FAFC;
padding: 12px 18px;
}
/* title */
.cf7-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #121212;
margin: 0px;
}

/* close button */
.cf7-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
}

.cf7-cancel{
  height: 44px;
width: 86px;
border-radius: 8px;
border: 1px solid #CDD5DF;
background-color: #ffffff;
font-size: 14px;
font-weight: 500;
color: #4B5565;
}
.wpcf7-submit{
  height: 44px;
width: 133px;
border-radius: 8px;
border: 1px solid #283891;
background-color: #283891;
font-size: 14px;
font-weight: 500;
color: #ffffff;
}
/* lock background scroll */
.cf7-modal-lock {
  overflow: hidden;
}

/* ===== CF7 spacing fix ===== */
.cf7-modal .wpcf7 form p {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== Grid layout (2 columns) ===== */
.cf7-modal .cf7-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.cf7-modal .cf7-col-full {
  grid-column: span 2;
}

/* inputs basic look */
.cf7-modal input[type="text"],
.cf7-modal input[type="email"],
.cf7-modal input[type="tel"],
.cf7-modal select,
.cf7-modal textarea {
  width: 100%;
  border: 1px solid #CDD5DF;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #121926;
  font-size: 16px;
  outline: none;
}

.cf7-modal label {
  font-size: 14px;
color: #121926;
font-weight: 500;
margin-bottom: 4px;
}

/* error message size */
.cf7-modal .wpcf7-not-valid-tip {
  font-size: 10px !important;
  margin-top: 4px;
}

/* mobile */
@media (max-width: 768px) {
  .cf7-modal .cf7-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cf7-modal .cf7-col-full {
    grid-column: span 1;
  }
}

.cf7-form-footer{
width: 100%;
padding: 18px 12px;
border-top: 1px sloid #F8FAFC;
}

.cf7-form-footer p{
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
}
.wpcf7-spinner{
display: none;
}
