@charset "utf-8";

.contact {
  width: 100%;
  background-color: var(--color-bg-black);
  color: var(--color-font-white);
}
.contact-wrapper {
  width: 100%;
  position: relative;
  padding: 0 20px;
  margin-top: 180px;
  margin-inline: auto;
}
.contact-wrapper::before {
  width: 120px;
  height: 120px;
  content: "";
  background: url(../images/contact/thanks.png);
  background-size: 120px;
  background-repeat: no-repeat;
  position: absolute;
  top: -70px;
  right: 8px;
}
.contact__fields {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: clamp(2.5rem, 5.21vw, 6.25rem); /*768px:40px 1920px:100px*/
}
.contact__fields::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/contact/contact-bg.jpg);
  background-size: contain;
  background-position: center;
  opacity: 0.2;
  border-radius: 20px;
  z-index: -1;
}
.contact__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  flex-direction: column;
}

.contact__item label {
  margin-bottom: 0.5rem;
}

.contact__item input,
.contact__item textarea {
  width: 100%;
  border-radius: 10px;
  padding: 1rem;
  color: var(--color-font-black);
  background: var(--color-bg-white);
}

.contact__item textarea {
  min-height: 180px;
  resize: vertical;
}

.contact__submit {
  position: relative;
  font-size: 24px;
  letter-spacing: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  width: 100%;
  height: 50px;
  border-radius: 100vh;
  color: var(--color-font-black);
  background-color: var(--color-bg-gray);
  padding-left: 100px;
  margin: 6rem auto 0;
}
.contact__submit::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 50px;
  top: 14px;
  left: 34%;
  transform: translateX(-50%);
  background-image: url(../images/contact/submit-button.svg);
  background-size: contain;
  background-repeat: no-repeat;
}
.a {
  margin: 0 20px 0 auto;
}
.contact__note {
  display: flex;
  justify-content: right;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .contact__fields {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact__item textarea {
    min-height: 150px;
  }
  .contact__note {
    justify-content: center;
  }
}
