/* -------------------[ Main Layout ]------------------- */
#dwidge {
    width: 320px; 
    height: 64px;
    right: 0;
    bottom: 0;
    -webkit-box-shadow: 0 0 20px 0 rgba(50, 50, 50, 0.5);
    -moz-box-shadow: 0 0 20px 0 rgba(50, 50, 50, 0.5);
    box-shadow: 0 0 20px 0 rgba(50, 50, 50, 0.5);
    border: none;
    background-color: transparent; 
    font-size: 15px;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; 
    z-index: 1000;
    position:fixed;
    display:none;
}

#dwidge.small {
    width: 100%;   
}

#dwidge.maximized {
    background-color: #87c2e4;
    padding: 0;
    width: 365px;
    height: auto;
    max-height: 600px;    
    border: none; 
    border-radius: 5px 5px 0 0;
}

#dwidge.maximized.small {
    width: 90%;
    margin: 0 5%;
    max-height: 500px;
    overflow: auto;
}

#dwidge.mobile.landscape.maximized {
    max-height: 90%;
    overflow: auto;    
}

/* On very small phones, allow user to scroll inside widget */
@media (max-width: 320px) {
    #dwidge.mobile.maximized {
        max-height: 90%;
        overflow: auto;    
    }    
}

#dwidge #dwidge-close {
    z-index:999 !important;
    position: absolute;
    top: 5px;
    left: 5px;
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif; 
    background-color: white;
    border-radius: 5px;
    padding: 2px 6px 0;
}

#dwidge.maximized #dwidge-close {    
    left: auto;
    top: 7px;
    right: 7px; 
}

#dwidge #dwidge-close a:link {
    color: black; 
    text-decoration: none;
    line-height: 21px;   
}

#dwidge .form-screen .widget-header {
    width: 100%;
    height: 64px;
    cursor: pointer;
    background-color: #87c2e4;
} 

#dwidge.no-collapse .form-screen .widget-header {
    cursor: default;
} 


#dwidge.maximized .form-screen .widget-header {
    background-image: none;
    width: 100%;
    height: auto;
}

#dwidge .widget-header-text {    
    text-align: center; 
    width: 80%;
    margin: 0px auto;
    padding-top: 5px;
    box-sizing: border-box;
}

#dwidge .widget-header-text p {
    color: #232323;
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 100;
    box-sizing: border-box;
}

#dwidge.large .widget-header-text p {
    font-size: 19px;    
}

#dwidge .form-screen .widget-header-text.collapsed {
    display: block; 
    width: 100%;
}

#dwidge .widget-header-text.collapsed p {
    display: inline-block;
    line-height: 24px;
    width: 75%; 
    float: left;
    margin-bottom: 0;
    padding: 5px 10px 5px 30px;
}

#dwidge .widget-header-text.collapsed p.header-button {
    display: inline-block;
    float: right;
    width: 25%;
    background-color: #a21617;
    color: white;
    padding: 20px 10px 0 10px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 20px;
}

#dwidge .widget-header-text.collapsed p.header-button::after {
    content: ' \2192'; 
    font-size: 1.3em;  
}

#dwidge.maximized .form-screen .widget-header-text.expanded {
    display: block;
    font-size: 24px;
    line-height: 30px;
}

#dwidge.maximized .form-screen .widget-header-text.collapsed {
    display: none;   
}

#dwidge.maximized.large .form-screen .widget-header-text.expanded {
    width: 56%;
    margin: 20px 0 0 15px;
    float: left;
}

#dwidge.maximized .form-screen .widget-header-icon {
    display: block;
    width: 80px;
    height: 90px;
    margin: 10px auto;
    background-repeat: no-repeat;
    background-image: url('img/cat-circle-eye-contact.png');
    background-size: cover;
    transition: all 0.3s linear;
}

#dwidge.maximized.cms .form-screen .widget-header-icon {
    background-image: url('http://action.humanesociety.org/assets/css/day-of-giving/img/dog-circle.png');
    width: 90px;
    height: 90px;
}

#dwidge.maximized.force-dog .form-screen .widget-header-icon {
    background-image: url('http://action.humanesociety.org/assets/css/day-of-giving/img/dog-circle.png');
    width: 90px;
    height: 90px;   
}

#dwidge.maximized.force-cat .form-screen .widget-header-icon {
    background-image: url('http://action.humanesociety.org/assets/css/day-of-giving/img/cat-circle-eye-contact.png');
    width: 80px;
    height: 90px;  
}

#dwidge.maximized.force-wayne .form-screen .widget-header-icon {
    background-image: url('http://action.humanesociety.org/assets/css/day-of-giving/img/wayne-circle.png');
    width: 90px;
    height: 90px;  
}

#dwidge.maximized.large .form-screen .widget-header-icon {
    float: right;
    margin: 7px 35px 0 5px;
}

#dwidge.maximized .form-screen .widget-header-icon:hover {
    transform: translateY(-5%);    
}

#dwidge.maximized.small .form-screen .widget-header-icon:hover {
    transform: translateY(-5%);    
}


/* -------------------[ Form Guts ]------------------- */

#dwidge .form-container {
    padding: 10px 20px 20px;
}

#dwidge p.form-intro-text {
    color: #07396e;
    font-size: 15px;
    font-weight: bold; 
    margin-bottom: 10px;   
}

#dwidge .input-wrapper {
    display: inline-block; 
    width: 100%;  
}

#dwidge fieldset {
  margin-bottom: 15px;
}


#dwidge label.question {
    font-weight: bold;
    font-size: 15px;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: inline-block;
    margin-bottom: 5px;
}

#dwidge input[type=text] {
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; 
    border: solid 1px #d0d0d0;
    height: 37px;
    line-height: 20px;
    box-sizing: border-box;
    margin: 7px 0 0;
    color: black;
    font-size: 14px;
    padding: 2px 6px;
    width: 100%; 
}


@media (min-width: 1025px) {
    #dwidge .input-wrapper.two-col-lg {
        width: 49%;  
    }
    
    #dwidge .input-wrapper.two-thirds-lg {
        width: 65%;  
    }
    
    #dwidge .input-wrapper.one-third-lg {
        width: 32.5%;
        margin-left: 3px;  
    }
}

#dwidge input[type=text]::-webkit-input-placeholder {
    font-family: Arial, Helvetica, sans-serif; color: #b9b9b9; font-size:17px; 
}
#dwidge input[type=text]:-moz-placeholder { 
    font-family: Arial, Helvetica, sans-serif; color:#707070; font-size:17px; 
}

#dwidge input[type=text]::-moz-placeholder { 
    font-family: Arial, Helvetica, sans-serif; color: #707070; font-size:17px; 
}
#dwidge input[type=text]:-ms-input-placeholder {
    font-family: Arial, Helvetica, sans-serif; color: #b9b9b9; font-size:17px; 
}

/* Lighten input placeholders on focus */
#dwidge input[type=text]:focus::-webkit-input-placeholder { 
    color: rgb(169, 169, 169);
}
#dwidge input[type=text]:focus:-moz-placeholder  { 
    color: rgb(169, 169, 169);
}
#dwidge input[type=text]:focus::-moz-placeholder  { 
    color: rgb(169, 169, 169);
}
#dwidge input[type=text]:focus:-ms-input-placeholder { 
    color: rgb(169, 169, 169);
}
#dwidge p, #dwidge label {
  line-height: 1.2;
}

#dwidge button#dwidge_submit {
    -webkit-border-radius: 2;
    -moz-border-radius: 2;
    border-radius: 4px;
    font-family: "Frutiger W01", Arial, Helvetica, sans-serif;
    color: #ffffff;
    font-size: 1.466666em;
    background: #a21617;
    padding: 15px 0;
    text-transform: uppercase;
    cursor: pointer;
    border: 0;
    line-height: 1em; 
    margin: 25px auto;
    display: block;
    width: 80%;
    text-align: center;
    -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

#dwidge button#dwidge_submit:hover {
  background: #ce1b1c;
}

#dwidge.large button#dwidge_submit {
    width: 50%;
    margin: 15px auto;    
}

#dwidge button#dwidge_submit::after {
    background-image: none;   
}

#dwidge a#no-thanks-link {
  display: inline;
  cursor: pointer;
  margin-top: 7px;
  font-size: 12px;
  color: #235c9f;
  text-decoration: underline;
  text-align: right;
  float: right;
}

#dwidge input.error {
    outline: none;
    box-shadow: none;
    border-color: #a21617;  
}

#dwidge input.error:focus {
    box-shadow: 0 0 10px #A2A2A2;       
}

#dwidge label.error { 
    display: block; 
    color: #3777c8; 
    font-size: 12px; 
    line-height: 10px; 
    margin-left: 5px;
}

#dwidge .note {
    font-family: "Frutiger W01", Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    line-height: 1.25em;
    color: #232323;
    text-align: center;
    width: 85%;
    margin: 0 auto;
}

#dwidge.large .note {
    font-size: 9px; 
    width: 70%;   
}

#dwidge-iframe {
    display: none;   
}


/* Thanks */

#dwidge.thanking {
    height: 110px;
    left: auto;
    top: auto;
    bottom: -2px;
    right: 0;      
}

#dwidge.tablet.thanking {
    height: 130px;
}

#dwidge .thanks-screen { 
    background-color: #f5f7f9;    
    padding: 20px 0;
    display:none;
}

#dwidge .thanks-screen .widget-header {
    background-color: #f5f7f9;
    height: 100px;
    cursor: default;
}

#dwidge .thanks-screen .widget-header-icon {
    display: inline-block;
    float: left;
    margin-top: 15px;
    margin-left: 30px;  
    width: 34px;
    height: 33px;
    background-repeat: no-repeat;
}

#dwidge .thanks-screen .widget-header-text {
    padding-top: 15px;
    padding-left: 10px; 
    width: 300px;  
}


#dwidge .thanks-screen .widget-thanks-text {
    font-size: 11px;
    margin-top: 15px;
    text-align: right;
    padding-right: 20px;
    color: #07396e;
}

#dwidge.tablet .thanks-screen .widget-thanks-text {
    font-size: 12px;
}
