/* Bullying — formulário público (neutro, acessível, responsivo) */

.bullying-form-wrap {
	max-width: 42rem;
	margin: 1.5rem auto;
	padding: 0 1rem;
	font-family: inherit;
	line-height: 1.5;
	color: #2c3338;
}

.bullying-form-inner {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.bullying-form-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 600;
	color: #1d2327;
}

.bullying-form-intro {
	margin: 0 0 1.25rem;
	color: #50575e;
	font-size: 0.95rem;
}

.bullying-fieldset {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
}

.bullying-radio-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
	cursor: pointer;
	font-size: 0.98rem;
}

.bullying-radio-label input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.bullying-field {
	margin-bottom: 1rem;
}

.bullying-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
}

.bullying-field .required {
	color: #b32d2e;
	font-weight: 600;
}

.bullying-field .optional {
	font-weight: 400;
	color: #787c82;
	font-size: 0.88rem;
}

.bullying-form-wrap .bullying-input,
.bullying-form-wrap .bullying-textarea,
.bullying-form-wrap .bullying-select {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-size: 1rem;
	background: #ffffff;
	color: #1d2327;
	display: block;
}

.bullying-form-wrap .bullying-input:focus,
.bullying-form-wrap .bullying-textarea:focus,
.bullying-form-wrap .bullying-select:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
}

.bullying-form-wrap .bullying-textarea {
	resize: vertical;
	height: 70px;
	margin-bottom: 0px;
}

/* Seta do select (evita sumir com estilos do tema) */
.bullying-form-wrap select.bullying-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.25rem;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23646970' d='M1 2l5 4 5-4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 0.65rem 0.45rem;
}

.bullying-form-wrap select.bullying-select::-ms-expand {
	display: none;
}
.bullying-char-count {
	font-size: 0.85rem;
	color: #646970;
	margin-top: 0.35rem;
}

/* Checkbox “Desejo ser informado…” — compacto, alinhado ao texto */
.bullying-checkbox-retorno-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	position: relative;
	padding: 0.15rem 0;
	padding-left: 1.85rem;
	min-height: 1.4rem;
	font-weight: 400;
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
	color: #2c3338;
}

.bullying-checkbox-retorno-label input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	margin-top: -0.625rem;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.bullying-checkbox-retorno-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: -0.625rem;
	box-sizing: border-box;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: #ffffff;
	pointer-events: none;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.bullying-checkbox-retorno-label:hover::before {
	border-color: #8c8f94;
}

.bullying-checkbox-retorno-label:has(input:focus-visible)::before {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.bullying-checkbox-retorno-label:has(input:checked)::before {
	background: #1d8f4a;
	border-color: #15703a;
}

.bullying-checkbox-retorno-label:has(input:checked)::after {
	content: "";
	position: absolute;
	/* Centro do quadrado 1.25rem (checkbox) */
	left: 0.625rem;
	top: 50%;
	width: 0.35rem;
	height: 0.58rem;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	border-right: 3px solid #ffffff;
	border-bottom: 3px solid #ffffff;
	/* Centraliza o traço e inclina o “v” do check */
	transform: translate(-50%, -58%) rotate(45deg);
	transform-origin: center center;
	pointer-events: none;
}

.bullying-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bullying-captcha-area {
	margin: 1rem 0;
	padding: 0;
	border: none;
}

.bullying-simple-captcha .bullying-captcha-q {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

/* Largura do CAPTCHA alinhada ao botão “Enviar denúncia” */
.bullying-form-wrap .bullying-simple-captcha input.bullying-captcha-answer {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-top: 0.25rem;
	box-sizing: border-box;
}

@media (min-width: 480px) {
	.bullying-form-wrap .bullying-simple-captcha input.bullying-captcha-answer {
		width: auto !important;
		min-width: 12rem !important;
		max-width: 100% !important;
	}
}

.bullying-actions {
	margin-top: 1.25rem;
}

.bullying-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
}

.bullying-submit:hover {
	background: #135e96;
}

.bullying-submit:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.bullying-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Modal de erro (validação / servidor) */
.bullying-modal-overlay {
	position: fixed;
	inset: 0;
	/* Acima de cabeçalhos fixos / mega menus do tema e da admin bar (99999) */
	z-index: 2147483646;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	isolation: isolate;
}

.bullying-modal-overlay.bullying-modal-overlay--open {
	display: flex;
}

.bullying-modal {
	width: 100%;
	max-width: 22rem;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
	padding: 1.75rem 1.5rem 1.5rem;
	text-align: center;
	box-sizing: border-box;
	position: relative;
}

.bullying-modal-icon-wrap {
	position: relative;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bullying-modal-icon-bg {
	position: absolute;
	inset: 0;
	background: #fef3c7;
	border-radius: 50%;
}

.bullying-modal-icon {
	position: relative;
	color: #b45309;
	z-index: 1;
}

.bullying-modal-icon-success {
	display: none;
	color: #15803d;
}

.bullying-modal--success .bullying-modal-icon-warn {
	display: none;
}

.bullying-modal--success .bullying-modal-icon-success {
	display: block;
}

.bullying-modal--success .bullying-modal-icon-bg {
	background: #d1fae5;
}

.bullying-modal--success .bullying-modal-btn-primary {
	background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
	box-shadow: 0 2px 6px rgba(21, 128, 61, 0.35);
	border: 1px solid #14532d;
}

.bullying-modal-title {
	margin: 0 0 0.65rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.bullying-modal-desc {
	margin: 0;
	font-size: 1.0rem;
	line-height: 1.5;
	color: #64748b;
	text-align: center;
}

.bullying-modal-desc p {
	margin: 0 0 0.5rem;
}

.bullying-modal-desc p:last-child {
	margin-bottom: 0;
}

.bullying-modal-btn-primary {
	width: auto;
	margin-top: 1.35rem;
	padding: 0.4rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
	box-sizing: border-box;
	transition: filter 0.15s ease, transform 0.1s ease;
}

.bullying-modal:not(.bullying-modal--success) .bullying-modal-btn-primary {
	border-color: #7f1d1d;
}

.bullying-modal-btn-primary:hover {
	filter: brightness(1.05);
}

.bullying-modal-btn-primary:active {
	transform: translateY(1px);
}

.bullying-modal-btn-primary:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.bullying-lista-admin .bullying-lista-note {
	font-size: 0.85rem;
	color: #646970;
	margin-bottom: 0.75rem;
}

.bullying-table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.bullying-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: #fff;
	border: 1px solid #dcdcde;
}

.bullying-table th,
.bullying-table td {
	padding: 0.5rem 0.65rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.bullying-table th {
	background: #f0f0f1;
	font-weight: 600;
}

.bullying-widget-inner {
	font-size: 0.95rem;
}

.bullying-widget-link {
	font-weight: 600;
	text-decoration: underline;
}

.bullying-widget-note {
	color: #646970;
	font-size: 0.88rem;
}

@media (min-width: 480px) {
	.bullying-submit {
		width: auto;
		min-width: 12rem;
	}
}
