.contact .hero h1 {
  text-align: center;
  width: 100%;
}

.contact .hero {
  height: 700px;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.contact .hero .hero-image {
  object-position: top;
}

@media (max-width: 768px) {
  .contact .hero {
    height: 50vh;
    min-height: 400px;
  }
}

/* -------------------------- */
.contact .main {
  position: relative;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 3rem 0;

  background-color: #f5f5f5;
}

.contact .main .container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact .main .container .overlay {
  width: 100%;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;

  position: absolute;
  top: -10rem;

  z-index: 50;
}

.contact .main .container .overlay .card {
  width: 100%;

  height: 15rem;
  border-radius: 5px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;

  background-color: #fff;
  transition: 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #85858541;
}

.contact .main .container .overlay .card h2 {
  color: #58669f;
  font-size: 1.6rem;
  font-weight: 700;
}

.contact .main .container .overlay .card p {
  color: #58669f;
  font-size: 1.2rem;
  font-weight: 400;
}

.contact .main .container .overlay .card i {
  font-size: 2rem;
  color: #58669f;
}

.contact .main .container .overlay .card .media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact .main .container .overlay .card .media i {
  color: #58669f;
  font-size: 1.6rem;
}

.contact .main .container .overlay .card:hover {
  background-color: #58669f;
  transition:
    background-color 0.3s ease,
    transform 0.4s ease;
  transform: translateY(-15px);

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact .main .container .overlay .card:hover i {
  color: #fff;
  transition: transform 0.6s ease;
}

.contact .main .container .overlay .card:hover h2 {
  color: #fff;
  transition: transform 0.6s ease;
}

.contact .main .container .overlay .card:hover p {
  color: #fff;
  transition: transform 0.6s ease;
}

.contact .main .forms {
  height: auto;
  width: 100%;
  margin-top: 2rem;
  padding: 4rem 2rem 3rem 2rem;
  background-color: #58669f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  border-radius: 5px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  margin-top: 7rem;
}

.contact .main .form {
  height: auto;
  width: 50%;
}

.contact .main .form h2 {
  text-align: cente;
  color: #fff;
}

.contact .map {
  width: 45%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 0 0rem 0;
}

.contact .map iframe {
  width: 100%;
  height: 500px;
}

@media only screen and (max-width: 768px) {
  .contact .main {
    padding: 0;
    padding-top: 2rem;
  }

  .contact .main .container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .contact .main .container .overlay {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: relative;
    top: 0rem;

    padding: 0rem 0.5rem 2rem 0.5rem;
    box-sizing: border-box;
  }

  .contact .main .forms {
    height: auto;
    width: 100%;
    margin-top: 0rem;
    padding: 2rem 0.5rem;
    background-color: #58669f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 0px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    margin-top: 0rem;
  }

  .contact .main .form {
    height: auto;
    width: 100%;
    text-align: center;
  }

  .contact .map {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 0 0rem 0;
    padding-top: 3rem;
  }
}

/* ---------------------------------------- */

/* ------------------------ */
.contact form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.input-group {
  width: 100%;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e1e3e4;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #58669f;
}

.input-group textarea {
  resize: vertical;
  min-height: 180px;
  font-family: inherit;
}

form button {
  align-self: flex-start;
  margin-top: 1rem;

  background-color: #fff;
  color: #58669f;
  transition: 0.6s ease;
  border: 1px solid #fff;
  font-size: 1.2rem;
}

form button:hover {
  background-color: #58669f !important;
  color: #fff;
}
