.contact__container {
  background: var(--color-bg1);
  padding: 4rem;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  height: auto; /* Changed from fixed height of 3rem */
  margin: 7rem auto;
  border-radius: 1rem;
}

a {
  text-decoration-line: none;
}

.contact__aside {
  background: var(--color-primary);
  padding: 3rem;
  border-radius: 1rem;
  position: relative;
  bottom: 0; /* Changed from bottom: 10rem */
}

.aside__image {
  width: 12rem;
  margin-bottom: 2rem;
}

.contact__aside h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: white; /* Added to match the image */
}

.contact__aside p {
  font-size: 0.9rem;
  margin-bottom: 2rem; /* Increased from 1rem */
  color: rgba(255, 255, 255, 0.8); /* Added to match the image */
}

.contact__details li {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  color: white; /* Added to match the image */
}

.contact__details i {
  font-size: 1.2rem; /* Added to match icon size in image */
}

.contact__socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem; /* Added space before social icons */
}

.contact__socials a {
  background: var(--color-bg2);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex; /* Added to center icons */
  align-items: center;
  justify-content: center;
  width: 2rem; /* Fixed width for circular icons */
  height: 2rem; /* Fixed height for circular icons */
  color: white; /* Added to match the image */
}

.contact__socials a:hover {
  background: transparent;
  border: 1px solid white; /* Added border on hover */
}

/* Add form styling for right side */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-right: 4rem; /* Added to match image spacing */
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--color-bg);
  color: var(--color-white);
  border: 1px solid var(--color-bg2);
  border-radius: 0.3rem;
  resize: none;
}

.btn {
  width: max-content;
  padding: 0.75rem 1.2rem;
  background: var(--color-danger);
  color: var(--color-white);
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--color-danger-variant);
  color: var(--color-white);
}

/* media queries for tbalet  */

@media screen and (max-width: 1024px) {
  .contact__container {
    gap: 1.5rem;
    margin-top: 3rem;
    height: auto;
    padding: 1.5rem;
  }

  .contact__aside {
    width: auto;
    padding: 1.5rem;
    bottom: 0;
  }

  .contact__form {
    align-self: center;
    margin-right: 1.5rem;
  }
}

/* mobile */

@media screen and (max-width: 1024px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 0;
    padding: 0;
  }

  .contact__form {
    margin: 0 1.5rem 3rem;
  }

  .form__name {
    flex-direction: column;
  }

  .form__name input [type="text"] {
    width: 100%;
  }
}
