/* ==================== Hidden Rules ====================*/

@media (max-width: 767px) {
	.hiddenS {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.hiddenM {
		display: none !important;
	}
}

@media (min-width: 1200px) and (max-width: 1499px) {
	.hiddenL {
		display: none !important;
	}
}

@media (min-width: 1500px) {
	.hiddenXl {
		display: none !important;
	}
}

/* ==================== Headers ====================*/
@media (min-width: 1200px) {
	.header.absolute {
		position: absolute;
		width: 100%;
		margin: 0 auto;
	}
}

.header.light a {
	color: var(--light);
}

/* ==================== Overlay ====================*/
.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background: rgba(0, 0, 0, 15%);
    z-index: -1;
    transition: var(--cubic);
    opacity: 0;
    visibility: hidden;
}

.active .overlay {
    opacity: 1;
    visibility: visible;
    z-index: 556;
}

/* ==================== Privacy Policies ====================*/
.page-template-policy-page .site-main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
  max-width: 1080px;
  min-height: 75vh;
  padding: 5rem 1.5rem;
  margin: 0 auto;
  
}

@media (min-width: 768px) {
  .page-template-policy-page .site-main {
    padding: 5rem 2rem;
  }
}

@media (min-width: 1200px) {
  .page-template-policy-page .site-main {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1500px) {
  .page-template-policy-page .site-main {
    padding: 5rem;
  }
}

.page-template-policy-page .content {
  width: 100%;
}

.page-template-policy-page .content p {
  max-width: unset;
}

.page-template-policy-page .content h2,
.page-template-policy-page .content h3,
.page-template-policy-page .content h4,
.page-template-policy-page .content h5,
.page-template-policy-page .content h6 {
  margin: 2rem 0;
}

/* ==================== Gravity Forms ====================*/

/* Disable Heading */
.gform_heading {
	display: none !important;
}

/* 
 * Disable labels by default
 * use class "hasLabel" if you want them back! 
*/
.form .gfield_label:not(.form.labels .gfield_label) {
	display: none;
}

/* Style Labels */
.form .gfield_label {
	margin-bottom: 1.rem;
	text-align: left;
	font-weight: 500;
}

/* Style asterixs */
.form .gfield_required_asterisk {
	color: #ff5f5f;
}

/* Style Inputs */
.form .ginput_complex input,
.form .gfield input,
.form .ginput_complex select,
.form .gfield select,
.form .ginput_complex textarea,
.form .gfield textarea {
	display: flex;
	align-items: center;
	text-align: left;
	font-family: var(--text);
	font-weight: 400;
	border: 1.5px solid;
	border-radius: 0.5rem;
	min-height: 3rem;
	background: transparent;
}

/* Full Width Date Picker */
.form .gfield .datepicker {
	width: 100%;
}

/* Style Placeholders */
.form .gfield input::placeholder,
.form .gfield textarea::placeholder,
.form .gf_placeholder {
	opacity: .5;
}

/* Radio Layout */
.form .gfield_radio {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row !important;
	gap: 2rem !important
}

/* Radio Wrapper */
.form .gfield_radio .gchoice {
	display: flex;
	align-items: center;
	gap: .15rem;
}

/* Radio Label */
.form .gfield_radio .gchoice label {
	font-weight: 500;
}

/* 
 * Reset height and border radius
 * on Radio & Checkboxes.
*/
.form .gfield input[type="radio"],
.form .gfield input[type="checkbox"] {
	min-height: unset;
	border-radius: .33rem;
}

/* Footer Layout */
.form .gform_footer {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 3rem;
}

.form .gform_footer input[type="submit"] {
	padding: 1.5rem 2rem !important;
	background: var(--primary) !important;
	width: 100% !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
}

/* Light Form Styles */
.form.light .gfield_label {
	color: var(--altLight);
}

.form.light .ginput_complex input:not([type="checkbox"]):not([type="radio"]),
.form.light .gfield input:not([type="checkbox"]):not([type="checkbox"]),
.form.light .ginput_complex select,
.form.light .gfield select,
.form.light .ginput_complex textarea,
.form.light .gfield textarea {
	color: var(--light);
	border-color: (--light);
}

.form.light .ginput_complex select option,
.form.light .gfield select option {
	color: initial;
}

.form.light .gfield_radio .gchoice label {
	color: var(--altLight)
}

.form.light .gfield--input-type-consent * {
	color: var(--light);
}

.form.light .gfield input[type="radio"]::before,
.form.light .gfield--input-type-consent input::before {
	color: var(--light);
	background: var(--light);
}

.form.light .gform_footer input[type="submit"] {
	background: var(--altLight) !important;
	color: var(--primary) !important;
}

/* ==================== Marquees ====================*/

:root {
    --marqueeTransformLeft: 0;
    --marqueeTransformRight: 0;
}

.marquees {
    transform: scale(1.1);
}

@media (min-width: 768px) {
	.marquees {
		transform: scale(1.05);
	}
}

.marquee {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 125%;
    overflow: hidden;
    padding: 3rem 0;
    background: var(--primary);
    box-sizing: 5px 5px 45px 0 rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
	.marquee {
		padding: 3.5rem 0;
	}
}

.marqueeWrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    transform-origin: center;
}

@media (min-width: 768px) {
	.marqueeWrapper {
		gap: 3rem;
	}
}

.marqueeHeading {
    white-space: nowrap;
}

.marquee.tiltRight {
    transform: rotate(-10deg);
    z-index: 1;
    background: var(--accent);
}

@media (min-width: 768px) {
	.marquee.tiltRight {
		transform: rotate(-5deg);
	}
}

.marquee.tiltLeft {
    transform: rotate(10deg);
    z-index: 2;
}

@media (min-width: 768px) {
	.marquee.tiltLeft {
		transform: rotate(5deg);
	}
}

.marquee.tiltRight .marqueeWrapper {
    animation: marqueeRight 30s linear infinite;
}

.marquee.tiltLeft .marqueeWrapper {
    animation: marqueeLeft 30s linear infinite;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
   }
    100% {
        transform: translateX(calc(-0.33 * var(--marqueeTransformLeft)));
   }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
   }
    100% {
        transform: translateX(calc(0.33 * var(--marqueeTransformRight)));
   }
}

/* ==================== Popups ====================*/
.popup {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: -1;
	inset: 0;
	margin: auto;
	width: 100%;
	max-width: 90%;
	height: auto;
	max-height: 90%;
	background: var(--light);
	border-radius: 1rem;
	box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.15);
}

@media (min-width: 576px) {
	.popup {
		max-width: 66.66%;
		max-height: 66.66%;
	}
}

@media (min-width: 768px) {
	.popup {
		max-width: 50%;
		max-height: 50%;
	}
}

.popupWrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	height: auto;
	padding: 3rem 1.5rem;
}

.popupWrapper h3 {
	font-family: var(--heading);
	font-size: 1.5rem;
	padding: 0;
	margin: 0;
}