/* Prima Foods — application form extras (independent of Vite CSS) */

.cevisa-assessment-wrap {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
}

.cevisa-assessment-wrap input[type="text"],
.cevisa-assessment-wrap input[type="email"],
.cevisa-assessment-wrap input[type="tel"],
.cevisa-assessment-wrap input[type="number"],
.cevisa-assessment-wrap textarea,
.cevisa-assessment-wrap select,
.cevisa-assessment-wrap .prima-select {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	font-size: 16px;
	line-height: 1.3;
	color: #111827;
	background-color: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 12px 14px;
	box-sizing: border-box;
}

.cevisa-assessment-wrap textarea {
	min-height: 96px;
}

.cevisa-assessment-wrap select,
.cevisa-assessment-wrap .prima-select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	padding-right: 40px;
}

.cevisa-assessment-wrap .prima-step-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 4px;
	font-weight: 700;
	color: #6b7280;
}

.prima-phone-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.prima-phone-row select,
.prima-phone-row .prima-dial {
	max-width: 46%;
	min-width: 0;
	width: 46%;
	flex-shrink: 0;
}

.prima-phone-row input {
	flex: 1;
	min-width: 0;
}

.prima-dial {
	position: relative;
}

.prima-dial-btn,
.prima-dial-option {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
}

.prima-dial-btn {
	position: relative;
	padding-right: 28px;
}

.prima-dial-caret {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	color: #6b7280;
	pointer-events: none;
}

.prima-dial-flagwrap {
	position: relative;
	width: 24px;
	height: 18px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 3px;
	background: #e5e7eb;
}

.prima-dial-emoji {
	font-size: 16px;
	line-height: 1;
	font-style: normal;
}

.prima-dial-flag {
	position: absolute;
	inset: 0;
	width: 24px;
	height: 18px;
	object-fit: cover;
	border-radius: 3px;
	background: transparent;
}

.prima-dial-list {
	position: absolute;
	left: 0;
	right: auto;
	top: calc(100% + 4px);
	z-index: 40;
	width: min(320px, 86vw);
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.prima-dial-option {
	border: 0;
	border-radius: 0;
	min-height: 44px;
}

.prima-dial-option.is-active,
.prima-dial-option:hover {
	background: #f0fdf4;
}

.prima-dial-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
}

.prima-dial-code {
	color: #6b7280;
	font-size: 13px;
	flex-shrink: 0;
}

.prima-form-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.prima-back-btn {
	flex-shrink: 0;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #4b5563;
	font-weight: 700;
}

.prima-form-nav .btn-primary {
	flex: 0 1 auto;
	min-width: 160px;
	width: auto;
}

@media (max-width: 768px) {
	.prima-form-nav {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 16px;
		margin-top: 24px;
	}

	.prima-form-nav .btn-primary,
	.prima-back-btn {
		width: 100%;
		margin: 0;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.prima-phone-row {
		flex-direction: column;
	}

	.prima-phone-row select,
	.prima-phone-row .prima-dial {
		max-width: 100%;
		width: 100%;
	}

	.prima-dial-list {
		width: 100%;
	}
}

.prima-phone-hint {
	font-size: 12px;
	color: #6b7280;
	margin-top: 6px;
}

.prima-job-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	max-height: 440px;
	overflow-y: auto;
	padding: 2px 4px 8px;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.prima-job-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.prima-job-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 14px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff !important;
	cursor: pointer;
	text-align: left;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.prima-job-card:hover {
	border-color: #86efac !important;
	background: #f8faf8 !important;
}

.prima-job-card.is-selected,
.prima-job-card:has(.prima-job-radio:checked) {
	border-color: #16a34a !important;
	background: #ecfdf3 !important;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.28);
}

.prima-job-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.prima-job-body {
	flex: 1;
	min-width: 0;
	padding-right: 28px;
}

.prima-job-check {
	display: none;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.prima-job-card.is-selected .prima-job-check,
.prima-job-card:has(.prima-job-radio:checked) .prima-job-check {
	display: flex;
}

.prima-job-picked {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #ecfdf3;
	border: 1px solid #86efac;
	color: #166534;
	font-size: 14px;
	font-weight: 600;
}

.prima-job-picked i {
	color: #16a34a;
}

.prima-job-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f0fdf4;
	color: #15803d;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.prima-job-card h4 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: #0B1F17;
	line-height: 1.3;
}

.prima-job-meta {
	font-size: 12px;
	color: #4b5563;
}

.prima-summary {
	text-align: left;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 auto 24px;
	max-width: 520px;
}

.prima-summary h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0B1F17;
}

.prima-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.prima-copy-btn,
.prima-voice-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
}

.prima-copy-btn {
	background: #0B1F17;
	color: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	flex-shrink: 0;
}

.prima-copy-btn.is-copied {
	background: #009246;
}

#prima-scroll-top[hidden] {
	display: none !important;
}

.prima-voice-bar {
	display: flex;
	justify-content: center;
	margin: 0 auto 20px;
}

.prima-voice-bar[hidden] {
	display: none !important;
}

.prima-voice-btn {
	background: #CE2B37;
	color: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
}

.prima-voice-btn:hover {
	background: #b4252f;
}

.prima-summary dl {
	margin: 0;
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 8px 12px;
	font-size: 14px;
}

.prima-summary dt {
	color: #6b7280;
	font-weight: 600;
}

.prima-summary dd {
	margin: 0;
	color: #111827;
	font-weight: 600;
	word-break: break-word;
}

.prima-wa-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25D366;
	color: #fff !important;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 16px;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.prima-wa-cta:hover {
	background: #1fb855;
	color: #fff !important;
}

.prima-docs-note {
	margin-top: 12px;
	font-size: 14px;
	color: #374151;
	font-weight: 600;
}

.prima-already {
	text-align: center;
	padding: 28px 8px;
}

.prima-already .prima-summary {
	text-align: left;
	margin-bottom: 24px;
}

.cevisa-wa-mini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #25D366;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none !important;
	line-height: 1;
}

.cevisa-wa-mini:hover {
	background: #1fb855;
	color: #fff !important;
}

.cevisa-wa-mini .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.column-whatsapp {
	width: 70px;
}

.prima-photo-upload {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 24px;
	padding: 14px;
	border: 1px dashed #d1d5db;
	border-radius: 14px;
	background: #f8fafc;
	min-width: 0;
}

.prima-photo-fields {
	flex: 1;
	min-width: 0;
}

.prima-photo-preview {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: #0B1F17;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.prima-photo-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prima-photo-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.prima-photo-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-sizing: border-box;
}

.prima-photo-btn i {
	color: #009246;
	flex-shrink: 0;
}

.prima-photo-btn-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prima-phone-hint {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 420px) {
	.prima-photo-upload {
		flex-direction: column;
		align-items: stretch;
	}

	.prima-photo-preview {
		width: 88px;
		height: 88px;
	}
}

.prima-summary-photo {
	margin-bottom: 12px;
}

.prima-summary-photo img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 12px;
}

.prima-status-app {
	max-width: 720px;
	margin: 0 auto;
}

.prima-status-search,
.prima-status-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(11, 31, 23, 0.1);
	overflow: hidden;
}

.prima-status-search {
	padding: 36px 28px;
	text-align: center;
}

.prima-status-search-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 16px;
	background: #ecfdf3;
	color: #009246;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.prima-status-search h3 {
	margin: 0 0 8px;
	font-size: 24px;
	color: #0B1F17;
}

.prima-status-search p {
	margin: 0 0 22px;
	color: #6b7280;
}

.prima-status-form {
	max-width: 420px;
	margin: 0 auto;
	text-align: left;
}

.prima-status-form label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

.prima-status-form input[type="text"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	margin-bottom: 14px;
}

.prima-status-error {
	color: #dc2626;
	font-size: 13px;
	margin-top: 10px;
}

.prima-status-stripe {
	height: 8px;
	background: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #CE2B37 66% 100%);
}

.prima-status-body {
	padding: 28px;
}

.prima-status-profile {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 20px;
}

.prima-status-photo,
.prima-status-photo-fallback {
	width: 96px;
	height: 96px;
	border-radius: 16px;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #e8f5ee;
}

.prima-status-photo-fallback {
	background: #0B1F17;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 800;
}

.prima-status-brand {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
	font-weight: 700;
}

.prima-status-name {
	margin: 2px 0 4px;
	font-size: 26px;
	color: #1d4ed8;
	font-weight: 800;
}

.prima-status-sub {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.prima-status-chip {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: #2563eb;
}

.prima-status-chip.is-under_processing { background: #d97706; }
.prima-status-chip.is-approved { background: #16a34a; }
.prima-status-chip.is-canceled { background: #dc2626; }

.prima-status-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

.prima-status-table th,
.prima-status-table td {
	padding: 11px 14px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
}

.prima-status-table th {
	width: 44%;
	background: #f8fafc;
	font-weight: 700;
	color: #111827;
}

.prima-fees-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	background: #dc2626;
}

.prima-fees-badge.paid { background: #16a34a; }

.prima-status-docs {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

.prima-status-docs h4 {
	margin: 0 0 10px;
	font-size: 15px;
	color: #111827;
}

.prima-status-doc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.prima-status-alert {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	font-size: 14px;
}

.prima-status-alert strong {
	display: block;
	margin-bottom: 4px;
}

.prima-status-alert.success { background: #ecfdf3; border-color: #bbf7d0; }
.prima-status-alert.danger { background: #fef2f2; border-color: #fecaca; }
.prima-status-alert.info { background: #eff6ff; border-color: #bfdbfe; }

.prima-status-tools {
	margin-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.prima-status-meta {
	margin: 0 0 4px;
	font-size: 12px;
	color: #6b7280;
}

.prima-status-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.prima-slip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #1d4ed8;
	color: #1d4ed8 !important;
	background: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none !important;
	cursor: pointer;
}

.prima-slip-btn.ghost {
	border-color: #d1d5db;
	color: #374151 !important;
}

.prima-status-qr {
	text-align: center;
}

.prima-status-qr img {
	width: 120px;
	height: 120px;
	border: 1px solid #e5e7eb;
	padding: 6px;
	border-radius: 10px;
	background: #fff;
}

.prima-status-qr a {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #009246;
}

.wp-admin .column-photo { width: 52px; }
.wp-admin .column-fees { width: 80px; }
.wp-admin .column-passport { width: 110px; }

/* Canada announcement popup (front page) */
.prima-canada-popup {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.prima-canada-popup[hidden] {
	display: none !important;
}

.prima-canada-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.prima-canada-popup__panel {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
	border: 1px solid #fecaca;
}

.prima-canada-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
}

.prima-canada-popup__flag {
	font-size: 42px;
	line-height: 1;
	margin-bottom: 8px;
}

.prima-canada-popup__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 48px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	font-weight: 700;
	text-decoration: none;
}
