.contact {
  background-color: #F2F5FC;
  padding-bottom: 4.8rem;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.contact__content {
  flex: 1;
  max-width: 60rem;
}

.contact__content-form {
  width: 100%;
  max-width: 76.6rem;
}

.contact__content-contacts {
  width: 100%;
  height: fit-content;
  background-color: #ffffff;
  padding: 1.6rem;
  border-radius: 2.4rem;
  margin-top: 4.8rem;
}

.contact__title {
  max-width: 61rem;
  margin-bottom: 1.6rem;
}

.contact__form-wrapper {
  margin-top: 1.6rem;
  position: relative;
  min-height: 100%;
}

.contact__success {
  flex: 1;
  padding: 3.2rem;
  border-radius: 1.6rem;
  display: none;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #F2F5FC;
  color: #080E15;
  z-index: 1;
}

.contact__success-title {
  margin-bottom: 1.6rem;
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
}

.contact__success-btn {
  display: flex;
  width: fit-content;
  margin: 3.2rem auto 0;
}

.contact__success-btn:hover .btn__icon-wrap svg {
  transform: rotate(360deg);
}

.contact__success-btn .btn__icon-wrap svg {
  transition: transform 0.3s ease-in-out;
}

.contact__success-text {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  color: rgba(8, 14, 21, 0.8);
}

.contact__contacts-title {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 0.85rem;
  background-color: #0D253F;
  color: #ffffff;
  border-radius: 2.4rem;
}

.contact__socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.contact__socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080E15;
  text-decoration: none;
}

.contact__socials-link:hover .contact__socials-link-title::before {
  opacity: 1;
}

.contact__socials-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 1.6rem;
  background-color: #F2F5FC;
}

.contact__socials-link-title {
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-left: 1.6rem;
  position: relative;
}

.contact__socials-link-title::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #080E15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact__socials-link svg,
.contact__socials-link img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.contact__socials-link:hover {
  background-color: #ffffff;
  color: #080E15;
}

@media only screen and (min-width: 768px) {
  .contact {
    padding-bottom: 12rem;
  }

  .contact__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact__content-contacts {
    max-width: 53.4rem;
    padding: 1.6rem 1.6rem 2.4rem;
    margin-top: auto;
  }

  .contact__form-wrapper {
    margin-top: 6rem;
  }

  .contact__success-title {
    font-size: 3.6rem;
  }

  .contact__contacts-title {
    font-size: 2.4rem;
    padding: 2.4rem;
  }
}

@media only screen and (min-width: 1280px) {
  .contact__success-title {
    font-size: 4.8rem;
  }
}