/* Yumnah Candidate Status Checker
   Override --ypk-primary or any .ypksc__* class in your theme to customise. */
.ypksc {
	--ypk-primary: #0b5ed7;
	--ypk-text: #1f2937;
	--ypk-muted: #6b7280;
	--ypk-border: #e5e7eb;
	--ypk-radius: 14px;
	max-width: 560px;
	margin: 30px auto;
	font-family: inherit;
	color: var(--ypk-text);
	box-sizing: border-box;
}
.ypksc *, .ypksc *::before, .ypksc *::after { box-sizing: border-box; }

.ypksc__card {
	background: #fff;
	border: 1px solid var(--ypk-border);
	border-top: 5px solid var(--ypk-primary);
	border-radius: var(--ypk-radius);
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .08);
}
.ypksc__title { margin: 0 0 6px; font-size: 24px; line-height: 1.25; text-align: center; color: var(--ypk-text); }
.ypksc__subtitle { margin: 0 0 24px; text-align: center; color: var(--ypk-muted); font-size: 15px; }

.ypksc__label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.ypksc__row { display: flex; gap: 10px; }
.ypksc__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 14px; font-size: 16px;
	border: 1.5px solid var(--ypk-border); border-radius: 10px; background: #f9fafb;
	text-transform: uppercase; letter-spacing: .5px; transition: border-color .15s, box-shadow .15s;
}
.ypksc__input:focus { outline: none; background: #fff; border-color: var(--ypk-primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, .18); }
.ypksc__input::placeholder { text-transform: none; letter-spacing: 0; }

.ypksc__btn {
	height: 48px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--ypk-primary); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
	transition: filter .15s, transform .05s;
}
.ypksc__btn:hover { filter: brightness(1.1); }
.ypksc__btn:active { transform: translateY(1px); }
.ypksc__btn:disabled { opacity: .7; cursor: wait; }

.ypksc__hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

.ypksc__result { margin-top: 22px; }
.ypksc__result:empty { margin-top: 0; }

.ypksc__msg { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; border: 1px solid; }
.ypksc__msg--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ypksc__msg--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.ypksc__found { border: 1px solid var(--ypk-border); border-radius: 12px; overflow: hidden; animation: ypksc-in .25s ease; }
.ypksc__item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--ypk-border); }
.ypksc__item:last-child { border-bottom: 0; }
.ypksc__item:nth-child(odd) { background: #f9fafb; }
.ypksc__item-label { color: var(--ypk-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.ypksc__item-value { font-weight: 600; text-align: right; }
.ypksc__company { color: var(--ypk-primary); font-size: 17px; }

/* Status badges: class is "ypk-status--" + slug of the status text from your sheet */
.ypksc__badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #e5e7eb; color: #374151; }
.ypk-status--selected, .ypk-status--approved, .ypk-status--confirmed, .ypk-status--deployed,
.ypk-status--visa-approved, .ypk-status--medical-fit, .ypk-status--completed { background: #dcfce7; color: #166534; }
.ypk-status--processing, .ypk-status--in-process, .ypk-status--under-process, .ypk-status--pending,
.ypk-status--shortlisted, .ypk-status--interview, .ypk-status--visa-processing { background: #fef3c7; color: #92400e; }
.ypk-status--rejected, .ypk-status--not-selected, .ypk-status--cancelled, .ypk-status--unfit, .ypk-status--visa-rejected { background: #fee2e2; color: #991b1b; }

@keyframes ypksc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
	.ypksc__card { padding: 24px 18px; }
	.ypksc__row { flex-direction: column; }
	.ypksc__btn { width: 100%; }
	.ypksc__item { flex-direction: column; align-items: flex-start; gap: 6px; }
	.ypksc__item-value { text-align: left; }
}
