/* ── Feedback Modal — matches SNEHA app design language ── */

.sneha-feedback-overlay,
.sneha-feedback-overlay * {
	box-sizing: border-box;
}

.sneha-feedback-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 24, 39, 0.35);
	backdrop-filter: blur(3px);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Modal container ── */
.sneha-feedback-modal {
	width: min(480px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ── Header ── */
.sneha-feedback-header {
	padding: 20px 24px 14px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
}

.sneha-feedback-title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	line-height: 1.3;
	font-weight: 600;
	color: #111827;
	letter-spacing: -0.01em;
}

.sneha-feedback-subtitle {
	margin: 0;
	font-size: 0.82rem;
	color: #6b7280;
}

/* ── Body ── */
.sneha-feedback-body {
	padding: 18px 24px;
	background: #ffffff;
}

/* ── Field blocks ── */
.sneha-feedback-field {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.sneha-feedback-field:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.sneha-feedback-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #374151;
}

.sneha-feedback-required {
	color: #dc2626;
	margin-left: 2px;
	font-weight: 400;
}

.sneha-feedback-help {
	margin-top: 4px;
	font-size: 0.78rem;
	color: #9ca3af;
}

/* ── Inputs ── */
.sneha-feedback-input,
.sneha-feedback-textarea,
.sneha-feedback-select {
	width: 100%;
	padding: 8px 12px;
	font-size: 0.85rem;
	color: #1f2937;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sneha-feedback-textarea {
	min-height: 80px;
	resize: vertical;
}

.sneha-feedback-input:focus,
.sneha-feedback-textarea:focus,
.sneha-feedback-select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* ── Checkbox ── */
.sneha-feedback-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #374151;
	font-size: 0.83rem;
}

.sneha-feedback-checkbox input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #2563eb;
}

/* ── Star rating ── */
.sneha-rating {
	display: flex;
	gap: 4px;
}

.sneha-rating-star {
	cursor: pointer;
	font-size: 1.5rem;
	color: #d1d5db;
	line-height: 1;
	transition: color 0.12s ease, transform 0.1s ease;
	user-select: none;
}

.sneha-rating-star:hover,
.sneha-rating-star.sneha-active,
.sneha-rating-star.sneha-hover {
	color: #f59e0b;
}

.sneha-rating-star:hover {
	transform: scale(1.08);
}

/* ── Multi-select pills ── */
.sneha-multiselect {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sneha-multiselect-option {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	color: #374151;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.12s ease;
}

.sneha-multiselect-option:hover {
	background: #e5e7eb;
}

/* ── Messages ── */
.sneha-feedback-error {
	margin-bottom: 12px;
	padding: 8px 12px;
	border: 1px solid #fca5a5;
	background: #fef2f2;
	color: #b91c1c;
	border-radius: 6px;
	font-size: 0.82rem;
}

.sneha-feedback-info {
	padding: 10px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #374151;
	font-size: 0.85rem;
}

/* ── Action buttons ── */
.sneha-feedback-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 24px 20px;
	border-top: 1px solid #f0f0f0;
	background: #ffffff;
}

.sneha-feedback-actions--center {
	justify-content: center;
}

.sneha-feedback-btn {
	border: none;
	border-radius: 8px;
	padding: 9px 32px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sneha-feedback-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sneha-feedback-btn-primary {
	background: #5B7AA3;
	color: #ffffff;
}

.sneha-feedback-btn-primary:hover:not(:disabled) {
	background: #4a6a93;
}

.sneha-feedback-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.sneha-feedback-btn-secondary:hover:not(:disabled) {
	background: #e5e7eb;
}

/* ── Success state ── */
.sneha-feedback-success {
	padding: 32px 24px;
	text-align: center;
}

.sneha-feedback-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	background: #ecfdf5;
	border-radius: 50%;
	font-size: 1.4rem;
}

.sneha-feedback-success h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.sneha-feedback-success p {
	margin: 0 0 18px;
	color: #6b7280;
	font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.sneha-feedback-overlay {
		padding: 10px;
		align-items: flex-end;
	}

	.sneha-feedback-modal {
		max-height: 92vh;
		border-radius: 10px 10px 0 0;
	}

	.sneha-feedback-header,
	.sneha-feedback-body {
		padding: 16px;
	}

	.sneha-feedback-actions {
		padding: 12px 16px 16px;
		flex-direction: column-reverse;
	}

	.sneha-feedback-btn-primary,
	.sneha-feedback-btn-secondary {
		width: 100%;
	}
}
