/* ------------------------------------------HTMX Loader------------------------------------------------------- */
#form {
  position: relative;
}
.contactform_header {
  color: #72827f;
  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----------------------------------------- */
.contact-fold {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /* gap: 2rem; */
  margin: auto;
  width: min(90vw, 900px);
}
.contact-fold h2 {
  flex-basis: 100%;
  text-align: center;
}
.contact-fold>.map {
  /* width: min(90vw, 900px);
  height: 300px; */
  & iframe {
    width: min(90vw, 900px);
    height: 300px;
  }
}
.contact-fold >.contact-2-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  &>div {
    width: min(90vw, 450px);
  }
}
.contact-fold p {
  text-transform: capitalize;
  /* text-align: center; */
  margin: 0;
}
.contact-fold button {
  background-color: #3B3A3A;
  font-family: 'Avenir Light', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  color: rgb(237,205,31);
  border: none;
  cursor: pointer;
  &:hover {
    background-color: rgb(237,205,31);
    color: #3B3A3A;
  }
}

.contactform {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* width: min(80vw, 300px); */
  margin: 20px auto;
}

.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 p {
  position: absolute;
  font-size: 0.7rem;
  margin: unset;
  background-color: white;
  top: -10px;
  right: 5px;
  padding: 0 5px;
}

.contactform input,
.contactform textarea {
  font-family: 'Helvetica Light', sans-serif;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #2E2E2E;
  border: none;
  background-color: transparent;

  &:focus {
      outline: none;
  }
}
.contactform textarea {
  font-family: 'Helvetica Light', sans-serif;
  /* border: 2px solid #999999; */
}
.contactform input {
  /* height: 2rem; */
}

.contact-button {
  background-color: #3B3A3A;
  font-family: 'Avenir Light', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  color: rgb(237,205,31);
  border: none;
  width: 100%;
  margin: auto;
  cursor: pointer;
  &:hover {
    background-color: #c8d4d2;
  }
}

.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, .dialog2 {
    padding: 50px;
  }
}
@media screen and (min-width: 768px) {
  .contact-fold {
    /* margin: auto; */
  }
  .contact-fold >.contact-2-column {
    flex-direction: row;
    &>div {
      width: 50%;
    }
  }
  .contactform_2 {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: row;
    gap: 2rem;
  }
  .contactform_2 > p {
    width: 50%;
  }
}
