/*
 * Verify Staff — frontend styles.
 * Inherits the site's Elementor global typography/colors; fallback
 * values mirror the aefinansure.my kit (Public Sans / #132B48 / #1B1E23).
 * Every selector is prefixed with .vstaff-tool so Elementor kit rules
 * (e.g. `.elementor-kit-XX button`, `input[type="text"]`) cannot
 * out-specify the tool's own styles.
 */

.vstaff-tool,
.vstaff-tool *,
.vstaff-tool *::before,
.vstaff-tool *::after {
	box-sizing: border-box;
}

.vstaff-tool {
	font-family: var(--e-global-typography-text-font-family, "Public Sans"), sans-serif;
	font-size: var(--e-global-typography-text-font-size, 16px);
	font-weight: var(--e-global-typography-text-font-weight, 400);
	text-transform: var(--e-global-typography-text-text-transform, none);
	line-height: var(--e-global-typography-text-line-height, 1.7);
	letter-spacing: var(--e-global-typography-text-letter-spacing, 0);
	color: var(--e-global-color-text, #1B1E23);
	max-width: 100%;
}

.vstaff-tool p {
	margin: 0 0 12px;
}

.vstaff-tool .vstaff-intro {
	margin-bottom: 16px;
}

/* Visually-hidden label; defined here because not every theme ships
   the WordPress .screen-reader-text utility class. */
.vstaff-tool .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}

/* --- Form row --- */

.vstaff-tool .vstaff-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	margin: 0 0 10px;
}

.vstaff-tool .vstaff-input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 12px 18px;
	border: 1px solid #cdd2da;
	border-radius: 30px;
	background: #fff;
	color: var(--e-global-color-text, #1B1E23);
	font: inherit;
	line-height: 1.5;
}

.vstaff-tool .vstaff-input:focus {
	border-color: var(--e-global-color-primary, #132B48);
	outline: 1px solid var(--e-global-color-primary, #132B48);
	outline-offset: 0;
}

.vstaff-tool .vstaff-input::placeholder {
	color: #6e737a;
	opacity: 1;
}

.vstaff-tool .vstaff-button {
	flex: 0 0 auto;
	padding: 12px 30px;
	border: 0;
	border-radius: 30px;
	background: var(--e-global-color-primary, #132B48);
	color: #fff;
	font-family: var(--e-global-typography-accent-font-family, "Manrope"), sans-serif;
	font-size: var(--e-global-typography-accent-font-size, 16px);
	font-weight: var(--e-global-typography-accent-font-weight, 700);
	text-transform: var(--e-global-typography-accent-text-transform, capitalize);
	letter-spacing: var(--e-global-typography-accent-letter-spacing, 0);
	line-height: 1.5;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.vstaff-tool .vstaff-button:hover,
.vstaff-tool .vstaff-button:focus {
	background: var(--e-global-color-primary, #132B48);
	color: #fff;
	opacity: 0.88;
}

/* Honeypot — hidden from humans, present for bots. */
.vstaff-tool .vstaff-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vstaff-tool .vstaff-note {
	font-size: 0.85em;
	line-height: 1.6;
	color: #5c6167;
}

.vstaff-tool .vstaff-note a {
	color: inherit;
	text-decoration: underline;
}

/* --- Result cards --- */

.vstaff-tool .vstaff-result {
	margin-top: 20px;
	padding: 22px 26px;
	border-radius: 12px;
}

.vstaff-tool .vstaff-result-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 6px;
	font-family: var(--e-global-typography-secondary-font-family, "Manrope"), sans-serif;
	font-weight: var(--e-global-typography-secondary-font-weight, 700);
	font-size: 1.05em;
}

.vstaff-tool .vstaff-result-text {
	margin: 0 0 10px;
}

.vstaff-tool .vstaff-result--verified {
	background: #eef5e2;
}

.vstaff-tool .vstaff-result--verified .vstaff-result-head {
	color: #3a5220;
}

.vstaff-tool .vstaff-result--none {
	background: #fbeceb;
}

.vstaff-tool .vstaff-result--none .vstaff-result-head {
	color: #9d1f17;
}

.vstaff-tool .vstaff-result--none a {
	color: #9d1f17;
	text-decoration: underline;
}

/* Neutral card: fixed light gray so a dark Elementor "secondary"
   color can never make it unreadable. */
.vstaff-tool .vstaff-result--notice {
	background: #f2f3f5;
}

.vstaff-tool .vstaff-result--notice .vstaff-result-text {
	margin: 0;
}

.vstaff-tool .vstaff-icon {
	flex: 0 0 auto;
	font-size: 1.1em;
	line-height: 1;
}

/* Details grid */

.vstaff-tool .vstaff-details {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 4px 16px;
	margin: 14px 0 0;
}

.vstaff-tool .vstaff-details dt {
	color: #5c6167;
	font-weight: inherit;
	margin: 0;
}

.vstaff-tool .vstaff-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* "Call us to confirm" button on the no-match card */

.vstaff-tool .vstaff-call-button {
	display: inline-block;
	margin-top: 16px;
	padding: 8px 18px;
	border: 1px solid #cdd2da;
	border-radius: 24px;
	background: #fff;
	color: var(--e-global-color-text, #1B1E23) !important;
	font-family: var(--e-global-typography-accent-font-family, "Manrope"), sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight, 700);
	font-size: 0.9em;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.vstaff-tool .vstaff-call-button:hover,
.vstaff-tool .vstaff-call-button:focus {
	background: #f4f4f4;
}

@media (max-width: 480px) {
	.vstaff-tool .vstaff-form {
		flex-direction: column;
	}

	/* In column direction the row flex-basis would become height. */
	.vstaff-tool .vstaff-form .vstaff-input {
		flex: 1 1 auto;
		width: 100%;
	}

	.vstaff-tool .vstaff-form .vstaff-button {
		width: 100%;
	}

	.vstaff-tool .vstaff-details {
		grid-template-columns: 100px 1fr;
	}
}
