.email-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 10;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: black;
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */ 
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 20px auto;
  /* 15% from the top and centered */
  border-radius: 8.5px;
  max-width: 90%; 
}
.modal-content input:focus {
    outline: none; 
}

#email-optin {
  margin-top: 25px; 
}

#formSuccess {
  display: none; 
}

.modal-content-fields {
  padding: 0px 2rem 2rem 2rem; 
}
  .modal-content-fields h2 {
    margin-top: 2rem !important; 
}

/* The Close Button */
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer; 
}

.email-optin-img {
  text-align: center;
  width: 100%; 
}
  .email-optin-img img {
    width: inherit; 
}

.modal-content input {
  padding: 9px 25px 7px 13px;
  /*border-radius: 8px;*/
  /*box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);*/
  border: solid 1px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  line-height: 1.375rem;
  font-size: .725rem;
}

.inputRow {
  display: flex;
  flex-wrap: wrap; 
}

.inputBox {
  margin-bottom: 15px;
  margin-right: 10px;
  display: block; 
}

/*.inputRow:nth-child(4) > .inputBox,*/
.inputRow:nth-child(7) > .inputBox {
  margin-bottom: 0px;
}

.errorMsg {
  border: 2px solid red !important; 
}

.errorText {
  display: none;
  color: red;
  font-size: 12px; 
}

.email-optin-modal .submit_btn {
  color: #ffffff;
  background-color: #007EB3;
  border: none;
  padding: 1rem 2rem !important;
  border-radius: 5px;
}

.email-optin-modal .submit_btn:hover {
  color: #ffffff;
  background-color: #004b6b;
  border: none;
}


.email-optin-modal .addlink-color {
  /*color: #286ce2;*/
  font-weight: 700;
}

#footertext {
  margin-top: 0px !important;
}

@media screen and (max-width: 480px) {
    .inputBox {
        width: 100%; 
    }
    .widthInput {
        width: 90%; 
    }
    .widthLongInput {
        width: 90%;
    }
    .widthMidInput {
        width: 90%; 
    }
    .widthSmallInput {
        width: 90%;
    } 
}

@media screen and (min-width: 481px) {
  .modal-content {
    width: 640px;
    max-width: 90%; 
    } 
}

@media screen and (min-width: 481px) and (max-width: 800px) {
    .widthInput {
        width: 236px; 
    }
    .widthLongInput {
        width: 340px;
    }
    .widthMidInput {
        width: 96px; 
    }
    .widthSmallInput {
    width: 85px; 
    } 
}

@media screen and (min-width: 801px) {
    .widthInput {
        width: 236px; 
    }
    .widthLongInput {
        width: 340px; 
    }
    .widthMidInput {
        width: 96px; 
    }
    .widthSmallInput {
        width: 85px; 
    }
}
