.container-contact {
  width: 46.875rem;
  height: 34.375rem;
  border-radius: 0.3125rem;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  background-color: var(--w);
  margin-bottom: 60px;
}

body main {
  width: 46.875rem;
  margin: 0 auto;
}

.lateral-bar {
  height: 100%;
  width: 2rem;
  border-radius: 0.3125rem 0rem 0rem 0.3125rem;
  background: linear-gradient(#ff3c2e, #b52628);
}

.form {
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 6.06rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "name phone"
    "email email"
    "message message"
    "button button";
  column-gap: 1.25rem;
}

.name,
.phone,
.email {
  max-height: 3rem;
}

.name {
  grid-area: name;
}

.phone {
  grid-area: phone;
}

.email {
  grid-area: email;
}

.message {
  grid-area: message;
}

.message {
  max-height: 10rem;
}

.action {
  grid-area: button;
  display: flex;
  padding: 1rem 2rem;
  border-radius: 0.3125rem;
  background: linear-gradient(#ff3c2e, #b52628);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: "Poppins";
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5rem;
  align-self: flex-end;
  margin-left: auto;
}

.action:hover {
  background: linear-gradient(#d43226, #b52628);
}

h1 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--c12);
  font-family: "Poppins";
  font-size: 2rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

@media screen and (max-width: 777px) {
  .container-contact {
    margin: 0 auto;
    margin-top: 1rem;
    width: 95%;
  }

  h1 {
    width: 95%;
    margin: 0 auto;
    margin-top: 2rem;
  }

  body main {
    width: auto;
    margin: 0;
  }

  .form {
    padding-right: 2.5rem;
  }
}

@media screen and (max-width: 550px) {
  h1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "phone"
      "email"
      "message"
      "button";
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .lateral-bar {
    width: 1rem;
  }

  button {
    grid-area: button;
    display: flex;
    cursor: pointer;
    padding: 0.25rem 0.25rem;
    font-size: 0.9rem;
  }

  .name,
  .phone,
  .email {
    max-height: 2.5rem;
  }

  .message {
    max-height: 8rem;
  }
}
