/* Flexiligner Day Open Doors — portable promo modal
   Prefix: fldod- (no Bootstrap dependency) */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
	--fldod-olive: #787858;
	--fldod-olive-dark: #5c5c44;
	--fldod-olive-deep: #3f4134;
	--fldod-sand: #ebe6d8;
	--fldod-sand-soft: #f5f2ea;
	--fldod-ink: #1c1c18;
	--fldod-muted: #5a5a52;
	--fldod-white: #ffffff;
	--fldod-radius: 20px;
	--fldod-font: "Montserrat", "Segoe UI", sans-serif;
}

.fldod-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(28, 28, 24, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		visibility 0.35s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.fldod-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.fldod-dialog {
	position: relative;
	width: min(860px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	border-radius: var(--fldod-radius);
	background: var(--fldod-white);
	box-shadow: 0 24px 60px rgba(28, 28, 24, 0.28);
	transform: translateY(18px) scale(0.97);
	opacity: 0;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.35s ease;
	font-family: var(--fldod-font);
	color: var(--fldod-ink);
	-webkit-font-smoothing: antialiased;
}

.fldod-overlay.is-open .fldod-dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.fldod-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.fldod-close:hover {
	background: #fff;
	transform: rotate(90deg);
}

.fldod-close svg {
	display: block;
	width: 12px;
	height: 12px;
}

.fldod-close svg path {
	fill: var(--fldod-olive-dark);
}

.fldod-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
	min-height: 420px;
}

.fldod-hero {
	position: relative;
	padding: 48px 40px 40px;
	border-radius: var(--fldod-radius) 0 0 var(--fldod-radius);
	background-color: var(--fldod-sand);
	background-image: url("./assets/hero.png");
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--fldod-white);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
}

.fldod-eyebrow {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(28, 28, 24, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fldod-eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d4e07a;
	box-shadow: 0 0 0 0 rgba(212, 224, 122, 0.7);
	animation: fldod-pulse 1.8s ease-out infinite;
}

@keyframes fldod-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(212, 224, 122, 0.65);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(212, 224, 122, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(212, 224, 122, 0);
	}
}

.fldod-title {
	margin: 0;
	padding-right: 36px;
	font-size: clamp(24px, 2.8vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fldod-olive-deep);
}

.fldod-title span {
	display: inline;
	font-weight: 700;
	color: var(--fldod-olive-deep);
	font-size: inherit;
	margin-top: 0;
}

.fldod-heading {
	margin: 0 0 10px;
}

.fldod-dates {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 18px 20px;
	border-radius: 14px;
	background: rgba(28, 28, 24, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fldod-dates--inline {
	display: none;
}

.fldod-dates-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	opacity: 0.78;
	margin-bottom: 4px;
}

.fldod-dates-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.fldod-body {
	padding: 44px 42px 40px;
	background:
		linear-gradient(180deg, var(--fldod-sand-soft) 0%, var(--fldod-white) 48%);
	border-radius: 0 var(--fldod-radius) var(--fldod-radius) 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.fldod-panel[hidden] {
	display: none !important;
}

.fldod-panel.is-active {
	display: flex;
	flex-direction: column;
	animation: fldod-panel-in 0.32s ease;
}

@keyframes fldod-panel-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fldod-lead {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--fldod-muted);
	font-weight: 500;
}

.fldod-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fldod-item {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 12px;
	align-items: start;
	padding: 14px 14px 14px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(120, 120, 88, 0.14);
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease,
		border-color 0.25s ease,
		background 0.25s ease;
}

.fldod-overlay.is-open .fldod-item {
	opacity: 1;
	transform: translateY(0);
}

.fldod-overlay.is-open .fldod-item:nth-child(1) {
	transition-delay: 0.12s;
}

.fldod-overlay.is-open .fldod-item:nth-child(2) {
	transition-delay: 0.2s;
}

.fldod-overlay.is-open .fldod-item:nth-child(3) {
	transition-delay: 0.28s;
}

.fldod-item:hover {
	border-color: rgba(120, 120, 88, 0.35);
	background: #fff;
}

.fldod-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--fldod-sand);
	color: var(--fldod-olive-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fldod-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.fldod-item-title {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--fldod-ink);
}

.fldod-item-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--fldod-muted);
}

.fldod-cta {
	margin-top: 26px;
	border: 0;
	box-shadow: none;
}

.fldod-cta:hover {
	color: #fff !important;
}

.fldod-note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	color: #8a8a80;
}

/* Form panel uses site callback-modal styles; only layout glue here */
.fldod-form-panel {
	width: 100%;
}

.fldod-form-lead {
	margin: 0 28px 22px 0;
	padding-right: 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--fldod-olive-deep);
}

.fldod-form-panel .callback-modal__btn {
	width: 100%;
	max-width: 100%;
	border: 0;
}

.fldod-form-panel .callback-modal__soc,
.fldod-form-panel .callback-modal__time {
	max-width: none;
	width: 100%;
}

.fldod-form-panel .fldod-socials {
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.fldod-form-panel .fldod-socials .callback-modal__soc {
	height: 50px;
	padding: 0;
}

.fldod-form-panel .fldod-socials .callback-modal__soc svg {
	margin-right: 0;
	display: block;
}

.fldod-form-panel .callback-modal__soc.active.telegram,
.fldod-form-panel .callback-modal__soc.active.telegram:hover {
	background-color: #2aabee;
	border-color: #2aabee;
	color: #fff;
}

.fldod-form-panel .callback-modal__soc.active.telegram svg path,
.fldod-form-panel .callback-modal__soc.active.telegram:hover svg path {
	fill: #fff;
}

.fldod-form-panel .callback-modal__soc.active.max,
.fldod-form-panel .callback-modal__soc.active.max:hover {
	background-color: #4b4bff;
	border-color: #4b4bff;
	color: #fff;
}

.fldod-form-panel .callback-modal__soc.active.max svg path,
.fldod-form-panel .callback-modal__soc.active.max:hover svg path {
	fill: #fff;
}

.fldod-form-panel .callback-modal__phone,
.fldod-form-panel .callback-modal__date {
	border: 0;
	box-shadow: none;
}

.fldod-datetime[hidden] {
	display: none !important;
}

.fldod-form-panel .callback-modal__datetime {
	border: 0;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

body.fldod-lock {
	overflow: hidden;
}

@media (max-width: 767.98px) {
	.fldod-overlay {
		padding: 12px;
		align-items: flex-end;
	}

	.fldod-dialog {
		width: 100%;
		max-height: calc(100vh - 24px);
		border-radius: 18px 18px 12px 12px;
		transform: translateY(28px);
	}

	.fldod-overlay.is-open .fldod-dialog {
		transform: translateY(0);
	}

	.fldod-layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.fldod-hero {
		display: none;
	}

	.fldod-heading {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 8px 12px;
		margin-bottom: 12px;
	}

	.fldod-title {
		font-size: 22px;
		padding-right: 28px;
		margin: 0;
		flex: 1 1 auto;
	}

	.fldod-dates--inline {
		display: inline-flex;
		align-items: center;
		margin: 0;
		padding: 8px 12px;
		border-radius: 999px;
		background: var(--fldod-sand);
		border: 1px solid rgba(120, 120, 88, 0.18);
		color: var(--fldod-olive-deep);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.fldod-dates--inline .fldod-dates-value {
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0;
		line-height: 1.2;
		white-space: nowrap;
	}

	.fldod-body {
		border-radius: var(--fldod-radius);
		padding: 28px 20px 28px;
		background: var(--fldod-white);
	}

	.fldod-close {
		top: 10px;
		right: 10px;
		background: rgba(255, 255, 255, 0.95);
	}

	.fldod-form-panel .callback-modal__btn {
		height: 75px;
		min-height: 75px;
	}
}
