/* Scroll Screens for Elementor
 * Base styles = stacked (no JS needed). The JS adds .sse--pinned on desktop
 * to turn the screens into a sticky, scroll-driven stage.
 */
.sse {
	position: relative;
	width: 100%;
	--sse-dur: 800ms;
}

.sse *,
.sse *::before,
.sse *::after {
	box-sizing: border-box;
}

.sse__stage {
	position: relative;
	width: 100%;
	background: #000;
}

/* ---------- Screen ---------- */
.sse__screen {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 100vh;
	overflow: hidden;
	background: var(--sse-bg, #000);
	color: var(--sse-text, #fff);
}

.sse__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 5vw;
	padding: 6vw;
}

.sse__screen--media-right .sse__inner {
	flex-direction: row-reverse;
}

/* ---------- Media column ---------- */
.sse__media {
	flex: 0 0 45%;
	max-width: 45%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sse__media img,
.sse__media video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 80vh;
	object-fit: cover;
}

/* ---------- Content column ---------- */
.sse__content {
	flex: 1 1 0;
	min-width: 0;
	max-width: 640px;
}

.sse .sse__heading {
	margin: 0 0 0.5em;
	font-size: clamp(2.2rem, 4.5vw, 4.5rem);
	line-height: 1.08;
	color: var(--sse-text, #fff);
}

.sse .sse__text {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--sse-text, #fff);
}

.sse .sse__text p {
	margin: 0 0 1.2em;
	color: inherit;
}

.sse .sse__text h1,
.sse .sse__text h2,
.sse .sse__text h3,
.sse .sse__text h4,
.sse .sse__text h5,
.sse .sse__text h6 {
	color: inherit;
}

.sse__tpl {
	width: 100%;
}

.sse__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 2rem;
}

.sse .sse__content .sse__btn {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
	display: inline-block;
	padding: 14px 32px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--sse-text, #fff);
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 10px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sse .sse__content .sse__btn:hover,
.sse .sse__content .sse__btn:focus {
	background: var(--sse-text, #fff);
	color: var(--sse-bg, #000);
	text-decoration: none;
}

/* ---------- Full background layout ---------- */
.sse__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
}

.sse__bg img,
.sse__bg video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sse__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.55);
}

.sse__screen--background .sse__inner {
	justify-content: flex-start;
}

.sse__screen--background.sse__screen--align-center .sse__inner {
	justify-content: center;
	text-align: center;
}

.sse__screen--background.sse__screen--align-center .sse__buttons {
	justify-content: center;
}

.sse__screen--background.sse__screen--align-right .sse__inner {
	justify-content: flex-end;
	text-align: right;
}

.sse__screen--background.sse__screen--align-right .sse__buttons {
	justify-content: flex-end;
}

/* ---------- Dots (only shown when pinned) ---------- */
.sse__dots {
	display: none;
}

.sse--pinned .sse__dots {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
}

.sse .sse__dot {
	width: 10px;
	height: 10px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1.5px solid var(--sse-dot, rgba(255, 255, 255, 0.75));
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sse .sse__dot:hover,
.sse .sse__dot:focus {
	background: var(--sse-dot-active, #fff);
	border-color: var(--sse-dot-active, #fff);
	outline: none;
}

.sse .sse__dot.is-active {
	background: var(--sse-dot-active, #fff);
	border-color: var(--sse-dot-active, #fff);
	transform: scale(1.35);
}

/* ---------- Stacked (small screens / editor) ---------- */
.sse--stacked .sse__screen {
	min-height: 0;
}

.sse--stacked .sse__screen--background {
	min-height: 80vh;
}

.sse--stacked .sse__inner {
	flex-direction: column !important;
	align-items: stretch;
	padding: 48px 24px;
	gap: 28px;
}

.sse--stacked .sse__media {
	flex: 0 0 auto !important;
	width: 100%;
	max-width: 100% !important;
}

.sse--stacked .sse__media img,
.sse--stacked .sse__media video {
	height: auto !important;
	aspect-ratio: 4 / 3;
}

.sse--stacked .sse__content {
	max-width: 100% !important;
}

@media (max-width: 767px) {
	.sse__inner {
		flex-direction: column !important;
		align-items: stretch;
		padding: 48px 24px;
		gap: 28px;
	}

	.sse__screen {
		min-height: 0;
	}

	.sse__media {
		flex: 0 0 auto !important;
		width: 100%;
		max-width: 100% !important;
	}

	.sse__media img,
	.sse__media video {
		height: auto !important;
		aspect-ratio: 4 / 3;
	}

	.sse__content {
		max-width: 100% !important;
	}
}

/* ---------- Pinned mode (desktop) ---------- */
.sse--pinned .sse__stage {
	position: sticky;
	overflow: hidden;
}

.sse--pinned .sse__screen {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	min-height: 0;
}

/* Effect: slide up over the previous screen */
.sse--pinned.sse--effect-slide .sse__screen {
	transition: transform var(--sse-dur) cubic-bezier(0.76, 0, 0.24, 1), filter var(--sse-dur) ease;
	will-change: transform;
}

.sse--pinned.sse--effect-slide .sse__screen.is-after {
	transform: translate3d(0, 100%, 0);
}

.sse--pinned.sse--effect-slide .sse__screen.is-active {
	transform: translate3d(0, 0, 0);
}

.sse--pinned.sse--effect-slide .sse__screen.is-before {
	transform: translate3d(0, -5%, 0) scale(1.06);
	filter: brightness(0.45);
}

/* Effect: fade / zoom fade */
.sse--pinned.sse--effect-fade .sse__screen,
.sse--pinned.sse--effect-zoom .sse__screen {
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--sse-dur) ease, transform var(--sse-dur) ease, visibility 0s linear var(--sse-dur);
}

.sse--pinned.sse--effect-zoom .sse__screen {
	transform: scale(1.08);
}

.sse--pinned.sse--effect-fade .sse__screen.is-active,
.sse--pinned.sse--effect-zoom .sse__screen.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	transition: opacity var(--sse-dur) ease, transform var(--sse-dur) ease, visibility 0s;
}

/* Text reveal inside the active screen */
.sse--pinned .sse__content > * {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.sse--pinned .sse__screen.is-active .sse__content > * {
	opacity: 1;
	transform: none;
}

.sse--pinned .sse__screen.is-active .sse__content > *:nth-child(1) {
	transition-delay: calc(var(--sse-dur) * 0.4);
}

.sse--pinned .sse__screen.is-active .sse__content > *:nth-child(2) {
	transition-delay: calc(var(--sse-dur) * 0.4 + 120ms);
}

.sse--pinned .sse__screen.is-active .sse__content > *:nth-child(3) {
	transition-delay: calc(var(--sse-dur) * 0.4 + 240ms);
}

.sse--pinned .sse__screen.is-active .sse__content > *:nth-child(n + 4) {
	transition-delay: calc(var(--sse-dur) * 0.4 + 360ms);
}

@media (prefers-reduced-motion: reduce) {
	.sse--pinned .sse__screen,
	.sse--pinned .sse__content > *,
	.sse .sse__dot {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}

/* ================= Contact form ================= */
.sse .sse__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 2rem 0 0;
	padding: 0;
	text-align: left;
}

.sse .sse__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sse .sse__form .sse__label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sse-text, #fff);
}

.sse .sse__form .sse__req {
	color: var(--sse-req, #e5534b);
}

.sse .sse__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.sse .sse__form .sse__input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 16px 18px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--sse-in-color, #fff) !important;
	-webkit-text-fill-color: var(--sse-in-color, #fff);
	background-color: var(--sse-in-bg, #000) !important;
	background-image: none !important;
	border: 1px solid var(--sse-in-border, rgba(255, 255, 255, 0.45)) !important;
	border-radius: 4px;
	box-shadow: none;
	transition: border-color 0.2s ease;
}

.sse .sse__form .sse__input::placeholder {
	color: currentColor;
	opacity: 0.5;
}

.sse .sse__form .sse__textarea {
	min-height: 140px;
	resize: vertical;
}

.sse .sse__form .sse__field .sse__input:focus {
	outline: none;
	border-color: var(--sse-in-border-focus, #fff) !important;
	box-shadow: none;
}

.sse .sse__form .sse__input:focus-visible {
	outline: 2px solid var(--sse-text, #fff);
	outline-offset: 2px;
}

/* Dropdown with our own chevron (works in any color scheme) */
.sse .sse__select {
	position: relative;
}

.sse .sse__select select {
	padding-right: 44px;
	cursor: pointer;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	line-height: 1.3;
	min-height: 54px;
}

/* Placeholder state ("Choose one"): dimmed like the other placeholders. Chosen text is full color. */
.sse .sse__select select:required:invalid,
.sse .sse__select select:has(option[value=""]:checked) {
	color: color-mix(in srgb, var(--sse-in-color, #fff) 55%, transparent) !important;
	-webkit-text-fill-color: color-mix(in srgb, var(--sse-in-color, #fff) 55%, transparent);
}

.sse .sse__select select option {
	color: var(--sse-in-color, #fff);
	background: #000;
	-webkit-text-fill-color: var(--sse-in-color, #fff);
}

.sse .sse__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 8px;
	height: 8px;
	margin-top: -7px;
	border-right: 2px solid var(--sse-in-color, #fff);
	border-bottom: 2px solid var(--sse-in-color, #fff);
	transform: rotate(45deg);
	pointer-events: none;
}

.sse .sse__form .sse__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sse .sse__form-actions {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.sse .sse__form .sse__submit {
	border-radius: 999px;
}

.sse .sse__form-actions .sse__submit {
	text-align: center;
}

.sse .sse__form .sse__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.sse .sse__form .sse__form-msg {
	min-height: 1.4em;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--sse-text, #fff);
}

.sse .sse__form .sse__form-msg.is-ok {
	color: #7ee2a8;
}

.sse .sse__form .sse__form-msg.is-err {
	color: #ff8a80;
}

@media (max-width: 480px) {
	.sse .sse__row {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

/* A tall form must never be cut off: let the screen content scroll if it needs to. */
.sse--pinned .sse__inner {
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	align-items: center;
	align-items: safe center;
	scrollbar-width: thin;
}
