/**
 * Freedom Energy.
 *
 * This file adds Gravity Forms styles to the Freedom Energy Theme.
 *
 * @package Freedom Energy
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
 */

/* Gravity Forms
---------------------------------------------------------------------------- */

div.gform_wrapper {
    margin-top: 0;
}

body div.gform_wrapper ul > li.gfield:first-child {
    margin-top: 0;
}

body div.gform_wrapper ul li.gfield:not(.hidden_label) {
    margin-top: 32px;
}

div.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
div.gform_wrapper textarea {
	margin-bottom: 0;
	padding: 16px 20px 16px;
}

div.gform_wrapper .ginput_container_address input {
    margin-bottom: 8px !important;
}

div.gform_wrapper input[value="Other"] {
    margin: 0;
    padding: 5px 10px;
}

div.gform_wrapper select {
	margin-bottom: 16px;
}

div.gform_wrapper.gf_browser_chrome select {
    padding: 16px 20px;
}

div.gform_wrapper ul.gfield_checkbox,
div.gform_wrapper ul.gfield_radio {
	margin-bottom: 32px;
}

div.gform_wrapper li.hidden_label input,
div.gform_wrapper .top_label li.gfield.gf_left_half .ginput_container:not(.gfield_time_hour):not(.gfield_time_minute):not(.gfield_time_ampm):not(.ginput_container_date):not(.ginput_quantity):not(.datepicker):not(.gfield_signature_container),
div.gform_wrapper .top_label li.gfield.gf_right_half .ginput_container:not(.gfield_time_hour):not(.gfield_time_minute):not(.gfield_time_ampm):not(.ginput_container_date):not(.ginput_quantity):not(.datepicker):not(.gfield_signature_container) {
	margin-top: 0;
}

div.gform_wrapper .field_sublabel_hidden_label .ginput_complex.ginput_container input[type=text], 
div.gform_wrapper .field_sublabel_hidden_label .ginput_complex.ginput_container select {
	margin-bottom: 0;
}

div.gform_wrapper ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666;
  opacity: 1; /* Firefox */
}

div.gform_wrapper :-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #666;
}

div.gform_wrapper ::-ms-input-placeholder { /* Microsoft Edge */
  color: #666;
}

form.searchandfilter ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.searchandfilter li {
    flex: 0 0 30%;
    vertical-align: top;
}

.searchandfilter li:first-child {
    flex-basis: 50%;
}

.searchandfilter li:last-child {
    flex-basis: 20%;
}

.searchandfilter input {
    padding: 12px 16px;
}

.searchandfilter input[type="submit"] {
    display: block;
    padding: 13.5px 30px;
    width: 100%;
}

div.gform_wrapper .gfield_select,
.searchandfilter select {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
	border: 1px solid #ddd;
	border-radius: 0;
	box-sizing: border-box;
	color: #333;
	display: block;
	font-size: 16px;
	line-height: inherit;
	padding: 16px 20px 17px;
}

.searchandfilter select {
    padding: 14px 40px 14px 14px;
}

div.gform_wrapper .gfield_select::-ms-expand,
.searchandfilter select::-ms-expand {
	display: none;
}
div.gform_wrapper .gfield_select:hover,
.searchandfilter select:hover {
	border-color: #ddd;
}
div.gform_wrapper .gfield_select:focus,
.searchandfilter select:focus {
	color: #333;
	outline: none;
}
div.gform_wrapper .gfield_select option,
.searchandfilter select option {
	font-weight: normal;
}

div.gform_wrapper .gfield_select option.gf_placeholder {
	color: #999;
}

div.gform_wrapper .gform_footer {
	margin: 13px 0 0;
	padding: 0;
}

div.gform_wrapper .gform_required_legend {
    display: none;
}

div.gform_wrapper.gravity-theme .field_sublabel_above .description,
div.gform_wrapper.gravity-theme .field_sublabel_above .gfield_description,
div.gform_wrapper.gravity-theme .field_sublabel_above .gsection_description {
    margin-top: 0;
}

/* Gravity Forms - Error Styles
--------------------------------------------- */

div.gform_wrapper.gravity-theme .gform_validation_errors>h2,
div.gform_wrapper.gravity-theme .gform_validation_errors>ol li {
    font-size: 14px;
}

div.gform_wrapper.gravity-theme .field_description_above .description, 
div.gform_wrapper.gravity-theme .field_description_above .gfield_description, 
div.gform_wrapper.gravity-theme .field_description_above .gsection_description, 
div.gform_wrapper.gravity-theme .field_description_above .instruction {
    font-size: 14px;
    margin: -2px 0 10px;
    padding: 0;
}

.entry-content div.gform_wrapper div.validation_error {
	animation: pulse 3s linear 0s forwards infinite;
	background-color: #d65251;
	border: none;
	color: #fff;
	font-weight: 400;
	left: 0;
	position: relative;
	top: 0;
	z-index: 9999999;
}

.entry-content div.gform_wrapper .gform_validation_errors>h2 {
    color: #fff;
}

@keyframes pulse {
	0% { filter: brightness(1); }
	25% { filter: brightness(1.25); }
	50% { filter: brightness(1); }
	75% { filter: brightness(1.5); }
	100% { filter: brightness(1); }
}

.entry-content div.gform_wrapper li.gfield.gfield_error,
.entry-content div.gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning {
	background-color: transparent;
	border: none;
	padding: 0;
}

.entry-content div.gform_wrapper li.gfield.gfield_error.gfield_contains_required div.ginput_container,
.entry-content div.gform_wrapper li.gfield.gfield_error.gfield_contains_required label.gfield_label {
	margin: 0;
}

.entry-content div.gform_wrapper .validation_message {
	font-size: 14px;
	font-style: italic;
	font-weight: 400;
	padding: 0;
	position: relative;
}

.entry-content div.gform_wrapper li.gfield.gfield_error.gfield_contains_required div.gfield_descriptionn {
	position: relative;
	z-index: -1;
}

.entry-content div.gform_wrapper li.gfield_error input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.entry-content div.gform_wrapper li.gfield_error textarea,
.entry-content div.gform_wrapper li.gfield_error select {
	background-color: #ffe3e3;
    color: #333;
}

.entry-content div.gform_wrapper li.gfield_error select {
    border: 1px solid #790000;
}