/* QueerFriends Feedback & Navigation */

.qf-feedback-nav-root,
.qf-feedback-nav-root * {
	box-sizing: border-box;
}

/* =========================================
   BACK TO TOP
   ========================================= */

.qf-back-to-top {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 99980;

	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	width: 46px;
	height: 46px;
	padding: 0 !important;

	border: 1px solid rgba(111, 72, 199, 0.22) !important;
	border-radius: 50% !important;

	background:
		linear-gradient(
			135deg,
			#6f48c7 0%,
			#8b5be4 100%
		) !important;
	color: #ffffff !important;

	box-shadow:
		0 10px 26px rgba(68, 42, 117, 0.22) !important;

	cursor: pointer;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(0.94);

	transition:
		opacity 180ms ease,
		visibility 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.qf-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.qf-back-to-top:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow:
		0 14px 32px rgba(68, 42, 117, 0.28) !important;
}

.qf-back-to-top:focus-visible {
	outline: 3px solid rgba(126, 84, 214, 0.34) !important;
	outline-offset: 3px;
}

.qf-back-to-top svg {
	display: block;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

/* =========================================
   MODAL
   ========================================= */

.qf-feedback-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	background: rgba(30, 22, 44, 0.58);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity 180ms ease,
		visibility 180ms ease;
}

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

.qf-feedback-dialog {
	position: relative;

	width: min(580px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;

	padding: 30px;

	border: 1px solid rgba(137, 108, 216, 0.20);
	border-radius: 28px;

	background: #ffffff;
	color: #2d2638;

	box-shadow:
		0 30px 90px rgba(31, 20, 54, 0.28);

	font-family: "Poppins", Arial, sans-serif;

	opacity: 0;
	transform: translateY(14px) scale(0.985);

	transition:
		opacity 190ms ease,
		transform 190ms ease;
}

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

.qf-feedback-close {
	position: absolute;
	top: 18px;
	right: 18px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 50% !important;

	background: #f3effb !important;
	color: #594a6c !important;

	cursor: pointer;

	transition:
		transform 160ms ease,
		background 160ms ease;
}

.qf-feedback-close:hover {
	transform: rotate(5deg);
	background: #e8e0fa !important;
}

.qf-feedback-close svg {
	width: 19px;
	height: 19px;
}

.qf-feedback-header {
	padding-right: 52px;
	margin-bottom: 23px;
}

.qf-feedback-eyebrow {
	display: inline-flex;

	margin-bottom: 9px;
	padding: 7px 11px;

	border-radius: 999px;

	background: #f1ecff;
	color: #6848c7;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.qf-feedback-header h2 {
	margin: 0 0 8px !important;

	color: #281f37 !important;

	font-family: "Poppins", Arial, sans-serif !important;
	font-size: clamp(25px, 4vw, 34px) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.03em;
}

.qf-feedback-header p {
	margin: 0 !important;

	color: #766d82 !important;

	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* =========================================
   FORM
   ========================================= */

.qf-feedback-form {
	display: grid;
	gap: 17px;
}

.qf-feedback-field label {
	display: block;

	margin-bottom: 7px;

	color: #3a3048;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.qf-feedback-field label span {
	margin-left: 5px;

	color: #8b8196;

	font-size: 11px;
	font-weight: 500;
}

.qf-feedback-field select,
.qf-feedback-field textarea,
.qf-feedback-field input {
	display: block;

	width: 100%;

	border: 1px solid #ddd4ef !important;
	border-radius: 14px !important;

	background: #fbf9ff !important;
	color: #42384e !important;

	font-family: "Poppins", Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.55 !important;

	outline: none !important;
	box-shadow: none !important;

	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		background 160ms ease;
}

.qf-feedback-field select,
.qf-feedback-field input {
	min-height: 48px;
	padding: 0 14px !important;
}

.qf-feedback-field textarea {
	min-height: 138px;
	resize: vertical;
	padding: 13px 14px !important;
}

.qf-feedback-field select:focus,
.qf-feedback-field textarea:focus,
.qf-feedback-field input:focus {
	border-color: #9d81ec !important;
	background: #ffffff !important;

	box-shadow:
		0 0 0 4px rgba(157, 129, 236, 0.14) !important;
}

.qf-feedback-field small {
	display: block;

	margin-top: 6px;

	color: #857b90;

	font-size: 11px;
	line-height: 1.45;
}

.qf-feedback-field-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;

	margin-top: 7px;

	color: #857b90;

	font-size: 10px;
	line-height: 1.45;
}

.qf-feedback-field-meta span:last-child {
	flex: 0 0 auto;
	white-space: nowrap;
}

.qf-feedback-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.qf-feedback-submit,
.qf-feedback-done {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;

	min-height: 50px;
	padding: 12px 22px !important;

	border: 0 !important;
	border-radius: 999px !important;

	background:
		linear-gradient(
			135deg,
			#6f48c7 0%,
			#955fe8 100%
		) !important;
	color: #ffffff !important;

	font-family: "Poppins", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;

	box-shadow:
		0 10px 24px rgba(70, 43, 121, 0.20) !important;

	cursor: pointer;

	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		opacity 160ms ease;
}

.qf-feedback-submit:hover,
.qf-feedback-done:hover {
	transform: translateY(-2px);

	box-shadow:
		0 14px 30px rgba(70, 43, 121, 0.25) !important;
}

.qf-feedback-submit:disabled {
	opacity: 0.62;
	cursor: wait;
	transform: none;
}

.qf-feedback-spinner {
	display: none;

	width: 16px;
	height: 16px;

	border: 2px solid rgba(255, 255, 255, 0.42);
	border-top-color: #ffffff;
	border-radius: 50%;

	animation: qf-feedback-spin 700ms linear infinite;
}

.qf-feedback-submit.is-loading .qf-feedback-spinner {
	display: inline-block;
}

.qf-feedback-status {
	min-height: 18px;
	margin: -7px 0 0 !important;

	color: #b13c5f !important;

	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	text-align: center;
}

.qf-feedback-success {
	padding: 28px 10px 10px;
	text-align: center;
}

.qf-feedback-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 68px;
	height: 68px;
	margin-bottom: 17px;

	border-radius: 50%;

	background: #efe9ff;
	color: #6f48c7;
}

.qf-feedback-success-icon svg {
	width: 34px;
	height: 34px;
}

.qf-feedback-success h3 {
	margin: 0 0 7px !important;

	color: #281f37 !important;

	font-family: "Poppins", Arial, sans-serif !important;
	font-size: 26px !important;
	font-weight: 800 !important;
}

.qf-feedback-success p {
	margin: 0 0 22px !important;

	color: #766d82 !important;

	font-size: 14px !important;
}

body.qf-feedback-modal-open {
	overflow: hidden !important;
}

@keyframes qf-feedback-spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 782px) {

	.qf-back-to-top {
		right: 14px;
		bottom: 18px;
		width: 44px;
		height: 44px;
	}

	.qf-feedback-overlay {
		align-items: flex-end;
		padding: 10px;
	}

	.qf-feedback-dialog {
		width: 100%;
		max-height: calc(100vh - 20px);
		padding: 25px 17px 19px;
		border-radius: 25px 25px 16px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qf-back-to-top,
	.qf-feedback-overlay,
	.qf-feedback-dialog,
	.qf-feedback-submit,
	.qf-feedback-done {
		transition: none !important;
	}

	.qf-feedback-spinner {
		animation-duration: 1.4s;
	}
}
