/* ── FMC KYC Degree Match Wizard Modal ─────────────────────────────────────── */

#fmc-kyc-modal, #fmc-kyc-modal * { box-sizing: border-box; }

.fmc-kyc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.fmc-kyc-overlay--open {
	opacity: 1;
	pointer-events: auto;
}

.fmc-kyc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.fmc-kyc-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 640px;
	max-height: 95vh;
	overflow-y: auto;
	padding: 0 0 28px;
	margin: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	font-family: Inter, sans-serif;
}

.fmc-kyc-body-lock {
	overflow: hidden;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */

.fmc-kyc-progress-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px 0;
}

.fmc-kyc-progress-bar {
	flex: 1;
	height: 4px;
	background: #dbe9ff;
	border-radius: 4px;
	overflow: hidden;
}

.fmc-kyc-progress-fill {
	height: 100%;
	background: #072FB5;
	border-radius: 4px;
	transition: width 0.3s ease;
	width: 20%;
}

.fmc-kyc-step-count {
	font-size: 13px;
	color: #848484;
	white-space: nowrap;
}

/* ── Step header (back button + question on same line) ────────────────────── */

.fmc-kyc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px 0;
}

.fmc-kyc-back {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #343434;
	display: flex;
	align-items: center;
	border-radius: 6px;
	flex-shrink: 0;
}

.fmc-kyc-back:hover,
#fmc-kyc-modal .fmc-kyc-back:hover {
	background: rgba(143, 59, 0, 0.08) !important;
	color: #343434 !important;
}

/* ── Question (inside header row) ────────────────────────────────────────── */

.fmc-kyc-question {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	font-style: normal;
	color: #8F3B00;
	margin: 0;
	padding: 0;
	line-height: 130%;
	flex: 1;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

@media (min-width: 541px) {
	.fmc-kyc-question {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ── Options grid ─────────────────────────────────────────────────────────── */

.fmc-kyc-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 16px 24px 0;
}

.fmc-kyc-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	border: 1.5px solid #d7d7d7;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
	width: 100%;
}

.fmc-kyc-option:hover {
	border-color: rgba(143, 59, 0, 0.4);
	background: rgba(143, 59, 0, 0.05);
}

.fmc-kyc-option--selected {
	border-color: #8F3B00;
	background: rgba(143, 59, 0, 0.07);
}

.fmc-kyc-option-label {
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	font-style: normal;
	color: #343434;
	line-height: 150%;
}

.fmc-kyc-option--selected .fmc-kyc-option-label {
	color: #8F3B00;
}

/* ── Checkbox (step 5) ────────────────────────────────────────────────────── */

.fmc-kyc-checkbox {
	width: 18px;
	height: 18px;
	border: 1.5px solid #747474;
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	display: inline-block;
}

.fmc-kyc-checkbox--checked {
	background: #8F3B00;
	border-color: #8F3B00;
}

.fmc-kyc-checkbox--checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}

/* ── Scrollable options (steps with many items) ───────────────────────────── */

.fmc-kyc-options--scrollable {
	max-height: 260px;
	overflow-y: auto;
	scrollbar-gutter: stable;
	padding-right: 20px;
}

.fmc-kyc-options--scrollable::-webkit-scrollbar {
	width: 4px;
}

.fmc-kyc-options--scrollable::-webkit-scrollbar-track {
	background: transparent;
}

.fmc-kyc-options--scrollable::-webkit-scrollbar-thumb {
	background: #d0d0d0;
	border-radius: 4px;
}

/* ── Continue button (all steps) ─────────────────────────────────────────── */

.fmc-kyc-continue {
	display: block;
	width: calc(100% - 48px);
	margin: 20px 24px 0;
	padding: 14px;
	background: #072FB5;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: Inter, sans-serif;
	transition: background 0.15s;
}

.fmc-kyc-continue:hover:not(:disabled) {
	background: #0625a0;
}

.fmc-kyc-continue:disabled {
	background: #c5c5c5;
	cursor: not-allowed;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
	.fmc-kyc-overlay {
		align-items: flex-end;
	}

	.fmc-kyc-card {
		margin: 0;
		border-radius: 20px 20px 0 0;
		max-height: 92dvh;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: 100%;
		padding: 0 0 32px;
	}

	.fmc-kyc-progress-wrap {
		padding: 20px 20px 0;
	}

	.fmc-kyc-header {
		padding: 16px 20px 0;
		gap: 8px;
	}

	#fmc-kyc-modal .fmc-kyc-question {
		font-size: 1rem !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}

	/* Single column on mobile */
	.fmc-kyc-options {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 16px 20px 0;
	}

	.fmc-kyc-option {
		padding: 14px 16px;
	}

	.fmc-kyc-option-label {
		font-size: 0.9375rem;
	}

	.fmc-kyc-option-sub {
		font-size: 0.875rem;
		font-weight: 400;
		line-height: 150%;
		color: #747474;
	}

	.fmc-kyc-options--scrollable {
		max-height: 50dvh;
	}

	.fmc-kyc-continue {
		width: calc(100% - 40px);
		margin: 16px 20px 0;
	}
}

/* ── Lead form (step 6) ───────────────────────────────────────────────────── */

.fmc-kyc-lead-form {
	padding: 12px 24px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fmc-kyc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fmc-kyc-field-label {
	font-family: Inter, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #343434;
}

.fmc-kyc-required {
	color: #c00;
}

.fmc-kyc-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #d7d7d7;
	border-radius: 10px;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	color: #343434;
	background: #fff;
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.fmc-kyc-input:focus {
	border-color: #8F3B00;
}

.fmc-kyc-input::placeholder {
	color: #b0b0b0;
}

.fmc-kyc-phone-wrap {
	display: flex;
	align-items: stretch;
	border: 1.5px solid #d7d7d7;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s;
}

.fmc-kyc-phone-wrap:focus-within {
	border-color: #8F3B00;
}

.fmc-kyc-phone-prefix {
	background: rgba(143, 59, 0, 0.06);
	color: #343434;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 12px 14px;
	border-right: 1.5px solid #d7d7d7;
	white-space: nowrap;
	display: flex;
	align-items: center;
}

.fmc-kyc-phone-wrap .fmc-kyc-input--phone,
#fmc-kyc-modal .fmc-kyc-phone-wrap .fmc-kyc-input--phone {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	flex: 1;
	background: transparent !important;
}

.fmc-kyc-phone-wrap .fmc-kyc-input--phone:focus,
#fmc-kyc-modal .fmc-kyc-phone-wrap .fmc-kyc-input--phone:focus {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.fmc-kyc-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848484' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.fmc-kyc-lead-error {
	display: none;
	color: #c00;
	font-family: Inter, sans-serif;
	font-size: 0.875rem;
	margin-top: -4px;
}

@media (max-width: 540px) {
	.fmc-kyc-lead-form {
		padding: 12px 20px 0;
	}
}

/* ── Skeleton loader ──────────────────────────────────────────────────────── */

@keyframes fmc-kyc-shimmer {
	0%   { background-position: -400px 0; }
	100% { background-position: 400px 0; }
}

.fmc-kyc-skeleton-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 16px 24px 0;
}

.fmc-kyc-skeleton-item {
	border-radius: 10px;
	border: 1.5px solid #ebebeb;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 58px;
}

.fmc-kyc-skeleton-line {
	border-radius: 6px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 400px 100%;
	animation: fmc-kyc-shimmer 1.4s ease-in-out infinite;
}

.fmc-kyc-skeleton-line--title {
	height: 18px;
	width: 55%;
}

.fmc-kyc-skeleton-line--sub {
	height: 13px;
	width: 80%;
}

@media (max-width: 540px) {
	.fmc-kyc-skeleton-grid {
		grid-template-columns: 1fr;
		padding: 16px 20px 0;
	}
}

/* ── Option sub-label (degree full name) ──────────────────────────────────── */

.fmc-kyc-option-label-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fmc-kyc-option-sub {
	font-family: Inter, sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	font-style: normal;
	color: #747474;
	line-height: 150%;
}
