@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
textarea {
  font-family: "Poppins", sans-serif;
}

.container_P {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form_P {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form_P {
  background-color: #1abc9c;
  position: relative;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, #149279);
  position: absolute;
}

.circle.one_P {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}

.circle.two_P {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}

.contact-form_P:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #1abc9c;
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title_P {
  color: BLACK;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container_P {
  position: relative;
  margin: 1rem 0;
}

.input_P {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}

textarea.input_P {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none;
  overflow-y: auto;
}

.input-container_P label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}

.input-container_P.textarea_P label {
  top: 1rem;
  transform: translateY(0);
}

.btn_P {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: #1abc9c;
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

.btn_P:hover {
  background-color: transparent;
  color: #fff;
}

.input-container_P span {
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container_P span:before,
.input-container_P span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: #1abc9c;
  top: 50%;
  transform: translateY(-50%);
}

.input-container_P span:before {
  left: 50%;
}

.input-container_P span:after {
  right: 50%;
}       

.input-container_P.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}

.input-container_P.focus span:before,
.input-container_P.focus span:after {
  width: 50%;
  opacity: 1;
}

.contact-info_P {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info_P .title {
  color: #1abc9c;
}

.text_P {
  color: #333;
  margin: 1.5rem 0 2rem 0;
}

.information_P {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}

.icon_P {
  width: 28px;
  margin-right: 0.7rem;
}

.social-media_P {
  padding: 2rem 0 0 0;
}

.social-media_P p {
  color: #333;
}

.social-icons_P {
  display: flex;
  margin-top: 0.5rem;
}

.social-icons_P a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, #1abc9c, #149279);
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icons_P a:hover {
  transform: scale(1.05);
}

.contact-info_P:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border: 22px solid #1abc9c;
  border-radius: 50%;
  bottom: -77px;
  right: 50px;
  opacity: 0.3;
}

@media (max-width: 850px) {
  .form_P {
    grid-template-columns: 1fr;
  }

  .contact-info_P:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }

  .contact-form_P:before {
    top: -13px;
    left: initial;
    right: 70px;
  }

  

  .text_P {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media_P {
    padding: 1.5rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .container_P {
    padding: 1.5rem;
  }

  .contact-info_P:before {
    display: none;
  }

  

  form,
  .contact-info_P {
    padding: 1.7rem 1.6rem;
  }

  .text_P,
  .information_P,
  .social-media_P p {
    font-size: 0.8rem;
  }

  .title_P {
    font-size: 1.15rem;
  }

  .social-icons_P a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon_P {
    width: 23px;
  }

  .input_P {
    padding: 0.45rem 1.2rem;
  }

  .btn_P {
    padding: 0.45rem 1.2rem;
  }
}