/*
 * Copyright (C) 2013 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.THIS .grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
}

.THIS .col, .THIS .col--padded {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

@media (min-width: 47.5em) {
    .THIS .form-element--horizontal {
        text-align: right;
    }
}

.THIS .form-element {
    position: relative;
}

.THIS  .form-element__label {
    color: #54698d;
    line-height: 1.5;
    display: inline-block;
    cursor: pointer;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

@media (min-width: 47.5em) {
    .THIS .form-element--horizontal .form-element__control {
        width: calc(66% - (0.75rem * 2));
        display: inline-block;
        text-align: left;
    }
}

.THIS .form-element--horizontal .form-element__label {
    max-width: 33%;
    margin-bottom: 0;
}

.THIS input, .THIS textarea, .THIS .input {
    display: inline-block;
    margin: 0;
    padding: 0 1rem 0 0.75rem;
    border: 1px solid #e0e5ee;
    border-radius: 0.25rem;
    width: 100%;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 2.125rem;
    background-color: #f4f6f9;
    color: #16325c;
}

.THIS .form-element + .form-element {
    margin-top: 1rem;
}