@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 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  background-color: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  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 {
  background-color: rgba(245, 126, 32);
  position: relative;
}

.contact-form a.back-home{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.contact-form a.back-home:hover{
  color: #474644;
  cursor: pointer;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, rgb(183, 81, 3));
  position: absolute;
}

.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}

.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}

.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(45deg, rgb(202, 88, 1), rgb(86, 112, 139));
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.sub-title{
  color: #fff;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.7rem;
  text-align: center;
}

.input-container {
  position: relative;
  margin: 1rem 0;
}

.input {
  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 {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none;
  overflow-y: auto;
}

.input-container label {
  position: absolute;
  left: 15px;
  padding: 0 0.4rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
  top: 1rem;
  transform: translateY(0);
}

.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.list-btn{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-btn a.btn-back{
  display: none;
  text-decoration: none;
}

.list-btn .btn-back:hover{
  background-color: rgb(86, 112, 139);
}

.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: rgba(86, 112, 139);
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

.btn:hover {
  background-color: transparent;
  color: #fff;
}

.input-container 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 span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: rgba(245, 126, 32);
  top: 50%;
  transform: translateY(-50%);
}

.input-container span:before {
  left: 50%;
}

.input-container span:after {
  right: 50%;
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

.input-container input.error {
  border: 4px solid #ff0000 !important;
}

.input-container textarea.error{
  border: 4px solid #ff0000 !important;
}

.input-container p.error{
  color: red;
  padding: 5px 0;
  font-weight: bold;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info .title {
  color: rgba(245, 126, 32);
}

.text {
  color: #333;
  margin: 1rem 0 0.5rem 0;
}

.intro{
  font-size: 18px;
  text-align: center;
  font-weight: 400;
}

.text:last-of-type {
  margin-bottom: 2rem;
}

.information {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}

.information img {
  color: red;
}

.icon {
  width: 28px;
  margin-right: 0.7rem;
}

.social-media {
  padding: 2rem 0 0 0;
}

.social-media p {
  color: #333;
}

.social-icons {
  display: flex;
  margin-top: 0.5rem;
}

.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, rgb(86, 112, 139), rgb(202, 88, 1));
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.contact-info:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border: 22px solid rgba(245, 126, 32);
  border-radius: 50%;
  bottom: -77px;
  right: 50px;
  opacity: 0.3;
}

.big-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgb(86, 112, 139), rgb(245, 144, 62));
  bottom: 50%;
  right: 50%;
  transform: translate(-40%, 38%);
}

.big-circle:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background-color: #fafafa;
  border-radius: 50%;
  top: calc(50% - 180px);
  left: calc(50% - 180px);
}

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

.logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.alert {
  margin: 0 20px 20px;
  padding: 20px;
  background-color: #ff9800;
  color: white;
  border-radius: 15px;
  transition: background ease-in-out 0.3s;
}
.alert:hover{
  background-color: #f16800;
}
.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

.captcha-container {
  width: 100%;
  margin: 15px 0;
}

.captcha-box {
  background: #e8e6e6;
  border: 1px solid #dcdcdc;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-width: 320px;
}

.captcha-box.error{
  border: 4px solid #ff0000
}

.captcha-box input[type="checkbox"] {
  margin-right: 5px;
  cursor: pointer;
}

.captcha-box label {
  color: #2e2e2e;
  cursor: pointer;
}

.captcha-image {
  display: flex;
  flex-direction: column;
  align-items: center;;
}

.captcha-image img {
  width: 25px;
  height: auto;
}

.refresh-captcha {
  font-size: 14px;
  margin-left: 10px;
  cursor: pointer;
  color: #c1bdbd;
}
.footer-captcha{
  padding-left: 10px;
  font-size: 12px;
  color: #c1bdbd;
}

.input-select {
  margin-bottom: 20px;
  color: #fff;
}

.input-select label.title-select {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.options {
  display: flex;
  flex-direction: column;
}

.options label {
  margin: 5px 0;
}

.input-select #term {
  width: 15%;
  border-radius: 5px;
  border: none;
  outline: none;
  text-align: center;
  padding: 5px 0;
}
.input-select p.error{
  color: red;
  padding: 5px 0;
  font-weight: bold;
}

@media (max-width: 850px) {
  .form {
    grid-template-columns: 1fr;
  }

  .logo {
    max-width: 70%;
  }

  .contact-info:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }

  .contact-form:before {
    top: -13px;
    left: initial;
    right: 70px;
  }

  .contact-form a.back-home{
    display: none;
  }

  .list-btn a.btn-back{
    display: block;
  }

  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }

  .big-circle {
    bottom: 75%;
    transform: scale(0.9) translate(-40%, 30%);
    right: 50%;
  }

  .text {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .contact-info:before {
    display: none;
  }

  .square,
  .big-circle {
    display: none;
  }

  form,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
}
