/*------------------------------------*\
    RESET
\*------------------------------------*/
/**
 * Einfaches Reset. Kein reset.css da
 * es ansonsten Einfluss auf die Seite haben könnte
 */

.requestform * {
    font-family: inherit;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*------------------------------------*\
    CUSTOM FORM STYLES
\*------------------------------------*/
/**
 * Keine Änderungen in dieser Datei vornehmen!!
 * Projektspezifische style.css für Anpassungen verwenden.
 * BEM Syntax für Scope in CSS http://csswizardry.com/2013/05/scope-in-css/
 */

.requestform {
    max-width: 610px;
    line-height: 1.5;
    padding: 0 10px;
}

.requestform input,
.requestform select,
.requestform textarea {
    padding: 6px;
    margin-right: 5px;
    background: #FFF;
    border: 1px solid #e1e1e1;
    outline: none;
}

.requestform input:focus,
.requestform select:focus,
.requestform textarea:focus {
    border-color: #1f8dd6;
    -webkit-box-shadow:  0px 0px 3px 1px rgba(229, 241, 250, 1);
    box-shadow:  0px 0px 3px 1px rgba(229, 241, 250, 1);
}

.requestform label {
    display: inline-block;
    vertical-align: top;
    width: 130px;
    padding-right: 10px;
}

.requestform select {
    max-width: 250px;
    min-width: 60px;
}

.requestform input {
    width: 250px;
}

.requestform textarea {
    width: 396px;
    height: 100px;
}

.requestform input[type=checkbox] {
    width: auto;
    border: 0;
    background: transparent;
    padding: 0;
}

.requestform .span,
.requestform .error {
    display: none;
}

.requestform button {
    padding: 10px 20px;
    display: inline-block;
    cursor: pointer;
    background: #4da1dd;
    border: 0;
    color: #FFF;
    font-size: 13px;
    margin: 10px 0;
}

/*
Ladeanimation beim Abschicken des Formulars
Gif muss neu generiert werden wenn Farbe des Buttons geändert wird
http://loadinggif.com/


.bn--request .submit button.submitted {
    background-image: url('img/loading.gif');
    background-repeat: no-repeat;
    background-position: 3px 50%;
}
*/

/*------------------------------------*\
    Fehlermeldungen
\*------------------------------------*/

.requestform .notvalid {
    border: 1px solid #640000;
    background: #FF9999;
    color: #640000;
}

.requestform input[type="checkbox"].notvalid ~ .error,
.requestform input[type="radio"].notvalid ~ .error {
    background: url('img/formsprite.png') no-repeat 0 -36px;
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: top;
}

/*------------------------------------*\
    BN FORM GRID
\*------------------------------------*/
/**
 * Wird in jedem eHotelier Formular verwendet und sollte nicht verändert werden.
 * Verbesserungsvorschläge gerne willkommen.
 */

.requestform .field {
    position: relative;
    padding: 3px 0;
}

.requestform .field:first-child {
    padding-top: 0;
}

/*------------------------------------*\
    MEDIA QUERIES
\*------------------------------------*/

@media only screen and (max-width: 470px) {
    .requestform,
    .requestform input,
    .requestform select,
    .requestform textarea,
    .requestform label {
        width: 100%;
        max-width: none;
        float: none;
        margin: 0;
        display: block;
    }

    /* http://stackoverflow.com/questions/6483425/prevent-iphone-from-zooming-in-on-select-in-web-app */
    .requestform select:focus,
    .requestform textarea:focus,
    .requestform input:focus {
        font-size: 16px;
    }
    
}
