/* ------------------------------------------HTMX Loader------------------------------------------------------- */
#form {
  position: relative;
}
.contactform_header {
  margin: 0;
  margin-bottom: 1rem;
  text-align: center;
}
.htmx-indicator{
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
#spinner-image {
  width: 50px;
  height: 50px;
}
#spinner-image-small {
  width: 30px;
  height: 30px;
}

/* -----------------------------------Contact Form----------------------------------------- */
.dialog {
  border: none;
  padding: 20px;
  width: min(90vw, 400px);
  animation: fadein 0.5s ease-out;
}
.dialog:open {
  animation: fadein 0.5s ease-out;
  -webkit-animation: fadein 0.5s ease-out;
}
.dialog::backdrop {
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadein 0.5s ease-out;
  -webkit-animation: fadein 0.5s ease-out;
}

.dialog .close-button {
  position: absolute;
  right: 0;
  top: 0;
  background-color: unset;
  border: none;
  font-size: 1.2rem;
  color: #999999;
  cursor: pointer;
  &:hover {
    color: black;
  }
}


.contact-fold {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /* gap: 2rem; */
  margin: 100px auto;
  width: min(90vw, 800px);
}
.contact-fold h2 {
  flex-basis: 100%;
  text-align: center;
  font-family: "DM Serif Display";
  font-size: 3rem;
  line-height: 3rem;
  /* margin-bottom: 0; */
}
.contact-fold .contact-button {
  color: white;
  background-color: #073431;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  margin-top: 2rem;
  &:hover {
    background-color: #B59155;
  }
}
.contactform_2 {
  display: flex;
  /* flex-wrap: wrap; */
  flex-direction: column;
  gap: 2rem;
}
.contactform_2 > p {
  width: 90vw;
  text-align: left;
}
.contactform_2 .contactform p {
  background-color: #fff2f1;
  top: -10px;
  line-height: 1rem;
}

.contactform {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* width: min(80vw, 300px); */
  /* margin: 50px auto; */
}
.contactform label {
  font-family: "DM Serif Display";
  font-size: 1.5rem;
  color: #073431;
  & span {
    font-family: "Work Sans", sans-serif;
    color: #3A3A38;
  }
}
.contactform>.checkboxes {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: start;
  outline: none;
  padding-left: 1rem;
}
.contactform>.checkboxes>div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contactform>.checkboxes>div>div>label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.8rem;
}
.contactform>.checkboxes input[type="checkbox"] {
  width: 12px;
}

.contactform>div {
  position: relative;
  margin: 0.5rem 0;
  width: 100%;
  /* outline: 1px solid #2E2E2E; */
}
.contactform>div:last-of-type {
  outline: none;
}
.contactform>.checkboxes {
  outline: none;
}
.contactform input,
.contactform textarea {
  font-family: "Work Sans", sans-serif;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #073431;
  /* border: none; */
  background-color: transparent;

  &:focus {
      outline: none;
  }
}
.contactform textarea {
  font-family: "Work Sans", sans-serif;
  /* border: 2px solid #999999; */
}
.contactform input {
  /* height: 2rem; */
}


.thankyou {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(80vw, 300px);
  height: 100%;
}
.thankyou p {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 600px) {
  .dialog {
    padding: 50px;
  }
}
@media screen and (min-width: 768px) {
  /* .contact-fold {
    margin: auto;
  } */
  .contactform_2 {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: row;
    gap: 2rem;
  }
  .contactform_2 > p {
    width: 50%;
  }
}
