/**
 * jobflexy-job-reports — public report button + modal styles.
 * Every selector here is scoped under the jfrm- prefix on purpose: the
 * legacy footer/pill CSS lives in the theme and must never be targeted
 * from this plugin (see project rules on the anti-duplicate button CSS).
 */

/* Button (visually matches the site's existing small outline buttons) */
.jfrm-report-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 34px;
	padding: 6px 12px;
	background: transparent;
	color: #555;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	border: 1px solid #ccc;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.jfrm-report-btn:hover {
	background-color: #f9f9f9;
	color: #333;
	border-color: #aaa;
}

.jfrm-report-btn--disabled,
.jfrm-report-btn[disabled] {
	opacity: 0.45;
	cursor: default;
}

.jfrm-report-btn--disabled:hover,
.jfrm-report-btn[disabled]:hover {
	background-color: transparent;
	color: #555;
	border-color: #ccc;
}

/* Overlay + modal card */
.jfrm-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.jfrm-modal {
	position: relative;
	width: min( 420px, calc( 100vw - 32px ) );
	max-height: 85vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 20px 22px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
}

.jfrm-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #666;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
}

.jfrm-close:hover {
	color: #E67E22;
}

.jfrm-title {
	margin: 0 28px 8px 0;
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

.jfrm-sub {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
}

.jfrm-form {
	display: block;
}

.jfrm-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin-bottom: 8px;
	padding: 4px 12px;
	border: 1px solid #eee;
	border-radius: 8px;
	cursor: pointer;
}

.jfrm-option:hover {
	border-color: #E67E22;
}

.jfrm-option input[type="radio"] {
	accent-color: #E67E22;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.jfrm-textarea-wrap {
	margin: 4px 0 12px;
}

/* Belt-and-braces: don't rely solely on the [hidden] UA-stylesheet rule,
   which loses to any author rule targeting the same element. */
.jfrm-textarea-wrap[hidden] {
	display: none;
}

.jfrm-textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 90px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	resize: vertical;
}

.jfrm-modal input,
.jfrm-modal textarea,
.jfrm-modal button {
	font-size: 16px;
}

/* Honeypot: hidden from real users, reachable by bots/autofill. jfrm- class, exempt from the no-!important rule by design. */
.jfrm-hp {
	position: absolute !important;
	left: -9999px !important;
}

.jfrm-error {
	margin: 0 0 10px;
	color: #d63638;
	font-size: 13px;
}

.jfrm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.jfrm-cancel {
	padding: 10px 18px;
	background: transparent;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
}

.jfrm-cancel:hover {
	border-color: #bbb;
}

.jfrm-send {
	padding: 10px 18px;
	background: #E67E22;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

.jfrm-send:hover {
	background: #d66f14;
}

.jfrm-send:disabled {
	opacity: 0.7;
	cursor: default;
}

.jfrm-success {
	padding: 12px 4px 4px;
	font-size: 15px;
	line-height: 1.5;
	color: #1d2327;
}

@media (max-width: 400px) {
	.jfrm-modal {
		padding: 16px;
	}
}
