label {
    display: block;
    margin: 0 0 3px;
    font-size: 14px;
}
input {
    font-family: inherit;
}
.add-select .title,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    border: 0;
    background-color: transparent;
    background-position: center bottom, center calc(100% - 1px);
    background-image: linear-gradient(#08f, #08f), linear-gradient(#eee, #eee);
    background-size: 0 2px, 100% 1px;
    background-repeat: no-repeat;
    padding: 0.75em 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    resize: none;
    transition: background 0s ease-out;
}
textarea {
    height: 136px;
}
.add-select.active .title,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    background-image: linear-gradient(#08f, #08f), linear-gradient(#eee, #eee);
    background-size: 100% 2px, 100% 1px;
    box-shadow: none;
    transition-duration: 0.3s;
}

input[type="checkbox"],
input[type="radio"] {
    vertical-align: middle;
}
input[type="checkbox"] + span,
input[type="radio"] + span {
    vertical-align: middle;
}

.focus-item {
    padding-top: 20px;
}
.focus-item > label {
    position: absolute;
    top: 30px;
    left: 0;
    pointer-events: none;
    color: #aaa;
    margin: 0;
    font-weight: inherit;
    font-size: 16px;
    transition: transform 0.3s ease, font-size 0.3s ease;
}
.focus-item.is-focused > label {
    font-size: 12px;
    transform: translate3d(0, -30px, 0);
}

.form-item {
    position: relative;
    box-sizing: border-box;
}
.form-item:nth-child(n+2) {
    margin-top: 20px;
}
.form-item.inactive {
    display: none;
}
.form-description {
    color: #777;
    margin-top: 2px;
}
.form-error {
    color: #e00;
    font-weight: 600;
}

.form-item > .col2 {
    float: left;
    width: 48%;
}
.form-item > .col2:nth-child(n+2) {
    margin-left: 4%;
}
.form-item > .col3 {
    float: left;
    width: 32%;
}
.form-item > .col3:nth-child(n+2) {
    margin-left: 2%;
}

.add-file .preview {
    position: relative;
    max-width: 500px;
    display: inline-block;
}
.add-multiple > .items > .form-item > .remove,
.add-file .remove {
    color: #e00;
    width: 20px;
    line-height: 20px;
    font-size: 14px;
    margin-left: 3px;
    font-family: FontAwesome;
    text-align: center;
    cursor: pointer;
}
.add-file .remove:before {
    content: "\f00d";
    display: inline-block;
}
.add-multiple > .items > .form-item > .remove,
.add-file .preview-video .remove,
.add-file .preview-audio .remove,
.add-file .preview-image .remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    line-height: 40px;
    font-size: 24px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.01);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.add-multiple > .items > .form-item:hover > .remove,
.add-file .preview-video:hover .remove,
.add-file .preview-audio:hover .remove,
.add-file .preview-image:hover .remove {
    transform: scale(1);
    opacity: 1;
}
.add-file .preview-audio .remove {
    top: -20px;
    right: -20px;
}
.add-file.loading .browse,
.add-file.loading .preview {
    display: none;
}
.add-file.loading .loader {
    display: inline-block;
    font-family: FontAwesome;
    font-size: 16px;
    text-align: center;
    line-height: 1;
    animation: fa-spin 1s infinite ease;
}
.add-file.loading .loader:before {
    content: "\f1ce";
}

.add-select .title:before {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    content: "\f107";
    font-family: FontAwesome;
}
.add-select .options {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12);
}
.add-select .option {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: border-color 0.2s ease;
}
.add-select .option:hover {
    border-color: #bbb;
}

.add-multiple .template {
    display: none;
}
.add-multiple .items > .form-item {
    margin-bottom: 20px;
    padding: 40px;
    border: 1px solid #eee;
}
.add-sort {
    position: absolute;
    top: 7px;
    left: 14px;
}
.add-sort > div {
    float: left;
    width: 20px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    margin-right: 5px;
    opacity: 0.5;
    transform: scale(0.01);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.form-item:hover > .add-sort > div {
    transform: scale(1);
}
.add-sort > div:hover {
    opacity: 1;
}
.form-item:first-child > .add-sort .up {
    display: none;
}
.form-item:last-child > .add-sort .down {
    display: none;
}

.form-type-checkbox label {
    -moz-user-select: none;
    user-select: none;
}
input[type="checkbox"] {
    display: none;
}
input[type="checkbox"] ~ span {
    display: inline-block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
}
input[type="checkbox"] ~ span:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    transition: background 0.2s ease, border-color 0.2s ease;
}
input[type="checkbox"]:checked ~ span:before {
    background: #08f;
    border-color: #08f;
}
input[type="checkbox"] ~ span:after {
    content: "\f00c";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    color: #fff;
    text-align: center;
    font-family: FontAwesome;
    font-size: 13px;
    opacity: 0;
    transform-origin: center center;
    transform: scale(0.01);
    transition: opacity 0.2s ease;
}
input[type="checkbox"]:checked ~ span:after {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s 0.2s ease;
}

input[type="submit"],
input[type="button"],
a.btn,
.btn {
    font-size: 14px;
    display: inline-block;
    border: 0;
    border-radius: 3px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
    color: #fff;
    background: #999;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    outline: 0;
    box-shadow: 0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12);
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
.btn:hover {
    box-shadow: 0 14px 26px -12px rgba(153, 153, 153, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(153, 153, 153, 0.2);
}
.btn-primary,
input.btn-primary,
a.btn-primary {
    background: #08f;
    box-shadow: 0 2px 2px 0 rgba(0, 136, 255, 0.24), 0 3px 1px -2px rgba(0, 136, 255, 0.3), 0 1px 5px 0 rgba(0, 136, 255, 0.22);
}
.btn-primary:hover,
input.btn-primary:hover,
a.btn-primary:hover {
    box-shadow: 0 14px 26px -12px rgba(0, 136, 255, 0.24), 0 4px 23px 0px rgba(0, 136, 255, 0.3), 0 8px 10px -5px rgba(0, 136, 255, 0.22);
}
.btn-danger,
input.btn-danger,
a.btn-danger {
    background: #ef4646;
    box-shadow: 
        0 2px 2px 0 rgba(239, 70, 70, 0.14), 
        0 3px 1px -2px rgba(239, 70, 70, 0.2), 
        0 1px 5px 0 rgba(239, 70, 70, 0.12);
}
.btn-danger:hover,
input.btn-danger:hover,
a.btn-danger:hover {
    box-shadow: 0 14px 26px -12px rgba(239, 70, 70, 0.24), 0 4px 23px 0px rgba(239, 70, 70, 0.3), 0 8px 10px -5px rgba(239, 70, 70, 0.22);
}
.form-actions .btn {
    margin-right: 5px;
}
.form-actions .right {
    float: right;
    margin-right: 0;
    margin-left: 5px;
}
.form-item:after {
    content: "";
    display: block;
    clear: both;
}
.form-text {
    font-size: 22px;
}