@import url("index.css");

/* -------------------- Contact Page -------------------- */
.contact__headline {
  margin-bottom: 12rem;
}

.contact__headline h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.contact__headline p {
  font-size: 2.4rem;
  opacity: 0.7;
}

.contact__content {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 5rem;
}

@media screen and (min-width: 1024px) {
  .contact__content {
    flex-direction: row;
  }
}

.contact__content form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
}

.contact__content form input,
.contact__content form textarea {
  height: 6rem;
  border: none;
  border-bottom: 0.1rem solid var(--black);
  font-size: 2rem;
}

.contact__content form textarea {
  resize: none;
}

.contact__content form input:focus,
.contact__content form textarea:focus {
  outline: none;
}

.contact__content form textarea {
  height: 16rem;
}

.contact__content form select {
  width: 100%;
  height: 6rem;
  padding: 10px;
  font-size: 2rem;
  border: none;
  border-bottom: 0.1rem solid var(--black);
  background-color: transparent;
  color: var(--black);
  outline: none;
  transition: all 0.3s ease-in-out;
}

.contact__content form select:focus {
  border-color: var(--rich-wood);
  outline: none;
}

.contact__button {
  width: 50%;
  margin: 0 auto;
  background-color: var(--rich-wood);
  color: var(--warm-white);
  border: 0.1rem solid var(--rich-wood);
  padding: 1rem;
  text-align: center;
}

.contact__button:hover {
  background-color: var(--copper);
  color: #ffffff;
  border-color: var(--copper);
}

.contact__img {
  width: 652px;
  height: 765px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
}

@media screen and (min-width: 1024px) {
  .contact__img {
    display: initial;
  }
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 16px;
  color: gray;
  transition: all 0.3s ease-in-out;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: black;
}

.error {
  border: 2px solid red;
  background-color: #ffe6e6;
}
