﻿/*
* File name: size_responsive.css
*
*  FORM LAYOUT (sizes, widths, heights, margins, paddings etc.)
*
* Good tutorials
* The Difference Between CSS "Block" and "Inline" property
*                           http://www.impressivewebs.com/difference-block-inline-css/
* inline-block:             http://www.brunildo.org/test/inline-block.html
* hasLayout:                http://www.satzansatz.de/cssd/onhavinglayout.html
* Styling form controls:    http://www.456bereastreet.com/archive/200701/styling_form_controls_with_css_revisited/
----------------------------------------------------------------------------- */
#pix-cf {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    vertical-align: middle;
    line-height: 12px;
}
#pix-cf fieldset {
    margin: 0;
    padding: 0;
}
#pix-cf legend {
    margin: 0 10px;
    padding: 0 10px 5px 10px;
    vertical-align: top;
}
div.inputFieldBox, div.textareaFieldBox, div.selectboxField, div.checkboxBox, div.radiobuttonsBox, div.securityFieldBox, div.submitButtonBox {
    display: block;
    margin: 1% auto;
    padding: 5px;
    text-align: right;
    border: 1px solid transparent;
}
#pix-cf label {
    display: inline;
    margin-right: 3px;
    padding: 0;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
}
#pix-cf input, #pix-cf select, input#captchaImg, img#captchaImg, #pix-cf textarea {
    position: relative;
    line-height: 1em;
    margin: 0;
    padding: 7px;
    border: none;
}
#pix-cf input {
    height: 34px;
    vertical-align: middle;
}
#pix-cf textarea {
    height: 90px;
    vertical-align: top;
}
#selectboxField select {
    line-height: 12px;
    margin: 0;
    padding: 5px 3px;
    height: 32px;
    vertical-align: middle;
}
span.checkboxWrapper {
    display: inline-block;
 /* set display:block; for vertical display */
    text-align: right;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}
div#checkboxBox label {
    display: inline;
    vertical-align: middle;
    margin-left: 10px;
    padding: 0;
}
div#checkboxBox input {
    display: inline;
    vertical-align: middle;
    border: none;
    height: 20px;
    width: 20px;
    margin: 0;
    padding: 0;
}
span.radiobuttonsWrapper {
    display: inline-block;
 /* set display:block; for vertical display */
    text-align: right;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}
div#radiobuttonsBox label {
    display: inline;
    vertical-align: middle;
    margin-left: 10px;
    padding: 0;
}
div#radiobuttonsBox input {
    display: inline;
    vertical-align: middle;
    border: none;
    height: 20px;
    width: 20px;
    margin: 0;
    padding: 0;
}
input#captchaImage {
    margin-right: 2px;
    text-align: center;
    vertical-align: middle;
    border: none;
}
img#captchaImg {
    padding: 0;
    vertical-align: middle;
    border: none;
}
.reloadCaptcha {
    margin: 0;
    padding: 0;
    vertical-align: top;
    cursor: pointer;
    border: none;
}
#pix-cf button {
    height: 36px;
    margin: 0;
    cursor: pointer;
    outline: none;
    border: none;
}
.resultMessageBox {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin: auto;
    padding: 5px 0;
    line-height: 1.5;
}
#pix-cf input, #pix-cf select, #pix-cf textarea, #selectboxField select, #pix-cf button {
    width: 50%;
}
input#captchaImage, img#captchaImg {
    width: 115px;
    height: 34px;
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    div.inputFieldBox, div.textareaFieldBox, div.selectboxField, div.checkboxBox, div.radiobuttonsBox, div.securityFieldBox, div.submitButtonBox {
        display: block;
        width: 100%;
        text-align: left;
    }
    #pix-cf label {
        display: block;
        width: 100%;
        text-align: left;
        margin: 0.5em 0;
    }
    #pix-cf input, #pix-cf select, #pix-cf textarea, #selectboxField select, #pix-cf button {
        display: block;
        width: 100%;
    }
    /* last rule to overwritte inherits */
    input#captchaImage {
        display: inline-block;
        width: 108px;
    }
}


/* TYPHOGRAPHY
----------------------------------------------------------------------------- */
/* icon font face for "reload" captcha image (letter "e, d or h"), http://www.entypo.com */
@font-face {
    font-family: 'EntypoRegular';
    src: url('entypo-font/entypo-webfont.eot');
    src: url('entypo-font/entypo-webfont.eot?#iefix') format('embedded-opentype'),
         url('entypo-font/entypo-webfont.woff') format('woff'),
         url('entypo-font/entypo-webfont.ttf') format('truetype'),
         url('entypo-font/entypo-webfont.svg#EntypoRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
#pix-cf {
    font-family: "Fira Sans", "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
}
#pix-cf label {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 14px;
}
#pix-cf legend {
    font-family: "Fira Sans", "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-style: italic;
}
.required-mark {
    font-size: 16px;
    font-weight: normal;
}
#pix-cf button {
    font-family: "Fira Sans", "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;   
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#pix-cf input, #pix-cf textarea, div.selectboxField, div.radiobuttonsBox, .checkboxBox, input#securityCode, img.captchaImg, div.resultText {
    font-family: "Fira Sans", "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.customCaptionText {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    line-height: 16px;
}
.customBlockText {
    text-align: left;
    font-size: 12px;
    font-style: italic;
    line-height: 14px;
}
.reloadCaptcha {
    font-family: 'EntypoRegular';
    font-size: 50px;
    line-height: 20px;
    font-weight: normal;
}
.resultMessageBox {
    font-size: 14px;
}



/* FORM COLORS
----------------------------------------------------------------------------- */
#pix-cf {
    background-color: transparent;
}
#pix-cf fieldset {
    background-color: transparent;
}
#pix-cf label {
    color: #1C2123;
}
#pix-cf legend { }
.required-mark {
    color: #E2001A;
}
div.inputFieldBox, div.textareaFieldBox, div.checkboxBox, div.radiobuttonsBox, div.selectboxField, div#securityFieldBox, div.submitButtonBox {
    color: #7F7F7F;
    background-color: none;
    border-color: #1C2123;
}
#pix-cf input, #pix-cf select, #pix-cf textarea, input#securityCode, img.captchaImg {
    color: #FFFFFF;
    background-color: #1C2123;
    border-color: #1C2123;
}
#pix-cf input:focus, #pix-cf textarea:focus {
    color: rgba(255, 255, 255, 0.8);
    background-color: #C29B00;
    border-color: #C29B00;
}
#selectboxField select:hover { }
#customCaptionText {  }
div.checkboxBox input { }
#pix-cf button {
    color: #FFFFFF;
    text-shadow: #000000 1px 1px 0;
    background-color: #1C2123;
    /* IE6 & IE7 hack to remove extra black border around submit button in active forms http://msdn.microsoft.com/en-us/library/ms532982%28v=vs.85%29.aspx */
    filter: progid:DXImageTransform.Microsoft.Chroma(color=#000000);
    outline: none;
}
#pix-cf button:hover {
    background-color: #C29B00;
    outline: none;
}
#pix-cf button:focus {
    outline-style: none;
}
.resultMessageBox {
    color: #E2001A;
}
.reloadCaptcha {
    color: #C29B00;
}


