.camap-feedback-modal[hidden] {
	display: none;
}

.camap-feedback-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	color: var(--sicomp-text);
}

.camap-feedback-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 28, 0.72);
}

.camap-feedback-modal__panel {
	position: relative;
	width: min(800px, calc(100vw - 24px));
	max-height: min(92vh, 760px);
	overflow: auto;
	background: var(--sicomp-card);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 18, 28, 0.35);
}

.camap-feedback-modal__header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 42px;
	align-items: center;
	min-height: 64px;
	padding: 14px 8px 14px 32px;
	background: var(--sicomp-primary);
	color: var(--sicomp-text-inverse);
}

.camap-feedback-modal__header h2 {
	margin: 0;
	color: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0;
}

.camap-feedback-modal__close {
	position: relative;
	width: 42px;
	height: 42px;
	min-height: 42px;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
}

.camap-feedback-modal__close span::before,
.camap-feedback-modal__close span::after {
	position: absolute;
	top: 20px;
	left: 10px;
	width: 22px;
	height: 2px;
	content: "";
	background: currentColor;
	border-radius: 999px;
}

.camap-feedback-modal__close span::before {
	transform: rotate(45deg);
}

.camap-feedback-modal__close span::after {
	transform: rotate(-45deg);
}

.camap-feedback-modal__body {
	padding: 26px 24px 30px;
}

.camap-feedback-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.camap-feedback-form__intro {
	margin: 0 0 2px;
	color: var(--sicomp-text-soft);
	font-size: 14px;
	line-height: 1.55;
}

.camap-feedback-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

.camap-feedback-field {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	color: var(--sicomp-text-soft);
	font-weight: 700;
	line-height: 1.35;
}

.camap-feedback-field b {
	color: var(--sicomp-primary);
}

.camap-feedback-field input,
.camap-feedback-field select,
.camap-feedback-field textarea,
.camap-feedback-form__response-row select {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	background: #f4f4f5;
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: none;
	color: var(--sicomp-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.camap-feedback-field select,
.camap-feedback-form__response-row select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M4%206L8%2010L12%206%22%20stroke%3D%22%23374151%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	padding-right: 48px;
}

.camap-feedback-field textarea {
	min-height: 160px;
	padding-top: 16px;
	resize: vertical;
}

.camap-feedback-field input::placeholder,
.camap-feedback-field textarea::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.camap-feedback-field input:focus,
.camap-feedback-field select:focus,
.camap-feedback-field textarea:focus,
.camap-feedback-form__response-row select:focus {
	background: var(--sicomp-card);
	border-color: rgba(var(--sicomp-primary-rgb), 0.42);
	box-shadow: 0 0 0 2px rgba(var(--sicomp-primary-rgb), 0.12);
	outline: 0;
}

body.camap-theme-ui .camap-feedback-modal input:focus-visible,
body.camap-theme-ui .camap-feedback-modal select:focus-visible,
body.camap-theme-ui .camap-feedback-modal textarea:focus-visible {
	outline: 0;
	outline-offset: 0;
}

.camap-feedback-field--full {
	width: 100%;
}

.camap-feedback-form__response-row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(260px, 400px);
	gap: 16px;
	align-items: center;
}

.camap-feedback-form__response-row label {
	margin: 0;
	color: var(--sicomp-text-soft);
	font-weight: 500;
}

.camap-feedback-form__privacy {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	color: var(--sicomp-text-muted);
	font-size: 14px;
	line-height: 1.5;
}

.camap-feedback-form__privacy span {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-top: 3px;
	color: #2563eb;
	font-size: 10px;
	font-weight: 800;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

.camap-feedback-form__submit {
	align-self: center;
	width: min(320px, 100%);
	min-height: 48px;
	margin: 0;
	padding: 0 28px;
	background: linear-gradient(180deg, #ff5a66, var(--sicomp-primary)) !important;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(var(--sicomp-primary-rgb), 0.22);
	color: var(--sicomp-text-inverse);
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
}

.camap-feedback-form__submit:hover,
.camap-feedback-form__submit:focus {
	background: var(--sicomp-primary-hover) !important;
	box-shadow: 0 14px 28px rgba(var(--sicomp-primary-rgb), 0.28);
}

.camap-feedback-form__submit[disabled] {
	cursor: progress;
	opacity: 0.72;
}

.camap-feedback-form__notice {
	display: none;
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.45;
}

.camap-feedback-form__notice.is-visible {
	display: block;
}

.camap-feedback-form__notice.is-success {
	background: #ecfdf5;
	color: #047857;
}

.camap-feedback-form__notice.is-error {
	background: #fff1f2;
	color: var(--sicomp-primary-dark);
}

.camap-feedback-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body.camap-feedback-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.camap-feedback-modal {
		align-items: flex-start;
		padding: 10px;
	}

	.camap-feedback-modal__panel {
		width: 100%;
		max-height: calc(100vh - 20px);
	}

	.camap-feedback-modal__header {
		grid-template-columns: 1fr 38px;
		min-height: 56px;
		padding: 12px 6px 12px 18px;
	}

	.camap-feedback-modal__header h2 {
		font-size: 15px;
		text-align: left;
	}

	.camap-feedback-modal__body {
		padding: 18px;
	}

	.camap-feedback-form__grid,
	.camap-feedback-form__response-row {
		grid-template-columns: 1fr;
	}

	.camap-feedback-form__response-row {
		gap: 8px;
	}

	.camap-feedback-field textarea {
		min-height: 140px;
	}
}
