﻿
html, body {
    padding: 10px 0;
    margin: 0;
    font-family: 'verdana';
    font-size: 14px;
    background: white;
    color: #002663;
}

.midnight-bg {
    background: #002663;
    color: #ffffff;
}

.font-heldane {
    letter-spacing: 1px;
    font-family: heldane;
    font-weight: 600;
}
.sub-div-font-national div {
    font-family: 'national';
    font-weight: normal;
    letter-spacing: initial;
    font-size: 0.75em !important;
}

a:link, a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.HeaderContainer {
    background: #FFF;
    zoom: 1; /*IE7 hack for clearfix below (IE6 and below is unknown!)*/
}

    /*clearfix*/
    .HeaderContainer:after {
        content: "";
        display: table;
        clear: both;
    }

a.Logo {
    display: block;
    float: left;
    width: 163px;
    height: 83px;
    background: url('http://www.markwarner.co.uk/_gfx/newlogo.png') no-repeat;
    margin-top: 20px;
    margin-left: 20px;
}

.BTA {
    float: right;
    width: 299px;
    height: 64px;
    background: url('http://www.markwarner.co.uk/content/pictures/Awards2017.png') no-repeat;
    margin-top: 20px;
}

.MediaIconsContainer {
    float: right;
    width: 47px;
    height: 105px;
    background: #FFF;
    text-align: center;
    padding-top: 5px;
}

a.Facebook {
    display: block;
    width: 47px;
    height: 28px;
    background: url('/surveys/images/facebook-db-18-12.jpg') top center no-repeat;
}

a.Twitter {
    display: block;
    width: 47px;
    height: 28px;
    background: url('/surveys/images/twitter-dr-18-12.jpg') top center no-repeat;
}

a.Instagram {
    display: block;
    width: 47px;
    height: 28px;
    background: url('/surveys/images/insta-dr-18-12.jpg') top center no-repeat;
}

.BodyContainer {
    background: #FFF;
    padding: 10px 15px 15px 15px;
    color: #999;
}

    .BodyContainer a:link, .BodyContainer a:visited, .BodyContainer a:hover {
        text-decoration: underline;
        color: #0099FD;
    }

    .BodyContainer h1 {
        font-size: 19pt;
    }

    .BodyContainer h2 {
        font-size: 16pt;
        font-weight: lighter;
    }

    .BodyContainer #OptBackIn {
        display: block;
        width: 600px;
        height: 119px;
        background: url('http://www.markwarner.co.uk/images/0/0/Email_Unsubscribe-banner.gif') no-repeat;
        margin-left: -15px;
    }

.FooterContainer {
    font-size: 9pt;
    color: #999;
}

    .FooterContainer > div {
        margin-top: 5px;
    }

    .FooterContainer a:link, .FooterContainer a:visited, .FooterContainer a:hover {
        text-decoration: none;
        color: #999;
    }

h1 {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
    color: white;
    font-family: heldane
}

.form-wrapper {
    max-width: 500px;
    margin: 5px auto 5px auto;
    padding: 10px;
    box-sizing: border-box;
}

select {
    background: transparent;
    width: 100%;
}

.CustomSelectColour {
    position: relative;
    background: white;
    display: inline-block;
    width: 72px;
}

    .CustomSelectColour::before {
        font-family: 'fontello';
        content: '\e800';
        position: absolute;
        width: 20px;
        padding: 14px 0px;
        text-align: center;
        right: 0px;
        top: 0px;
        bottom: 0px;
        background: #c7dbe6;
        pointer-events: none;
    }

input[type=text], textarea, select {
    padding: 10px;
    color: #002663;
    box-sizing: border-box;
}

    input[type=text]:active,textarea:active, select:active {
        outline: none;
    }
    .button-row {
        max-width: 700px;
        margin: 20px auto;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
.button-row > div {
    flex-grow: 1;
}
.field-row + .field-row {
    margin-top: 20px;
}

.field-label {
    display: block;
    color: #D2BD83;
    font-family: heldane;
    font-size: 1.2rem;
}
.AppSection .field-label {
    color: #002663;
}
.field-row input[type=text],
.field-row  textarea {
    width: 100%;
}
.field-2-col-flex {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.field-2-col-flex > div {
    flex-grow: 1;
    max-width: 50%;
    padding: 10px;
}
input[type=checkbox] + label {
    position: relative;
    display: block;
    font-family: Verdana;
}

    input[type=checkbox] + label:before {
        color: #a2a2a2;
        content: "\f096";
        position: absolute;
        font: normal normal normal 20px/1 FontAwesome;
        top: 1px;
        left: 200px;
    }

input[type=checkbox]:checked + label:before {
    content: "\f14a";
    color: #d2bd83;
}

input[type=checkbox] {
    display: none;
}

    input[type=checkbox] + label .customCheckboxTick {
        border: 1px solid #EAEDED;
        width: 30px;
        height: 30px;
        display: block;
        float: right;
        margin-left: 10px;
        position: absolute;
        top: 5px;
        right: -30px;
    }
.hidden {
    display: none;
    visibility: hidden;
}
a.button, button {
    color: #002663;
    background-color: white;
    padding: 5px 15px;
    min-height: 40px;
    min-width: 210px;
    border: 2px solid #d2bd83;
    font-size: 21px;
    font-weight: 700;
    font-family: 'HELDANE';
    letter-spacing: 1px;
    max-width: 250px;
}

a.button:hover, button:hover {
    background-color: #d2bd83;
    text-decoration: none;
}
a.button:active, button:active, button:focus {
        outline: none;
    }

.thank-you-message {
    text-align: center;
}

#ErrorMessage {
    text-align: center;
    color: #ff0046;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.form-box {
    max-width: 500px;
    background: #002663;
    padding: 10px;
    margin: 10px auto;
}
.submit-row {
    text-align: right;
    margin-top: 20px;
}
.logo-mobile {
    display: none;
    visibility: hidden;
}



#AppContent, .PreferenceCentreWrapper {
    max-width: 900px;
    margin: 10px auto 30px auto;
    background-color: #ffffff;
    line-height: 1.5em;
}

.AppSection {
    max-width: 700px;
    margin: 30px auto 10px auto;

    padding: 30px;
    background: #d2bd83;
}

.AppSection:last-of-type {
    border-bottom: none;
}
    .AppSection > .section-heading {
        margin: -30px -30px 20px -30px;
        padding: 20px 30px;
        background: #BDD5E1;
    }
.section-heading > h2 {
    margin: 0;
}
.section-content {
    background: white;
    padding: 10px;
}
.col-label {
    font-weight: bold;
    padding: 10px;
}

.col-input {
    padding: 10px;
}


.pref-item {
    margin-top: 5px;
    margin-bottom: 5px;
}

.pref-input {
    margin-left: 10px;
}

.preference-group {
    background: #efefef;
    padding: 10px;
    border: 2px solid #dedede;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
}

.preference-group > h3 {
    margin: -10px -10px 0px -10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 5px;
}

.permissions-channel-row {
    display: flex;
}
.permissions-channel-row > div {
    width: 80px;
}
.permissions-channel-row.hidden {
    display: none;
    visibility: hidden;
}

#PreferenceGroups > div {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

#PreferenceGroups > div:last-of-type {
    border-bottom: none;
}
#PreferenceGroups h2, #PreferenceGroups2 h2 {
    color: #d2bd83;
}
#PreferenceGroups .field-row, #PreferenceGroups2 h2 .field-row {
    display: flex;
    flex-wrap: wrap;

}
#PreferenceGroups .field-row > *, #PreferenceGroups2 h2 .field-row > * {
    flex-grow: 1;
    width: 50%;

}
.AppSection .section-content * {
    font-family: verdana !important;
    font-size: 1em;
}

.AppSection .section-content .permissions-channel-row label {
    font-weight: normal;
}
    @media only screen and (max-width: 767px) {
        .logo-desktop {
        display: none;
        visibility: hidden;
    }
    .logo-mobile {
        display: block;
        visibility: visible;
        background: #d2bd83;
        text-align: center;
    }
    input[type=text], select, textarea, .CustomSelectColour {
        width: 300px !important;
        display: block;
        margin: 5px auto;
    }
    .submit-row {
        text-align: center;
    }
    .field-2-col-flex > div {
        max-width: 100%;
        width: 100%;

    }

        #PreferenceGroups .field-row > *, #PreferenceGroups2 h2 .field-row > * {
            flex-grow: 1;
            width: 100%;
        }
        .button-row {
            justify-content: center;
        }
        .button-row > div {
            width: 100%;
        }
            .button-row button + button {
                margin-top: 10px;
            }
}
