/*--------------------------- 
KNN Newsletter CSS 
---------------------------*/

/*** Misc ***/
.d-flex {
  display: flex;
}
.d-none {
  display: none;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.w-100 {
  width: 100%;
}
.floating-img {
  position: absolute;
  right: 20px;
  max-width: 90px;
  top: -80px;
}
/*** Misc End ***/

/*** Form ***/
.newsletter-title {
  font-size: 24px;
  line-height: 30px!important;
  font-weight: 300;
  margin: 0 0 7px 0;
  color: #0f5b74;
  font-style: italic;
  font-weight: 600;
}
.newsletter-title span {
  color: #00b6f0;
}
.newsletter-subtitle {
  color: #0f5b74;
}
.col-form {
  padding: 10px 35px 0 35px;
}
.knn-mc-form-fields fieldset {
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.knn-mc-form-fields .news-legal {
  opacity: 0;
  z-index:-1;
  font-size: 0.8em;
  position: absolute;
  top: calc(100% + 10px);
  padding: 20px;
}
.knn-mc-form-fields.open .news-legal {
  opacity: 1;
  z-index: 9999;
  background: #f3f3f3;
  transition: 0.3s all
}
.knn-mc-form-fields label {
  cursor: pointer;
  font-weight: 400;
}
.mc4wp-form {
  padding:0
}
.news-inputs {
  margin-bottom:0
}
.news-terms {
  margin-bottom: 10px!important;  
}
.terms-checkbox a {
  color: #0f5b74;
  text-decoration: underline;
}
/* .knn-mc-form-fields > div {
  background-color:#f3f3f3
} */

.knn-mc-form-fields {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #e3e7f8;
  padding: 35px 70px;
  border-radius: 6px;
  background-color: #f3faff;
}

.knn-mc-form-fields .news-legal {
  opacity: 0;
  z-index: -1;
  font-size: 0.8em;
  position: absolute;
  top: calc(100% - 15px);
  width: calc(100% - 40px);
  padding: 20px;
  border-radius: 7px;
  box-shadow: 0 3px 6px rgb(0 0 0 / 15%);
}

.knn-mc-form-fields.open .news-legal {
    opacity: 1;
    z-index: 9999;
    background: #f3f3f3;
    transition: 0.3s all
}

.knn-mc-form-fields .news-legal p {
    margin-bottom: 10px;
    line-height: 1.25;
  font-size:0.9em
}

.knn-mc-form-fields .news-legal a {
  text-decoration: underline
}

.knn-mc-form-fields .news-inputs {
    display: flex;
  width:100%;
  position: relative;
  flex-direction: column;
  margin: 5px 0;
}

.knn-mc-form-fields .legal-close {
  background-color: #e0dfdf;
  padding: 6px 10px 8px 10px;
  display: inline-block;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
}

.knn-mc-form-fields .legal-close:hover {
    background-color: #dadada
}

.knn-mc-form-fields input[type="email"], .knn-mc-form-fields input[type="text"] {
  border-radius: 3px;
  padding: 10px 30px;
  background-color: #fff;
  transition: 0.3s all;
  width: 100%;
  margin-bottom: 6px;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px 0 rgb(130 130 130 / 50%);
}
.knn-mc-form-fields input[type="checkbox"] {
  margin-right: 5px;
}
.knn-mc-form-fields input[type="email"]:focus, .knn-mc-form-fields input[type="text"]:focus {
    box-shadow: 0px 3px 6px rgb(0 0 0 / 30%);
    transition: 0.3s all
}

.knn-mc-form-fields input[type="email"]::placeholder {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  opacity: 0.6;
  font-weight: 400;
}

.knn-mc-form-fields input[type="submit"] {
  color: #fff;
  border-radius: 2px;
  background: rgb(157,211,110);
  background: linear-gradient(180deg, rgba(157,211,110,1) 0%, rgba(115,173,77,1) 100%);
  padding: 10px 65px;
  font-weight: 600;
  margin-left: 20px;
  border: none;
  cursor: pointer;
  text-transform: none;
  font-size: 15px;
  line-height: 20px;
  font-family: inherit;
  margin: 0;
  height: auto;
  max-height: none;
  width: auto;
  font-weight: 600;
  text-transform: uppercase;
}

.knn-mc-form-fields input[type="submit"]:hover,
.knn-mc-form-fields input[type="submit"]:focus {
  color: rgb(124, 182, 74) !important;
  background: white;
  outline: 1px solid rgb(157,211,110);
}
/*** Form End ***/

/*** Validations ***/
#mc_embed_signup div.mce_inline_error {
  position: absolute;
}
.name-error, .email-error, .terms-error {
  position: absolute;
  bottom: -30px;
  display: block;
  border-radius: 3px;
  background-color: red;
  color: white;
  z-index: 1;
  padding: 2px 10px;
  font-size: 15px;
  display: none;
}
.name-error, .email-error {
  left: 0;
  bottom: -30px;
}
.terms-error {
  left: 0;
  bottom: -25px;
  white-space: nowrap;
}
/*** Validations End ***/

/*** Images ***/
.img-fluid {
  max-width: 100%!important;
}
/*** Images End ***/

/*** Custom Checkbox ***/
/* Customize the label (the container) */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: white;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px 0 rgb(130 130 130 / 50%);
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
  background-color: rgb(157,211,110);
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background-color: rgb(157,211,110);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/*** Custom Checkbox End ***/
@media screen and (max-width: 991px) {
  .mc-row {
    flex-direction: column-reverse;
  } 
  .knn-mc-form-fields {
    padding: 35px 15px;
  }
  .knn-mc-form-fields input[type="submit"] {
    width: 100%;
  }
}
@media screen and (max-width:600px) {
      
  .knn-mc-form-fields .news-inputs {
    flex-direction:column
  }

  .knn-mc-form-fields .news-inputs input[type="email"] {
    margin-bottom:10px
  }

  .knn-mc-form-fields .news-inputs input[type="submit"] {
    margin:0;
    max-width:unset
  } 
  .newsletter-title {
    font-size: 20px;
    line-height: 26px!important;
    margin: 0 0 12px 0;
    text-align: center;
  }
  .newsletter-subtitle {
    text-align: center;
    font-size: 14px;
    line-height: 18px;
  }
  .knn-mc-form-fields label {
    font-size: 13px;
}
}
@media screen and (min-width: 991px) {
  .d-lg-flex {
    display: flex;
  }
  .d-lg-none {
    display: none;
  }
  .col-form {
    padding: 0 35px;
  }
}