/*

	Email page styles

	Author:		Jay Dobson <jdobson@esolutionsgroup.ca>
	Date:		October 14, 2008

*/

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    padding: 0px;
    margin: 0px;
    font: 12px/15px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

a, a:active, a:visited {
    color: #00539b;
    text-decoration: none;
}

    a:hover, a:focus {
        color: #d89738;
        text-decoration: none;
    }

#header {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-repeat: repeat-x;
    position: relative;
    padding-right: 130px;
}

    #header #logo {
        padding: 20px 0;
        margin-left: 20px;
        overflow: hidden;
        /*background: transparent url(/en/images/structure/logo_small.png) no-repeat 0 10px !important; */
    }
        #header #logo h1 {
            display: inline;
        }
        #header #logo img {
            width: 100%;
            max-width: 125px;
            max-height: 125px;
            vertical-align: bottom;
        }

.closeButton {
    display: inline-block;
    text-align: center;
    padding: 3px 5px;
    width: 100px;
    border: solid 1px #ccc;
    border-radius: 3px;
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: .9em;
}

    .closeButton:hover,
    .closeButton:active,
    .closeButton:focus {
        color: #00539b;
        background: #f1f1f1;
        cursor: pointer;
    }

.topMessage {
    height: auto;
    font-weight: bold;
    font-size: 12px;
    padding: 10px 20px 10px 20px;
}

#title {
    background-color: #383838;
    color: #FFFFFF;
}

.formArea {
    padding: 20px;
}

.textbox {
    font-size: 11px;
    padding: 2px;
    background: #FFFFFF;
    width: 95%;
}

.textboxfocus {
    font-size: 11px;
    padding: 2px;
    background: #f0f4fb;
    width: 95%;
}

span.required {
    color: #990000;
    padding: 0px 0px 0px 5px;
}

.redText {
    color: #aa0000;
}

div.datarow {
    clear: both;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding-left: 140px;
    margin-bottom: 10px;
}

div.datalabel {
    position: absolute;
    width: 130px;
    left: 0;
    top: 2px;
    line-height: 16px;
}

div.datavalue {
    width: 100%;
}

.datavalue input[type="text"] {
    height: 34px;
    padding: 3px 5px;
    width: 100%;
    font-size: 16px;
}

.datavalue textarea {
    height: 80px;
    padding: 3px 5px;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
}


#errorlabel {
    color: #990000 !important;
    font-size: 13px;
    line-height: 15px;
    margin-top: 10px;
}

/* Attachment row */
.attachment-controls {
    margin: 10px 0;
}

    /* Shared button styles */
    .attachment-controls input[name="attachment"] + button,
    input#btn_submit {
        border-radius: 3px;
        transition: ease all 0.3s;
    }

/* Choose File button */
input[name="attachment"]:active,
input[name="attachment"]:focus {
    background-color: transparent;
}

/* Add attachment button */
#addAttachment, input#btn_submit {
    background-color: #dbdbdb;
    color: #000;
    padding: 6px 14px;
    border-radius: 4px;
    transition: ease all 0.3s;
    cursor: pointer;
}

    #addAttachment:disabled, input#btn_submit:disabled {
        color: gray;
        cursor: not-allowed;
    }

    #addAttachment:hover,
    #addAttachment:focus,
    input#btn_submit:hover,
    input#btn_submit:focus {
        background-color: #cbcbcb;
    }

    #addAttachment:active,
    input#btn_submit:active {
        background-color: transparent;
    }

/* Remove button */
.attachment-controls input[name="attachment"] + button {
    color: #000;
    background-color: rgba(110, 0, 0, 0.15);
    border: 1px solid #6e0000;
    border-style: outset;
    border-color: buttonface;
    cursor: pointer;
}

    .attachment-controls input[name="attachment"] + button:hover,
    .attachment-controls input[name="attachment"] + button:focus {
        background-color: rgba(110, 0, 0, 0.25);
    }

/* Send Email button */
input#btn_submit {
    font-size: 16px;
}

@media only screen and (max-width : 480px) {

    div.datarow {
        clear: both;
        width: 100%;
        max-width: 600px;
        position: relative;
        padding-left: 0;
        margin-bottom: 10px;
    }

    div.datalabel {
        position: relative;
        width: 100%;
        left: auto;
        top: auto;
        line-height: 16px;
    }

    div.datavalue {
        width: 100%;
    }
}

iframe {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border: none;
    width: 100%;
}

.attachment-controls input[type=file] {
    display: inline-block;
}

.ic-sr-only, .assistiveTech-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

#skipContentWrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000
}

#skipContentLink {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    #skipContentLink:hover, #skipContentLink:visited {
        display: block;
        width: 1px;
        height: 1px;
        overflow: hidden
    }

    #skipContentLink:active, #skipContentLink:focus {
        position: relative;
        width: auto;
        height: auto;
        font-size: 15px;
        z-index: 10000;
        text-decoration: underline;
        padding: 20px;
        background: #383838;
        color: #FFF
    }

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile + label {
    max-width: 272px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    overflow: hidden;
    padding: 0.625rem 1.25rem;
    /* 10px 20px */
}

.inputfile:focus + label,
.inputfile.has-focus + label {
    outline: 1px dotted #000;
    outline: -webkit-focus-ring-color auto 5px;
}

.inputfile + label * {
    /* pointer-events: none; */
    /* in case of FastClick lib use */
}

    .inputfile + label svg {
        width: 1em;
        height: 1em;
        vertical-align: middle;
        fill: currentColor;
        margin-top: -0.25em;
        /* 4px */
        margin-right: 0.25em;
        /* 4px */
    }


/* style 6 */

.inputfile-6 + label {
    color: #555;
}

.inputfile-6 + label {
    border: 1px solid #555;
    background-color: #fff;
    padding: 0;
}

    .inputfile-6:focus + label,
    .inputfile-6.has-focus + label,
    .inputfile-6 + label:hover {
        border-color: #222;
    }

    .inputfile-6 + label span.filebutton {
        padding: 5px;
        /* 10px 20px */
    }

    .inputfile-6 + label span.filename {
        min-width: 150px;
        display: inline-block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        vertical-align: middle;
        text-align: center;
        padding: 5px;
    }

    .inputfile-6 + label span.filebutton {
        height: 100%;
        color: #fff;
        background-color: #555;
        display: inline-block;
        min-width: 120px;
        text-align: center;
    }

    .inputfile-6:focus + label span.filebutton,
    .inputfile-6.has-focus + label span.filebutton,
    .inputfile-6 + label:hover span.filebutton {
        background-color: #222;
    }

@media screen and (max-width: 50em) {
    .inputfile-6 + label span.filebutton {
        display: block;
    }
}
.fileremove {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    border: none;
    background-color: #ad1d00;
    margin: 0 5px;
    cursor:pointer;
}

    .fileremove:hover {
        background-color: #610800;
    }

    .fileremove:before, .fileremove:after {
        position: absolute;
        top: 5px;
        right: 50%;
        content: ' ';
        height: 15px;
        width: 2px;
        background-color: #fff;
    }

    .fileremove:before {
        transform: rotate(45deg);
    }

    .fileremove:after {
        transform: rotate(-45deg);
    }