// SalesCrowd Modal Sign-up and Email Sign-up Bar
.signup-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 1em;
    @include MQ(L) {
        padding: 0;
    }
    overflow: hidden;
    background: $salescrowd-warm-light-gray;
    height: auto;
    margin: 0;
    .content {
        background: $salescrowd-warm-light-gray;
        img {
            margin-bottom: 1.5em;
        }
    }
}

// Fix for lead magenet container

.container.content.magnet-signup {
    position: inherit !important;
}

.modal-trigger {
    cursor: pointer !important;
}

.modal {
    font-size: 1em;
    .smaller {
        font-size: 0.8em !important;
        @include MQ(M) {
            font-size: 1em !important;
        }
    }
    h1 {
        margin: 0;
        padding: 0 2em;
        font-size: 1em;
        @include MQ(M) {
            font-size: 1.5em;
        }
    }
    button, .button {
        font-size: 0.9em !important;
        @include MQ(M) {
            font-size: 1.1em !important;
        }
        letter-spacing: 1px;
        font-weight: 900;
        @include MQ(M) {
            font-size: 1.4em;
        }
        @include MQ(L) {
            font-size: 1.4em;
        }
    }
    p {
        color: $base-font-color;
        line-height: $base-line-height;
    }
    label {
        cursor: pointer;
        margin-bottom: 0;
    }
    label img {
        border-radius: 300px / 2;
        display: block;
        max-width: 300px;
    }
    .modal-state {
        display: none;
    }
 
    .modal-open {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .modal-window { // overlay
        @include transition(opacity 0.25s ease);
        @include position(fixed, 0px 0px 0px 0px);
        background: rgba(0,0,0, 0.85);
        opacity: 0;
        padding-top: 0.6em;
        text-align: left;
        visibility: hidden;
        z-index: 99999999999;
        @include MQ(L) {
            padding-top: 10em;
        }
        .modal-bg {
            @include position(absolute, 0px 0px 0px 0px);
            cursor: pointer;
        }
    }
    .modal-close {
        @include position(absolute, (3em /2) (3em /2) null null);
        @include size(1em);
        background: $white;
        cursor: pointer;
        &:after,
        &:before {
            @include position(absolute, 3px 3px 0 50%);
            @include transform(rotate(45deg));
            @include size(0.15em 1.5em);
            background: $light-gray;
            content: '';
            display: block;
            margin: -3px 0 0 -1px;
        }
        &:hover:after,
        &:hover:before {
            background: darken($light-gray, 10%);
        }
        &:before {
            @include transform(rotate(-45deg));
        }
    }
    .modal-inner {
        @include transition(opacity 0.25s ease);
        background: $white;
        border-radius: $base-border-radius;
        margin-top: 0;
        margin: auto;
        max-height: 100%;
        overflow: hidden;
        padding: 1.5em;
        position: relative;
        width: 95%;
        @include MQ(M) {
            max-height: 95%;
            padding: 2em;
            width: 60%;
        }
        @include MQ(L) {
            width: 50%;
            padding: 2em;
        }
        input[type="email"], input[type="text"]  {
            margin: 1em 0;
            display: block;
            width: 100%;
            clear: both;
            border: 2px $light-gray solid;
            padding: 0.5em 1em;
            font-size: 0.9em;
            @include MQ(M) {
                padding: 1em 2em;
                font-size: 1.3em;
            }
            @include MQ(L) {
                padding: 1em 2em;
                font-size: 1.3em;
            }
        }
        h1 {
            margin-bottom: 0.6em;
            text-transform: capitalize;
        }
        .modal-intro {
            font-weight: 800;
        }
        .modal-content {
            @include MQ(M) {
                @include columns(2 8em);
            }
        }
        a.cta {
            color: white;
            display: inline-block;
            margin-right: 0.5em;
            margin-top: 1em;
            font-size: 1em;
            &:last-child {
                padding: 0 2em;
            }
        }
    }
    .modal-state:checked + .modal-window {
        opacity: 1;
        visibility: visible;
    }

    .modal-state:checked + .modal-window .modal-inner {
        top: 0.5em;
    }
}

// Email Sign-up
.email-signup-outer-wrapper {
    width: 100%;
    background: $salescrowd-warm-gray;
    position: relative;
  height: 60px;
  @include clearfix;
  float: left;
    .email-signup-wrapper {
        height: 60px;
        background: $salescrowd-warm-gray;
        width: 100%;
        display: block;
        .email-signup-field {
            input {
                background: $lightest-gray;
                border: 0;
                box-shadow: none;
                height: inherit;
              height: 60px;
                border-radius: 0;
                padding-left: 2em;
                padding-right: 2em;
            }
        }
        .email-signup-submit {
            input {
                width: 100%;
                height: 60px;
                line-height: 100%;
                margin: 0;
                border-radius: 0;
                float: left;
                display: block;
                font-size: 0.8em;
                @include MQ(M) {
               font-size: 1em;
            }
            }
        }
    }
    ul.parsley-errors-list {
        position: absolute;
        z-index: 100;
        top: -2em;
        li {
            background: $salescrowd-red;
            border-radius: 0;
             padding: 0.5em 1em;
            line-height: 1.2em;
            color: $white;
        }
    }
}

ul.parsley-errors-list {
    li {
        background: $salescrowd-red;
        border-radius: $base-border-radius;
        padding: 0.5em 1em;
        line-height: 1.2em;
        margin-bottom: 1em;
        color: $white;
        list-style: none;
    }
}

.sales-crowd-user-modal-container {
    ul.parsley-errors-list {
        z-index: 2;
        margin: 0;
        padding: 0;
        li {
             border-radius: $base-border-radius;
            background: $salescrowd-red;
             padding: 0.5em 1em;
            line-height: 1.2em;
            font-weight: 500;
            letter-spacing: 1px;
            color: $white;
        }
    }
}