.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 {
  width: calc(100% - 40px);
  max-width: 768px;
  transform: translateY(3.2rem) scale(0.9);
  background-color: #fff;
  overflow: hidden;
  display: flex;
  transition: all cubic-bezier(0.5, 0, 0.5, 1.5) 0.35s;
  border-radius: 1.6rem;
}
.quote_modal .modal_content:has(.img) {
  max-width: 1024px;
}
.quote_modal .modal_content .close {
  width: 3.2rem;
  height: 3.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  margin: 0 -1.6rem 3.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;
  padding: 20px 4rem 4.8rem 4.8rem;
}
.quote_modal .form {
  overflow: auto;
  padding-right: 8px;
  max-height: calc(100vh - 192px);
}
.quote_modal .form::-webkit-scrollbar {
  width: 5px;
}
.quote_modal .form::-webkit-scrollbar-thumb {
  background: #888888;
  border-radius: 100px;
}
.quote_modal form {
  display: grid;
  gap: 1.6rem;
}
.quote_modal form span {
  width: 100%;
  position: relative;
}
.quote_modal form input,
.quote_modal form select,
.quote_modal form textarea {
  width: 100%;
  height: 44px;
  font-size: 15px;
  color: #242424;
  line-height: 1.5;
  padding: 0 1.6rem;
  border-radius: 4px;
  border: 1px solid #dadada;
  background-color: transparent;
}
.quote_modal form input::placeholder,
.quote_modal form select::placeholder,
.quote_modal form textarea::placeholder {
  color: #242424;
}
.quote_modal form select {
  cursor: pointer;
  padding-right: 3.2rem;
  background: url(../img/select.svg) no-repeat right 1.6rem center / 12px;
}
.quote_modal form textarea {
  height: 120px;
  padding: 12px 1.6rem;
}
.quote_modal form input[type="submit"] {
  height: 46px;
  font-size: 1.6rem;
  border: none;
  color: #fff;
  transition: all 0.3s;
  background-color: var(--theme_color);
}
.quote_modal form input[type="submit"]:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.quote_modal form input[type="checkbox"] {
  padding: 0;
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: top;
  margin-top: 12px;
  position: relative;
}
.quote_modal form input[type="checkbox"]::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  transition: all 0.3s;
  opacity: 0;
  background: url(../img/gou.svg) no-repeat center / 80%;
}
.quote_modal form input[type="checkbox"]:checked::after {
  opacity: 1;
}
.quote_modal form input[type="checkbox"] ~ span {
  color: #383838;
  display: inline-block;
  width: calc(100% - 3.2rem);
  vertical-align: top;
  font-size: 17px;
  line-height: 21px;
  cursor: pointer;
  margin-top: 14px;
  padding-left: 10px;
}
.quote_modal form .wpcf7-spinner {
  width: 24px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.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: 1.6rem;
}
.captcha {
  gap: 0 1.6rem;
  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 (min-width: 768px) and (max-width: 1024px) {
  .quote_modal .inner {
    padding-left: 3.2rem;
    padding-right: 2.4rem;
  }
}
@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 {
    width: 2rem;
    height: 2rem;
    margin: 0 0 20px auto;
  }
  .quote_modal .img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
  }
  .quote_modal .inner {
    padding: 20px 15px 2rem 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
  }
  .quote_modal .form {
    padding-right: 5px;
  }
  .quote_modal form {
    gap: 1rem;
  }
  .quote_modal form input,
  .quote_modal form select,
  .quote_modal form textarea {
    padding: 0 1rem;
    font-size: 14px;
  }
  .quote_modal form textarea {
    padding: 12px 1rem;
  }
  .quote_modal form input[type="submit"] {
    font-size: 1rem;
  }
}
