﻿/* General */

html,
body {
    margin: 0;
    padding: 0;
}

body,
input,
select,
textarea {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10pt;
}

select {
    width: 100%;
    padding: 4px;
}

select,
input[type="radio"],
input[type="radio"] + label,
input[type="checkbox"],
input[type="checkbox"] + label {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    position: relative;
    top: 2px;
}

.radio-group-option {
    display: inline-block;
    margin: 4px 10px 0 10px;
}

p {
    line-height: 1.5em;
    margin-bottom: 15px;
    font-size: 1.05em;
}

form > div:first-child p:first-child {
    margin-top: 0 !important;
}

img {
    border: none;
}

.amf-type-subheading {
    width: 100%;
}


/* Headings */

h3,
h4,
h5 {
    margin: 20px 0 20px 0;
}

h1,
h2 {
    margin: 0 0 30px 0;
    color: #333;
}

h1 {
    font-size: 230%;
    line-height: 100%;
}

h2 {
    font-size: 200%
}

h3 {
    font-size: 150%
}

h4 {
    /* margin-left: 304px; */
    padding: 5px 0px;
    font-size: 120%;
    text-transform: uppercase;
}


/* Links */

a {
    text-decoration: none;
    color: #39C;
}

a:hover {
    text-decoration: underline
}


/*validation*/

.parsley-errors-list {
    padding-left: 0;
    margin-top: 5px;
}

.parsley-errors-list li {
    list-style: none;
}


/* Main page wrapper */

.container {
    position: relative;
    width: 100%;
}

form {
    width: 600px;
    margin: 0px auto 40px auto;
    padding: 40px;
}


/* Logo */

.amf-form-logo,
.footer {
    float: none;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 10px;
}

.amf-el.footer {
    margin-bottom: 0;
}

.footer > div {
    width: 600px;
    display: block;
    margin: auto;
    float: none;
}

.amf-form-logo img {
    float: none;
    margin: auto;
    display: block;
}


/* General element styles */

.amf-el {
    margin-bottom: 10px;
}

.amf-el.amf-type-checkbox[class*="id_"] {
    margin-bottom: 10px;
}


/* Submit button */

.amf-el.amf-type-button {
    margin-bottom: 0;
    margin-top: 21px;
    width: 100%;
}

.amf-el.amf-type-button input {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 1.2em;
    width: 100%;
    margin-top: 30px;
}

.amf-el.amf-type-button input:hover {
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease-in;
}


/* Horizontal labels */

.amf-el label {
    width: 100%;
    display: block;
    float: left;
    text-align: left;
    height: 25px;
    line-height: 25px;
    font-weight: bold;
}


/* Inline labels for radio/checkboxes */

.amf-el .amf-el-inner label {
    width: auto;
    display: inline;
    text-align: left;
    float: none;
    font-weight: bold;
}

.amf-el .amf-el-inner {
    /* margin-left: 304px; */
    width: 100%;
}


/* Errors */

.amf-error-message {
    color: #db391e;
    font-style: italic;
    margin-top: 3px;
    font-size: 9pt;
}

.amf-error.amf-type-textbox input,
.amf-error.amf-type-textarea textarea,
.amf-error.amf-type-email input,
.amf-error.amf-type-postalcode input,
.amf-error.amf-type-datepicker input {
    border: 1px solid #db391e;
}


/* Input styles */

.amf-type-textbox input,
.amf-type-email input,
.amf-type-datepicker input,
.amf-type-postalcode input,
.amf-type-textarea textarea {
    width: 98%;
    border: 1px solid #BBB;
    padding: 5px;
    margin: 0;
    border-radius: 2px;
    box-shadow: 1px 1px 0 white;
}

.amf-type-select select {
    border-color: #AAA;
}

.amf-type-textarea textarea {
    height: 50px;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 5px #CCC;
    outline: none;
    border-color: #AAA;
}

.amf-type-checkbox .amf-el-inner {
    margin-left: 0;
    width: 49%;
    float: left;
}

.amf-type-checkbox.maxcheckbox .amf-el-inner {
    width: 100% !important;
}


.amf-type-checkbox[class*="id_"].amf-type-checkbox .amf-el-inner {
    width: 100%;
    float: none;
}

.amf-type-checkbox[class*="id_"] + div.extra_info p {
    font-size: 12px;
    line-height: 15px;
    margin-top: 0;
    margin-left: 20px;
    top: -10px;
    margin-bottom: 0;
    position: relative;
}

.amf-type-unsub .amf-el-inner {
    display: block;
    width: 100%;
    position: relative;
    overflow: auto;
    background: #eaeaea;
    top: 15px;
}


/*EDITABLE BRAND STYLE*/

/*Background colour and text colour*/

.container {
    background: #FFFFFF;
    color: #000000;
}

.amf-form-logo {
    background: #000000;
}

p {
    color: #666666;
}

.amf-el.amf-type-button input {
    background: #e74106;
    border-radius: 2px;
    color: #FFFFFF;
}

h4 {
    border-bottom: 1px solid #666666;
}

.amf-thank-you-page h4 {
    border-bottom: none;
    margin: 50px 20px;
    text-align: center;
    text-transform: none;
    font-size: 27px;
    font-weight: normal;
}


/*footer*/

.footer {
    background: #19232d;
}

.footer p,
.footer a {
    color: #ffffff;
}

.footer .highlight_text {
    color: #f04e30;
}


/*validation message colour*/

.parsley-errors-list li {
    color: #D13C05;
}


/*Logo size*/

.amf-form-logo img {
    width: 150px;
}


/*Font family (If Google Font add relevant link to the <head> section */

body,
input,
select,
textarea {
    font-family: 'Source Sans Pro', sans-serif;
}


/* Special case to remove top white margin on portrait iPads */

@media only screen and (max-width: 1023px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio:1.5) {
    body {
        background: #F4F4F4;
    }
    .container {
        margin-top: 0;
    }
}


/* Small screens, phones, etc */

@media only screen and (max-width: 767px) {
    body {
        background: #F4F4F4;
    }
    .container {
        width: auto;
        margin: 0;
        padding: 0;
    }
    form,
    .footer > div {
        width: 90%;
        margin: 0px auto 0 auto;
        padding: 20px 5%;
    }
    .amf-form-logo {
        float: none;
        margin-bottom: 20px;
    }
    h1,
    h2,
    h3,
    h4,
    h5 {
        margin-bottom: 10px;
    }
    /* Vertical element alignment */
    .amf-el label {
        width: auto;
        display: inline;
        float: none;
    }
    .amf-el .amf-el-inner {
        margin-left: 0;
    }
    .amf-error-message {
        margin-left: 0;
    }
    /* Reduce input width for portrait iPhones */
    .amf-type-textbox input,
    .amf-type-email input,
    .amf-type-datepicker input,
    .amf-type-postalcode input,
    .amf-type-textarea textarea {
        width: 93%;
    }
    select,
    .amf-type-subheading {
        width: 95%;
    }
    /* Submit button back on the left */
    .amf-el.amf-type-button {
        margin-left: 0;
    }
    .amf-el.amf-type-checkbox {
        overflow: auto;
    }
    .amf-el.amf-type-button {
        padding-bottom: 50px;
    }
    .amf-form-logo img {
        max-width: 270px;
    }
}

@media only screen and (max-width: 375px) {
    .amf-type-checkbox .amf-el-inner {
        width: 100%;
    }
    select,
    .amf-type-subheading {
        width: 98%;
    }
}