/* ================================
   RESET + BASE
================================ */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #111827;
	background: #f3f4f6;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ================================
   LAYOUT
================================ */
.layout {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	padding: 48px;
	background: linear-gradient(120deg,
			#003973 0%,
			#e5f6ff 100%);


}

.left,
.right {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.left {
	padding: 48px 40px;
	align-items: center;
}

.brand {
	height: 190px;
	margin-bottom: -30px;
}

.right {
	background: linear-gradient(120deg,
			#00c6ff 0%,
			#0072ff 100%);


	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

/* Right column card styling (used for all steps) */
.step-info,
.testimonial,
.step3-info,
.psg-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	padding: 32px;
	max-width: 500px;
	width: 100%;
	min-height: 280px;
}

/* Images inside the card */
.step-info .avatar,
.testimonial .avatar,
.step3-info .avatar,
.psg-card .avatar {
	width: 64px;
	/* larger image */
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

/* Name and role text */
.step-info .name,
.testimonial .name,
.step3-info .name,
.psg-card .name {
	font-size: 1.25rem;
	/* larger text */
	font-weight: 600;
}

.step-info .role,
.testimonial .role,
.step3-info .role,
.psg-card .role {
	font-size: 0.95rem;
	/* slightly larger */
	color: #6b7280;
}

/* Quote text */
.step-info .quote,
.testimonial .quote,
.step3-info .quote,
.psg-card .quote {
	font-size: 1rem;
	/* larger readable text */
	line-height: 1.6;
	color: #374151;
}

/* ================================
   QUESTION/STEPS
================================ */
.question {
	width: 100%;
	max-width: 520px;
	display: none;
}

.question.active {
	display: block;
}

h1 {
	font-size: 28px;
	margin: 0 0 8px;
}

.subtitle {
	font-size: 16px;
	color: #fff;
}

/* ================================
   DROP DOWN LIST | COUNTRIES
================================ */
.country-dropdown {
	position: relative;
	width: 100%;
}

.country-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 2px solid #ddd;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
}

.country-trigger .flag {
	width: 22px;
	height: 16px;
	object-fit: cover;
}

.country-trigger .hidden {
	display: none;
}

.country-list {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	max-height: 230px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	/* border-radius: 6px; */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 6px;
	z-index: 1000;
	display: none;
}

.country-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
}

.country-option:hover {
	background: #f3f3f3;
}

.country-option img {
	width: 22px;
	height: 16px;
	object-fit: cover;
}

/* ================================
   NATIONALITY DROPDOWN
================================ */
.nationality-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

#nationality-select {
	position: absolute;
	opacity: 0;
	pointer-events: auto;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	/* margin-bottom: 20px; */
}


#flag {
	width: 24px;
	height: 18px;
	border-radius: 4px;
	object-fit: cover;
	display: none;
	margin-right: 8px;
}

.select-wrap {
	position: relative;
	width: 100%;
}

#nat-trigger {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-size: 16px;
	background: white;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#nat-trigger:focus {
	outline: none;
	border-color: #2563eb;
}

#nat-trigger::after {
	content: "▼";
	font-size: 12px;
	margin-left: 8px;
	transition: transform 0.2s ease;
}

#nat-trigger[aria-expanded="true"]::after {
	transform: rotate(-180deg);
}

.nationality-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	z-index: 20;
	padding: 4px 0;
	list-style: none;
	margin: 0;
}

.nationality-dropdown li {
	padding: 10px 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s ease;
}

.nationality-dropdown li:hover {
	background: #f3f4f6;
}

.nationality-dropdown li img {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
}

/* ================================
   NEXT BUTTONS
================================ */
.next-row {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.next-btn {
	padding: 12px 20px;
	border-radius: 999px;
	border: none;
	font-size: 16px;
	font-weight: 500;
	background: linear-gradient(120deg,
			#00c6ff 0%,
			#0072ff 100%);


	color: white;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.next-btn:enabled {
	opacity: 1;
}

.hint {
	font-size: 13px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ================================
   TESTIMONIAL / STEP CARD CONTENT
================================ */
.testimonial,
.step3-info,
.psg-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.name {
	font-weight: 600;
}

.role {
	font-size: 13px;
	color: #6b7280;
}

.quote {
	font-size: 15px;
	line-height: 1.5;
	color: #374151;
}

/* ================================
   STEP 2 RADIO CARDS
================================ */
.passport-options {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.passport-option {
	cursor: pointer;
}

.passport-option input {
	display: none;
}

.option-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.option-card:hover {
	background: #f9fafb;
}

.passport-option input:checked+.option-card {
	border-color: #2563eb;
	background: #eff6ff;
}

.check {
	opacity: 0;
	color: #2563eb;
	font-weight: bold;
}

.passport-option input:checked+.option-card .check {
	opacity: 1;
}

/* ================================
   STEP 4: AGE INPUT
================================ */
.psg-form-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.psg-text-input {
	overflow: hidden;
	display: flex;
	align-items: center;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: white;
	transition: border 0.2s ease, background 0.2s ease;
}

.psg-text-input input {
	flex-grow: 1;
	width: 100%;
	padding: 10px 12px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: #111827;
}

/* ================================
   STEP 6: EDUCATION LEVEL CARDS
   Styled like Step 2
================================ */
.psg-radio-group .psg-education-option {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	/* default grey border */
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.psg-radio-group .psg-education-option:hover {
	background: #f9fafb;
}

.psg-radio-group .psg-education-option[aria-checked="true"] {
	border-color: #2563eb;
	/* blue border on selection */
	background: #eff6ff;
}

/* Text inside */
.psg-radio-group .psg-education-option .psg-text.font-medium {
	font-weight: 500;
}

.psg-radio-group .psg-education-option .psg-text.text-body-sm {
	font-size: 14px;
	color: #6b7280;
}

/* Remove focus outline entirely */
.psg-radio-group .psg-education-option:focus {
	outline: none;
}



/* ================================
   STEP 6: CONTACT FORM / SUBMIT BUTTON
================================ */
#step6 .psg-form-control label {
	font-weight: 500;
	color: #111827;
}

#step6 .psg-form-control {
	margin-bottom: 25px;
	/* spacing between input fields */
}

#step6-info {
	margin-top: 16px;
}

#step6 .flex.space-x-4.w-full.justify-start.pt-4 {
	margin-top: 24px;
	/* spacing above submit button */
}

#step6 .psg-form-control input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
	font-size: 16px;
	transition: border 0.2s ease, background 0.2s ease;
}

#step6 .psg-form-control input:focus {
	border-color: #2563eb;
	background: #eff6ff;
	outline: none;
}

#step6 .psg-button[type="submit"] {
	background-color: #2563eb;
	color: #fff;
	font-weight: 500;
	border-radius: 999px;
	padding: 0.875rem 2rem;
	height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

#step6 .psg-button[type="submit"]:hover {
	background-color: #1e40af;
}

#step6 .psg-button[type="submit"]:active {
	transform: scale(0.98);
}


/* ================================
   STEP 6: BACK + INFO BUTTON
================================ */
#step6-back {
	color: #2563eb;
	text-decoration: none;
}

#step6-back:hover {
	text-decoration: underline;
}

#step6-info {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

#step6-info:hover {
	background: #e5e7eb;
}


/* ================================
   TOAST MESSAGE (CENTERED)
================================ */
/* Enhanced centered toast */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	/* start slightly smaller */
	background: linear-gradient(120deg,
			#00c6ff 0%,
			#0072ff 100%);
	/* blue alert background */
	color: #fff;
	padding: 20px 32px;
	/* bigger padding */
	border-radius: 12px;
	/* slightly more rounded */
	font-size: 1.125rem;
	/* larger text */
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show toast */
.toast.show {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
	/* scale up when showing */
}

/* ================================
   STEP 7: SUBMIT BUTTON STYLING
================================ */
#step7 .psg-button[type="submit"] {
	background: linear-gradient(120deg,
			#00c6ff 0%,
			#0072ff 100%);
	color: #fff;
	font-weight: 500;
	border-radius: 999px;
	padding: 0.875rem 2rem;
	height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

#step7 .psg-button[type="submit"]:hover {
	background-color: #1e40af;
}

#step7 .psg-button[type="submit"]:active {
	transform: scale(0.98);
}

/* ================================
   STEP 7: LEFT COLUMN FORM
================================ */

#step7 .flex.flex-col.w-full.p-6 {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#step7 p {
	font-size: 1.125rem;
	/* slightly larger text */
	color: #111827;
	margin-bottom: 8px;
}

#step7 .psg-form-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 30px;
	width: 100%;
}

#step7 .psg-form-control label {
	font-weight: 500;
	color: #111827;
	font-size: 16px;
}

#step7.question.active {
	display: flex;
}

#step7 .psg-text-input {
	overflow: hidden;
	display: flex;
	align-items: center;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: white;
	transition: border 0.2s ease, background 0.2s ease;
}

#step7 .psg-text-input input {
	flex-grow: 1;
	width: 100%;
	padding: 10px 12px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: #111827;
}

#step7 .psg-text-input input:focus {
	border-color: #2563eb;
	background: #eff6ff;
	outline: none;
}

/* Back and info buttons */
#step7 a#step6-back {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

#step7 a#step6-back:hover {
	text-decoration: underline;
}

#step7 button#step6-info {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

#step7 button#step6-info:hover {
	background: #e5e7eb;
}

/* Submit button spacing */
#step7 .flex.space-x-4.w-full.justify-start.pt-4 {
	margin-top: 24px;
}


/* FIX: ensure form and questions stretch like before */
.left>form {
	width: 100%;
	max-width: 520px;
}

.left>form .question {
	width: 100%;
}

/* LAST STEP LOADER AND SPINNER */
/* Blur overlay */
.overlay-submit {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(5px);
	background: rgba(0, 0, 0, 0.2);
	z-index: 9990;
	display: none;
}

.overlay-submit.show {
	display: block;
}

/* Spinner */
.spinner-submit {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9991;
	display: none;
}

.spinner-submit.show {
	display: block;
}

.loader-submit {
	border: 6px solid #f3f3f3;
	border-top: 6px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Toast */
.toast-submit {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	background: linear-gradient(120deg,
			#00c6ff 0%,
			#0072ff 100%);
	color: white;
	padding: 1.2rem 2rem;
	border-radius: 12px;
	z-index: 9992;
	display: none;
	font-weight: 600;
	text-align: center;
	max-width: 90%;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-submit.show {
	display: block;
	transform: translate(-50%, -50%) scale(1);
}


/* LOADER ON NEXT BUTTON */

.btn-loader {
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	display: inline-block;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}


/* ================================
   MOBILE LAYOUT FIX
   Show BOTH columns stacked
================================ */

/* Mobile devices (phones & small tablets) */
@media (max-width: 768px) {
	.layout {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}

	/* Left column (testimonials) */
	.left {
		width: 100%;
		display: block;
		position: relative;
		order: 1;
		/* show first */
	}

	/* Right column (form / step info) */
	.right {
		width: 100%;
		display: block;
		position: relative;
		order: 2;
		/* show second */
	}

	/* Prevent hidden content issues */
	.left,
	.right {
		overflow: visible;
	}
}


/* =====================================
   MOBILE – WORKS ON ALL PHONES
   320px → 768px
===================================== */
@media (max-width: 768px) {

	/* Stack layout */
	.layout {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 16px;
		min-height: auto;
	}

	/* Left & right must BOTH show */
	.left,
	.right {
		width: 100%;
		display: block;
		position: relative;
		padding: 0;
		overflow: visible;
	}

	/* Testimonials first */
	.left {
		order: 1;
		padding-bottom: 24px;
		border-bottom: 1px solid #e5e7eb;
	}

	/* Form second */
	.right {
		order: 2;
		padding-top: 24px;
	}

	/* Cards must stretch full width */
	.step-info,
	.testimonial,
	.step3-info,
	.psg-card {
		max-width: 100%;
		width: 100%;
		min-height: auto;
	}

	/* Forms must stretch */
	.left>form,
	.question {
		max-width: 100%;
		width: 100%;
	}

	/* Prevent horizontal scroll (CRITICAL) */
	body {
		overflow-x: hidden;
	}
}