.head-title {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.head-title::before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  background-image: url("./../assets/images/sun.png");
  background-size: cover;
  width: 500px;
  height: 500px;
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: overlay;
  overflow: hidden;
}
.head-title h2 {
  padding: 20px;
  position: relative;
  z-index: 2;
  font-weight: 400;
  text-align: center;
  font-size: 32px;
}
@media (min-width: 1280px) {
  .head-title h2 {
    font-size: 64px;
  }
}

#contact .contact {
  display: flex;
  flex-direction: column;
}
#contact .contact img {
  position: relative;
  order: 2;
  border-radius: 12px;
  aspect-ratio: 2/3;
}
#contact .contact-form {
  position: relative;
  order: 1;
  margin-bottom: 75px;
}
#contact .contact-form input,
#contact .contact-form label {
  min-width: 100%;
  max-width: 100%;
  color: var(--text-color);
}
#contact .contact-form input sup,
#contact .contact-form label sup {
  color: var(--primary-color);
}
#contact .contact-form input,
#contact .contact-form textarea {
  margin-top: 10px;
  align-self: stretch;
  border: none;
  border-bottom: 1px solid var(--primary-color);
  background: #000;
  box-shadow: 0 10px 20px -10px rgba(var(--primary-color-rgb), 0.45);
  margin-bottom: 26px;
  padding: 6px 12px;
  color: var(--text-color);
  font-size: 18px;
}
#contact .contact-form input {
  height: 60px;
}
#contact .contact-form textarea {
  min-width: 100%;
  max-width: 100%;
}
#contact .contact-form label {
  display: block;
  margin-top: 26px;
}
#contact .contact-form form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
#contact .contact-form form hr {
  width: 100%;
  color: var(--pure-white);
  opacity: 0.2;
  height: 1px;
}
#contact .contact-form form > button {
  margin-top: 20px;
}
#contact .contact-form form > button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#contact .form-message {
  margin-top: 20px;
  padding: 16px 20px;
  padding-right: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
#contact .form-message--show {
  opacity: 1;
  transform: translateY(0);
}
#contact .form-message__content {
  flex: 1;
}
#contact .form-message__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
#contact .form-message__close:hover, #contact .form-message__close:focus {
  opacity: 1;
}
#contact .form-message__close:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}
#contact .form-message__close-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
#contact .form-message--success {
  border-color: var(--primary-color);
}
#contact .form-message--error {
  border-color: rgba(244, 67, 54, 0.8);
}

@media (min-width: 768px) {
  #contact .contact {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  #contact .contact img,
  #contact .contact .contact-form {
    width: 50%;
  }
  #contact .contact img {
    order: 1;
    margin-right: 10px;
    max-height: 770px;
  }
  #contact .contact-form {
    order: 2;
    margin-bottom: none;
  }
  #contact .contact form {
    align-items: end;
  }
}
