
:root {    
    --form-border: #AAAAAA;
    --form-bg: #FEFEFE;
    --form-text: #4D4D4D;
    --pop-bg: #F1F1F1;
    --foot-height: 80px;
    --border-col: #78000B;
    --obs-border: #333;
}

.pop-form p:before,.pop-form p:after{content: "";   display: table;}
.pop-form p:after{clear: both;}
.pop-form p{zoom: 1;}

.pop-form label, .pop-form input, .pop-form span, .pop-form select{
    float: left;
    display: block;
    font-size: .85em;    
}

.pop-form label { 
    width: 30%;    
    text-align: right;
    margin: 5px 1% 0 0;
    box-sizing: content-box;
    
}
.pop-form input, .pop-form select, .gen-select, .pop-form textarea {
    width: 67%;
    box-sizing: content-box;
    padding: 4px 2px;
    border: 1px solid var(--form-border);
    border-radius: 3px;
    background-color: var(--form-bg);
    color: var(--form-text);    
}

.pop-form textarea {
    height: 70px;
    font-family: Arial, "MS Trebuchet", sans-serif;
    font-size: .8em;
}

.pop-form span {
    max-width: 67%;
    color: var(--form-text);
    font-style: italic;
    margin: 5px 0 0 1%;
}

.page-form p:before,.page-form p:after{content: "";   display: table;}
.page-form p:after{clear: both;}
.page-form p{zoom: 1;}

.page-form label, .page-form input, .page-form span, .page-form select, .page-form textarea{
    float: left;
    display: block;
    font-size: .85em;    
}

.page-form label { 
    width: 20%;    
    text-align: right;
    margin: 5px 1% 0 0;
    box-sizing: content-box;
    
}
.page-form input, .page-form select, .page-form textarea {
    width: 77%;
    box-sizing: content-box;
    padding: 4px 2px;
    border: 1px solid var(--form-border);
    border-radius: 3px;
    background-color: var(--form-bg);
    color: var(--form-text);    
}

.page-form textarea {
    height: 60px;
}

.page-form span {
    color: var(--form-text);
    font-style: italic;
    margin: 5px 0 0 1%;
}

.cbox {
	-webkit-appearance:none;
    width:14px !important;
    height:14px !important;
    background:white;
    border-radius:5px;
    border:2px solid #555;
}

.cbox:checked {
    background-image: url(/includes/images/tick.svg);
    background-repeat: no-repeat;
    background-size: 90%;
	background-position: center;
}

/* mask */
mark.im-caret {
    animation: 1s blink step-end infinite !important;
}

mark.im-caret-select {
    background-color: rgba(0, 0, 0, 0.25);
}

@keyframes blink {
    from, to {
        border-right-color: black;
    }
    50% {
        border-right-color: transparent;
    }
}

span.im-static {
    color: grey;
}

div.im-colormask {
    display: inline-block;
    border-style: inset;
    border-width: 2px;
    appearance: textfield;
    cursor: text;
}

div.im-colormask > input, div.im-colormask > input:-webkit-autofill {
    position: absolute !important;
    display: inline-block;
    background-color: transparent;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: transparent;
    text-shadow: none;
    appearance: caret;
    border-style: none;
    left: 0; /*calculated*/
}

div.im-colormask > input:focus {
    outline: none;
}

div.im-colormask > input::selection {
    background: none;
}

div.im-colormask > input::-moz-selection {
    background: none;
}

div.im-colormask > input:-webkit-autofill ~ div {
    background-color: rgb(250, 255, 189);
}

div.im-colormask > div {
    color: black;
    display: inline-block;
    width: 100px; /*calculated*/
}

[im-insert="false"] {
    caret-color: red;
    caret-shape: block;
}

/* general */

#waiting-outer {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    background-image: url(/includes/images/cal-wait-bg.png);
    z-index: 9999;
}

#waiting-inner {
    background-image: url(/includes/images/cal-wait.gif);
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
}

#messages {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;    
    font-weight: bold;
}

.mess-div {
    display: none;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    padding: 7px 0;
    text-align: center;
}

.mess-good { background-color: #009809; color: #fff; }
.mess-bad { background-color: #C3000B; color: #fff; }
.mess-blah { background-color: rgb(238, 150, 36); color: #fff; }

.pop-form h3 {
    text-align: center;
}

.cc-image {
    background-image: url(/includes/images/visa-mastercard-amex.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 100%;
    height: 50px;
}