/* ------------------------------------------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----------------------------------------- */
.dialog, .dialog2 {
  border: none;
  padding: 20px;
  width: min(90vw, 400px);
  animation: fadein 0.5s ease-out;
}
.dialog:open, .dialog2:open {
  animation: fadein 0.5s ease-out;
  -webkit-animation: fadein 0.5s ease-out;
}
.dialog::backdrop, .dialog2::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, .dialog2 .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: "Inter 18pt";
  font-weight: 300;
  font-size: 3rem;
  line-height: 3rem;
  /* margin-bottom: 0; */
}
.contact-fold p {
  text-transform: capitalize;
  text-align: center;
  margin: 0;
}
.contact-fold button {
  background-color: #A3B8B4;
  font-family: "Nunito Sans";
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  color: #f2f2f2;
  border: none;
  margin-top: 2rem;
  cursor: pointer;
  &:hover {
    background-color: #c8d4d2;
  }
}
.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>.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 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: "Nunito Sans", sans-serif;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #2E2E2E;
  border: none;
  background-color: transparent;

  &:focus {
      outline: none;
  }
}
.contactform textarea {
  font-family: "Nunito Sans", sans-serif;
  /* border: 2px solid #999999; */
}
.contactform input {
  /* height: 2rem; */
}

.contact-button {
  background-color: #A3B8B4;
  font-family: "Nunito Sans";
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  color: #f2f2f2;
  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; */
  }
  .contactform_2 {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: row;
    gap: 2rem;
  }
  .contactform_2 > p {
    width: 50%;
  }
}
