.quote_modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: none;
  opacity: 0;
}
.quote_modal.active {
  opacity: 1;
  pointer-events: all;
}
.quote_modal.active .modal_content {
  transform: scale(1);
}
.quote_modal > .close {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.75);
}
.quote_modal .modal_content {
  padding: 0;
  width: calc(100% - 40px);
  max-width: 768px;
  transform: translateY(2rem) scale(0.9);
  background-color: #f0f5f7;
  overflow: hidden;
  display: flex;
  transition: all cubic-bezier(0.5, 0, 0.5, 1.5) 0.35s;
  border-radius: 1rem;
}
.quote_modal .modal_content:has(.img) {
  max-width: 1024px;
}
.quote_modal .modal_content .close {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  margin: 0 -1rem 2rem auto;
  filter: contrast(0) brightness(0);
  background: url(../img/close.svg) no-repeat center / 1rem;
}
.quote_modal .modal_content .close:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
.quote_modal .img {
  width: 50%;
  max-height: calc(100vh - 60px);
  overflow: hidden;
}
.quote_modal .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quote_modal .inner {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-rows: auto 1fr;
}
.quote_modal .form {
  overflow: auto;
  padding-right: 8px;
  max-height: calc(100vh - 80px);
}
.quote_modal .form::-webkit-scrollbar {
  width: 5px;
}
.quote_modal .form::-webkit-scrollbar-thumb {
  background: #888888;
  border-radius: 100px;
}
.quote_modal form {
  display: grid;
  gap: 1rem;
}
.quote_modal .contact_main .right form {
  padding-bottom: 5.4rem;
}
.quote_modal form span {
  width: 100%;
  position: relative;
}
.quote_modal form .wpcf7-not-valid-tip {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
}
.quote_modal form .wpcf7-response-output {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 1rem;
}
.captcha {
  gap: 0 1rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
}
.captcha .captchaInput {
  width: 100%;
}
.captcha .captchaCanvas {
  cursor: pointer;
}
.wpcf7 form .wpcf7-response-output {
  border: none;
  padding: 0;
  margin: 0;
}
@media screen and (max-width: 768px) {
  .quote_modal {
    align-items: flex-end;
  }
  .quote_modal .modal_content {
    width: 100%;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    transform: translateY(80%);
    border-radius: 12px 12px 0 0;
  }
  .quote_modal .modal_content .close {
    margin: 0 0 20px auto;
  }
  .quote_modal .img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
  }
  .quote_modal .inner {
    margin: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
  }
  .quote_modal .form {
    padding: 0;
    background-color: #f0f5f7;
  }
  .quote_modal .form::-webkit-scrollbar {
    display:none;
  }
  .quote_modal .contact_main .right form {
    padding-bottom: 2rem;
  }
}
