/**
 * LearnDash Multi-Vendor — Registration form styles
 *
 * @package LearnDash_Multi_Vendor
 */

.ldmv-registration {
	--ldmv-primary: #2ea3f2;
	--ldmv-primary-hover: #1f96e8;
	--ldmv-primary-soft: #e8f6fe;
	--ldmv-icon-color: #64748b;
	--ldmv-border: #e2e8f0;
	--ldmv-border-strong: #cbd5e1;
	--ldmv-bg: #f8fafc;
	--ldmv-text: #0f172a;
	--ldmv-muted: #64748b;
	--ldmv-radius: 16px;
	--ldmv-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);

	max-width: 780px;
	margin: 0 auto 48px;
	font-family: inherit;
	color: var(--ldmv-text);
}

.ldmv-registration-status {
	margin-bottom: 20px;
}

.ldmv-registration-status .ldmv-notice {
	margin-bottom: 0;
}

.ldmv-notice-prominent {
	padding: 18px 22px;
	font-size: 15px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(22, 101, 52, 0.12);
}

.ldmv-notice-prominent strong {
	display: block;
	font-size: 17px;
	margin-bottom: 6px;
}

.ldmv-notice a {
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
}

.ldmv-notice-error a {
	color: #991b1b;
}

.ldmv-notice-warning a {
	color: #92400e;
}

.ldmv-registration-form--complete {
	position: relative;
	pointer-events: none;
	opacity: 0.55;
}

.ldmv-registration-form--complete::after {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
	border-radius: var(--ldmv-radius);
}

.ldmv-registration-form {
	background: #fff;
	border: 1px solid var(--ldmv-border);
	border-radius: var(--ldmv-radius);
	box-shadow: var(--ldmv-shadow);
	padding: 40px 44px;
}

.ldmv-form-section {
	border: none;
	margin: 0 0 32px;
	padding: 0;
}

.ldmv-form-section:last-of-type {
	margin-bottom: 0;
}

.ldmv-form-section legend {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ldmv-muted);
	padding: 0 0 14px;
	margin: 0 0 18px;
	width: 100%;
	border-bottom: 1px solid var(--ldmv-border);
}

.ldmv-form-row {
	display: grid;
	gap: 18px;
	margin-bottom: 18px;
}

.ldmv-form-row:last-child {
	margin-bottom: 0;
}

.ldmv-form-row-2 {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
	.ldmv-registration-form {
		padding: 28px 20px;
	}

	.ldmv-form-row-2 {
		grid-template-columns: 1fr;
	}
}

.ldmv-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.ldmv-form-group label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	line-height: 1.4;
}

.ldmv-form-group .required {
	color: #dc2626;
	font-weight: 700;
}

/* Icon + control shell */
.ldmv-field {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 48px;
	background: var(--ldmv-bg);
	border: 1px solid var(--ldmv-border-strong);
	border-radius: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ldmv-field:hover {
	border-color: #94a3b8;
	background: #fff;
}

.ldmv-field:focus-within {
	border-color: var(--ldmv-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ldmv-field-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 42px;
	height: 100%;
	min-height: 46px;
	color: var(--ldmv-icon-color);
	pointer-events: none;
}

.ldmv-field:focus-within .ldmv-field-icon {
	color: var(--ldmv-primary);
}

.ldmv-field input[type="text"],
.ldmv-field input[type="email"],
.ldmv-field input[type="tel"],
.ldmv-field input[type="url"],
.ldmv-field input[type="password"],
.ldmv-field select,
.ldmv-field textarea {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 12px 14px 12px 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ldmv-text);
	background: transparent;
	border: 0;
	border-radius: 0 12px 12px 0;
	box-shadow: none;
	box-sizing: border-box;
	appearance: none;
}

/* Hide browser-native password reveal controls. */
.ldmv-registration input[type="password"]::-ms-reveal,
.ldmv-registration input[type="password"]::-ms-clear {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

.ldmv-field input::placeholder,
.ldmv-field textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.ldmv-field input:focus,
.ldmv-field select:focus,
.ldmv-field textarea:focus {
	outline: none;
	box-shadow: none;
}

.ldmv-field--select select {
	padding-right: 40px;
	cursor: pointer;
	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='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/* Country searchable select */
.ldmv-country-picker {
	position: relative;
}

.ldmv-field--country {
	position: relative;
}

.ldmv-country-picker__select {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 12px 40px 12px 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ldmv-text);
	background: transparent;
	border: 0;
	border-radius: 0 12px 12px 0;
	box-shadow: none;
	appearance: none;
	cursor: pointer;
}

.ldmv-country-picker__chevron {
	position: absolute;
	top: 50%;
	right: 14px;
	display: inline-flex;
	color: #94a3b8;
	transform: translateY(-50%);
	pointer-events: none;
}

.ldmv-country-picker.is-enhanced .ldmv-country-picker__select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ldmv-country-picker.is-enhanced .ldmv-country-picker__chevron {
	z-index: 1;
}

.ldmv-country-picker__trigger {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 12px 40px 12px 0;
	border: 0;
	background: transparent;
	color: var(--ldmv-text);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}

.ldmv-country-picker__trigger.is-placeholder .ldmv-country-picker__label {
	color: #94a3b8;
}

.ldmv-country-picker__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ldmv-country-picker.is-open .ldmv-field--country {
	border-color: var(--ldmv-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.ldmv-country-picker.is-open .ldmv-country-picker__chevron {
	color: var(--ldmv-primary);
	transform: translateY(-50%) rotate(180deg);
}

.ldmv-country-picker__panel {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	right: 0;
	z-index: 40;
	display: none;
	flex-direction: column;
	max-height: 280px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ldmv-primary);
	border-top: 1px solid var(--ldmv-border);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.ldmv-country-picker.is-open .ldmv-country-picker__panel {
	display: flex;
}

.ldmv-country-picker__search {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--ldmv-border);
	border-radius: 0;
	background: #f8fafc;
	color: var(--ldmv-text);
	font-size: 14px;
	box-shadow: none;
	box-sizing: border-box;
}

.ldmv-country-picker__search:focus {
	outline: none;
	background: #fff;
}

.ldmv-country-picker__list {
	list-style: none;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	max-height: 220px;
}

.ldmv-country-picker__option {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.ldmv-country-picker__option:hover,
.ldmv-country-picker__option:focus {
	background: var(--ldmv-primary-soft);
	color: var(--ldmv-primary);
}

.ldmv-country-picker__option.is-selected {
	background: #eff6ff;
	color: #2ea3f2;
	font-weight: 700;
}

.ldmv-country-picker__empty {
	padding: 16px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	text-align: center;
}

.ldmv-field--textarea {
	align-items: flex-start;
}

.ldmv-field--textarea .ldmv-field-icon {
	align-items: flex-start;
	padding-top: 14px;
	min-height: 0;
	height: auto;
}

.ldmv-field--textarea textarea {
	resize: vertical;
	min-height: 96px;
	padding-top: 13px;
	padding-bottom: 13px;
	padding-right: 14px;
}

.ldmv-field input[readonly] {
	color: var(--ldmv-muted);
	cursor: not-allowed;
}

.ldmv-form-group.is-invalid .ldmv-field {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.ldmv-file-upload {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 16px;
	background: var(--ldmv-bg);
	border: 1px dashed var(--ldmv-border-strong);
	border-radius: 12px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ldmv-file-upload:hover {
	border-color: var(--ldmv-primary);
	background: var(--ldmv-primary-soft);
}

.ldmv-file-upload .ldmv-field-icon {
	width: 36px;
	min-height: 36px;
	color: var(--ldmv-primary);
}

.ldmv-file-upload__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ldmv-file-upload input[type="file"] {
	font-size: 14px;
	color: var(--ldmv-muted);
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.ldmv-field-hint {
	font-size: 12px;
	color: var(--ldmv-muted);
	margin: 0;
	line-height: 1.45;
}

.ldmv-form-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ldmv-border);
}

.ldmv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.ldmv-btn-primary {
	background: var(--ldmv-primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24);
	min-width: 190px;
}

.ldmv-registration-form .ldmv-btn-primary,
.ldmv-registration-form #ldmv-submit-btn {
	background-color: #2ea3f2;
	background-image: none;
	color: #fff;
	border: none;
}

.ldmv-btn-primary:hover,
.ldmv-btn-primary:focus,
.ldmv-registration-form .ldmv-btn-primary:hover,
.ldmv-registration-form .ldmv-btn-primary:focus,
.ldmv-registration-form #ldmv-submit-btn:hover,
.ldmv-registration-form #ldmv-submit-btn:focus {
	background-color: #2ea3f2;
	background-image: none;
	color: #fff;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
	transform: translateY(-1px);
}

.ldmv-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.ldmv-notice {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.ldmv-notice a {
	font-weight: 600;
	color: inherit;
}

.ldmv-notice-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ldmv-notice-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ldmv-notice-warning {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.ldmv-notice-info {
	background: var(--ldmv-primary-soft);
	color: #1f96e8;
	border: 1px solid #bfdbfe;
}

.ldmv-admin-note-box {
	text-align: left;
}

.ldmv-become-instructor {
	text-align: center;
}

.ldmv-form-error {
	font-size: 12px;
	color: #dc2626;
	margin-top: 2px;
	font-weight: 500;
}

/* -------------------------------------------------------------------------
   Registration success page
   ------------------------------------------------------------------------- */

.ldmv-registration-success-page {
	max-width: 640px;
}

.ldmv-success-card {
	text-align: center;
	padding: 48px 40px;
	background: #fff;
	border: 1px solid var(--ldmv-border);
	border-radius: var(--ldmv-radius);
	box-shadow: var(--ldmv-shadow);
}

.ldmv-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #16a34a;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}

.ldmv-success-card h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--ldmv-text);
	margin: 0 0 14px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.ldmv-success-message {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ldmv-muted);
	margin: 0 0 28px;
}

.ldmv-success-steps {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	text-align: left;
	display: grid;
	gap: 12px;
}

.ldmv-success-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--ldmv-bg);
	border: 1px solid var(--ldmv-border);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ldmv-text);
}

.ldmv-success-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e8f0;
	color: var(--ldmv-muted);
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.ldmv-success-step-icon.is-done {
	background: #dcfce7;
	color: #16a34a;
}

.ldmv-success-step-icon.is-current {
	background: var(--ldmv-primary-soft);
	color: var(--ldmv-primary);
}

.ldmv-success-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ldmv-btn-secondary {
	background: #fff;
	color: var(--ldmv-primary);
	border: 1px solid var(--ldmv-primary);
	box-shadow: none;
}

.ldmv-btn-secondary:hover {
	background: var(--ldmv-primary-soft);
	color: var(--ldmv-primary);
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.ldmv-success-card {
		padding: 32px 22px;
	}

	.ldmv-success-card h2 {
		font-size: 22px;
	}

	.ldmv-form-actions {
		justify-content: stretch;
	}

	.ldmv-btn-primary {
		width: 100%;
	}
}
