.bg-contact {
  width: 100%;
  height: auto;
  background-image: url("../../images/custom/Contact Us/bg-contact.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.contact input,
.contact select,
.contact .tel-785 {
  width: clamp(1px, 21.667vw, 1200px);
  height: clamp(1px, 3.386vw, 130px);
  margin: 0;
  border: none;
  background-color: transparent !important;
  border-bottom: 2px solid black;
  padding: 0px 5px;
}

.wpcf7-list-item input {
  accent-color: #5d0013;
  width: clamp(1px,0.782vw,30px) !important;
  height: clamp(1px,0.782vw,30px) !important;
  margin-right: 10px;
}

.wpcf7-list-item {
  margin: 0 !important;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: black;
}

.wpcf7-submit {
  width: clamp(1px, 8.8542vw, 340px);
  height: clamp(1px, 2.865vw, 110px) ;
  border: clamp(1px, 0.2vw, 6px) solid #5d0013 ;
  background-color: transparent !important;
  border-radius: 100px ;
  padding: 0 ;
  margin-top: clamp(1px, 1.302081vw, 50px);
}

.contact input:focus,
.contact input:focus-visible {
  outline: none;
  box-shadow: none;
  border-bottom: 2px solid #c28618;
}

textarea {
  width: clamp(1px, 46.771vw, 1200px);
  min-height: clamp(1px, 3.907vw, 150px);
  border: none;
  color: black;
  background-color: transparent !important;
  border-bottom: 2px solid black;
  padding: clamp(1px, 1.041665vw, 40px) 5px;
  margin: 0;
  max-height: clamp(1px, 3.7vw, 70px);
  transition: max-height 0.2s ease;
}

textarea::-webkit-scrollbar {
  display: none;
}

textarea:focus,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
  max-height: clamp(1px, 10.5vw, 200px);
  border-bottom: 2px solid #c28618;
}

.contact label,
.contact select label{
  padding-top: 6px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0 !important;
  pointer-events: none;
}

@keyframes bounce {
  0% {
    transform: translateY(100%) scale(1);
  }

  80% {
    transform: translateY(0%) scale(1);
  }

  100% {
    transform: translateY(0%) scale(1.05);
  }
}

.copy img {
  width: clamp(1px,1.042vw,40px);
  height: auto;
}


/* Ensure the label becomes visible when input is focused or filled */
.contact div:focus-within label,
.contact input:not(:placeholder-shown) + label,
.contact textarea:not(:placeholder-shown) + label,
.contact select.filled + label{
  opacity: 1 !important;
  animation: bounce 0.5s;
}

/* For input and textarea, hide placeholder when filled or focused */
input:focus::placeholder,
textarea:focus::placeholder,
input:not(:placeholder-shown)::placeholder,
textarea:not(:placeholder-shown)::placeholder {
  opacity: 0;
  animation: bounce 0.5s;
}

/* When the input or textarea is focused, show the label */
.contact input:focus + label,
.contact textarea:focus + label,
.contact select:focus + label,
.contact select.filled + label,
.contact input.filled + label,
.contact textarea.filled + label {
  opacity: 1 !important;
  animation: bounce 0.5s;
}

.contact div.focused label,
.contact div.filled label {
  opacity: 1 !important;
}

.con-icon img {
  width: clamp(1px, 0.782vw, 30px);
  height: clamp(1px, 0.782vw, 30px);
}

@media (max-width: 767px) {
 .contact input,
  .contact select {
    width: clamp(1px, 85vw, 600px);
    height: clamp(1px, 12.096vw, 65px);
  }

  textarea {
    width: clamp(1px, 85vw, 600px);
    min-height: clamp(1px, 12.094vw, 70px);
  }

  .wpcf7-submit {
    width: clamp(1px, 34.187vw, 170px) !important;
    height: clamp(1px, 11.63vw, 55px) !important;
    border: clamp(1px, 0.6vw, 3px) solid #5d0013 !important;
  }

  .clip {
    width: clamp(1px, 6.28vw, 54px);
    height: clamp(1px, 6.28vw, 54px);
  }

  .bg-contact {
    width: 100%;
    height: auto;
    background-image: url("../../images/custom/Contact Us/bg-contact-mob.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top right;
  }

  .copy img {
    width: clamp(1px,4.652vw,40px);
    height: auto;
  }

  .wpcf7-list-item input {
    width: clamp(1px,3.489vw,20px) !important;
    height: clamp(1px,3.489vw,20px) !important;
  }

  .con-icon img {
    width: clamp(1px, 2.791vw, 30px);
    height: clamp(1px, 2.791vw, 30px);
  }
}