:root {
	--fdsp-fc-primary: #5d5d63;
	--fdsp-fc-primary-strong: #3f4045;
	--fdsp-fc-accent: #ab2123;
	--fdsp-fc-surface: #f6f3f1;
	--fdsp-fc-surface-strong: #ffffff;
	--fdsp-fc-outline: rgba(73, 69, 79, 0.18);
	--fdsp-fc-shadow: 0 28px 70px rgba(25, 24, 28, 0.22);
	--fdsp-fc-text: #1f1b20;
	--fdsp-fc-muted: #625b71;
}

body.fdsp-floating-contact-open {
	overflow: hidden;
}

.fdsp-floating-contact {
	bottom: 20px;
	position: fixed;
	right: 20px;
	z-index: 10040;
}

.fdsp-floating-contact__launcher,
.fdsp-floating-contact__close,
.fdsp-floating-contact__submit,
.fdsp-floating-contact__topic-pill span {
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		opacity 180ms ease;
}

.fdsp-floating-contact__launcher {
	align-items: center;
	position: relative;
	background:
		radial-gradient(circle at top left, rgba(255, 216, 168, 0.22), transparent 34%),
		linear-gradient(180deg, #c8342f 0%, #8f1719 56%, #6f1114 100%);
	border: 0;
	border-radius: 12px;
	box-shadow:
		0 14px 30px rgba(111, 17, 20, 0.34),
		inset 0 1px 0 rgba(255, 244, 232, 0.24);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	gap: 0.7rem;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 0.85rem 1rem;
	overflow: hidden;
}

.fdsp-floating-contact__launcher::before,
.fdsp-floating-contact__launcher::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.fdsp-floating-contact__launcher::before {
	inset: 1px;
	border-radius: 11px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%),
		radial-gradient(circle at 82% 20%, rgba(255, 203, 164, 0.18), transparent 24%);
}

.fdsp-floating-contact__launcher::after {
	right: 14px;
	bottom: -10px;
	width: 72px;
	height: 38px;
	background:
		radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.22), transparent 28%),
		radial-gradient(circle at 46% 44%, rgba(255, 255, 255, 0.16), transparent 24%),
		radial-gradient(circle at 76% 62%, rgba(255, 255, 255, 0.14), transparent 26%);
	filter: blur(10px);
	opacity: 0.5;
	transform: rotate(-8deg);
	animation: fdspFloatingContactSmoke 5.8s ease-in-out infinite;
}

.fdsp-floating-contact__launcher:hover,
.fdsp-floating-contact__launcher:focus-visible,
.fdsp-floating-contact__launcher.is-pressed {
	box-shadow:
		0 18px 38px rgba(111, 17, 20, 0.42),
		inset 0 1px 0 rgba(255, 244, 232, 0.28);
	transform: translateY(-1px) scale(0.99);
}

.fdsp-floating-contact__launcher:focus-visible,
.fdsp-floating-contact__close:focus-visible,
.fdsp-floating-contact__submit:focus-visible,
.fdsp-floating-contact__field input:focus,
.fdsp-floating-contact__field textarea:focus,
.fdsp-floating-contact__topic-pill input:focus + span {
	outline: none;
	box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.14);
}

.fdsp-floating-contact__launcher-icon {
	align-items: center;
	background: rgba(255, 248, 240, 0.14);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
	display: inline-flex;
	height: 2rem;
	justify-content: center;
	position: relative;
	width: 2rem;
	z-index: 1;
}

.fdsp-floating-contact__launcher-icon svg {
	fill: currentColor;
	height: 1.05rem;
	width: 1.05rem;
}

.fdsp-floating-contact__launcher-label {
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 0 rgba(74, 12, 14, 0.28);
}

.fdsp-floating-contact__scrim {
	background: rgba(29, 27, 32, 0.48);
	inset: 0;
	position: fixed;
	z-index: 0;
}

.fdsp-floating-contact__modal {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 24px;
	pointer-events: none;
	position: fixed;
	transform: scale(0.98);
	z-index: 1;
}

.fdsp-floating-contact.is-open .fdsp-floating-contact__modal {
	opacity: 1;
	pointer-events: auto;
	transform: scale(1);
}

.fdsp-floating-contact__modal[hidden] {
	display: none;
}

.fdsp-floating-contact__panel {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 243, 241, 0.98)),
		radial-gradient(circle at top right, rgba(171, 33, 35, 0.14), transparent 42%);
	box-sizing: border-box;
	border: 1px solid var(--fdsp-fc-outline);
	border-radius: 14px;
	box-shadow: var(--fdsp-fc-shadow);
	color: var(--fdsp-fc-text);
	margin: auto;
	max-height: min(680px, calc(100dvh - 40px));
	max-width: min(460px, calc(100vw - 24px));
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.1rem 1.1rem 1rem;
	position: relative;
	width: min(460px, calc(100vw - 24px));
}

.fdsp-floating-contact__panel,
.fdsp-floating-contact__topic-grid {
	scrollbar-color: rgba(93, 93, 99, 0.45) rgba(93, 93, 99, 0.08);
}

.fdsp-floating-contact__panel::-webkit-scrollbar,
.fdsp-floating-contact__topic-grid::-webkit-scrollbar {
	height: 6px;
	width: 6px;
}

.fdsp-floating-contact__panel::-webkit-scrollbar-track,
.fdsp-floating-contact__topic-grid::-webkit-scrollbar-track {
	background: rgba(93, 93, 99, 0.08);
	border-radius: 999px;
}

.fdsp-floating-contact__panel::-webkit-scrollbar-thumb,
.fdsp-floating-contact__topic-grid::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(106, 107, 115, 0.78), rgba(74, 75, 82, 0.78));
	border: 2px solid rgba(255, 255, 255, 0);
	border-radius: 999px;
	background-clip: padding-box;
}

.fdsp-floating-contact__panel::-webkit-scrollbar-thumb:hover,
.fdsp-floating-contact__topic-grid::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(93, 93, 99, 0.92), rgba(63, 64, 69, 0.92));
}

.fdsp-floating-contact__panel-head {
	align-items: flex-start;
	border-bottom: 1px solid rgba(73, 69, 79, 0.1);
	display: flex;
	gap: 0.8rem;
	justify-content: space-between;
	margin-bottom: 0.85rem;
	padding-bottom: 0.8rem;
}

.fdsp-floating-contact__headline {
	flex: 1 1 auto;
	max-width: min(360px, 100%);
	min-width: 0;
}

.fdsp-floating-contact__eyebrow,
.fdsp-floating-contact__section-label {
	color: var(--fdsp-fc-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 0.35rem;
	text-transform: none;
}

.fdsp-floating-contact__panel h2 {
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0;
}

.fdsp-floating-contact__intro {
	color: var(--fdsp-fc-muted);
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0.55rem 0 0;
}

.fdsp-floating-contact__intro a {
	color: var(--fdsp-fc-accent);
	font-weight: 700;
}

.fdsp-floating-contact__close {
	align-items: center;
	align-self: flex-start;
	background: rgba(93, 93, 99, 0.06);
	border: 1px solid rgba(93, 93, 99, 0.12);
	border-radius: 6px;
	color: var(--fdsp-fc-primary-strong);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1.35rem;
	height: 2.2rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 2.2rem;
}

.fdsp-floating-contact__close:hover,
.fdsp-floating-contact__close:focus-visible,
.fdsp-floating-contact__close.is-pressed {
	background: rgba(93, 93, 99, 0.12);
	border-color: rgba(93, 93, 99, 0.2);
	transform: scale(0.97);
}

.fdsp-floating-contact__form {
	display: grid;
	gap: 0.8rem;
}

.fdsp-floating-contact__topic-group {
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid rgba(73, 69, 79, 0.1);
	border-radius: 10px;
	padding: 0.8rem;
}

.fdsp-floating-contact__topic-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.05rem 0 0.22rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	scroll-padding-inline: 0.2rem;
}

.fdsp-floating-contact__topic-pill input {
	left: -9999px;
	position: absolute;
}

.fdsp-floating-contact__topic-pill {
	flex: 0 0 auto;
}

.fdsp-floating-contact__topic-pill span {
	background: rgba(93, 93, 99, 0.08);
	border: 1px solid rgba(93, 93, 99, 0.12);
	border-radius: 8px;
	color: var(--fdsp-fc-primary-strong);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 600;
	max-width: none;
	min-width: max-content;
	padding: 0.58rem 0.82rem;
	white-space: nowrap;
}

.fdsp-floating-contact__topic-pill span:hover,
.fdsp-floating-contact__topic-pill span:focus-visible,
.fdsp-floating-contact__topic-pill.is-pressed span {
	transform: translateY(-1px);
}

.fdsp-floating-contact__topic-pill input:checked + span {
	background: rgba(171, 33, 35, 0.1);
	border-color: rgba(171, 33, 35, 0.24);
	color: #7c1417;
}

.fdsp-floating-contact__hint {
	color: var(--fdsp-fc-muted);
	font-size: 0.8rem;
	line-height: 1.35;
	margin: 0.65rem 0 0;
	min-height: 2.15em;
}

.fdsp-floating-contact__field-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fdsp-floating-contact__field {
	display: grid;
	gap: 0.35rem;
}

.fdsp-floating-contact__field span {
	color: var(--fdsp-fc-primary-strong);
	font-size: 0.82rem;
	font-weight: 600;
}

.fdsp-floating-contact__field em {
	color: var(--fdsp-fc-muted);
	font-style: normal;
	font-weight: 500;
}

.fdsp-floating-contact__field input,
.fdsp-floating-contact__field textarea {
	background: var(--fdsp-fc-surface-strong);
	border: 1px solid rgba(98, 91, 113, 0.25);
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--fdsp-fc-text);
	font: inherit;
	padding: 0.76rem 0.85rem;
	width: 100%;
}

.fdsp-floating-contact__field textarea {
	min-height: 7.25rem;
	resize: vertical;
}

.fdsp-floating-contact__field input::placeholder,
.fdsp-floating-contact__field textarea::placeholder {
	color: rgba(98, 91, 113, 0.82);
}

.fdsp-floating-contact__honeypot {
	left: -9999px;
	position: absolute;
}

.fdsp-floating-contact__actions {
	align-items: center;
	display: flex;
	gap: 0.8rem;
	justify-content: space-between;
	margin-top: 0.1rem;
	width: 100%;
}

.fdsp-floating-contact__status {
	color: var(--fdsp-fc-muted);
	flex: 1 1 auto;
	font-size: 0.8rem;
	line-height: 1.35;
	margin: 0;
	min-height: 1.35em;
	min-width: 0;
}

.fdsp-floating-contact__status.is-error {
	color: #a0282f;
}

.fdsp-floating-contact__status.is-success {
	color: #18794e;
}

.fdsp-floating-contact__status.is-info {
	color: var(--fdsp-fc-primary-strong);
}

.fdsp-floating-contact__submit {
	background: linear-gradient(180deg, #7f8088 0%, #666770 100%);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(63, 64, 69, 0.18);
	color: #f7f7f8;
	cursor: not-allowed;
	flex: 0 0 auto;
	font: inherit;
	font-weight: 700;
	min-width: 138px;
	padding: 0.78rem 1rem;
}

.fdsp-floating-contact__submit.is-ready {
	background: linear-gradient(180deg, #5b5c63 0%, #3d3e44 100%);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 0 0 3px rgba(171, 33, 35, 0.08),
		0 12px 28px rgba(63, 64, 69, 0.28),
		0 0 18px rgba(171, 33, 35, 0.16);
	cursor: pointer;
}

.fdsp-floating-contact__submit:hover,
.fdsp-floating-contact__submit:focus-visible,
.fdsp-floating-contact__submit.is-pressed {
	transform: translateY(-1px) scale(0.99);
}

.fdsp-floating-contact__submit[disabled] {
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.52;
}

@keyframes fdspFloatingContactSmoke {
	0%,
	100% {
		opacity: 0.34;
		transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.96);
	}
	50% {
		opacity: 0.62;
		transform: translate3d(-4px, -8px, 0) rotate(-2deg) scale(1.06);
	}
}

@media (max-width: 782px) {
	.fdsp-floating-contact {
		bottom: 14px;
		left: 14px;
		right: 14px;
	}

	.fdsp-floating-contact__launcher {
		justify-content: center;
		width: 100%;
	}

	.fdsp-floating-contact__modal {
		align-items: flex-end;
		padding:
			calc(env(safe-area-inset-top, 0px) + 72px)
			16px
			calc(env(safe-area-inset-bottom, 0px) + 8px);
	}

	.fdsp-floating-contact__panel {
		border-radius: 12px;
		max-height: min(540px, calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
		padding: 0.78rem 0.9rem 0.72rem;
		width: min(100vw - 32px, 368px);
	}

	.fdsp-floating-contact__panel-head {
		gap: 0.65rem;
		margin-bottom: 0.68rem;
		padding-bottom: 0.62rem;
	}

	.fdsp-floating-contact__panel h2 {
		font-size: 1rem;
		line-height: 1.08;
	}

	.fdsp-floating-contact__intro {
		font-size: 0.77rem;
		line-height: 1.28;
		margin-top: 0.34rem;
	}

	.fdsp-floating-contact__field-grid {
		grid-template-columns: 1fr;
	}

	.fdsp-floating-contact__topic-group {
		padding: 0.66rem;
	}

	.fdsp-floating-contact__topic-grid {
		gap: 0.42rem;
		padding-bottom: 0.26rem;
	}

	.fdsp-floating-contact__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.fdsp-floating-contact__topic-pill span {
		max-width: none;
		padding: 0.46rem 0.68rem;
		font-size: 0.82rem;
		white-space: nowrap;
	}

	.fdsp-floating-contact__field {
		gap: 0.34rem;
	}

	.fdsp-floating-contact__field input,
	.fdsp-floating-contact__field textarea {
		font-size: 0.9rem;
		padding: 0.62rem 0.7rem;
	}

	.fdsp-floating-contact__field textarea {
		min-height: 104px;
	}

	.fdsp-floating-contact__status {
		font-size: 0.78rem;
	}

	.fdsp-floating-contact__submit {
		width: 100%;
		min-width: 0;
		padding: 0.7rem 0.88rem;
		font-size: 0.9rem;
	}
}
