/* ------------------------------------------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: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 0;
}
.contact-fold p {
  margin-top: 0;
  margin-bottom: 2rem;
}
/* .contact-fold .contact-button {
  color: white;
  background-color: #073431;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  margin-top: 2rem;
  &:hover {
    background-color: #B59155;
  }
} */

.contact-fold .contact-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: white;
  text-transform: uppercase;
  background-color: #407D96;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  padding-top: 1rem;
  &:hover {
    background-color: #9cbeba;
  }
}

.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, 500px);
  /* margin: 50px auto; */
}
.contactform label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #444444;
  & span {
    font-family: 'Montserrat', 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: 'Montserrat', sans-serif;
  width: 100%;
  padding: 0.8rem 1rem;
  /* border: 1px solid #073431; */
  border: none;
  border-radius: 5px;
  background-color: #ebebeb;

  &:focus {
      outline: none;
  }
}
.contactform textarea {
  font-family: 'Montserrat', 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%;
}

/* -----------------------------------Contact Section----------------------------------------- */

.contact__section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: min(90vw, 1000px);
  margin: auto;
}
.contact__section>.contact__text {
  & h1 {
    margin-top: 0;
  }
}

@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%;
  }
  .contactform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
  }
  .contactform>.grid-span2 {
    grid-column: 1 / 3;
  }
}
