.site-footer {
	text-align: center;
}

/*====================================
=            Upper Footer            =
====================================*/

.upper-footer {
	font-size: 15px;
	line-height: 1.5em;
	background-image: url('/wp-content/themes/rm-basetheme/images/bg-team-footer.jpg');
	background-color: var(--dark-color);
	background-size: 100%;
	background-position: center top;
	background-repeat: no-repeat;
	color: var(--light-color);
	padding: 45vw 20px 50px;
	position: relative;
	z-index: 1;
	/* Tablet Styles */
	@media (width >= 768px) {
		padding: 45vw 40px 50px;
	}
	@media (width >= 1024px) {
		padding: 30vw calc(40px + (50vw - (var(--desktop) / 2))) 55px;
	}
	&:after {
		content: '';
		background: linear-gradient(to bottom, rgb(from var(--text-color) r g b / 0.0) 20vw, rgb(from var(--text-color) r g b / 1) 45vw);
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
		z-index: -1;
		@media (width >= 1024px) {
			background: linear-gradient(to bottom, rgb(from var(--text-color) r g b / 0.0) 0%, rgb(from var(--text-color) r g b / 1) 45vw);
		}
	}

	.site-locations {
		.show-icon {
			padding-right: 20px;
		}
	}

	.location-each {
		>* {
			margin-bottom: 38px;
		}
	}

	.location-text {
		svg {
			path {
				fill: var(--primary-color);
			}
		}
	}

	.h2 {
		color: var(--light-color);
		margin-top: 0;
		margin-bottom: 0;
		text-transform: uppercase;
	}

	a {
		color: var(--light-color);
		text-decoration: none;
		transition: color .3s;

		&:hover,
		&:active,
		&:focus {
			color: var(--primary-color);

			svg {
				path {
					fill: var(--primary-color);
				}
			}
		}

		.nav-expander {
			display: none;
		}
	}

	svg {
		path {
			fill: var(--light-color);
			transition: fill .3s;
		}
	}
}

/* Footer Header */
.footer-header {
	flex-direction: column;
	grid-area: a;
	padding-bottom: 20px;

	.contact-text {
		width: 100%;
	}
}

/* Footer Contact Form */
.footer-contact-form {
	grid-area: b;

	/* Gravity Forms */
	.gform-theme.gform-theme--foundation {
		color: var(--light-color);

		form {

			label,
			legend {
				color: var(--light-color);
			}

			.gfield_description {
				color: rgb(from var(--light-color) r g b / 0.5);
			}

			.gf_progressbar_wrapper {
				.gf_progressbar_title {
					color: var(--light-color);
				}

				.gf_progressbar {
					background-color: rgb(from var(--light-color) r g b / 0.4);
				}
			}

			.gform-calendar-icon:before {
				color: var(--light-color) !important;
			}

			.disclaimer {
				width: 100%;
				margin-bottom: 20px;
				text-align: center;
				@media (width >= 1024px) {
					text-align: left;
				}
			}

			.gform-footer.gform_footer {
				width: fit-content;
				margin: 1em auto 0;
			}

		}
	}
}

/* .gform-theme--framework .gf_step_number */


/* Gravity forms */
.fcf-container.the-form {
  margin-bottom: 3em;
  margin-top: 3em;
	width: 100%;
  div.gform-theme--foundation {
    color: #ffffff;

    form {
      label,
      legend {
        color: #ffffff;
      }

      .gform-body {
        .gfield {
          input,
          select,
          textarea {
            background: rgba(255, 255, 255, 0);
            border-color: transparent;
            color: #ffffff;
						border-bottom: 1px solid var(--light-color);
						padding-left: 0;
          }
					input[type="checkbox"],
					input[type="radio"] {
						border: 1px solid var(--light-color);
					}
        }

        /* .bmi-form {
          background: rgba(255, 255, 255, 0);
          border-color: transparent;
          color: #ffffff;
        } */

        ::placeholder {
          color: #ffffff !important;
        }
				button.gform_previous_button.gform-theme-button.button,
				button.gform_next_button.button,
				button.gform_button.button {
					/* margin-top: 30px; */
					color: var(--light-color);
					background-color: var(--dark-color);

					&:hover,
					&:active,
					&:focus {
						color: var(--dark-color);
						&:before {
							border-color: var(--primary-color);
						}
					}

					&:before {
						border-color: var(--light-color);
					}
				}
      }

			.gf_page_steps {
				flex-wrap: nowrap;
				justify-content: space-between;
				position: relative;
				margin-bottom: 60px;
				&:before {
					content: '';
					width: 100%;
					height: 2px;
					background-color: var(--light-color);
					position: absolute;
					left: 0;
					top: 50%;
					transform: translateY(-50%);
				}
			}
			.gf_step_active {
				position: static;
				z-index: 1;
				.gf_step_number {
					background-color: var(--primary-color);
					border: 1px solid var(--primary-color);
				}
				.gf_step_label {
					display: block;
					position: absolute;
					bottom: -40px;
					left: 0;
					width: 100%;
					color: var(--light-color);
					font-size: 22px;
					text-transform: none;
				}
			}
			.gf_step_completed {
				.gf_step_number {
					background-color: var(--primary-accent);
					&:after {
						background-color: var(--primary-accent);
						border: 1px solid var(--primary-accent);
					}
				}
			}
			.gf_step_number {
				background-color: var(--light-color);
				border: 1px solid var(--light-color);
			}
      .gf_step_label {
        /* color: #fff; */
				display: none;
      }

      .gfield_description {
        color: rgba(255, 255, 255, 0.5);
      }

      .gf_progressbar_wrapper {
        .gf_progressbar_title {
          color: #ffffff;
        }

        .gf_progressbar {
          background-color: rgba(255, 255, 255, 0.4);
        }
      }

      .disclaimer {
        width: 100%;
      }

			.ginput_address_city {
				width: 45%;
			}
			.ginput_address_state {
				width: 25%;
			}
			.ginput_address_zip {
				@media (width >= 640px) {
					width: 30%;
				}
			}

			.gform_drop_area,
			.upload-instructions {
				background-color: rgb(from var(--primary-accent) r g b / 0.25) !important;
			}

			.gform_drop_area {
				&::before {
					color: var(--light-color) !important;
				}
				.button {
					color: var(--light-color) !important;
					&:hover,
					&:active,
					&:focus {
						color: var(--dark-color) !important;
						&::before {
							border-color: var(--primary-color) !important;
						}
					}
					&::before {
						border-color: var(--light-color) !important;
					}
				}
			}

			h2, .h2, h3, .h3 {
				color: var(--light-color);
			}

			button.gform_button_select_files,
			button.gform_button.button {
			}

			/* .gform-theme--foundation .ginput_address_city, .gform-theme--foundation .ginput_address_country, .gform-theme--foundation .ginput_address_state, .gform-theme--foundation .ginput_address_zip */

      /* .bmi-form {
        .h2,
        label,
        legend {
          color: #003838;
        }
      } */
    }
  }

  .gform-theme--framework {
    .gfield--input-type-datepicker.gfield--datepicker-default-icon {
      .ginput_container_date::after {
        color: #ffffff;
      }
    }
  }
}


/* .the-form div.gform-theme--foundation form .gform-footer.gform_footer {
  width: fit-content;
  margin: 1em auto 0;
} */





.footer-practice-info {
	grid-area: c;

	.fpi-container {
		width: fit-content;
	}
}

.f-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 25px;
	@media (width >= 768px) {
		margin-bottom: 38px;
	}
	svg {
		width: clamp(280px, 100%, 320px);
		height: auto;
		@media (width >= 768px) {
			width: 484px;
		}
		@media (width >= 1024px) {
			width: 676px;
		}
	}
}


/*==================================
=            Footer Nav            =
==================================*/

.site-footer {
	.footer-nav {
		display: none;

		/* Tablet Styles */
		@media (width >= 768px) {
			background-color: var(--primary-color);
			display: block;
			grid-area: d;
			margin: 55px 0 0;
			padding: 20px 0;
		}

		.menu {
			list-style: none;
			margin: 0;

			/* Tablet Styles */
			@media (width >= 768px) {
				display: flex;
				justify-content: center;
				flex-wrap: wrap;
				align-items: center;
			}

			li {
				margin: 0 10px;

				ul {
					display: none;
				}
			}
		}
	}
}


/*===========================================
=            Footer Social Icons            =
===========================================*/

.f-social {
	.social-icons {
		font-size: 30px;
		line-height: 1em;
		list-style: none;
		margin: 36px 0 20px;
		display: flex;
		justify-content: center;

		.show-icon {
			margin-right: 16px;

			&:last-of-type {
				margin-right: 0;
			}

			a:hover,
			a:active,
			a:focus {
				svg {
					path {
						fill: var(--primary-accent);
					}
				}
			}
		}

		svg {
			width: auto;
			height: 30px;

			path {
				fill: var(--text-color);
			}
		}
	}
}

/*==================================================
=            Contact Page Footer Styles            =
==================================================*/

.contact,
.contact-us {
	.upper-footer {
		display: none;

	}
}

/*==============================================
=            Style Specific Classes            =
==============================================*/

.footer-practice-info {
	font-size: 15px;
	.location-phone-block {
		>span, >div {
			display: inline;
		}
	}

	.footer-address-site-locations {
		.location-each {
			>div, >a {
				display: inline;
			}
		}
	}
	.location-address-block {
		display: inline;
		> div {
			display: inline;
		}
		.location-street {
			&:after {
				content: ', ';
			}
		}
	}


	.location-label {
		font-weight: var(--fw-medium);
		/* margin-right: 10px; */
	}
}


/*====================================
=            Lower Footer            =
====================================*/

.lower-footer {
	font-size: 15px;
	position: relative;
	padding-bottom: 40px;
	background-color: var(--light-alt);

	.footer-payment-options {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-bottom: 30px;
		@media (width >= 768px) {
			flex-direction: row;
		}
		.f-payment-types {
			@media (width >= 768px) {
				margin-right: 10px;
			}
			img {
				width: 207px;
				height: auto;
			}
		}
		.f-payment-label {
			font-size: 12px;
			line-height: 1.2em;
			span {
				@media (width >= 768px) {
					display: block;
				}
			}
		}
	}
	.ratings {
		a {
			display: flex;
			width: fit-content;
			justify-content: center;
			align-items: center;
			margin-left: auto;
			margin-right: auto;

			&:before {
				content: 'Read More Reviews';
			}
		}

		.ratings__text {
			display: none;
		}

		.ratings__stars {
			display: flex;
			column-gap: 5px;

			.ratings__star {
				display: flex;
				align-items: center;
			}
		}
	}

	a {
		color: var(--dark-alt);
		text-decoration: none;
		transition: all .3s;

		&.policy-sitemap {
			&:after {
				content: ' | ';
				display: inline;
				position: relative;
			}
		}

		&:nth-last-of-type(2) {
			&:after {
				content: none;
			}
		}

		&.accessibility {
			background: var(--primary-color);
			color: var(--text-color);
			padding: 8px 20px;
			margin: 16px 5px 40px;
			display: inline-block;
			line-height: 16px;
			@media (width >= 768px) {
				margin-bottom: 25px;
			}

			&:hover,
			&:active,
			&:focus {
				background: var(--primary-accent);
				color: var(--light-color);
			}
		}
	}

	.rm-sig {
		.rm-logo {
			padding-top: 6px;
			margin: 20px 20px 0;
		}

		svg {
			width: 40px;
			height: auto;

			path {
				fill: var(--text-color);
			}
		}
	}
}

.site-disclaimer {
	margin-bottom: 40px;
}

/*===================================================================
=            Userway / Accessibility and Recaptcha Icons            =
===================================================================*/

.grecaptcha-badge,
.js body .uwy .uai,
.js body .uwy .userway_buttons_wrapper {
	bottom: 5px;
	transition: all .3s !important;
}

.make-sticky .grecaptcha-badge,
.make-sticky .uai,
.make-sticky .userway_buttons_wrapper {
	bottom: 74px !important;
}

/*======================================
=        Related / Latest Posts        =
======================================*/

.footer-blog {
	padding-bottom: 120px;
}

.f-blog {
	text-align: center;
	background-image: url('/wp-content/themes/rm-basetheme/images/bg-marble-abstract-1.jpg');
	background-size: cover;
	background-position: center;
	padding: 20px;
	@media (width >= 768px) {
		padding: 20px 40px;
	}
	@media (width >= 1024px) {
		display: grid;
		grid-template-columns: .75fr 2fr;
		column-gap: 50px;
		padding: 40px 80px;
	}
	.f-blog-heading-wrap {
		margin-bottom: 2em;
		@media (width >= 1024px) {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: flex-start;
			text-align: left;
		}
		.f-blog-heading {
			margin-top: 0;
			margin-bottom: 20px;
		}

		.f-blog-sub-heading {
			margin-top: 0;
			margin-bottom: 10px;
		}

		.f-blog-description,
		.section-intro {
			margin-top: 0;
			margin-bottom: 0;

			p:last-of-type {
				margin-bottom: 0;
			}
		}
	}

	.footer-posts-list {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 28px;
		row-gap: 28px;
		list-style: none;
		margin: 0;
		padding-bottom: 2em;

		/* Tablet Styles */
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
		}

		li {
			text-align: left;
			position: relative;
			background-color: var(--light-color);
			padding: 20px;
			box-shadow: 0 0 20px 0 rgb(from var(--dark-color) r g b / 0.12);
			&:nth-of-type(n+3) {
				display: none;

				/* Desktop Styles */
				@media (width >= 1024px) {
					display: block;
				}
			}
			a {
				text-decoration: none;
				color: var(--text-color);
				&:hover {
					color: var(--primary-accent);
				}
			}
			img {
				width: 100%;
				height: 100%;
				aspect-ratio: 3 / 2;
				object-fit: cover;
				object-position: center;
			}
			.blog-title {
				text-align: center;
				font-size: 18px;
				line-height: 1.1em;
				margin-top: 16px;

				display: -webkit-box;           /* Required for line-clamping to work */
				-webkit-box-orient: vertical;   /* Sets the layout direction to vertical */
				-webkit-line-clamp: 2;          /* Limits the text to exactly 2 lines */
				overflow: hidden;
			}
			.blog-excerpt {
				padding-bottom: 1em;
			}
		}
	}
}

/* Translation Script */
.gtranslate_wrapper .gt_switcher_wrapper {
	padding-top: 30px;
	/* padding-bottom: 10px; */
	top: auto!important;
	right: auto!important;
	display: flex;
	justify-content: center;
	column-gap: 10px;
	position: relative!important;

}