/**
 * ROQ City brand styles.
 */

body {
	color: var(--wp--preset--color--primary);
	line-height: 1.25;
}

/* Overrides */
h1,
h2,
.has-x-large-font-size,
.has-xx-large-font-size {
	line-height: 1 !important;
}


/**
 * Buttons & Forms
 */
.wp-block-button .wp-block-button__link,
.gform_wrapper.gform-theme--orbital .gform_button {
	background-color: var(--wp--preset--color--tertiary) !important;
	border: none;
	border-radius: 0;
	color: var(--wp--preset--color--primary) !important;
	font-size: var(--wp--preset--font-size--medium) !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1;
	padding: 11px 18px 14px 18px !important;
	text-transform: uppercase !important;
}

/* Gravity Forms */
.gform_wrapper.gform-theme--orbital .gform_button {
	border: 1px solid var(--wp--preset--color--primary) !important;
}

.gform_wrapper.gform-theme--orbital .gform-field-label--type-sub {
	font-size: var(--gf-local-font-size) !important;
}
.gform_wrapper.gform-theme--orbital .gform_body .gfield .ginput_container input,
.gform_wrapper.gform-theme--orbital .gform_body .gfield .ginput_container select,
.gform_wrapper.gform-theme--orbital .gform_body .gfield .ginput_container textarea {
	background: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Fixes select dropdown options on Windows Chrome */
.gform_wrapper.gform-theme--orbital .gform_body .gfield .ginput_container select option {
	background-color: var(--wp--preset--color--primary) !important;
	color: white !important;
}
.gform_wrapper.gform-theme--orbital .gform_body .gfield .ginput_container select option:checked {
	background-color: #d5612a !important;
}


/**
 * Animate fixed position spinning register button
 */
.register-container {
	z-index: 1;
}
.register-link-sticky {
	position: sticky;
	bottom: calc(100vh - 76px);
	margin-top: 0 !important;
	margin-bottom: -60px !important;
	z-index: 1;
}
.register-link-sticky a {
	z-index: 8000;
}

@media (max-width: 768px) {
	.register-link-sticky {
		bottom: calc(100vh - 48px);
		margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
        margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
	}
	.register-link-sticky .wp-block-button {
		flex: 1;
		height: 48px;
	}

	/* Offset padding to fit registration button */
	.hero-banner.wp-block-cover .wp-block-cover__inner-container > .wp-block-group {
		padding-top: 100px !important;
	}
}

/**
 * Ticker scrolling text
 */
.ticker-container {
	overflow: hidden;
	width: 100%;
}
.ticker-container p {
	animation: scroll-ticker 30s linear infinite;
	display: flex;
	white-space: nowrap;
	word-spacing: 30px;
}
.ticker-container:hover p {
	animation-play-state: paused;
}
@keyframes scroll-ticker {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-50%);
	}
}


/**
 * Carousel Swiper Pattern for mobile
 */
.wp-block-group.carousel-swiper--pattern .wp-block-group.swiper-wrapper {
	margin: 0 !important;
}
.wp-block-group.carousel-swiper--pattern .card-block {
	box-sizing: border-box;
	margin: 0 !important;
	width: 100vw !important;
	min-width: auto !important;
}
.wp-block-group.carousel-swiper--pattern .card-block figure {
	width: 100vw;
	height: 100%;
}
.wp-block-group.carousel-swiper--pattern .card-block figure img {
	width: 100%;
	height: 100%;
}

.wp-block-group.carousel-swiper--pattern .card-block.is-style-border-image {
	padding: var(--wp--preset--spacing--70);
}
.wp-block-group.carousel-swiper--pattern .card-block.is-style-border-image figure {
	width: calc(100vw - (var(--wp--preset--spacing--70)*2));
}

@media (min-width: 768px) {
	.wp-block-group.carousel-swiper--pattern .wp-block-group.swiper-wrapper {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		transform: translate3d(0px, 0, 0) !important;
	}
	.wp-block-group.carousel-swiper--pattern .swiper-button-prev,
	.wp-block-group.carousel-swiper--pattern .swiper-button-next,
	.wp-block-group.carousel-swiper--pattern .swiper-scrollbar {
		display: none !important;
	}
	.wp-block-group.carousel-swiper--pattern .card-block {
		margin: 0 !important;
		width: auto !important;
		min-width: auto !important;
	}
	.wp-block-group.carousel-swiper--pattern .card-block figure {
		width: 100% !important;
	}
}


/* Footer Minimal Style */
.site-footer-part .footer-part.has-black-background-color {
	--wp--preset--color--black: var(--wp--preset--color--primary);
	--wp--preset--color--gray-lighter: var(--wp--preset--color--tertiary);
}
