/*
 * YFJ Career Fair Kiosk — fully self-contained styling.
 * Every class is prefixed yfj-kiosk- to avoid any collision with the main
 * Your First Job plugin's own CSS classes.
 */

* { box-sizing: border-box; }

html, body.yfj-kiosk-body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden; /* kiosk is single-screen; no page scroll on a shared tablet */
	background: #1B2E5E;
	font-family: Roboto, -apple-system, sans-serif;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.yfj-kiosk-app {
	position: fixed;
	inset: 0;
	background: linear-gradient(160deg, #1B2E5E 0%, #24407e 100%);
}

.yfj-kiosk-screen {
	position: absolute;
	inset: 0;
	display: none;
	/*
	 * align-items: flex-start (not center) paired with margin:auto on the
	 * card below is a deliberate, older-Safari-safe pattern: when the card
	 * is short, its own auto top/bottom margins expand and center it
	 * exactly as before. When it's taller than the screen, those margins
	 * collapse to 0, the card aligns to the top, and overflow-y:auto makes
	 * the rest reachable by scrolling. align-items:center here would have
	 * centered the card regardless of height and made its TOP edge
	 * unreachable by scrolling once the content overflowed — a known
	 * flexbox/overflow interaction, notably on iOS Safari, which is the
	 * exact device this kiosk runs on.
	 */
	align-items: flex-start;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.yfj-kiosk-screen.is-active { display: flex; }

.yfj-kiosk-card {
	background: #fff;
	border-radius: 20px;
	padding: 48px 44px;
	max-width: 560px;
	width: 100%;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
	margin: auto 0; /* centers when short; collapses to top-aligned + scrollable when tall */
}
.yfj-kiosk-card-wide { max-width: 680px; text-align: left; }

.yfj-kiosk-card h1 {
	font-size: 34px;
	font-weight: 900;
	color: #1B2E5E;
	line-height: 1.2;
	margin: 0 0 14px;
}
.yfj-kiosk-card h2 {
	font-size: 24px;
	font-weight: 800;
	color: #1B2E5E;
	margin: 0 0 20px;
}
.yfj-kiosk-sub {
	font-size: 17px;
	color: #64748B;
	margin: 0 0 32px;
	line-height: 1.5;
}
.yfj-kiosk-notice { color: #fff; }
.yfj-kiosk-notice p { font-size: 20px; }

/* Buttons — large, touch-friendly */
.yfj-kiosk-btn {
	display: block;
	width: 100%;
	padding: 20px 24px;
	border: none;
	border-radius: 14px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	margin-top: 14px;
}
.yfj-kiosk-btn-primary { background: #E8521A; color: #fff; }
.yfj-kiosk-btn-primary:active { background: #C6431A; }
.yfj-kiosk-btn-quiet { background: #F1F5F9; color: #64748B; }

/* Fields */
.yfj-kiosk-field { text-align: left; margin-bottom: 18px; }
.yfj-kiosk-field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1B2E5E;
	margin-bottom: 6px;
}
.yfj-kiosk-field input {
	width: 100%;
	padding: 16px;
	font-size: 20px;
	border: 2px solid #E2E8F0;
	border-radius: 10px;
	font-family: inherit;
}
.yfj-kiosk-field input:focus { border-color: #E8521A; outline: none; }
.yfj-kiosk-error { color: #CC0000; font-size: 14px; margin: -6px 0 12px; }

/* Progress + questions */
.yfj-kiosk-progress {
	height: 8px;
	background: #F1F5F9;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 16px;
}
.yfj-kiosk-progress-fill {
	height: 100%;
	background: #E8521A;
	width: 0%;
	transition: width 0.25s ease;
}
.yfj-kiosk-qcount {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #94A3B8;
	margin: 0 0 10px;
}
.yfj-kiosk-qtext {
	font-size: 24px;
	line-height: 1.35;
	color: #1B2E5E;
	margin: 0 0 28px;
}
.yfj-kiosk-options { display: flex; flex-direction: column; gap: 12px; }
.yfj-kiosk-option {
	display: block;
	width: 100%;
	text-align: left;
	padding: 20px 22px;
	background: #F8FAFC;
	border: 2px solid #E2E8F0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
}
.yfj-kiosk-option:active,
.yfj-kiosk-option.is-selected {
	background: #FFF4EE;
	border-color: #E8521A;
	color: #1B2E5E;
}

/* Result */
.yfj-kiosk-result-header {
	text-align: center; /* overrides the wide card's left-align for this block only */
	margin-bottom: 8px;
}
.yfj-kiosk-result-eyebrow {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: #E8521A;
	margin: 0 0 10px;
}
.yfj-kiosk-band {
	width: 96px;
	height: 96px;
	margin: 0 auto 18px;
	border-radius: 20px;
	background: #1B2E5E;
	color: #fff;
	font-size: 44px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}
.yfj-kiosk-result-header h2 {
	text-align: center;
}
.yfj-kiosk-desc {
	font-size: 16px;
	color: #475569;
	line-height: 1.6;
	margin: 0 0 8px;
	text-align: center;
}

/* Career path / management guidance — left-aligned, labeled sections */
.yfj-kiosk-result-section {
	text-align: left;
	background: #F8FAFC;
	border-left: 3px solid #E8521A;
	border-radius: 0 10px 10px 0;
	padding: 16px 20px;
	margin: 18px 0;
}
.yfj-kiosk-result-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #E8521A;
	margin: 0 0 6px;
}
.yfj-kiosk-result-text {
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
	margin: 0;
}

/* Responsive — tablet portrait/landscape and phone fallback */
@media (max-width: 700px) {
	.yfj-kiosk-card { padding: 32px 26px; border-radius: 16px; }
	.yfj-kiosk-card h1 { font-size: 27px; }
	.yfj-kiosk-qtext { font-size: 20px; }
	.yfj-kiosk-option { padding: 16px 18px; font-size: 16px; }
	.yfj-kiosk-result-section { padding: 14px 16px; }
}

