.acf-layout-contact-form {
  overflow: hidden;
}

.contact-form-heading {
  padding-bottom: 45px;
  padding-top: 108px;
  position: relative;
  z-index: 2;
}

.contact-form-wrapper {
  padding-bottom: 120px;
}

/* RWD  */
@media (max-width: 991px) {
  .acf-layout-contact-form {
    padding: 50px 0 300px 0;
  }
  .contact-form-heading {
    padding-top: 0;
    padding-bottom: 50px;
  }
  .contact-form-heading .heading {
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
  }
}

@media (max-width: 389px) {
  .contact-form-heading .heading {
    font-size: 35px;
  }
}

/* Form Input Label Typography */
.acf-layout-contact-form label,
.acf-layout-contact-form .wpcf7-form label,
.acf-layout-contact-form .wpcf7-form-control-wrap label {
  font-family: "Clash Display", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 0;
  display: inline-block;
  margin-bottom: 10px;
  width: 100%;
  color: var(--color-5);
  opacity: 0.8;
}

@media (max-width: 991px) {
  .acf-layout-contact-form label,
  .acf-layout-contact-form .wpcf7-form label,
  .acf-layout-contact-form .wpcf7-form-control-wrap label {
    font-size: 14px;
  }
}

/* Form Input Field Styles & Font Overrides */
.acf-layout-contact-form input[type="text"],
.acf-layout-contact-form input[type="email"],
.acf-layout-contact-form input[type="tel"],
.acf-layout-contact-form select,
.acf-layout-contact-form textarea {
  font-family: "Clash Display", "Archivo", sans-serif !important;
  font-size: 15px;
  color: #1d2327;
  border: 1px solid #a2a2a2;
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
  margin-top: 5px;
  transition: border-color 0.3s ease;
  margin-bottom: 10px;
}

.acf-layout-contact-form input[type="text"]:focus,
.acf-layout-contact-form input[type="email"]:focus,
.acf-layout-contact-form input[type="tel"]:focus,
.acf-layout-contact-form select:focus,
.acf-layout-contact-form textarea:focus {
  border-color: #707070;
}

.acf-layout-contact-form p {
  margin: 0;
}

/* Select element arrow styling */
.acf-layout-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.65715 14.7071C7.04768 15.0976 7.68084 15.0976 8.07136 14.7071L14.4353 8.34315C14.8259 7.95262 14.8259 7.31946 14.4353 6.92893C14.0448 6.53841 13.4116 6.53841 13.0211 6.92893L7.36426 12.5858L1.7074 6.92893C1.31688 6.53841 0.683714 6.53841 0.29319 6.92893C-0.0973344 7.31946 -0.0973344 7.95262 0.29319 8.34315L6.65715 14.7071ZM7.36426 0L6.36426 0L6.36426 14H7.36426H8.36426V0L7.36426 0Z' fill='%23A2A2A2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 15px 15px;
  padding-right: 40px;
}

.contact-form-wrapper {
  padding: 0 5%;
}

@media (max-width: 767.98px) {
  .acf-layout-contact-form input[type="text"],
  .acf-layout-contact-form input[type="email"],
  .acf-layout-contact-form input[type="tel"],
  .acf-layout-contact-form select,
  .acf-layout-contact-form textarea {
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }
}

/* Textarea custom height */
.acf-layout-contact-form textarea {
  height: 87px;
  resize: vertical;
}

/* Decorative Section Images */
.acf-layout-contact-form .contact-form-img-one {
  top: 0;
  left: 5%;
  width: auto;
  max-width: 250px;
  z-index: 1;
}

.acf-layout-contact-form .contact-form-img-two {
  bottom: 0;
  left: 0;
  width: auto;
  z-index: 1;
}

/* Swiper Container on the Right */
.acf-layout-contact-form .contact-form-swiper-wrapper {
  position: absolute;
  top: -40px;
  right: 50px;
  width: 309px;
  height: 979px;
  background-color: #ffffff;
  box-shadow: -3px 3px 18.8px 0px #00000040;
  transform: rotate(5.5deg);
  z-index: 5;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-form-swiper {
  width: 100%;
  height: 100%;
}

.contact-form-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.contact-form-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-bottom: 1.5px dashed #bcbcbc;
  padding-bottom: 24px;
}

.contact-form-swiper .swiper-slide:last-child {
  border-bottom: none;
}

.contact-form-swiper .swiper-slide-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

@media (max-width: 1199.98px) {
  .acf-layout-contact-form .contact-form-swiper-wrapper {
    top: auto;
    bottom: -50px;
    right: 20px;
    width: 220px;
    height: 600px;
    padding: 15px;
  }
  .contact-form-swiper .swiper-slide-img {
    height: 160px;
  }
}

.form-btn-container p {
  text-align: center;
}

@media (max-width: 991px) {
  .acf-layout-contact-form .contact-form-img-one {
    max-height: 125px;
    top: 0;
    left: 0;
  }

  .acf-layout-contact-form .contact-form-img-two {
    max-width: max-content;
    bottom: 0;
    left: -13%;
    height: 150px;
  }

  .acf-layout-contact-form .contact-form-swiper-wrapper {
    top: auto;
    bottom: -17%;
    right: 20px;
    width: 146px;
    height: 460px;
    padding: 10px;
    box-shadow: -2px 2px 12px 0px rgba(0, 0, 0, 0.25);
  }

  .contact-form-swiper .swiper-slide {
    padding-bottom: 12px;
  }

  .contact-form-swiper .swiper-slide-img {
    height: 135px;
  }

  .acf-layout-contact-form textarea {
    height: 87px;
  }

  .acf-layout-contact-form .form-btn-container {
    position: relative;
    z-index: 3;
  }

  .acf-layout-contact-form .wpcf7-spinner {
    position: absolute;
    bottom: -5%;
    bottom: -60%;
    left: 20%;
  }
}

@media (max-width: 389px) {
  .acf-layout-contact-form .contact-form-swiper-wrapper {
    bottom: -25%;
  }
}
