/**
 * GoValid Form — public form styles.
 *
 * Modern, elegant design with icons, animations, and drag-drop.
 * Scoped to .govalid-pf-* classes for zero conflict.
 *
 * @package GoValid_QR
 */

/* ===== Root variables ===== */
.govalid-pf-wrap {
	--pf-primary: #2563eb;
	--pf-primary-light: #dbeafe;
	--pf-primary-hover: #1d4ed8;
	--pf-primary-glow: rgba(37, 99, 235, 0.12);
	--pf-danger: #dc2626;
	--pf-danger-light: #fef2f2;
	--pf-success: #16a34a;
	--pf-success-light: #f0fdf4;
	--pf-gray-50: #f8fafc;
	--pf-gray-100: #f1f5f9;
	--pf-gray-200: #e2e8f0;
	--pf-gray-300: #cbd5e1;
	--pf-gray-400: #94a3b8;
	--pf-gray-500: #64748b;
	--pf-gray-600: #475569;
	--pf-gray-700: #334155;
	--pf-gray-800: #1e293b;
	--pf-radius: 10px;
	--pf-radius-lg: 14px;
	--pf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--pf-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	--pf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--pf-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: var(--pf-gray-800);
	line-height: 1.5;
}

.govalid-pf-wrap *,
.govalid-pf-wrap *::before,
.govalid-pf-wrap *::after {
	box-sizing: border-box;
}

/* ===== Fields ===== */
.govalid-pf-field {
	margin-bottom: 24px;
}

.govalid-pf-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--pf-gray-700);
	margin-bottom: 8px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.govalid-pf-required {
	color: var(--pf-danger);
	font-weight: 700;
}

/* ===== Input wrapper with icon ===== */
.govalid-pf-input-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.govalid-pf-input-wrap--textarea {
	align-items: stretch;
}

.govalid-pf-input-icon {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--pf-radius) 0 0 var(--pf-radius);
	background: var(--pf-gray-100);
	color: var(--pf-gray-500);
	pointer-events: none;
	transition: background var(--pf-transition), color var(--pf-transition);
	z-index: 1;
	border-right: 1.5px solid var(--pf-gray-200);
}

/* Standard field-type icons — neutral grey (inherits from .govalid-pf-input-icon base) */

/* Social-media / platform brand colors */
.govalid-pf-input-icon[data-icon-type="instagram"]  { color: #e1306c; background: #fdf2f8; border-right-color: #fbcfe8; } /* Instagram pink */
.govalid-pf-input-icon[data-icon-type="tiktok"]     { color: #010101; background: #f0fdf4; border-right-color: #bbf7d0; } /* TikTok dark + mint accent */
.govalid-pf-input-icon[data-icon-type="facebook"]   { color: #1877f2; background: #eff6ff; border-right-color: #bfdbfe; } /* Facebook blue */
.govalid-pf-input-icon[data-icon-type="youtube"]    { color: #ff0000; background: #fef2f2; border-right-color: #fecaca; } /* YouTube red */
.govalid-pf-input-icon[data-icon-type="twitter"]    { color: #0f1419; background: #f8fafc; border-right-color: #e2e8f0; } /* X/Twitter black */
.govalid-pf-input-icon[data-icon-type="linkedin"]   { color: #0a66c2; background: #eff6ff; border-right-color: #bfdbfe; } /* LinkedIn blue */
.govalid-pf-input-icon[data-icon-type="whatsapp"]   { color: #25d366; background: #f0fdf4; border-right-color: #bbf7d0; } /* WhatsApp green */
.govalid-pf-input-icon[data-icon-type="telegram"]   { color: #0088cc; background: #ecfeff; border-right-color: #a5f3fc; } /* Telegram blue */
.govalid-pf-input-icon[data-icon-type="snapchat"]   { color: #f5c518; background: #fffbeb; border-right-color: #fde68a; } /* Snapchat yellow */
.govalid-pf-input-icon[data-icon-type="pinterest"]  { color: #e60023; background: #fef2f2; border-right-color: #fecaca; } /* Pinterest red */
.govalid-pf-input-icon[data-icon-type="spotify"]    { color: #1db954; background: #f0fdf4; border-right-color: #bbf7d0; } /* Spotify green */
.govalid-pf-input-icon[data-icon-type="discord"]    { color: #5865f2; background: #eef2ff; border-right-color: #c7d2fe; } /* Discord blurple */
.govalid-pf-input-icon[data-icon-type="twitch"]     { color: #9146ff; background: #faf5ff; border-right-color: #e9d5ff; } /* Twitch purple */
.govalid-pf-input-icon[data-icon-type="github"]     { color: #24292f; background: #f8fafc; border-right-color: #e2e8f0; } /* GitHub dark */

/* Focus state — social-media platforms intensify brand color */
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="instagram"]  { background: #fbcfe8; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="tiktok"]     { background: #bbf7d0; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="facebook"]   { background: #bfdbfe; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="youtube"]    { background: #fecaca; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="twitter"]    { background: #e2e8f0; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="linkedin"]   { background: #bfdbfe; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="whatsapp"]   { background: #bbf7d0; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="telegram"]   { background: #a5f3fc; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="snapchat"]   { background: #fde68a; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="pinterest"]  { background: #fecaca; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="spotify"]    { background: #bbf7d0; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="discord"]    { background: #c7d2fe; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="twitch"]     { background: #e9d5ff; }
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon[data-icon-type="github"]     { background: #e2e8f0; }

/* Fallback focus for untyped icons */
.govalid-pf-input-wrap:focus-within .govalid-pf-input-icon:not([data-icon-type]) {
	background: var(--pf-primary-light);
	color: var(--pf-primary);
	border-right-color: var(--pf-primary);
}

/* ===== Inputs ===== */
.govalid-pf-input {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--pf-gray-200);
	border-radius: var(--pf-radius);
	font-size: 15px;
	color: var(--pf-gray-800);
	background: #fff;
	transition: border-color var(--pf-transition), box-shadow var(--pf-transition), background var(--pf-transition);
	box-sizing: border-box;
	box-shadow: var(--pf-shadow-sm);
}

.govalid-pf-input--has-icon {
	padding-left: 56px;
	border-top-left-radius: var(--pf-radius);
	border-bottom-left-radius: var(--pf-radius);
}

.govalid-pf-input::placeholder {
	color: var(--pf-gray-400);
	font-weight: 400;
}

.govalid-pf-input:hover {
	border-color: var(--pf-gray-300);
}

.govalid-pf-input:focus {
	border-color: var(--pf-primary);
	outline: none;
	box-shadow: 0 0 0 4px var(--pf-primary-glow), var(--pf-shadow-sm);
	background: #fff;
}

.govalid-pf-input.govalid-pf-input--error {
	border-color: var(--pf-danger);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

textarea.govalid-pf-input {
	resize: vertical;
	min-height: 100px;
}

/* Hide native time/date picker icons (we have our own SVG icon) */
.govalid-pf-input[type="time"]::-webkit-calendar-picker-indicator,
.govalid-pf-input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	right: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

/* ===== Select ===== */
.govalid-pf-input-wrap--select {
	position: relative;
}

.govalid-pf-input--select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	cursor: pointer;
}

.govalid-pf-select-arrow {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	color: var(--pf-gray-400);
	pointer-events: none;
	transition: color var(--pf-transition), transform var(--pf-transition);
}

.govalid-pf-input-wrap--select:focus-within .govalid-pf-select-arrow {
	color: var(--pf-primary);
}

/* ===== Radio / Checkbox — Modern card style ===== */
.govalid-pf-fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

.govalid-pf-fieldset legend {
	padding: 0;
}

.govalid-pf-options-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.govalid-pf-option-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1.5px solid var(--pf-gray-200);
	border-radius: var(--pf-radius);
	background: #fff;
	cursor: pointer;
	transition: all var(--pf-transition);
	box-shadow: var(--pf-shadow-sm);
	user-select: none;
}

.govalid-pf-option-card:hover {
	border-color: var(--pf-gray-300);
	background: var(--pf-gray-50);
}

.govalid-pf-option-card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Custom radio circle */
.govalid-pf-option-radio {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--pf-gray-300);
	border-radius: 50%;
	position: relative;
	transition: all var(--pf-transition);
}

.govalid-pf-option-radio::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pf-primary);
	transition: transform var(--pf-transition);
}

.govalid-pf-option-card input:checked ~ .govalid-pf-option-radio {
	border-color: var(--pf-primary);
}

.govalid-pf-option-card input:checked ~ .govalid-pf-option-radio::after {
	transform: translate(-50%, -50%) scale(1);
}

.govalid-pf-option-card:has(input:checked) {
	border-color: var(--pf-primary);
	background: var(--pf-primary-light);
	box-shadow: 0 0 0 3px var(--pf-primary-glow);
}

/* Custom checkbox */
.govalid-pf-option-check {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--pf-gray-300);
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--pf-transition);
}

.govalid-pf-option-check svg {
	opacity: 0;
	transform: scale(0);
	transition: all var(--pf-transition);
	color: #fff;
}

.govalid-pf-option-card input:checked ~ .govalid-pf-option-check {
	background: var(--pf-primary);
	border-color: var(--pf-primary);
}

.govalid-pf-option-card input:checked ~ .govalid-pf-option-check svg {
	opacity: 1;
	transform: scale(1);
}

.govalid-pf-option-card:has(input[type="checkbox"]:checked) {
	border-color: var(--pf-primary);
	background: var(--pf-primary-light);
	box-shadow: 0 0 0 3px var(--pf-primary-glow);
}

.govalid-pf-option-text {
	font-size: 14px;
	font-weight: 500;
	color: var(--pf-gray-700);
}

/* ===== File — Drag & Drop zone ===== */
.govalid-pf-dropzone {
	position: relative;
	border: 2px dashed var(--pf-gray-300);
	border-radius: var(--pf-radius-lg);
	background: var(--pf-gray-50);
	transition: all var(--pf-transition);
	cursor: pointer;
	overflow: hidden;
}

.govalid-pf-dropzone:hover {
	border-color: var(--pf-primary);
	background: var(--pf-primary-light);
}

.govalid-pf-dropzone.govalid-pf-dropzone--dragover {
	border-color: var(--pf-primary);
	background: var(--pf-primary-light);
	box-shadow: 0 0 0 4px var(--pf-primary-glow);
}

.govalid-pf-dropzone.govalid-pf-dropzone--has-file {
	border-style: solid;
	border-color: var(--pf-gray-200);
	background: #fff;
	cursor: default;
}

.govalid-pf-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	text-align: center;
}

.govalid-pf-dropzone-icon {
	color: var(--pf-gray-400);
	margin-bottom: 2px;
	width: 22px;
	height: 22px;
	transition: color var(--pf-transition), transform var(--pf-transition);
}

.govalid-pf-dropzone:hover .govalid-pf-dropzone-icon,
.govalid-pf-dropzone--dragover .govalid-pf-dropzone-icon {
	color: var(--pf-primary);
	transform: translateY(-2px);
}

.govalid-pf-dropzone-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--pf-gray-700);
	margin: 0 0 2px;
}

.govalid-pf-dropzone-hint {
	font-size: 12px;
	color: var(--pf-gray-500);
	margin: 0;
}

.govalid-pf-dropzone-browse {
	color: var(--pf-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.govalid-pf-dropzone-formats {
	font-size: 11px;
	color: var(--pf-gray-400);
	margin: 2px 0 0;
}

.govalid-pf-file-hidden {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.govalid-pf-dropzone--has-file .govalid-pf-file-hidden {
	pointer-events: none;
}

/* File preview */
.govalid-pf-dropzone-preview {
	padding: 16px 20px;
}

.govalid-pf-dropzone-file-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--pf-gray-700);
}

.govalid-pf-dropzone-file-info svg {
	flex-shrink: 0;
	color: var(--pf-primary);
}

.govalid-pf-dropzone-filename {
	flex: 1;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.govalid-pf-dropzone-remove {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--pf-gray-100);
	color: var(--pf-gray-500);
	cursor: pointer;
	transition: all var(--pf-transition);
}

.govalid-pf-dropzone-remove:hover {
	background: var(--pf-danger-light);
	color: var(--pf-danger);
}

/* ===== Heading / Separator ===== */
.govalid-pf-heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--pf-gray-800);
	margin: 16px 0 8px;
	letter-spacing: -0.01em;
}

.govalid-pf-separator {
	border: none;
	border-top: 1px solid var(--pf-gray-200);
	margin: 20px 0;
}

/* ===== Field error ===== */
.govalid-pf-field-error {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--pf-danger);
	margin-top: 6px;
	font-weight: 500;
}

/* ===== Submit ===== */
.govalid-pf-submit-wrap {
	margin-top: 32px;
}

.govalid-pf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 32px;
	background: var(--pf-primary);
	color: #fff;
	border: none;
	border-radius: var(--pf-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--pf-transition);
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
	letter-spacing: 0.01em;
}

.govalid-pf-submit:hover {
	background: var(--pf-primary-hover);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
	transform: translateY(-1px);
}

.govalid-pf-submit:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.govalid-pf-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.govalid-pf-submit-icon {
	transition: transform var(--pf-transition);
}

.govalid-pf-submit:hover .govalid-pf-submit-icon {
	transform: translateX(3px);
}

/* ===== Message (success / error) ===== */
.govalid-pf-message {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: var(--pf-radius);
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}

.govalid-pf-message--success {
	background: var(--pf-success-light);
	color: var(--pf-success);
	border: 1px solid #bbf7d0;
}

.govalid-pf-message--error {
	background: var(--pf-danger-light);
	color: var(--pf-danger);
	border: 1px solid #fecaca;
}

/* ===== Error placeholder for editors ===== */
.govalid-pf-error {
	color: var(--pf-danger);
	font-style: italic;
}

/* ===== Camera / Selfie ===== */
.govalid-pf-camera-actions {
	display: flex;
	gap: 10px;
}

.govalid-pf-camera-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 28px 20px;
	border: 2px dashed var(--pf-gray-300);
	border-radius: var(--pf-radius-lg);
	background: var(--pf-gray-50);
	color: var(--pf-gray-600);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--pf-transition);
	flex-direction: column;
}

.govalid-pf-camera-btn-icon {
	color: var(--pf-gray-400);
	transition: color var(--pf-transition), transform var(--pf-transition);
}

.govalid-pf-camera-open:hover {
	border-color: var(--pf-primary);
	color: var(--pf-primary);
	background: var(--pf-primary-light);
}

.govalid-pf-camera-open:hover .govalid-pf-camera-btn-icon {
	color: var(--pf-primary);
	transform: scale(1.1);
}

.govalid-pf-camera-snap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: none;
	border-radius: var(--pf-radius);
	background: var(--pf-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--pf-transition);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
	width: 100%;
}

.govalid-pf-camera-snap:hover {
	background: var(--pf-primary-hover);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.govalid-pf-camera-video {
	width: 100%;
	max-height: 360px;
	border-radius: var(--pf-radius-lg);
	background: #000;
	margin-bottom: 10px;
	transform: scaleX(-1);
	box-shadow: var(--pf-shadow-md);
}

.govalid-pf-camera-preview {
	position: relative;
	display: inline-block;
	margin-bottom: 10px;
	width: 100%;
}

.govalid-pf-camera-img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: var(--pf-radius-lg);
	border: 1.5px solid var(--pf-gray-200);
	box-shadow: var(--pf-shadow);
}

.govalid-pf-camera-retake {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--pf-transition);
	backdrop-filter: blur(4px);
}

.govalid-pf-camera-retake:hover {
	background: rgba(220, 38, 38, 0.9);
	transform: scale(1.1);
}

/* ===== Image banner ===== */
.govalid-pf-banner {
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	border-radius: var(--pf-radius-lg);
	box-shadow: var(--pf-shadow);
}

/* ===== Gender / Horizontal options ===== */
.govalid-pf-options-grid--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
}

.govalid-pf-options-grid--horizontal .govalid-pf-option-card {
	flex: 1;
	min-width: 100px;
}

/* Gender card with icon */
.govalid-pf-option-card--gender {
	flex-direction: column;
	text-align: center;
	padding: 16px 12px;
	gap: 6px;
}

.govalid-pf-option-card--gender .govalid-pf-option-radio {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 16px;
	height: 16px;
}

.govalid-pf-option-card--gender .govalid-pf-option-radio::after {
	width: 8px;
	height: 8px;
}

/* Gender icon colors */
.govalid-pf-gender-icon {
	transition: color var(--pf-transition), transform var(--pf-transition);
}

.govalid-pf-gender-icon--male {
	color: #2563eb;
}

.govalid-pf-gender-icon--female {
	color: #ec4899;
}

.govalid-pf-gender-icon--other {
	color: #8b5cf6;
}

.govalid-pf-option-card--gender:hover .govalid-pf-gender-icon {
	transform: scale(1.15);
}

/* Male selected — blue accent */
.govalid-pf-option-card--gender:has(input:checked) .govalid-pf-gender-icon--male {
	color: #1d4ed8;
}
.govalid-pf-option-card--gender:has(input:checked):has(.govalid-pf-gender-icon--male) {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Female selected — pink accent */
.govalid-pf-option-card--gender:has(input:checked) .govalid-pf-gender-icon--female {
	color: #db2777;
}
.govalid-pf-option-card--gender:has(input:checked):has(.govalid-pf-gender-icon--female) {
	border-color: #ec4899;
	background: #fdf2f8;
	box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

/* Other selected — purple accent */
.govalid-pf-option-card--gender:has(input:checked) .govalid-pf-gender-icon--other {
	color: #7c3aed;
}
.govalid-pf-option-card--gender:has(input:checked):has(.govalid-pf-gender-icon--other) {
	border-color: #8b5cf6;
	background: #f5f3ff;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

/* ===== Rating / Stars ===== */
.govalid-pf-rating {
	display: inline-flex;
	gap: 4px;
	padding: 8px 0;
}

.govalid-pf-star {
	cursor: pointer;
	color: var(--pf-gray-300);
	transition: color var(--pf-transition), transform var(--pf-transition);
}

.govalid-pf-star:hover {
	transform: scale(1.15);
}

.govalid-pf-star--active {
	color: #f59e0b;
}

.govalid-pf-star--active svg {
	fill: #f59e0b;
}

.govalid-pf-star--hover {
	color: #fbbf24;
}

.govalid-pf-star--hover svg {
	fill: #fbbf24;
}

/* ===== Signature Canvas ===== */
.govalid-pf-signature {
	position: relative;
}

.govalid-pf-signature-canvas {
	width: 100%;
	border: 1.5px solid var(--pf-gray-200);
	border-radius: var(--pf-radius);
	background: #fff;
	cursor: crosshair;
	touch-action: none;
	box-shadow: var(--pf-shadow-sm);
	transition: border-color var(--pf-transition);
}

.govalid-pf-signature-canvas:hover,
.govalid-pf-signature-canvas:focus {
	border-color: var(--pf-primary);
}

.govalid-pf-signature-actions {
	margin-top: 8px;
	display: flex;
	justify-content: flex-end;
}

.govalid-pf-signature-clear {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	border: 1px solid var(--pf-gray-200);
	border-radius: var(--pf-radius);
	background: #fff;
	color: var(--pf-gray-600);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--pf-transition);
}

.govalid-pf-signature-clear:hover {
	border-color: var(--pf-danger);
	color: var(--pf-danger);
	background: var(--pf-danger-light);
}

/* ===== Multi-Step Progress ===== */
.govalid-pf-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 32px;
	padding: 0 16px;
}

.govalid-pf-progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 20px;
	transition: all var(--pf-transition);
	white-space: nowrap;
}

.govalid-pf-progress-num {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pf-gray-200);
	color: var(--pf-gray-500);
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
	transition: all var(--pf-transition);
}

.govalid-pf-progress-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--pf-gray-400);
	transition: color var(--pf-transition);
}

.govalid-pf-progress-connector {
	flex: 0 0 24px;
	height: 2px;
	background: var(--pf-gray-200);
	transition: background var(--pf-transition);
}

.govalid-pf-progress-step--active .govalid-pf-progress-num {
	background: var(--pf-primary);
	color: #fff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.govalid-pf-progress-step--active .govalid-pf-progress-label {
	color: var(--pf-primary);
	font-weight: 600;
}

.govalid-pf-progress-step--completed .govalid-pf-progress-num {
	background: var(--pf-success);
	color: #fff;
}

.govalid-pf-progress-step--completed .govalid-pf-progress-label {
	color: var(--pf-success);
}

.govalid-pf-progress-step--completed + .govalid-pf-progress-connector {
	background: var(--pf-success);
}

/* Step navigation */
.govalid-pf-step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	gap: 12px;
}

.govalid-pf-step-prev,
.govalid-pf-step-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1.5px solid var(--pf-gray-200);
	border-radius: var(--pf-radius);
	background: #fff;
	color: var(--pf-gray-700);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--pf-transition);
}

.govalid-pf-step-prev:hover,
.govalid-pf-step-next:hover {
	border-color: var(--pf-primary);
	color: var(--pf-primary);
	background: var(--pf-primary-light);
}

.govalid-pf-step-next {
	margin-left: auto;
	background: var(--pf-primary);
	color: #fff;
	border-color: var(--pf-primary);
}

.govalid-pf-step-next:hover {
	background: var(--pf-primary-hover);
	color: #fff;
}

/* ===== Hidden (conditional logic) ===== */
.govalid-pf-field--hidden {
	display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
	.govalid-pf-wrap {
		padding: 0 4px;
	}

	.govalid-pf-input {
		font-size: 16px; /* Prevents iOS zoom on focus */
	}

	.govalid-pf-dropzone-inner {
		padding: 12px 16px;
	}

	.govalid-pf-progress {
		flex-wrap: wrap;
		gap: 4px;
	}

	.govalid-pf-progress-label {
		display: none;
	}

	.govalid-pf-progress-connector {
		flex: 0 0 16px;
	}
}
