#sendingMessage,
#successMessage,
#failureMessage,
#incompleteMessage
{
    display: none;
}


#bd_senderName,
#bd_senderEmail,
#bd_sendermessage
{
    max-width: 300px;
    font-size: 14px;
}

#bd_sendermessage
{
    width: 300px;
}

#bd_sendMessage
{
    float: left;
    height: 30px;
    font-size: 13px;
  
}
#bd_cancel
{
    background: gray;
    height: 30px;
    font-size: 13px;
}


#bd_contactForm, .bd_statusMessage, input[type="submit"], input[type="button"] {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;  
  border-radius: 5px;
  font-size: 14px;
}

#bd_contactForm, .bd_statusMessage {
  color: #666;
  background-color: #ebedf2;
  background: -webkit-gradient( linear, left bottom, left top, color-stop(0,#dfe1e5), color-stop(1, #ebedf2) );
  background: -moz-linear-gradient( center bottom, #dfe1e5 0%, #ebedf2 100% );  
  border: 1px solid #aaa;
  -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);
  opacity: .95;
}


/* The form dimensions */

#bd_contactForm {
  width: 37em;
  height: 25.5em;
  padding: 0 1.5em 1.5em 1.5em;
  margin: 0 auto;
  /* display:  none; */
}


/* Position the form in the middle of the window (if JavaScript is enabled) */

#bd_contactForm.bd_positioned {

  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
 
}


/* Dimensions and position of the status messages */

.bd_statusMessage {

  margin: auto;
  width: 30em;
  height: 5em;
  padding: 1.5em;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 20px;
}

.bd_statusMessage p {
  text-align: center;
  margin: 0;
  padding: 0;
}


/* The header at the top of the form */

#bd_contactForm h2 {
  font-size: 1.5em;
  font-style: italic;
  letter-spacing: .05em;
  margin: 0 0 1em -.75em;
  padding: .6em;
  width: 18.5em;  
  color: #aeb6aa;
  border-bottom: 1px solid #aaa;
  -moz-border-radius: 10px 10px 0 0;
  -webkit-border-radius: 10px 10px 0 0;  
  border-radius: 10px 10px 0 0;
}


#bd_contactForm ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#bd_contactForm ul li {
  margin: .9em 0 0 0;
  padding: 0;
}

#bd_contactForm input, #bd_contactForm label {
  line-height: 1em;
  padding: 5px;
}


/* The field labels */

label.bd_contact {
  display: block;
  float: left;
  clear: left;
  text-align: right;
  width: 28%;
  padding: .4em 0 0 0;
  margin: .15em .5em 0 0;
  font-weight: bold;
}


/* The fields */

input#bd_senderEmail,
input#bd_senderName,  
textarea#bd_sendermessage {
  display: block;
  margin: 0;
  padding: .4em;
  width: 67%;
  font-family: "Georgia", serif;
  font-size: 1em;
  border: 1px solid #aaa;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;    
  border-radius: 5px;
  height: 40px;
  background: #fff;
}

textarea#bd_sendermessage {
  height: 7em;
  line-height: 1.5em;
  resize: none;
}


#bd_contactForm *:focus {
  border: 1px solid #66f;
  outline: none;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}


#bd_sendMessage, #bd_cancel
{
  width: 130px;
  padding: 10px;
  margin-right: 10px; 
}   



@media only screen and (max-width: 800px)
{


    #bd_contactForm {
      max-width: 24em !important;
      height: 23.5em;
      padding: 0 1.5em 1.5em 1.5em;
      margin: 0 auto;
    }
    
    #bd_senderName,
    #bd_senderEmail,
    #bd_sendermessage
    {
        max-width: 200px;
        font-size: 13px;
    }
    
    #bd_sendermessage
    {
        width: 200px;
    }
    #bd_contactForm h2 {
      font-size: 1.2em;
      font-style: italic;
      letter-spacing: .05em;
      margin: 0 0 1em -.75em;
      padding: .4em;
      width: 18.5em;  
      color: #aeb6aa;
      border-bottom: 1px solid #aaa;
      -moz-border-radius: 10px 10px 0 0;
      -webkit-border-radius: 10px 10px 0 0;  
      border-radius: 10px 10px 0 0;
    }
}