/* other page contact */
.other-page-contact {
  padding-block: 150px;
  background: linear-gradient(0deg, #fff, #fef9ee);
  margin-bottom: 0;
}
.other-page-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, #fff, #e9fbf9);
  opacity: 0;
  z-index: 1;
  animation: contactBgAnimation 5s ease-in-out infinite alternate;
}

@keyframes contactBgAnimation {
  0% {
    opacity: 0;
    background: linear-gradient(0deg, #fff, #fef9ee);
  }
  50% {
    opacity: 0.5;
    background: linear-gradient(0deg, #fff, #e9fbf9);
  }
  100% {
    opacity: 1;
    background: linear-gradient(0deg, #fff, #f4fdfe);
  }
}

.other-page-contact .left-side .contact-wrap .contact-title h2 {
  font-size: 50px;
  line-height: 60px;
  text-transform: uppercase;
  margin-bottom: 100px;
  font-weight: 500;
}

/* contact form */
.form-inputs {
  margin-bottom: 40px;
}
.form-inputs h3 label {
  font-size: 1rem;
  line-height: 40px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-inputs > h3 > input {
  display: none;
}
.form-inputs .input-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.form-inputs .input-container .input-item {
  height: 60px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 10px;
}
.form-inputs .input-container .input-item-1:has(.hidden:checked) {
  background-color: #e8fafe;
  border: 1px solid #21a1bd;
}
.form-inputs .input-container .input-item-2:has(.hidden:checked) {
  background-color: #e8fef5;
  border: 1px solid #23a070;
}
.form-inputs .input-container .input-item-3:has(.hidden:checked) {
  background-color: #fff7e3;
  border: 1px solid #f3ad00;
}
.form-inputs .input-container .input-item label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 10px;
}
.form-inputs .input-container .input-item .input-check {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #cdcdcd;
}
.form-inputs .input-container .input-item .input-check img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.form-inputs .input-container .input-item .hidden {
  display: none;
}

.form-inputs .input-item-1 .hidden:checked + label .input-check {
  background-color: #21a1bd;
  border: none;
}
.form-inputs .input-item-2 .hidden:checked + label .input-check {
  background-color: #23a070;
  border: none;
}
.form-inputs .input-item-3 .hidden:checked + label .input-check {
  background-color: #f3ad00;
  border: none;
}
.contact-form h3 {
  font-size: 14px;
  line-height: 40px;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-form .form-floating .form-control {
  border: 1px solid #b3b3b3;
  border-radius: 10px;
  height: 60px;
}
.contact-form .form-floating textarea.form-control {
  height: auto;
}
.contact-form .form-floating label {
  font-size: 1rem;
  text-transform: capitalize;
  color: #9b9b9b;
}
.contact-form .form-floating > .form-control:focus ~ label {
  color: #23a070;
}
.contact-form .form-floating > .form-control:focus {
  border-color: #23a070;
}
.contact-form .form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.875rem;
}
.contact-form .contact-btn {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 40px;
  color: #6f6f6f;
}
.contact-form .contact-btn button {
  background-color: #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  padding-inline: 20px;
  border-radius: 50px;
  font-size: 20px;
  line-height: 60px;
  width: 196px;
  max-height: 60px;
}
.contact-form .contact-btn button:hover {
  background-color: #23a070;
}
.contact-form .contact-btn button:active {
  transform: scale(0.95);
}

@media screen and (max-width: 1200px) and (min-width: 992px) {
  .other-page-contact .left-side{
    flex: 1;
  }
  .other-page-contact .right-side{
    flex: 1.5;
  }
  .other-page-contact .left-side .contact-wrap .contact-title h2{
    font-size: 40px;
  }
}

/* responsive code */
@media screen and (max-width: 600px) {
  /* other page contact */
  .contact-area.other-page-contact {
    padding-block: 32px;
    margin-top: 0;
  }
  .other-page-contact .contact-title {
    margin: 0;
  }
  .other-page-contact .left-side .contact-wrap {
    display: flex;
    flex-direction: column-reverse;
  }
  .other-page-contact .left-side .contact-wrap .contact-title h2 {
    font-size: 25px;
    line-height: normal;
    margin-block: 40px;
  }
  .form-inputs .input-container .input-item .input-check img {
    width: 12px;
    height: 12px;
  }

  /* contact form */
  .form-inputs{
    border-bottom: 1px solid #9d9d9d;
  }
  .form-inputs .input-container {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 16px;
  }
  .form-inputs .input-container .input-item{
    height: 50px;
  }
  .form-inputs .input-container .input-item label{
    font-size: 14px;
  }
  .contact-form .contact-btn {
    flex-direction: column;
  }
  .contact-form .contact-btn button {
    width: 100%;
  }
  .form-inputs {
    margin-bottom: 20px;
  }
  .form-inputs h3 {
    position: relative;
    margin-bottom: 0;
  }
  .form-inputs h3 label {
    font-size: 14px;
    width: 100%;
    padding-right: 20px;
    line-height: 30px;
  }
  .form-inputs h3 label::after {
    content: "+";
    font-size: 30px;
    font-weight: 300;
    position: absolute;
    right: 0;
  }
  .form-inputs .input-container {
    height: 0;
    overflow: hidden;
  }
  .form-inputs h3:has(:checked) ~ .input-container {
    height: auto;
  }
  .form-inputs h3:has(:checked) label::after {
    transform: rotate(45deg);
  }
  .form-inputs .input-container .input-item .input-check {
    width: 20px;
    height: 20px;
  }
}
