/*
Copyright 27-Sep-2018 - Little Fire Digital Ltd
-----------------------------------------------------------------------
Reuse and modification by permission only
*/
/* 
	Created on : 27-Sep-2018, 13:38:59
	Author     : simon
	Compyright     : Little Fire Digital Ltd  27-Sep-2018

	JG Blue: #39f

*/

.clear_left {
	clear: left;
}

.disabled {
	opacity: .5;
}

.custom_form h2 {
	min-width: 100%;
}

.custom_form {
	z-index: 1;
}

.custom_form + .custom_form {
	margin-top: 30px;
}

.custom_form,
._panel_wrapper {
	/* display: flex; */
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
}

.custom_form .item_row > label,
.custom_form::after,
._panel_wrapper::after {
    content: "";
    clear: both;
    display: table;
}

.custom_form .item_row,
._panel {
	position: relative;
	width: 100%;
	margin-bottom: 2px;
	display: inline-block;	
	/* flex-grow: 1; */
	box-sizing: border-box;
	padding: 4px;
	float: left;
}

.custom_form .padded {
	padding: 4px;
}

.custom_form .item_input {
	position: relative;
	min-height: 2.2em;
}

.js_form.custom_form .item_row + .item_row {
	margin-top: 0;
}



.input_row_checkboxgroup .item_input label._panel {
	clear: none;
}

/*
._panel > * {
	background: rgba( 255, 0, 0, .05 );
}*/

._panel.p10 {
	max-width: 10%;
}

._panel.p15 {
	max-width: 15%;
}

._panel.p20 {
	max-width: 20%;
}

._panel.p25 {
	max-width: 25%;
}

._panel.p30 {
	max-width: 30%;
}

._panel.p40 {
	max-width: 40%;
}

._panel.p33 {
	max-width: 33.33%; 
}
.newsletter_small ._panel.p33,
#rightbar ._panel.p33 {
	max-width: 100%;
	min-width: 100%;
}

._panel.p66 {
	max-width: 66.66%;
}

._panel.p50 {
	max-width: 50%;
}

._panel.p60 {
	max-width: 60%;
}

@media only screen and (max-width: 600px) {
	.custom_form ._panel label {
		width: auto;
	}
	
	._panel.p10,
	._panel.p15,
	._panel.p20,
	._panel.p25,
	._panel.p30, 
	._panel.p40 {
		max-width: 50%;
	}

}


@media only screen and (max-width: 600px) {

}
.custom_form .item_row > label,
.item_input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.custom_form .item_row > label {
	text-align: left;
	padding-bottom: .3em;
	clear: left;
}

.custom_form .item_row > label + .item_input {
	margin: 0;
}

.custom_form .item_row {
	margin: 0 0 .5em 0;
	overflow: visible;
}

.custom_form .item_row.no_margin_bottom {
	margin: 0;
}

.custom_form .item_row.new_group {
	margin-top: 1em;
}


/* Form Fields - fonts type sizing etc. s*/
.custom_form button::-moz-focus-inner {
	border: 0;
}
.custom_form select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
.custom_form option:not(:checked) {
	color: black; /* prevent <option>s from becoming transparent as well */
}

button,
.custom_form select,
.custom_form input[type=date],
.custom_form input[type=datetime],
.custom_form input[type=datetime-local],
.custom_form input[type=email],
.custom_form input[type=month],
.custom_form input[type=number],
.custom_form input[type=password],
.custom_form input[type=range],
.custom_form input[type=search],
.custom_form input[type=tel],
.custom_form input[type=text],
.custom_form input[type=time],
.custom_form input[type=url],
.custom_form input[type=week], 
textarea {
	font-family: proxima-nova, Arial, Helvetica, sans-serif;
	font-size: 16px;
	padding: 6px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	float: left;
	min-height: 2.2em;
	box-sizing: border-box;
	background: transparent;
}

.js_form .item_row > label + .item_input,
.js_form .item_row > label + .item_select {
	max-width: 100%;
}


button,
.generic_box,
.custom_form .select_wrapper,
.custom_form input[type=date],
.custom_form input[type=datetime],
.custom_form input[type=datetime-local],
.custom_form input[type=email],
.custom_form input[type=month],
.custom_form input[type=number],
.custom_form input[type=password],
.custom_form input[type=range],
.custom_form input[type=search],
.custom_form input[type=tel],
.custom_form input[type=text],
.custom_form input[type=time],
.custom_form input[type=url],
.custom_form input[type=week], 
textarea {	
	background: rgba( 255, 255, 255, 0.8 );
	border: none;
	border-radius: 4px;
	min-height: 2.2em;
	box-shadow: 0 2px 2px rgba( 0, 0, 0, .1 );
	box-sizing: border-box;
	transition: box-shadow .5s ease;
}


.custom_form .select_wrapper {
/*	max-height: 2.2em; */
	overflow: hidden;
}

.custom_form .select_wrapper:first-child {
	clear: left;
}

.custom_form .select_wrapper select {
	min-width: 100%;
}

.custom_form .prerequisite button,
.custom_form .prerequisite .generic_box,
.custom_form .prerequisite  .select_wrapper,
.custom_form .prerequisite  input[type=date],
.custom_form .prerequisite  input[type=datetime],
.custom_form .prerequisite  input[type=datetime-local],
.custom_form .prerequisite  input[type=email],
.custom_form .prerequisite  input[type=month],
.custom_form .prerequisite  input[type=number],
.custom_form .prerequisite  input[type=password],
.custom_form .prerequisite  input[type=range],
.custom_form .prerequisite  input[type=search],
.custom_form .prerequisite  input[type=tel],
.custom_form .prerequisite  input[type=text],
.custom_form .prerequisite  input[type=time],
.custom_form .prerequisite  input[type=url],
.custom_form .prerequisite  input[type=week], 
.prerequisite textarea {
	box-shadow: 0 0 0 1px #cc0000;
}

.custom_form textarea {
	width: 100%;
}


button {
	background-color: #666;
	color: #fff;
	text-align: center;
}

button.primary {
	background-color: #39f;
}

.custom_form input.has_button {
	float: left;
}

.custom_form input.has_button ~ button {
	float: right;
	width: 80px;
	margin-left: 5px;	
}

.custom_form input.has_button.button_count_1 {
	width: calc( 100% - 85px ); 
}

.custom_form input.has_button.button_count_2 {
	width: calc( 100% - 170px ); 
}

/* Hide the default arrow */
.select_wrapper > select {
	-webkit-appearance: none;
	-moz-appearance: none;
	position: relative;
	z-index: 4;
	border: 0;
}

/* Style the new arrow */
.inline_form_icon {
	right: 8px;
	top: 50%;
	margin-top: -10px;
	z-index: 1;
}

.select_wrapper:hover > .i_icon {
	opacity: 1;
}

.custom_form .item_row > label {
	padding-bottom: .4em;
}

.custom_form .field_description {
	display: block;
	clear: both;
}

.item_input > .field_description {
	clear: left;
	margin-top: 3px;
}

.custom_form .field_description *:first-child {
	margin-top: 0;
}

.custom_form .field_description *:last-child {
	margin-bottom: 0;
}

/* -------------------------- Checkbox Styles -------------------------- */


.custom_form .input_row_checkbox .item_input {
	margin: 0;
}

.custom_form .input_row_checkbox .item_input label {
	padding-left: 2em;
	box-sizing: border-box;
	position: relative;
}

.custom_form input[type=checkbox],
.custom_form .checkbox_spoof {
	width: 1.5em;
	min-height: 1.5em;
	position: absolute;
	top: 0;
	left: 4px;	
}

.custom_form .checkbox_spoof > span {
	left: 50%;
	top: 50%;
	margin: -10px 0 0 -10px;
	opacity: 0;
}

.custom_form  input[type=checkbox]:checked + .checkbox_spoof > span {
	opacity: 1;	
}

.custom_form .checkbox_spoof {
	z-index: 1;
}

.custom_form input[type=checkbox] {
	z-index: 3;
	-webkit-appearance: none;
	-moz-appearance: none;
	opacity: 0;
}

.custom_form input[type=radio] {
	z-index: 3;
	-webkit-appearance: none;
	-moz-appearance: none;
	opacity: 0;
}

