/* ===================================================================
 * CFCU ACH Export - Frontend Gravity Form Styles
 * =================================================================== */

/* --- Custom Radio Button Styles --- */

.gfield.buttons .gfield_radio {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.gfield.buttons .gfield_radio li {
	flex: 1 0 100%;
	text-align: center !important;
	overflow: visible !important;
}

.gfield.buttons .gfield_radio li label {
	display: block;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
	background: #07336b;
	border-radius: 5px;
	box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.41);
	padding: 24px 40px !important;
	height: 100%;
	width: 100%;
	transition: background-color 0.3s;
}

.gfield.buttons .gfield_radio li input[type="radio"]:checked+label {
	background: #e61855;
}

.gfield.buttons .gfield_radio li label i {
	display: block;
	font-size: 2em;
	margin-bottom: 8px;
}


/* --- Font Awesome Icon Integration for Radio Buttons --- */

ul.gfield_radio li label:before {
	content: "\f362"; /* Default icon */
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
	display: block !important;
	font-size: 2em;
	margin: 0 0 8px !important;
	background: none !important;
	border: none !important;
	height: auto !important;
	width: auto !important;
	border-radius: 0 !important;
}

/* Hide checkmark on selected item so icon shows through */
ul.gfield_radio li input[type="radio"]:checked+label:before {
	box-shadow: none !important;
}

/* Specific icons for choices */
#label_1_21_0:before { content: "\f362"; }
#label_1_21_1:before { content: "\f2f9"; }
#label_1_21_2:before { content: "\f05e"; }
#label_1_1_0:before { content: "\f53d"; }
#label_1_1_1:before { content: "\f53c"; }
#label_1_1_2:before { content: "\f09d"; }


/* --- Multi-Page Form Progress Bar --- */

.gform_wrapper .gf_page_steps {
	display: flex;
	justify-content: space-between;
	border-bottom: none !important;
	position: relative;
	padding: 0;
}

.gform_wrapper .gf_page_steps:after {
	content: "";
	position: absolute;
	height: 2px;
	width: 100%;
	background: #ccc;
	top: 5px;
	left: 0;
}

.gform_wrapper .gf_page_steps .gf_step_clear {
	display: none;
}

.gform_wrapper .gf_page_steps .gf_step {
	margin: 0 0 0 -4px;
	display: flex;
	z-index: 1;
	opacity: 1;
	flex: 1;
	position: relative;
	width: auto;
}

.gform_wrapper .gf_page_steps .gf_step_last {
	flex: 0 1 auto;
}

.gform_wrapper .gf_page_steps .gf_step .gf_step_number {
	font-size: 0;
	color: transparent;
	position: absolute;
}

.gform_wrapper .gf_page_steps .gf_step .gf_step_label {
	background: #07336b;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	flex: 0 0 auto;
	position: relative;
	left: -4px;
	z-index: 1;
	transition: background-color 1s;
}

.gform_wrapper .gf_page_steps .gf_step_last .gf_step_label {
	left: 0;
}

.gform_wrapper .gf_page_steps .gf_step_active .gf_step_label {
	background: #e61855;
}

.gform_wrapper .gf_page_steps .gf_step_pending .gf_step_label {
	background: #ccc;
}

.gform_wrapper .gf_page_steps .gf_step:after {
	content: "";
	display: block;
	position: absolute;
	top: 5px;
	left: 0;
	height: 2px;
	width: 0;
	background: #07336b;
	transition: width 1s;
	transition-delay: .5s;
}

.gform_wrapper .gf_page_steps .gf_step_completed:after {
	width: 100%;
}


/* --- Form Footer & General Layout --- */

.gform_page_footer {
	text-align: center;
	padding-right: 8px;
}

.gform_page_footer input {
	min-width: 200px;
}

#page {
	min-height: 100vh;
	display: grid;
	grid-template-rows: 1fr min-content;
	grid-template-columns: 1fr;
}

#ui-datepicker-div {
	margin-top: 0;
}


/* --- Astra Theme Overrides --- */

.ast-header-break-point .ast-header-custom-item,
.ast-header-break-point .main-header-menu {
	background: #07336b;
	border-top: 0 !important;
}

.ast-header-break-point .main-navigation ul .menu-item .menu-link {
	border-bottom: 0;
	font-weight: bold;
}

.main-header-bar .main-header-bar-navigation.toggle-on {
	padding-top: 0;
}


/* --- Responsive Styles --- */

@media (min-width: 768px) {
	.gfield.buttons .gfield_radio li {
		flex-basis: 30%;
	}
}