/* General */

html,
body {
    margin: 0;
    padding: 0;
}

body,
input,
select,
textarea {
    font-family: 'Questrial', Arial, Helvetica,  sans-serif;
    font-size: 16px;
}

p {
    line-height: 160%;
    margin-bottom: 20px;
}

img {
    border: none;
}


/* Headings */

h3,
h4,
h5 {
    margin: 20px 0 20px 0;
}

h1,
h2 {
    margin: 0 0 30px 0;
    color: #3a3a3a;
    font-weight: normal;
}

h1 {
    font-size: 230%;
    line-height: 100%;
}

h2 {
    font-size: 200%
}

h3 {
    font-size: 150%
}

h4 {
    font-size: 130%
}


/* Links */

a {
    color: #0f8ac7;
}

a:hover {
    text-decoration: underline
}


/* Main page wrapper */

.container {
    position: relative;
    width: 600px;
    margin: 10px auto;
    padding: 40px;
    color: #3a3a3a;
}


/* Logo */

.amf-form-logo {
    float: right;
}


/* General element styles */

.amf-el {
    margin-bottom: 10px;
}

.amf-type-checkbox {
    margin-bottom: 0;
}


/* Submit button */

.amf-el.amf-type-button {
    margin-bottom: 0;
    margin-top: 20px;
    margin-left: 175px;
}

.amf-el.amf-type-button input {
    -webkit-appearance: none;
    background: #3a3a3a;
    border: 1px solid #3a3a3a;
    font-family: 'Questrial', Arial, Helvetica,  sans-serif;
    color: #ffffff;
    height: 40px;
    padding: 0 15px 0 15px;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    text-transform: capitalize;
    text-align: left;
    cursor: pointer;
}
.amf-type-radio{
    margin-top: 20px;
}


/* Horizontal labels */

.amf-el label {
    display: block;
    float: left;
    text-align: right;
    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: normal;
    position: relative;
    bottom: 1px;
}

.amf-el .amf-el-inner {
    margin-left: 175px;
}


/* Errors */

.amf-error-message {
    color: #db391e;
    font-style: italic;
    margin-top: 3px;
    margin-left: 175px;
    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: border: 1px solid #ededed;
}


/* Input styles */

.text-block p {
    font-weight: bold;
    margin-bottom: 10px;
}

.amf-type-textbox input,
.amf-type-email input,
.amf-type-datepicker input,
.amf-type-postalcode input,
.amf-type-textarea textarea,
select{
    width: 370px;
    border: 1px solid #ededed;
    padding: 10px 5px;
    margin: 0;
    border-radius: 2px;
    box-shadow: 1px 1px 0 white;
}

.amf-type-select select {
    width: 382px;
}

.amf-type-textarea textarea {
    height: 50px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d2d2d2;
}

.nav img {
    width: 140px;
}

.nav {
    border-bottom: solid 1px #ececec;
    padding: 20px 0;
}

.nav div {
    width: 600px;
    float: none;
    margin: auto;
}

input {
    margin-left: 6px;
}


/* 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) {
    .container {
        margin-top: 0;
    }
}


/* Small screens, phones, etc */

@media only screen and (max-width: 610px) {
    .nav {
        padding: 20px;
    }
    .nav div {
        width: 100%;
    }
    .amf-el.amf-type-button input {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        height: auto;
    }
    .container {
        width: auto;
        margin: 0;
        padding: 20px;
    }
    .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: 96%;
        padding: 15px 5px;
    }
    /* Submit button back on the left */
    .amf-el.amf-type-button {
        margin-left: 0;
    }
}