﻿.inputErrorBox, .textareaErrorBox,.selectErrorBox  {
    display: inline-block;
    position: absolute;
    bottom: 115%;
    left: 7%;
    background: #B53A37;
    padding: 5px;
    color: #FFF;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    z-index: 10000;
    margin-left: 7px;
    margin-top: -3px;
    max-width: 100%;
}

.formTooltip {
    display: inline-block;
    position: absolute;
    bottom: 150%;
    left: 7%;
    background: #6aa6cd;
    padding: 5px;
    color: #FFF;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    z-index: 10000;
    margin-left: 7px;
    margin-top: -3px;
    max-width: 100%;
}

.formTooltip:before, .formTooltip:after {
	top: 100%;
	left: 25%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.formTooltip:after {
	border-color: rgba(190, 75, 73, 0);
	border-top-color: #6aa6cd;
	border-width: 10px;
	margin-left: -10px;
}

.formTooltip:before {
	border-color: rgba(190, 75, 73, 0);
	border-top-color: #6aa6cd;
	border-width: 13px;
	margin-left: -13px;
}

.textareaErrorBox {
    bottom: 98%;
}

.inputErrorBox:after, .inputErrorBox:before, .textareaErrorBox:after, .textareaErrorBox:before, .selectErrorBox:before, .selectErrorBox:after {
	top: 100%;
	left: 25%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.inputErrorBox:after, .textareaErrorBox:after, .selectErrorBox:after {
	border-color: rgba(190, 75, 73, 0);
	border-top-color: #B53A37;
	border-width: 10px;
	margin-left: -10px;
}

.inputErrorBox:before, .textareaErrorBox:after, .selectErrorBox:after {
	border-color: rgba(190, 75, 73, 0);
	border-top-color: #B53A37;
	border-width: 13px;
	margin-left: -13px;
}

.inputErrorBox img, .textareaErrorBox img, .selectErrorBox img {
    margin-right: 10px;
    height: 24px;
    width: 24px;
}

input.inputError {
    background: url('//static.fdtc.edu/_img/icon/forms/exclamation-circle-red.png') 99% center no-repeat;
}

textarea.inputError {
    background: url('//static.fdtc.edu/_img/icon/forms/exclamation-circle-red.png') 99% 2% no-repeat;
}

/* Base for label styling */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
    position: relative;
    padding-left: 35px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    cursor: pointer;
    border-radius: 8px;
    background-color: rgba(250,250,250,.8);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1) inset;
    border: 1px solid #CCC;
    margin-top: 10px;
    margin-right: 0px !important;
    margin-left: 0px !important;
}

[type="checkbox"]:checked + label {
    background-color: rgba(0, 150, 0, .1);
}

.stretchCheckbox[type="checkbox"]:not(:checked) + label,
.stretchCheckbox[type="checkbox"]:checked + label,
.stretchCheckbox input[type="checkbox"]:not(:checked) + label,
.stretchCheckbox input[type="checkbox"]:checked + label{
    width: 100%;
}

[type="checkbox"]:not(:checked) + label:hover,
[type="checkbox"]:checked + label:hover {
    background-color: rgba(106,166,205, .2);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1) inset;
}

/* checkbox aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left:1px; top: 3px;
    width: 17px; height: 17px;
    border: 1px solid #aaa;
    background: #f8f8f8;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
    margin-left: 10px;
    margin-top: 5px;
}

/* checked mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: '✔';
    position: absolute;
    top: 5px; left: 14px;
    font-size: 14px;
    color: #09ad7e;
    transition: all .2s;
}

/* checked mark aspect changes */
[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}

[type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;
}

[type="checkbox"]:disabled:checked + label:after {
    color: #999;
}

[type="checkbox"]:disabled + label {
    color: #aaa;
}

/* accessibility */
[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before {
    border: 1px dotted blue;
}