/* Site-wide Gravity Forms control chrome. Loads after GF Chosen / Orbital. */

body .gform_wrapper .chosen-container,
body .gpnf-modal .chosen-container,
body .eael-gravityforms .chosen-container {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	font-size: 16px !important;
}

body .gform_wrapper .chosen-container-single .chosen-single,
body .gform_wrapper .chosen-container-single a.chosen-single,
body .gpnf-modal .chosen-container-single .chosen-single,
body .gpnf-modal .chosen-container-single a.chosen-single,
body .eael-gravityforms .chosen-container-single .chosen-single,
body .gform-theme--framework .chosen-container-single .chosen-single,
body .gform-theme--orbital .chosen-container-single .chosen-single {
	display: block !important;
	overflow: hidden !important;
	min-height: 48px !important;
	height: 48px !important;
	line-height: 22px !important;
	padding: 12px 40px 12px 15px !important;
	border: 2px solid #34495e !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2334495e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
	background-position: right 12px center !important;
	background-repeat: no-repeat !important;
	background-size: 16px !important;
	box-shadow: none !important;
	color: #333 !important;
	box-sizing: border-box !important;
}

body .gform_wrapper .chosen-container-single .chosen-single span,
body .gpnf-modal .chosen-container-single .chosen-single span,
body .gform-theme--framework .chosen-container-single .chosen-single span {
	margin-right: 0 !important;
	line-height: 22px !important;
}

body .gform_wrapper .chosen-container-single .chosen-default span,
body .gpnf-modal .chosen-container-single .chosen-default span {
	color: #6c757d !important;
}

body .gform_wrapper .chosen-container-single .chosen-single div,
body .gform_wrapper .chosen-container-single .chosen-single div b,
body .gpnf-modal .chosen-container-single .chosen-single div,
body .gpnf-modal .chosen-container-single .chosen-single div b,
body .gform-theme--framework .chosen-container-single .chosen-single div,
body .gform-theme--framework .chosen-container-single .chosen-single div b {
	display: none !important;
}

body .gform_wrapper .chosen-container-active .chosen-single,
body .gform_wrapper .chosen-container-active.chosen-with-drop .chosen-single,
body .gpnf-modal .chosen-container-active .chosen-single,
body .gpnf-modal .chosen-container-active.chosen-with-drop .chosen-single,
body .gform-theme--framework .chosen-container-active .chosen-single,
body .gform-theme--framework .chosen-container-active.chosen-with-drop .chosen-single {
	border-color: #2c3e50 !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1) !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2334495e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
}

body .gform_wrapper .chosen-container .chosen-drop,
body .gpnf-modal .chosen-container .chosen-drop,
body .gform-theme--framework .chosen-container .chosen-drop {
	border: 2px solid #34495e !important;
	border-top: 0 !important;
	border-radius: 0 0 6px 6px !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
	background: #fff !important;
	z-index: 10060 !important;
}

body .gpnf-modal .chosen-container.chosen-with-drop {
	z-index: 10060 !important;
}

body .gform_wrapper .chosen-container .chosen-search,
body .gpnf-modal .chosen-container .chosen-search {
	padding: 8px !important;
}

body .gform_wrapper .chosen-container .chosen-search input[type="text"],
body .gpnf-modal .chosen-container .chosen-search input[type="text"],
body .gform-theme--framework .chosen-container .chosen-search input[type="text"] {
	width: 100% !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 8px 12px 8px 36px !important;
	border: 2px solid #34495e !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

body .gform_wrapper .chosen-container .chosen-results,
body .gpnf-modal .chosen-container .chosen-results {
	margin: 0 !important;
	padding: 4px 0 !important;
	background: #fff !important;
}

body .gform_wrapper .chosen-container .chosen-results li,
body .gpnf-modal .chosen-container .chosen-results li,
body .gform-theme--framework .chosen-container .chosen-results li {
	padding: 8px 15px !important;
	color: #333 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body .gform_wrapper .chosen-container .chosen-results li.highlighted,
body .gform_wrapper .chosen-container .chosen-results li.result-selected,
body .gpnf-modal .chosen-container .chosen-results li.highlighted,
body .gpnf-modal .chosen-container .chosen-results li.result-selected,
body .gform-theme--framework .chosen-container .chosen-results li.highlighted,
body .gform-theme--framework .chosen-container .chosen-results li.result-selected {
	background: rgba(52, 73, 94, 0.08) !important;
	color: #111 !important;
	box-shadow: inset 3px 0 0 #34495e !important;
}

body .gform_wrapper .chosen-container .chosen-results li.highlighted::before,
body .gform_wrapper .chosen-container .chosen-results li.result-selected::before,
body .gpnf-modal .chosen-container .chosen-results li.highlighted::before,
body .gform-theme--framework .chosen-container .chosen-results li.highlighted::before {
	display: none !important;
	content: none !important;
	background: none !important;
	box-shadow: none !important;
}

body .gform_wrapper .chosen-container-single .chosen-single:focus,
body .gpnf-modal .chosen-container-single .chosen-single:focus {
	outline: none !important;
	border-color: #2c3e50 !important;
	box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1) !important;
}

@media (max-width: 768px) {
	body .gform_wrapper .chosen-container-single .chosen-single,
	body .gpnf-modal .chosen-container-single .chosen-single {
		min-height: 52px !important;
		height: 52px !important;
		font-size: 18px !important;
	}
}

/* input[type=submit] cannot be display:flex — Chromium hides the value text. */
body .gform_wrapper input.gform_button,
body .gform_wrapper input[type="submit"],
body .eael-gravityforms input[type="submit"],
body .gpnf-modal input.gform_button,
body .gpnf-modal input[type="submit"] {
	display: inline-block !important;
}

/*
 * Nested Forms modal footer.
 * Do not style every footer `button`: that un-hides GPNF's extra
 * .gpnf-btn-cancel-mobile and produces Cancel | Add | Cancel.
 */
body .gpnf-modal .tingle-modal-box__footer {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 12px !important;
	text-align: right !important;
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-cancel-mobile {
	display: none !important;
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-cancel,
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-submit,
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-next,
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-previous,
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-delete,
body .gpnf-modal .tingle-modal-box__footer input.gform_button,
body .gpnf-modal .tingle-modal-box__footer button.gform_button,
body .gpnf-modal .tingle-modal-box__footer .gform_next_button,
body .gpnf-modal .tingle-modal-box__footer .gform_previous_button,
body .gpnf-modal .tingle-modal-box__footer .gform-theme-button,
body .gpnf-modal .tingle-modal-box__footer input[type="submit"],
body .gpnf-modal .tingle-modal-box__footer input[type="button"] {
	display: inline-block !important;
	visibility: visible !important;
	position: static !important;
	width: auto !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	min-width: 125px !important;
	height: 48px !important;
	min-height: 48px !important;
	line-height: 48px !important;
	padding: 0 20px !important;
	margin: 0 !important;
	overflow: visible !important;
	text-indent: 0 !important;
	text-align: center !important;
	white-space: nowrap !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #fff !important;
	background-color: #495057 !important;
	border: none !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-submit:not(:disabled),
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-submit:not(:disabled) *:not(.gpnf-spinner),
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-next:not(:disabled),
body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-next:not(:disabled) *:not(.gpnf-spinner),
body .gpnf-modal .tingle-modal-box__footer .gform_next_button,
body .gpnf-modal .tingle-modal-box__footer .gform_next_button *:not(.gpnf-spinner),
body .gpnf-modal .tingle-modal-box__footer .gform-theme-button-content,
body .gpnf-modal .tingle-modal-box__footer .gform_button_text {
	display: inline !important;
	visibility: visible !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	text-indent: 0 !important;
	color: #fff !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-next:empty::after,
body .gpnf-modal .tingle-modal-box__footer .gform_next_button:empty::after {
	content: "Next";
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-previous:empty::after,
body .gpnf-modal .tingle-modal-box__footer .gform_previous_button:empty::after {
	content: "Previous";
}

body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-submit:empty::after {
	content: "Save Person";
}

@media (max-width: 712px) {
	body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-cancel,
	body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-delete {
		display: none !important;
	}

	body .gpnf-modal .tingle-modal-box__footer .gpnf-btn-cancel-mobile {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
	}
}

/*
 * Nested Forms sticky footer is position:fixed; z-index:10001.
 * Leave room to scroll the last fields above it, and raise popovers over it.
 */
body .gpnf-modal.tingle-modal--overflow {
	padding-bottom: 96px !important;
}

body .gpnf-modal .tingle-modal-box {
	margin-bottom: 96px !important;
	overflow: visible !important;
}

body .gpnf-modal .tingle-modal-box__content {
	overflow: visible !important;
	padding-bottom: 24px !important;
}

body .gpnf-modal .ginput_container_date,
body .gform_wrapper .ginput_container_date {
	overflow: visible !important;
}

body .gform-datepicker-calendar,
body .gform_wrapper .gform-datepicker-calendar,
body .gpnf-modal .gform-datepicker-calendar,
body #ui-datepicker-div,
body .ui-datepicker {
	z-index: 10060 !important;
	--gf-color-primary: #34495e;
	border: 2px solid #34495e !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
	background: #fff !important;
	color: #333 !important;
}

body .gform-datepicker-calendar select,
body .gform_wrapper .gform-datepicker-calendar select,
body .gform_wrapper .ginput_container .gform-datepicker-calendar select,
body .ui-datepicker select,
body .ui-datepicker select.ui-datepicker-month,
body .ui-datepicker select.ui-datepicker-year,
body #ui-datepicker-div select {
	display: inline-block !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 36px !important;
	height: 36px !important;
	margin: 0 4px 0 0 !important;
	padding: 4px 28px 4px 10px !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	border: 2px solid #34495e !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	color: #333 !important;
	box-shadow: none !important;
}

body .gform-datepicker-calendar table.calendar td span:hover,
body .gform-datepicker-calendar table.calendar td span:focus,
body .gform-datepicker-calendar table.calendar .dayToday span,
body .ui-datepicker td .ui-state-active,
body .ui-datepicker td .ui-state-highlight,
body #ui-datepicker-div .ui-state-active {
	background: #34495e !important;
	border-color: #34495e !important;
	color: #fff !important;
}
