.contacts-header-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 35vh;
  max-height: 400px;
  color: white;
  padding: 100px;
  background: linear-gradient(
    rgba(var(--primary-dark-blue-rgb), 0.8),
    rgba(var(--primary-dark-blue-rgb), 0.8)),
    url("https://trake.eu/images/contacts-image.jpg"
  );
  background-size: cover;
  background-position: center;

  h1 {
    font-size: 36px;
  }
}

#contacts {
  padding: 50px;
}
.contact-form-container {
  max-width: 1280px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  color: #191d25;
  background-color: #fff;
  padding: 40px;
  box-shadow: 1px 1px 20px 4px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}
.form-text {
  width: 40%;
  margin-right: 50px;

  h2 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  p {
    margin-bottom: 12px;
  }
}
.form-inputs {
  width: 60%;
}
.form-manual-contact {
  display: flex;
  align-items: center;
  margin-bottom: 10px;

  span {
    margin-left: 12px;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  a {
    color: #000;
    margin-left: 12px;
    text-underline-offset: 5px;
  }
}

input, textarea {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  height: 40px;
  width: 100%;
  padding: 6px 12px;
  margin-bottom: 16px;
}
input::placeholder, textarea::placeholder {
  color: black;
  opacity: 0.6;
}
textarea {
  height: 200px;
  resize: none;
}
.submit-notice {
  font-size: 12px;
  margin-bottom: 16px;
}
#submit-button {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  border: none;
  background-color: var(--primary-dark-blue);
  color: #fff;
  height: 40px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 2px;
}
#submit-dialog {
  position: fixed;
  top: 0;
  right: 0;
  margin-top: 60px;
  margin-right: 40px;
  width: 240px;
  height: 80px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  transition: opacity 0.3s ease-in-out;
}
#submit-dialog.hidden {
  opacity: 0;
}
#submit-dialog:not(.hidden) {
  opacity: 1;
}
#submit-dialog-container {
  display: flex;
  flex-direction: column;
}
.dialog-success {
  background-color: rgb(72, 206, 72);
}
.dialog-fail {
  background-color: rgb(230, 72, 72);
}
#dialog-close {
  margin-left: auto;
  padding-right: 10px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  text-align: center;
}
#dialog-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px 12px 12px;
}

@media (max-width: 876px) {
  .contact-form {
    padding: 25px;
  }
  .form-text {
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .contacts-header-container {
    height: 25vh;
    max-height: 250px;
    padding: 100px 25px;
  }
  .contacts-header-container > h1 {
    font-size: 24px;
  }

  #contacts {
    padding: 50px 20px;
  }
  .contact-form {
    flex-direction: column;
  }
  .form-text {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;

    h2 {
      font-size: 24px;
    }
    p, span, a {
      font-size: 14px;
    }
  }
  .form-inputs {
    width: 100%;
  }
  #submit-dialog {
    margin-right: 20px;
  }
}
