/************************************************************************************/
/*
/* flyout contact form overlay
/*
/************************************************************************************/

.contact-overlay {
  min-height: 100vh;
  height: 100%; 
  width: 0;
  position: fixed; 
  right: -1000px;
  top: 0;
  background-color: var(--overlay-background); 
  transition: 0.3s;
  z-index: 9999; 
  margin-right: 0 !important;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .contact-overlay {
    transition: 0.5s;
  }
}

.contact-overlay.blocked {
  overflow-y: hidden;  
}

.overlay-active {
  overflow: hidden;
}

/************************************************************************************/
/*
/* contact form
/*
/************************************************************************************/

.contact-page {
  width: 95%;
  max-width: 600px;

  color: #444;
  background-color: var(--overlay-form-background);

  -moz-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
  box-shadow: 0 0 1em rgba(0, 0, 0, .5);

  margin: 20px auto;
  overflow: auto;

  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;  
  border-radius: 6px;
}

.contact-page .title {
  position: relative;
}

.contact-page h2 {
  font-size: 24px;
  padding: 12px 25px;
  text-align: center;
  color: #333;
}

.contact-page span.close-contact-page {
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  text-shadow: 0 1px 0 #000;
  opacity: .6;
  position: absolute;
  top: -25px;
  right: 9px;
}

.contact-page h2 span:hover {
  opacity: .9;
}

.contact-page p {
  font-size: 15px;
  margin-top: 0px;
  margin-bottom: 6px;
}

.contact-page p.align-center {
  display: flex;
  align-items: center;
}

.contact-page p .icon {
  margin-right: 8px;
  margin-bottom: -2px;
  color: var(--icon-background-green);
}

.contact-page a {
  color: #4C74B9;
  text-decoration: underline;
  text-decoration-color: #D2DCEE;
  transition: all .3s ease;
}

.contact-page a:hover {
  text-decoration: underline;
} 

/************************************************************************************/
/*
/* lists and inputs
/*
/************************************************************************************/

.contact-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-page ul li {
  margin: 14px 0 0 0;
  padding: 0;
  position: relative;
}

.contact-page ul li p {
  font-size: 15px;
}

.contact-page ul li ul {
  list-style: disc;  
  padding-left: 20px;
}

.contact-page ul li ul li {
  margin-top: 5px;
  font-size: 15px;
}

.contact-page li.website {
  display: none;
}

.contact-page label {
  position: absolute;
  display: block;
  font-size: 12px;
  padding-top: 5px;
  padding-left: 8px;
  color: var(--sub-text-dark);
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  display: block;
  margin: 0;
  padding: 20px 4px 4px 6px;
  color: #444;
  width: 100%;
  font-size: 1em;
  border: none;
//  background: #ddd;
  border-radius: 5px;
  border: 1px solid var(--sub-text);
}

.contact-page textarea {
  height: 10em;
  line-height: 1.5em;
  resize: none;
}

.contact-page *:focus {
  border: 1px solid #aaa;
  outline: none;
}

.contact-page input:-webkit-autofill,
.contact-page input:-webkit-autofill:hover, 
.contact-page input:-webkit-autofill:focus,
.contact-page textarea:-webkit-autofill,
.contact-page textarea:-webkit-autofill:hover,
.contact-page textarea:-webkit-autofill:focus,
.contact-page select:-webkit-autofill,
.contact-page select:-webkit-autofill:hover,
.contact-page select:-webkit-autofill:focus {
  -webkit-text-fill-color: #444;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

/************************************************************************************/
/*
/* buttons
/*
/************************************************************************************/

.contact-page li.form-buttons {
  display: flex;
  justify-content: center;
  padding: 15px 0 25px 0;
}

.contact-page li.form-buttons input[type="button"] {
  background: var(--secondary); 
  color: var(--text);
}

.contact-page li.form-buttons input[type="button"]:hover {
  background: var(--secondary-dark); 
}

/************************************************************************************/
/*
/* contact form
/*
/* https://www.elated.com/slick-ajax-contact-form-jquery-php/
/*
/************************************************************************************/

#contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 10px;
}

@media (min-width: 520px) {
  #contact-form {
    max-width: 95%;
  }
}

#contact-form.hidden {
  display: none;
}

/************************************************************************************/
/*
/* send message result
/*
/************************************************************************************/

#contact-form-submit-success,
#contact-form-submit-error {
  height: 100%;
  margin: 0 10px;
  font-size: 16px;
}

#contact-form-submit-success.hidden,
#contact-form-submit-error.hidden {
  display: none;
}

.contact-form-result {
  width: 95%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 10px;
}

.contact-form-result p.error {
  color: var(--error);
  font-size: 18px;
  font-weight: 500;
}

.contact-form-result p.success {
  color: var(--success);
  font-size: 18px;
  font-weight: 500;
}

#form-thank-you-name {
  padding-left: 10px;
}