/* 
 * Vision Global English Level Test Styles 
 * Scope: .vget-wrapper to avoid theme conflicts
 */

:root {
	--vget-primary-color: #185C37;
	--vget-primary-hover: #124629;
	--vget-bg-color: #ffffff;
	--vget-bg-alt: #f9fbf9;
	--vget-text-main: #333333;
	--vget-text-muted: #666666;
	--vget-border-color: #e0e0e0;
	--vget-radius: 8px;
	--vget-shadow: 0 4px 12px rgba(0,0,0,0.05);
	--vget-transition: all 0.3s ease;
	--vget-font-family: inherit; /* inherit from theme */
}

.vget-wrapper {
	font-family: var(--vget-font-family);
	color: var(--vget-text-main);
	background: var(--vget-bg-color);
	border-radius: var(--vget-radius);
	box-shadow: var(--vget-shadow);
	max-width: 800px;
	margin: 0 auto;
	padding: 40px;
	box-sizing: border-box;
	border: 1px solid var(--vget-border-color);
	line-height: 1.6;
}

.vget-wrapper * {
	box-sizing: border-box;
}

/* Screens */
.vget-screen {
	display: none;
	animation: vgetFadeIn 0.4s ease forwards;
}
.vget-screen.vget-active {
	display: block;
}

@keyframes vgetFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.vget-heading {
	color: var(--vget-primary-color);
	font-size: 28px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 16px;
	text-align: center;
}

.vget-subheading {
	font-size: 16px;
	color: var(--vget-text-muted);
	text-align: center;
	margin-bottom: 30px;
}

.vget-disclaimer {
	font-size: 13px;
	color: var(--vget-text-muted);
	text-align: center;
	margin: 20px 0;
}

/* Info Cards */
.vget-info-cards {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
	justify-content: center;
}
.vget-info-card {
	background: var(--vget-bg-alt);
	padding: 15px 20px;
	border-radius: var(--vget-radius);
	border: 1px solid var(--vget-border-color);
	text-align: center;
	flex: 1;
	min-width: 150px;
}
.vget-info-card strong {
	color: var(--vget-primary-color);
	display: block;
	font-size: 15px;
}

/* Buttons */
.vget-btn {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	transition: var(--vget-transition);
	text-decoration: none;
}
.vget-btn-primary {
	background-color: var(--vget-primary-color);
	color: #ffffff;
}
.vget-btn-primary:hover:not(:disabled) {
	background-color: var(--vget-primary-hover);
	color: #ffffff;
}
.vget-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.vget-btn-secondary {
	background-color: transparent;
	color: var(--vget-primary-color);
	border: 2px solid var(--vget-primary-color);
	padding: 10px 22px; /* adjust for border */
}
.vget-btn-secondary:hover:not(:disabled) {
	background-color: var(--vget-bg-alt);
}
.vget-btn-secondary:disabled {
	opacity: 0.5;
	border-color: #ccc;
	color: #ccc;
	cursor: not-allowed;
}

#vget-start-btn {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 300px;
}

/* Progress */
.vget-progress-container {
	margin-bottom: 30px;
}
.vget-progress-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--vget-text-muted);
	margin-bottom: 8px;
	text-align: right;
}
.vget-progress-bar-wrap {
	width: 100%;
	height: 8px;
	background-color: var(--vget-border-color);
	border-radius: 4px;
	overflow: hidden;
}
.vget-progress-bar {
	height: 100%;
	background-color: var(--vget-primary-color);
	width: 0%;
	transition: width 0.3s ease;
}

/* Questions */
.vget-question-text {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 24px;
	color: var(--vget-text-main);
}
.vget-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 30px;
}
.vget-option {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	border: 2px solid var(--vget-border-color);
	border-radius: var(--vget-radius);
	cursor: pointer;
	transition: var(--vget-transition);
	background: var(--vget-bg-color);
}
.vget-option:hover {
	border-color: var(--vget-primary-color);
	background-color: var(--vget-bg-alt);
}
.vget-option.vget-selected {
	border-color: var(--vget-primary-color);
	background-color: var(--vget-bg-alt);
	box-shadow: 0 0 0 1px var(--vget-primary-color);
}
.vget-option input[type="radio"] {
	margin-right: 15px;
	transform: scale(1.2);
	accent-color: var(--vget-primary-color);
}
.vget-option-label {
	font-size: 16px;
	cursor: pointer;
	width: 100%;
}

.vget-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Results */
.vget-level-badge {
	font-size: 48px;
	font-weight: 700;
	color: var(--vget-primary-color);
	text-align: center;
	margin: 20px 0 10px;
}
.vget-result-desc {
	text-align: center;
	font-size: 18px;
	margin-bottom: 10px;
}
.vget-score-text {
	text-align: center;
	font-size: 16px;
	color: var(--vget-text-muted);
	margin-bottom: 40px;
}

.vget-cefr-scale {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	margin-bottom: 40px;
	padding-top: 10px;
}
.vget-cefr-scale::before {
	content: '';
	position: absolute;
	top: 25px;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--vget-border-color);
	z-index: 1;
}
.vget-cefr-step {
	position: relative;
	z-index: 2;
	background: var(--vget-bg-color);
	border: 2px solid var(--vget-border-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: var(--vget-text-muted);
	transition: var(--vget-transition);
}
.vget-cefr-step.vget-active-level {
	border-color: var(--vget-primary-color);
	background: var(--vget-primary-color);
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 0 0 4px rgba(24, 92, 55, 0.2);
}

.vget-next-steps {
	background: var(--vget-bg-alt);
	padding: 30px;
	border-radius: var(--vget-radius);
	text-align: center;
	margin-bottom: 40px;
}
.vget-next-steps h3 {
	color: var(--vget-primary-color);
	margin-top: 0;
}
.vget-cta-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

/* Forms */
.vget-lead-form-container {
	border-top: 1px solid var(--vget-border-color);
	padding-top: 30px;
	margin-bottom: 30px;
}
.vget-lead-form-container h3 {
	text-align: center;
	color: var(--vget-primary-color);
	margin-bottom: 20px;
}
.vget-form-group {
	margin-bottom: 20px;
}
.vget-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--vget-text-main);
}
.vget-form-group input,
.vget-form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--vget-border-color);
	border-radius: var(--vget-radius);
	font-size: 16px;
	font-family: inherit;
	transition: var(--vget-transition);
}
.vget-form-group input:focus,
.vget-form-group select:focus {
	outline: none;
	border-color: var(--vget-primary-color);
	box-shadow: 0 0 0 2px rgba(24, 92, 55, 0.1);
}
#vget-submit-btn {
	width: 100%;
}
.vget-form-message {
	margin-bottom: 15px;
	font-weight: bold;
	text-align: center;
}
.vget-form-message.success { color: var(--vget-primary-color); }
.vget-form-message.error { color: #d32f2f; }

.vget-restart-container {
	text-align: center;
	margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
	.vget-wrapper {
		padding: 20px;
		border: none;
		box-shadow: none;
	}
	.vget-cefr-step {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
	.vget-cefr-scale::before {
		top: 15px;
	}
	.vget-navigation {
		flex-direction: column-reverse;
		gap: 15px;
	}
	.vget-navigation button {
		width: 100%;
	}
}
