body, html {
    width: 100%;
    max-height: 100%;
    margin: 0;
}

ul, li {
    list-style: none;
    padding: 0;
}

body {
    background: url(/resources/images/affiliates/form-17-bg.jpg);
    background-repeat: no-repeat;
    background-cover: cover cover;
}

.gray-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    background: black;
    opacity: 0.8;
    top: 0;
    z-index: -1;
}

.wrapper, #wrapper {
    max-width: 650px;
    width: 90%;
    height: auto;
    min-height: 500px;
    margin: auto;
    display: block;
    vertical-align: middle;
    background: #fff;
    border-radius: 8px;
    margin-top: 50px;
    font-family: 'Lato', 'Helvetica', 'Arial';
    text-align: center;
    -webkit-box-shadow: 7px 6px 56px 12px rgba(0,0,0,0.75);
    -moz-box-shadow: 7px 6px 56px 12px rgba(0,0,0,0.75);
    box-shadow: 7px 6px 56px 12px rgba(0,0,0,0.75);
    color: #3e443e;
}

#free_estimates {
    font-size: 17px;
    font-weight: 700;
    padding: 50px 86px 0 86px;
    color: #444444;
}

#free_estimates h1 {
    margin: 0;
}

form {
    padding-top: 15px;
}

li {
    margin: 7px 0;
}

select, input, textarea{
    max-width: 270px;
    width: 80%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #757575;
    font-size: 16px;
    outline: none;
}

input, textarea {
    max-width: 250px;
}

#task_id-error {
    display: none!important;
}

#zip-error-aff17, #services-error-aff17 {
    display: none;
    padding-top: 3px;
    color: rgb(255, 0, 0);
}

label {
    display: block;
    padding-top: 3px;
    color: rgb(255, 0, 0);
}

#show-next {
    text-align: center;
    color: #fff !important;
    text-decoration: none;
    background-color: #ababab;
    border: none;
    box-shadow: 0px 2px 2px #bed3dc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 0 27px;
    line-height: 44px;
    cursor: pointer;
    font-size: 22px;
}

#back {
    text-align: left;
    padding-left: 50px;
    color: #2672a5;
    cursor: pointer;
}

i {
    border: solid #2672a5;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.arrow-left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.submit-btn {
    text-align: center;
    color: #fff !important;
    text-decoration: none;
    background-color: #2672a5;
    box-shadow: 0px 2px 2px #bed3dc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 0 27px;
    line-height: 44px;
    cursor: pointer;
    font-size: 22px;
    border: none;
}

#wrapper {
    min-height: 340px;
    margin-top: 10.5%;
}

#tcpa-consent {
    color: #2672a5;
    cursor: pointer;
}

#tcpa-text {
    display: none;
    padding: 0 20px;
}

p {
    font-size:12px;
}

@media only screen and (max-device-width: 480px) {

    .wrapper, #wrapper {
        min-height: 450px;
        margin-top: 15%;
    }
    #free_estimates  {
        padding: 24px 16px 0 16px;
        font-size: 13px;
    }

    select {
        width: 90%;
        background: #fff;
    }

    #back {
        padding-left: 7%;
    }

    #wrapper {
        padding: 0 !important;
    }
}

input[type=submit].prevent-submit {
    pointer-events: none;
    opacity: .6;
}