/*
 * File name: dwidge-v2.css
 * Version: 2.0.0
 * Project name: Dwidge 2.0
 * Code name: Sharon Jones (https://www.youtube.com/watch?v=mXSEc2p5-QA)
 * Description: Version 2 of Dwidge
 * Author: Christopher Keane (https://github.com/ckweb)
 * Created:
 * Last modified: Feb 2017
 */


/* -------------------[ 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: #eeeeee;
    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: #eeeeee;
    padding: 0;
    width: 247px;
    height: auto;
    max-height: 600px;
    border: none;
    border-radius: 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: transparent;
    border-radius: 0;
    padding: 0;
}

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

#dwidge.small:not(.maximized) #dwidge-close {
    top: 39%;
    left: 4%;
}

#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: transparent;
}

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

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


/* ----[ Widget header icon ]----------------------------------------------- */

#dwidge .widget-header-icon {
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    width: 44px;
    height: 44px;
    margin: 25px auto 0;
    float: none;
}

#dwidge.maximized .widget-header-icon {
  width: 76px;
  height: 76px;
}

#dwidge.small:not(.maximized) .widget-header-icon {
    display: inline-block;
    margin-left: 12%;
    margin-top: 3%;
}

#dwidge.small.landscape:not(.maximized) .widget-header-icon {
    margin-top: 1.5%;
}

/* ----[ Widget header text ]----------------------------------------------- */

#dwidge .widget-header-text {
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}

#dwidge.maximized.small .widget-header-text {
    width: 80%;
}

#dwidge .form-screen .widget-header-text.collapsed {
    display: inline-block;
    width: 72%;
    margin-top: 4%;
    margin-left: 2%;
    vertical-align: top;
    padding: 0;
    text-align: left;
}

/* On very small phones, we need to adjust some things */
@media (max-width: 320px) {
  #dwidge .form-screen .widget-header-text.collapsed {
    width: 65%;
  }
}

#dwidge.landscape .form-screen .widget-header-text.collapsed {
    margin-top: 3%;
}

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

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

#dwidge.maximized.medium .form-screen .widget-header-text.expanded,
#dwidge.maximized.large .form-screen .widget-header-text.expanded {
    width: 100%;
    padding: 0 23px;
    float: none;
}

#dwidge .widget-header-text p {
    color: #232323;
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 19px;
    font-weight: 100;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 10px;
}

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

#dwidge.small.maximized .form-screen .widget-header-text.expanded p {
  font-size: 18px;
  line-height: 26px;
}

#dwidge .widget-header-text.collapsed p {
    display: inline-block;
    width: auto;
    float: none;
    margin-bottom: 0;
    padding: 0;
}

#dwidge .widget-header-text.collapsed p.widget-headline {
    width: 45%;
    font-size: 17px;
    text-align: center;
    font-weight: normal;
}

/* On very small phones, we need to adjust some things */
@media (max-width: 320px) {
  #dwidge .widget-header-text.collapsed p.widget-headline {
      font-size: 15px;
  }
}

#dwidge .widget-header-text.collapsed p.header-button {
    display: inline-block;
    float: none;
    width: 43%;
    background-color: #a21617;
    color: white;
    padding: 6px 5px 4px;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    text-transform: uppercase;
    line-height: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    vertical-align: top;
    margin-top: 1%;
    margin-bottom: 0;
    margin-left: 5%;
    border-radius: 2px;
}

#dwidge.landscape .widget-header-text.collapsed p.header-button {
    margin-top: -0.5%;
}


/* -------------------[ Form Guts ]------------------- */
#dwidge .form-container {
    padding: 0 23px 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;
}

/* Remove inner shadow from input fields */
#dwidge input[type=text], #dwidge input[type=email] {
  -webkit-appearance: none;
  -moz-appearance: none;
    appearance: none;
}

#dwidge input[type=text], #dwidge input[type=email] {
  font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
  border: 1px solid #ccc;
  height: 47px;
  line-height: 1.42857143;
  box-sizing: border-box;
  margin: 7px 0 0;
  color: #555;
  font-size: 14px;
  padding: 6px 12px;
  width: 100%;
}

/* Remove top margin from first form field */
#dwidge .input-wrapper:first-of-type input[type=text] {
    margin-top: 0;
}

@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;
    }
}

/* These are the raw bootstrap form-control styles */
#dwidge .form-control {
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s
}

#dwidge .form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6)
}

#dwidge .form-control {
    border-radius: 0;
}

#dwidge input:focus,
#dwidge select:focus {
    outline: 0;
}

#dwidge input.error,
#dwidge select.error {
    outline: none;
    box-shadow: none;
    border-color: #8f0513;
}

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

#dwidge .form-control.dwidge-input {
    height: 47px;
    font-size: 16px;
    border: 1px solid #ababab;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#dwidge .form-control.dwidge-input.error {
    border-color: #8f0513;
    border-width: 2px;
}

#dwidge .form-control.dwidge-input:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 2px solid #2573e3;
}

#dwidge .form-control.dwidge-input.error:focus {
    border-color: #8f0513;
}



/* ----[ Input placeholder styles ]------------------------------------------ */
#dwidge input[type=text]::-webkit-input-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=text]:-moz-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=text]::-moz-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=text]:-ms-input-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=email]::-webkit-input-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=email]:-moz-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=email]::-moz-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

#dwidge input[type=email]:-ms-input-placeholder {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    color: #9b9b9b;
    font-size: 17px;
}

/* Remember! These pseudo selectors need to be kept separate. You can't combine into one.*/

#dwidge .form-control::-moz-placeholder {
    color: #9b9b9b;
}

#dwidge .form-control:-ms-input-placeholder {
    color: #9b9b9b;
}

#dwidge .form-control::-webkit-input-placeholder {
    color: #9b9b9b;
}

#dwidge .form-control.error::-moz-placeholder {
    color: #8f0513;
}

#dwidge .form-control.error:-ms-input-placeholder {
    color: #8f0513;
}

#dwidge .form-control.error::-webkit-input-placeholder {
    color: #8f0513;
}

#dwidge .form-control.error:focus::-moz-placeholder {
    color: #9b9b9b;
}

#dwidge .form-control.error:focus:-ms-input-placeholder {
    color: #9b9b9b;
}

#dwidge .form-control.error:focus::-webkit-input-placeholder {
    color: #9b9b9b;
}

/* 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 input[type=email]:focus::-webkit-input-placeholder {
    color: rgb(169, 169, 169);
}

#dwidge input[type=email]:focus:-moz-placeholder {
    color: rgb(169, 169, 169);
}

#dwidge input[type=email]:focus::-moz-placeholder {
    color: rgb(169, 169, 169);
}

#dwidge input[type=email]:focus:-ms-input-placeholder {
    color: rgb(169, 169, 169);
}

#dwidge p, #dwidge label {
    line-height: 1.2;
}

#dwidge button#dwidge_submit {
    border-radius: 2px;
    font-family: "Frutiger W01", Arial, Helvetica, sans-serif;
    color: #ffffff;
    margin: 25px auto;
    display: block;
    width: 80%;
    text-align: center;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    width: 100%;
    text-transform: uppercase;
    background-color: #a21617;
    border: none;
    height: 55px;
    font-size: 1.5em;
    background-image: none;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 6px 12px;
    line-height: 1.42857143;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-shadow: none;
}

#dwidge button#dwidge_submit:hover {
    background-color: #b91a1b;
    text-decoration: none;
}

#dwidge.large button#dwidge_submit {
    width: 100%;
    margin: 15px auto;
    height: 36px;
    font-size: 1.1em;
}

#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 screen ]----------------------------------------------------- */

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

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

#dwidge .thanks-screen .widget-header {
    background-color: transparent;
    height: auto;
    cursor: default;
}

#dwidge .thanks-screen .widget-header-icon {
    margin-bottom: 25px;
}

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

#dwidge.medium .thanks-screen .widget-header-text,
#dwidge.large .thanks-screen .widget-header-text {
    padding-top: 0;
    padding-left: 5px;
    padding-right: 5px;
}

#dwidge .thanks-screen .widget-header-text h5 {
  font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
}

#dwidge.medium .thanks-screen .widget-header-text h5,
#dwidge.large .thanks-screen .widget-header-text h5 {
  font-size: 17px;
}

#dwidge .thanks-screen .widget-thanks-text {
    margin: 20px auto 35px;
    text-align: left;
    padding: 0 23px;
    font-weight: bold;
    width: 100%;
}

#dwidge.small .thanks-screen .widget-thanks-text {
  padding: 0 35px;
}

#dwidge.small .thanks-screen .widget-header-text {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

#dwidge.large .thanks-screen .widget-thanks-text {
  width: auto;
}

#dwidge .thanks-screen .widget-thanks-text p {
    font-family: "Frutiger W01", Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    color: #232323;
}

#dwidge.small .thanks-screen .widget-thanks-text p {
    font-size: 17px;
    line-height: 22px;
}
