html, body {
    font-family: 'Lato';
}

body {
    background-color: #f9f9f9;
    padding-top: 100px;
    margin: 0;
}

ul {
    list-style: none;
}

hr {
    border: none;
    height: 1px;
    width: 90vw;
    max-width: 1140px;
    color: #00579D;
    /* old IE */
    background-color: #00579D;
    /* Modern Browsers */
    margin: 70px auto 40px;
}


.hero {
    text-align: center;
    margin-bottom: 40px;


    h1 {
        font: 600 48px/70px Poppins;
        color: #00579D;
        letter-spacing: 2px;
        margin: 80px 20px 20px;
    }

    article {
        font: 400 20px/30px Lato;
        color: #666;
        letter-spacing: 1px;
        width: 55vw;
        max-width: 750px;
        margin: 0 auto 50px;
    }

    img {
        height: auto;
        width: 76vw;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .hero article {
        width: 70vw;
    }
}

.brands {
    display: flex;
    padding: 50px;
    max-width: 1200px;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

#brands header {
        background-image: url("/img/line.png");
        background-position: center center;
        background-repeat: no-repeat;
        background-size-x: cover;
        display: block;
        color: #00579D;
        font: 600 24px/30px Poppins;
        letter-spacing: 1.5px;
        text-align: center;
        margin: 80px 0 0;

        span {
            display: inline-block;
            background-color: #f9f9f9;
            padding: 0 25px;
        }
    }
}

@media (max-width: 600px) {
    .brands {
        padding: 20px;
    }

    #brands header {
        margin-top: 50px;
    }
}

.brand {
    height: 361px;
    width: 361px;
    text-align: center;
    box-sizing: border-box;
    padding: 56px 20px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.07);
    margin: 15px;
    background-color: white;
    letter-spacing: 0.9px;
    text-decoration: none;
    font: 500 18px/30px Lato;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 1;


    &:hover {
        transform: scale(1.05, 1.05);
    }

    .img {
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center top;
        height: 120px;
        width: 100%;
        display: block;
        margin-bottom: 30px;
    }

    figcaption {
        text-decoration: none !important;
        color: #666;
    }

    .tags {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding-left: 0;
        margin: 15px 5px;

        li {
            font: 400 12px/20px Lato;
            padding: 0 8px 0 17px;
            background-image: url("/img/tag.png");
            background-position: left center;
            background-repeat: no-repeat;
            color: #a4a4a4;
        }
    }
}

@media (max-width: 600px) {
    .brand .tags {
        display: none;
    }
}

.aapex-widget {
    height: 361px;
    width: 361px;
    text-align: center;
    box-sizing: border-box;
    padding: 10px 20px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.07);
    margin: 15px;
    background-color: white;
    letter-spacing: 0.9px;
    text-decoration: none;
    font: 500 18px/30px Lato;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.aapex-text {
    height: 361px;
    width: 460px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0px 40px;
    font: 400 16px/24px Lato;
    letter-spacing: 0.8px;
    color: #666;
}

.basicpage {
    padding: 100px 12vw;
    font: 400 16px/24px Lato;
    letter-spacing: 0.8px;
    color: #666;
}

.contact {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 12vw 150px;
}

.blurb {
    flex: 2;
    font: 500 16px/20px Lato;
    letter-spacing: 1px;
    color: #666;
    margin-right: 5vw;

    p {
        margin-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .contact {
        display: block;
    }

    .blurb {
        width: auto;
    }
}

form {
    font: 500 14px/30px Lato;
    flex: 5;

    .flex-form {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    label {
        flex: 1 0 50%;
        box-sizing: border-box;
        padding: 10px 15px;
    }



    input, textarea {
        display: block;
        border: 1px solid #c4c4c4;
        border-radius: 100px;
        height: 40px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 12px;
    }

    textarea {
        border-radius: 0;
        width: 100%;
        max-width: none;
        height: 200px;
    }

    button {
        flex: none;
        display: inline-block;
        width: 200px;
        border-radius: 100px;
        height: 40px;
        border: 1px solid #0047BA;
        background-image: linear-gradient(-180deg, #0047BA 1%, #1A61D4 100%);
        box-shadow: 0 4px 7px 0 rgba(26, 97, 212, 0.1);
        margin-top: 30px;
        font: 600 14px/30px Lato;
        color: white;
        float: right;
        transition: transform 0.3s ease-in-out;

        &[disabled] {
            background-image: none;
            background-color: transparent;
            pointer-events: none;
            color: #0047BA;
            box-shadow: none;
        }

        &:hover {
            cursor: pointer;
            transform: scale(1.03, 1.03);
        }
    }

    .success {
        font: 400 16px/30px Lato;
        color: #666;
    }
}

@media (max-width: 900px) {
    .contact form label {
        flex: 1 0 100%;
    }
}
