/* Hide standard header/footer on front page */
.home .site-header,
.home .site-footer {
	display: none;
}

/* ===== Homepage Layout ===== */
.lmn-homepage {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	position: fixed;
	top: 0;
	left: 0;
	background: #000;
}

.lmn-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	width: 100%;
	height: 100%;
	gap: 0;
}

/* ===== Panels ===== */
.lmn-grid__panel {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	border: 0.5px solid #8e1731;
}

/* ===== Flipbox 3D ===== */
.lmn-flipbox {
	width: 100%;
	height: 100%;
	perspective: 1500px;
	-webkit-perspective: 1500px;
	cursor: pointer;
}

.lmn-flipbox__inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.lmn-flipbox.is-flipped .lmn-flipbox__inner {
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
}

.lmn-flipbox__front,
.lmn-flipbox__back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.lmn-flipbox__front {
	transform: rotateY(0deg) translateZ(1px);
	-webkit-transform: rotateY(0deg) translateZ(1px);
}

.lmn-flipbox__back {
	transform: rotateY(180deg) translateZ(1px);
	-webkit-transform: rotateY(180deg) translateZ(1px);
	letter-spacing: 2px;
	font-size: 16px;
	max-width: 80%;
	margin: 0 auto;
}

.lmn-flipbox__back-footer {
	position: absolute;
	bottom: 2rem;
	left: 0;
	right: 0;
	text-align: center;
}

/* Panel entry animation */
@keyframes panelFadeIn {
	from {
		opacity: 0;
		transform: scale(1.05);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Panel backgrounds */
.lmn-grid__panel--1 .lmn-flipbox__front::after,
.lmn-grid__panel--2 .lmn-flipbox__front::after,
.lmn-grid__panel--3 .lmn-flipbox__front::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
	z-index: 1;
}

.lmn-grid__panel--1 .lmn-flipbox__front {
	background: url('../images/LMN_NO_3_CADRAN_1.png') center / cover no-repeat;
	animation: panelFadeIn 0.8s ease-out 0.2s both;
}

.lmn-grid__panel--2 .lmn-flipbox__front {
	background: url('../images/LMN_NO_3_CADRAN_2.png') center / cover no-repeat;
	animation: panelFadeIn 0.8s ease-out 0.5s both;
}

.lmn-grid__panel--3 .lmn-flipbox__front {
	background: url('../images/LMN_NO_3_CADRAN_3.png') center / cover no-repeat;
	animation: panelFadeIn 0.8s ease-out 0.8s both;
}

.lmn-panel-content {
	z-index: 2;
}

/* Utility classes */
.text-accent {
	color: #bd1f41;
}

/* Panel front content - starts at vertical middle */
.lmn-panel-content {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	letter-spacing: 7px;
	font-size: 16px;
	max-width: 305px;
	margin: 0 auto;
}

.lmn-panel-content .dots {
	margin-top: 40px;
}

/* Dots bouncing animation */
@keyframes dotBounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

.lmn-panel-content .dots span {
	display: inline-block;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.lmn-flipbox:hover .dots span {
	animation: dotBounce 1.2s ease-in-out infinite;
	opacity: 1;
}

.lmn-flipbox:hover .dots span:nth-child(1) {
	animation-delay: 0s;
}

.lmn-flipbox:hover .dots span:nth-child(2) {
	animation-delay: 0.2s;
}

.lmn-flipbox:hover .dots span:nth-child(3) {
	animation-delay: 0.4s;
}

.lmn-grid__panel--4 {
	animation: panelFadeIn 0.8s ease-out 1.1s both;
}

/* ===== Panel 4 CTA ===== */
.lmn-panel-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 2rem;
	gap: 2rem;
}

.lmn-panel-cta__logo {
	max-width: 280px;
	width: 100%;
	height: auto;
}

.lmn-panel-cta__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 280px;
}

.lmn-panel-cta__copyright {
	position: absolute;
	bottom: 2rem;
	left: 0;
	right: 0;
	text-align: center;
	color: #FFFFFF38;
	letter-spacing: 18px;
	font-size: 0.75rem;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.lmn-panel-cta__copyright {
		letter-spacing: 6px;
	}
}

/* Buttons */
.lmn-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 55px;
	padding: 0 2rem;
	font-family: "Neue Haas Grotesk Display Pro", sans-serif;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	text-align: center;
	box-sizing: border-box;
}

.lmn-btn--primary {
	background: #bd1f41;
	color: #000;
	border: 2px solid #bd1f41;
	font-weight: 400;
	font-style: italic;
}

.lmn-btn--primary:hover,
.lmn-btn--primary:focus {
	background: #d4294d;
	border-color: #d4294d;
	outline: none;
}

.lmn-btn--outline {
	background: transparent;
	color: #bd1f41;
	border: 2px solid #bd1f41;
	font-weight: 400;
	font-style: italic;
}

.lmn-btn--outline:hover,
.lmn-btn--outline:focus {
	background: #bd1f41;
	color: #000;
	outline: none;
}

/* Input styled as outline button */
.lmn-input-wrapper {
	position: relative;
	width: 100%;
}

.lmn-input--outline {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 55px;
	padding: 0 2rem;
	font-family: "Neue Haas Grotesk Display Pro", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	background: transparent;
	color: #bd1f41;
	border: 1px solid #bd1f41;
	box-sizing: border-box;
	cursor: text;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.lmn-input--outline::placeholder {
	color: #bd1f41;
	opacity: 1;
}

.lmn-input--outline:focus {
	outline: none;
	border-color: #d4294d;
	box-shadow: 0 0 0 2px rgba(189, 31, 65, 0.2);
}

.lmn-input--outline:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Tooltip */
.lmn-input-wrapper::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	padding: 0.5rem 1rem;
	background: #1a1a1a;
	color: #e0e0e0;
	font-size: 0.85rem;
	font-style: normal;
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
	border: 1px solid #bd1f41;
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 10;
}

.lmn-input-wrapper:hover::after {
	opacity: 1;
	visibility: visible;
}

/* ===== Modal ===== */
.lmn-modal[hidden] {
	display: none;
}

.lmn-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.lmn-modal__overlay {
	position: absolute;
	inset: 0;
	background: #000;
}

.lmn-modal__content {
	position: relative;
	background: transparent;
	padding: 3rem 2rem;
	max-width: 480px;
	width: 90%;
}

.lmn-modal__close {
	position: fixed;
	top: 2rem;
	right: 2rem;
	z-index: 1;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.lmn-modal__close:hover {
	opacity: 0.7;
}

.lmn-modal__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.lmn-modal__logo {
	max-width: 280px;
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: block;
}

.lmn-modal__subtitle {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	letter-spacing: 7px;
	padding-left: 7px;
	color: #fff;
	text-transform: uppercase;
}

/* ===== Form ===== */
.lmn-form__field {
	margin-bottom: 1.25rem;
}

.lmn-form__message {
	margin-bottom: 1rem;
	padding: 0.75rem;
	border-radius: 4px;
	font-size: 0.9rem;
	display: none;
}

.lmn-form__message.is-error {
	display: block;
	background: rgba(142, 23, 49, 0.2);
	color: #ff6b6b;
	border: 1px solid rgba(142, 23, 49, 0.4);
}

.lmn-form__message.is-success {
	display: block;
	background: rgba(40, 167, 69, 0.15);
	color: #69db7c;
	border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ===== Partners Link ===== */
.lmn-partners-link {
	position: relative;
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	letter-spacing: 7px;
	padding-left: 7px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lmn-partners-link::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: #fff;
}

.lmn-partners-link:hover {
	opacity: 0.7;
}

/* ===== Partners Modal ===== */
.lmn-partners-modal[hidden] {
	display: none;
}

.lmn-partners-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.lmn-partners-modal__overlay {
	position: absolute;
	inset: 0;
	background: #000;
}

.lmn-partners-modal__content {
	position: relative;
	width: 100%;
	flex: 1;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0 4rem 6rem;
	box-sizing: border-box;
}

.lmn-partners-modal__top,
.lmn-partners-modal__middle,
.lmn-partners-modal__bottom {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	text-align: left;
}

.lmn-partners-modal__middle {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lmn-partners-modal__logo {
	width: 50%;
	height: auto;
}

.lmn-partners-modal__top p {
	color: #e0e0e0;
	font-size: 14px;
	letter-spacing: 2px;
	line-height: 2;
	text-align: justify;
}

.lmn-partners-modal__header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
	padding: 2rem 4rem;
}

.lmn-partners-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.lmn-partners-modal__close:hover {
	opacity: 0.7;
}

/* Partners columns */
.lmn-partners-columns {
	display: flex;
	gap: 2.5rem;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

.lmn-partners-column__title {
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 1rem 0;
	white-space: nowrap;
}

.lmn-partners-column {
	flex: 0 1 auto;
	min-width: 0;
}

.lmn-partners-column__logos {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.lmn-partners-column:nth-child(2) .lmn-partners-column__logos {
	justify-content: center;
}

.lmn-partners-column__logos img {
	height: 45px;
	width: auto;
}

.lmn-partners-logo--stil {
	height: 35px !important;
}

.lmn-partners-column:nth-child(1) .lmn-partners-column__logos img,
.lmn-partners-column:nth-child(2) .lmn-partners-column__logos img {
	height: 65px;
}

/* ===== Secret Code Input States ===== */
.lmn-input--outline.is-checking {
	opacity: 0.6;
	cursor: wait;
}

.lmn-input--outline.is-valid {
	border-color: #28a745;
	color: #28a745;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.lmn-input--outline.is-invalid {
	border-color: #ff4444;
	color: #ff4444;
	animation: lmnShake 0.4s ease;
}

@keyframes lmnShake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-6px); }
	40%      { transform: translateX(6px); }
	60%      { transform: translateX(-4px); }
	80%      { transform: translateX(4px); }
}

.lmn-code-message {
	font-size: 0.8rem;
	color: #ff6b6b;
	text-align: center;
	letter-spacing: 0.04em;
	min-height: 1.2em;
}

/* ===== Modal Form ===== */
.lmn-form .lmn-form__field {
	margin-bottom: 1rem;
}

.lmn-form .lmn-btn--primary {
	width: 100%;
	margin-top: 1.5rem;
}

.lmn-form .lmn-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ===== Checkbox ===== */
.lmn-form__field--checkbox {
	margin-bottom: 1.25rem;
}

.lmn-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	font-size: 0.8rem;
	color: #999;
	line-height: 1.5;
}

.lmn-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 1px solid #bd1f41;
	border-radius: 2px;
	background: transparent;
	cursor: pointer;
	position: relative;
	margin-top: 2px;
}

.lmn-checkbox input[type="checkbox"]:checked {
	background: #bd1f41;
}

.lmn-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.lmn-checkbox__text a {
	color: #bd1f41;
	text-decoration: underline;
}

.lmn-checkbox__text a:hover {
	color: #d4294d;
}

/* ===== Tablet: stack panels ===== */
@media (max-width: 1024px) {
	.lmn-homepage {
		position: relative;
		height: auto;
		overflow-y: auto;
	}

	.lmn-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.lmn-grid__panel {
		min-height: 50vh;
	}

	.lmn-modal__close {
		top: 1rem;
		right: 1rem;
	}

	.lmn-modal__content {
		padding: 2rem 1.5rem;
	}

	.lmn-partners-modal__header {
		padding: 1rem 2rem;
	}

	.lmn-partners-modal__content {
		padding: 0 2rem 6rem;
		gap: 4rem;
	}

	.lmn-partners-columns {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 2rem;
	}

	.lmn-partners-column__title {
		text-align: center;
	}

	.lmn-partners-column:nth-child(1),
	.lmn-partners-column:nth-child(2) {
		flex: 1 1 0;
		text-align: center;
	}

	.lmn-partners-column:nth-child(3),
	.lmn-partners-column:nth-child(4) {
		flex: 0 0 100%;
		text-align: center;
	}

	.lmn-partners-column__logos {
		justify-content: center;
	}

	.lmn-partners-column__logos img {
		height: 65px;
	}

	.lmn-partners-modal__logo {
		width: 70%;
	}
}

/* ===== Mobile phones ===== */
@media (max-width: 576px) {
	.lmn-flipbox__back {
		max-width: 100%;
	}

	.lmn-partners-modal__header {
		padding: 1.5rem 1.5rem;
	}

	.lmn-partners-modal__top p {
		font-size: 12px;
	}

	.lmn-partners-modal__content {
		padding: 0 1.5rem 3rem;
		gap: 6rem;
	}

	.lmn-partners-columns {
		flex-wrap: wrap;
		gap: 2rem;
	}

	.lmn-partners-column:nth-child(1),
	.lmn-partners-column:nth-child(2) {
		flex: 1 1 0;
	}

	.lmn-partners-column:nth-child(3),
	.lmn-partners-column:nth-child(4) {
		flex: 0 0 100%;
	}

	.lmn-partners-modal__logo {
		width: 80%;
	}

	.lmn-partners-column__logos img {
		height: 70px;
	}
}

/* ===== Confirmed / Error Landing Page ===== */
.lmn-confirmed {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	position: fixed;
	top: 0;
	left: 0;
}

.lmn-confirmed__content {
	text-align: center;
	max-width: 500px;
	width: 90%;
	border: 1px solid #bd1f41;
	padding: 50px 40px;
}

.lmn-confirmed__logo {
	max-width: 280px;
	width: 100%;
	height: auto;
	margin: 0 auto 2rem;
	display: block;
}

.lmn-confirmed__text {
	font-size: 16px;
	line-height: 1.6;
	color: #ffffff;
	margin: 0 0 1.5rem;
	letter-spacing: 2px;
}

.lmn-confirmed__text:last-child {
	margin-bottom: 0;
}

.lmn-confirmed__text--accent {
	color: #bd1f41;
}

.lmn-confirmed__text--small {
	font-size: 14px;
	margin-bottom: 0.5rem;
}

.lmn-confirmed__text--bold {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.lmn-confirmed__text--muted {
	font-size: 12px;
	color: #999999;
}

.lmn-confirmed__name {
	font-size: 22px;
	line-height: 1.6;
	color: #ffffff;
	margin: 0 0 1.5rem;
	text-transform: capitalize;
}

.lmn-confirmed__cta {
	display: inline-block;
	padding: 14px 40px;
	background-color: #bd1f41;
	color: #000000;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 2px solid #bd1f41;
	margin: 0.5rem 0 1.5rem;
	transition: opacity 0.2s ease;
}

.lmn-confirmed__cta:hover {
	opacity: 0.8;
}

.lmn-confirmed__date {
	font-size: 22px;
	line-height: 1.4;
	color: #ffffff;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin: 0 0 1.5rem;
}

.lmn-confirmed__text--error {
	color: #ff6b6b;
}

.lmn-confirmed__back {
	display: inline-flex;
	max-width: 280px;
	margin-top: 0.5rem;
}
