body,
html {
    overflow-x: none !important;
}

.contact {
  padding-bottom: 52px;
}

.contact-text p {
  font-size: 14px;
  line-height: 22px;
  max-width: 420px;
}

.contact .row {
  align-items: center;
}

.line1 {
  width: 400px;
  height: 1px;
  background-color: #8E7D6B;
}


.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  background-color: #fff;
  padding: 20px;
  position: relative;
}

.title {
  font-size: 23px;
  font-weight: 700;
}

.message,
.signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.signin {
  text-align: center;
}

.signin a {
  color: royalblue;
}

.signin a:hover {
  text-decoration: underline royalblue;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label .input {
  width: 100%;
  padding: 9px 0px 9px 18px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 3px;
}

.form label {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.form label .input:placeholder-shown+span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus+span,
.form label .input:valid+span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid+span {
  color: green;
}

.submit {
  border: none;
  outline: none;
  background-color: royalblue;
  padding: 10px;
  color: #fff;
  font-size: 16px;
  transform: .3s ease;
}

.submit:hover {
  background-color: rgb(56, 90, 194);
}

.contact-main {
  height: 720px;
  position: relative;
}

.contact-img {
  position: absolute;
  max-width: 532px;
  height: fit-content;
  top: 0;
  right: -147px;
}

.contact-img>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-left: 38px solid #D7CFC4;
}

.contact-text>h2 {
  margin-top: 90px;
}

.message-form {
  position: absolute;
  top: 90px;
  right: 280px;
}

.message-form::before,
.message-form::after {
  content: '';
  position: absolute;
  background: #D7CFC4;
}

.message-form {
  border-right: 10px solid #D7CFC4;
}


.message-form::after {
  top: -10px;
  right: -10px;
  width: 30%;
  height: 10px;

}


.message-form::before {
  bottom: -10px;
  right: -10px;
  height: 10px;
  width: 30%;

}

.social-links {
  padding-top: 70px;
}

.social-link {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.links a {
  font-family: "Nunito Sans", sans-serif;
  font-size: 13px;
  color: #000000;
}

@media screen and (max-width: 1200px) {
  .contact-img {
    max-width: 450px;
    right: -27px;
  }
  .message-form {
    top: 58px;
    right: 318px;
  }
  .contact-main {
    height: auto;
  }
}

@media screen and (max-width: 1024px) {
  .contact-img {
    max-width: 400px;
    right: 0;
  }
  .message-form {
    right: 200px;
  }
}

@media screen and (max-width: 992px) {
  .contact-img {
    max-width: 370px;
    position: relative;
    right: 0;
    margin: 0 auto;
  }
  .message-form {
    position: relative;
    right: 0;
    top: 20px;
    margin: 0 auto;
  }
  .contact-main {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-right {
    flex-direction: column;
    align-items: center;
  }
  .contact-text>h2 {
    margin-top: 0;
  }
}

@media screen and (max-width: 768px) {
  .contact-img {
    max-width: 100%;
  }
  .form {
    max-width: 100%;
  }
  .contact-text>h2 {
    margin-top: 50px;
  }
  .message-form{
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .contact-img {
    max-width: 100%;
  }
  .contact-text>h2 {
    margin-top: 30px;
  }
  .line1 {
    width: 100%;
  }
  .links {
    flex-wrap: wrap;
    gap: 15px;
  }
  .message-form {
    padding: 10px;
  }

}


@media screen and (max-width: 480px) {
  .form label .input {
    padding: 10px;
  }

  .submit {
    font-size: 14px;
    padding: 8px;
  }
} 