/* =============================================================================
   Join / Registration Page — CSS
   ============================================================================= */

.inv-input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 0.8rem;
	color: #c8cce8;
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s ease;
}

.inv-input:focus {
	border-color: #f59e0b;
}

.inv-input::placeholder {
	color: #3d4560;
}

/* Field wrapper + label helpers */
.inv-field {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.inv-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #6b7494;
	margin-bottom: 6px;
}

.inv-label-optional {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #3d4560;
}

.inv-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 24px;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: #f59e0b;
	color: #000;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.inv-btn-primary:hover { opacity: 0.8; }

/* Quiz option buttons */
.inv-quiz-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	font-size: 0.8rem;
	color: #c8cce8;
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.inv-quiz-option:hover {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.05);
}

.inv-quiz-option__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	font-size: 0.65rem;
	font-weight: 700;
	color: #6b7494;
	background: rgba(255, 255, 255, 0.05);
	flex-shrink: 0;
}

.inv-quiz-option:hover .inv-quiz-option__letter {
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
}

/* Quiz question image */
.inv-quiz-question-image {
	width: 50%;
	max-width: 400px;
	height: auto;
	margin: 0 auto 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: block;
}

/* Quiz option images */
.inv-quiz-option-image {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.inv-quiz-option__text {
	flex: 1;
}

/* New image utility classes (ticket requirement) */
.inv-question-img {
	width: 100%;
	max-height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
	display: block;
}

.inv-option-img {
	width: 100%;
	max-height: 80px;
	object-fit: contain;
	border-radius: 4px;
	margin-bottom: 0.4rem;
	display: block;
}

/* Progress bar smooth transition */
#inv-quiz-bar,
#inv-quiz-bar-new {
	transition: width 0.5s ease;
}

/* Mobile: stack images vertically for better readability */
@media (max-width: 640px) {
	.inv-quiz-option {
		flex-direction: row;
		align-items: center;
	}

	.inv-quiz-option-image {
		width: 20%;
		height: auto;
		max-height: 200px;
		margin-top: 8px;
	}

	.inv-quiz-option__letter {
		align-self: flex-start;
	}
}

/* Desktop: keep horizontal layout with larger option images */
@media (min-width: 641px) {
	.inv-quiz-option-image {
		width: 80px;
		height: 80px;
	}

	.inv-quiz-question-image {
		max-width: 500px;
	}

	.inv-question-img {
		max-height: 260px;
	}
}

/* =============================================================================
   Quiz Animations & Interactive Effects
   ============================================================================= */

/* Keyframes */
@keyframes inv-shake {
	0%, 100% { transform: translateX(0); }
	20%       { transform: translateX(-8px); }
	40%       { transform: translateX(8px); }
	60%       { transform: translateX(-5px); }
	80%       { transform: translateX(5px); }
}

@keyframes inv-slide-out-left {
	to { opacity: 0; transform: translateX(-40px); }
}

@keyframes inv-slide-in-right {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes inv-lock-in {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.04); }
	100% { transform: scale(1); }
}

/* Animation classes — gated behind prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
	.inv-option--locked {
		animation: inv-lock-in 0.25s ease forwards;
	}

	.inv-option--shake {
		animation: inv-shake 0.4s ease forwards;
	}

	.inv-question--out {
		animation: inv-slide-out-left 0.3s ease forwards;
	}

	.inv-question--in {
		animation: inv-slide-in-right 0.35s ease forwards;
	}
}

/* Correct / wrong state colours */
.inv-option--correct {
	background: rgba(34, 197, 94, 0.15) !important;
	border-color: #22c55e !important;
}

.inv-option--wrong {
	background: rgba(239, 68, 68, 0.15) !important;
	border-color: #ef4444 !important;
}
