/* Form Styles */
.creditunion {
    background-color: #f0f8ff;
    padding: 32px;
    color:#343848;
    font-size: 16px;
    text-align: left;
}

.creditunion h2{
    text-align: left;
    font-weight: 400;
    color: #343848;
    font-size: 24px;
    padding: 0;
    margin: 0 0 12px 0;
}

.gridcontent{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: left;
    width:100%;
    }

.creditunion_page {
    background-color: cornflowerblue;
    padding: 32px;
    color:#FFFFFF;
    font-size: 16px;
    text-align: center;
}

#creditunion {text-align: left;}

/*fieldsets*/
#creditunion div.fieldsets { width: 100%; position: relative; overflow: hidden;  -webkit-transition: height 1s; /* Safari prior 6.1 */ transition: height 1s;}
#creditunion div.fieldsets fieldset { width: 100%; display: none; position: absolute;  border: none; float: left; padding: 1px 0 50px 0;}

/*paragraphs*/
#creditunion p {margin:0;padding:0;text-align: left; line-height: 1.3em;color: #343848;}
#creditunion p, .creditunion p a {color: #343848;}
#creditunion p.warning {color:red;}
#creditunion p.warning > label { color: red;}
#creditunion p.warning input, #creditunion p.warning select, #creditunion p.warning textarea  { border-color: red !important; }
#creditunion p.loading { background-image: url('805.gif'); width: 100%; height: 64px; display: block; background-position: center center; background-repeat: no-repeat; }

/* Inputs */
#creditunion input[type=button] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#creditunion span.select {
	position: relative !important;
	display: block !important;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	width: auto;
}
#creditunion input[type=text], #creditunion input[type=tel], #creditunion input[type=number], #creditunion input[type=email], #creditunion select, #creditunion textarea {
	padding: 10px;
	border: 1px solid #ededed;
	border-radius: 3px;
	margin: 3px 0 10px 0;
	width: 100%;
	box-sizing: border-box;
	color: #2C3E50;
    font-size: 16px;
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#creditunion input[type=range] {
    background: none;
    border:none;
    padding:0;
}

#creditunion input[type="checkbox"] {display:none;}
#creditunion input[type="checkbox"] + label::before {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ededed;
    background-color: #fff;
    display: block;
    content: "";
    float: left;
    margin-right: 5px;
}

#creditunion input[type="checkbox"].required+ label::before {border-color: #0082c8;}

#creditunion p.warning input[type="checkbox"] + label::before {border-color: red;}

#creditunion input[type="checkbox"]:checked+label::before {
    box-shadow: inset 0px 0px 0px 3px #fff;
    background-color: #0082c8;
}

#creditunion .validator, .creditunion_page .validator{margin-left: -999px;height:0;}

#creditunion .repayments_slider_output {
	padding: 4px 0;
    display: grid;grid-template-columns: 6% 88% 6%;grid-gap: 0;
}

/* Circle Rules */
#creditunion .repayments-up, .repayments-down { background-color: #ffffff; cursor: pointer; }

#creditunion .repayments-down { height: 25px; width: 25px; position: absolute; left: 0; border-radius: 12.5px; border: 2px solid #0082c8; }

#creditunion .repayments-down:after {
	content: "";
	width: 15px;
	position: absolute;
	height: 3px;
	background-color: #0082c8;
	top: 50%;
	margin-top: -1.5px;
	left: 50%; 
	margin-left: -7.5px;
}
#creditunion .repayments-up { height: 25px; width: 25px; position: absolute; right: 2px;border-radius: 12.5px; border: 2px solid #0082c8;  }

#creditunion .repayments-up:after {
	content: "";
	width: 15px;
	position: absolute;
	height: 3px;
	background-color: #0082c8;
	top: 50%;
	left: 50%; 
	margin-top: -1.5px;
	margin-left: -7.5px;
}

#creditunion .repayments-up:before {
	content: "";
	width: 3px;
	position: absolute;
	height: 15px;
	background-color: #0082c8;
	top: 50%;
	left: 50%;
	margin-top: -7.5px;
	margin-left: -1.5px;
}

#creditunion .repayments-up:hover, .repayments-down:hover { background-color: #cccccc; cursor: pointer; }

#creditunion .repayments-control {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

/* Radio Buttons */
#creditunion .selectbutton input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}
#creditunion .selectbutton label {
    display: block;
    text-align: center;
    line-height: 30px;
    margin-top:12px;
    width: 100%;
    background-color:#0082c8;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.4);
}
#creditunion .selectbutton label:hover, .selectbutton  input[type="radio"]:checked + label {background-color:#09233a !important;}


/* Results Buttons */
#creditunion .outputradio {display: grid;
    grid-template-columns: 24.25% 24.25% 24.25% 24.25%;
    grid-gap: 1%;
    cursor: pointer;
    margin-top: 6px;
}

#creditunion .outputradio input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}
#creditunion .outputradio label {
    display: inline-block;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    background-color: #0082c8;
    cursor: pointer;
    padding: 4px;
    color:#FFF;
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.4);
}

#creditunion .outputradio label:hover, #creditunion .outputradio input[type="radio"]:checked + label {
    background-color:#09233a !important; 
    color:#FFF;
}

#creditunion .outputradio label span {font-weight: 900;font-size: 20px;}

/* Arrows */
#creditunion select.minimal {
    background-image:
        linear-gradient(45deg, transparent 50%, gray 50%),
        linear-gradient(135deg, gray 50%, transparent 50%),
        radial-gradient(#ddd 70%, transparent 72%);
    background-position:
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - .5em) .5em;
    background-size:
        5px 5px,
        5px 5px,
        1.5em 1.5em;
    background-repeat: no-repeat;
}

/*range*/
#creditunion input[type=range] {
    -webkit-appearance: none;
    -webkit-transition: .2s;
    width: 100%;
    height: 25px;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    margin:0;
    padding:0;
}

#creditunion input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #ededed;
}

#creditunion input[type=range]::-webkit-slider-thumb {
    width: 23px;
    height: 23px;
    border-radius: 12.5px;
    background-color: #0082c8;
    border: 2px solid #0082c8;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -10px;
}

#creditunion input[type=range]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background-color: #0082c8;
}

#creditunion input[type=range]::-moz-range-thumb {
    width: 23px;
    height: 23px;
    border-radius: 12.5px;
    background-color: #0082c8;
    border: 2px solid #0082c8;
    margin-top: 0;
}

#creditunion input[type=range]::-ms-track {
    height: 6px;
    border-radius: 3px;
    background-color: #0082c8;
}

#creditunion input[type=range]::-ms-fill-upper {
    height: 6px;
    border-radius: 3px;
    background-color: #0082c8;
}

#creditunion input[type=range]::-ms-fill-lower {
    height: 6px;
    border-radius: 3px;
    background-color: #0082c8;
}

#creditunion input[type=range]::-ms-thumb {
    width: 23px;
    height: 23px;
    border-radius: 12.5px;
    background-color: #0082c8;
    border: 2px solid #0082c8;
    margin-top: 0;
}

/* Required Border */
#creditunion .required {
    border: 1px solid #0082c8 !important;
}

/* Action Buttons */
#creditunion .buttons { height: 50px; }

#creditunion .action-button {
	width: 100px;
	background: #0082c8;
	color: white;
	border: 0 none;
	border-radius: 1px;
	cursor: pointer;
	padding: 10px 5px;
	bottom: 55px;
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.4);
}
#creditunion .action-button:hover, #creditunion .action-button:focus {
	background: #09233a;
}
#creditunion .next, #creditunion .submit {position:absolute;right:0;-webkit-appearance: none;}
#creditunion .previous {position:absolute; left:0;}

/* Progressbar */
#progressbar {
	margin: 15px 0 15px 0;
	overflow: hidden;
	/*CSS counters to number the steps*/
	counter-reset: step;
    line-height: 30px;
    text-align: center;
}
#progressbar li {
	list-style-type: none;
	color: white;
	font-size: 16px;
	width: 33.33%;
	float: left;
	position: relative;
}
#progressbar li:before {
	content: counter(step);
	counter-increment: step;
	font-weight: 600;
	width: 30px;
	line-height: 30px;
	display: block;
	color: #0082c8;
	background: #ededed;
	border-radius: 15px;
	margin: 0 auto;
}
/* Progressbar Connectors */
#progressbar li:after {
	content: '';
	width: calc(100% - 30px);
	height: 2px;
	background: #ededed;
	position: absolute;
	left: -50%;
    margin: 0 15px;
	top: 14px;
}
#progressbar li.active:first-child:after {
	/*connector not needed before the first step*/
	content: none; 
}
/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before,  #progressbar li.active:after{
    background: #0082c8;
	color: white;
}

/* Submitting Animation */
.working_loading {
	font: 300 4em/150% Impact;
	color: rgba(6, 115, 152, 1);
	text-align: right;
	position: relative;
	left: calc(100% - 30px);
	bottom: 18px;
}

.buttons_working { display: none; }

.working_loading:after {
	content: ' .';
	animation: dots 1s steps(5, end) infinite;
	color: rgba(6, 115, 152, 1);
}

@keyframes dots {
	0%, 20% {
		color: rgba(6, 115, 152, 0);
		text-shadow:
			-.25em 0 0 rgba(6, 115, 152, 0),
			-.5em 0 0 rgba(6, 115, 152, 0);
	}
	40% {
		color: rgba(6, 115, 152, 0);
		text-shadow:
			-.25em 0 0 rgba(6, 115, 152, 0),
			-.5em 0 0 rgba(6, 115, 152, 1);
	}
	60% {
		color: rgba(6, 115, 152, 0);
		text-shadow:
			-.25em 0 0 rgba(6, 115, 152, 1),
			-.5em 0 0 rgba(6, 115, 152, 1);
	}
	80%, 100% {
		color: rgba(6, 115, 152, 1);
		text-shadow:
			-.25em 0 0 rgba(6, 115, 152, 1),
			-.5em 0 0 rgba(6, 115, 152, 1);
	}
}


/* The Modal */
#creditunion .modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
#creditunion .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
}

#creditunion .modal-content p,
#creditunion .modal-content h2,
#creditunion .modal-content li {
    color: #343848;
}

/* The Close Button */
#creditunion .closemodal {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#creditunion .closemodal:hover,
#creditunion .closemodal:focus {
    color: #343848;
    text-decoration: none;
    cursor: pointer;
}

/* Cell Phone */
@media only screen and (max-width: 800px) {
    .creditunion {
        display: block;
        padding: 16px;
        font-size:12px;
    }
    .creditunion h2{
        font-size: 20px;
    }
    #creditunion .outputradio label {
        font-size: 8px;
    }
    #creditunion .outputradio label span {
        font-size: 14px;
    }
    #creditunion .repayments_slider_output {
        display: grid;grid-template-columns: 10% 80% 10%;grid-gap: 0;
    }
}