/**
 * Broker Registration form styles (Step 3).
 *
 * Self-contained under the `.y2bbl-` namespace — entirely independent
 * of the separate YES2Brokers Pro plugin's own CSS, and only ever
 * loaded on the page that actually uses [y2b_broker_registration].
 */

.y2bbl-registration-wrap {
	max-width: 700px;
	margin: 32px auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.y2bbl-registration-wrap *,
.y2bbl-registration-wrap *::before,
.y2bbl-registration-wrap *::after {
	box-sizing: border-box;
}

.y2bbl-registration-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba( 15, 23, 42, 0.08 );
	padding: 32px;
}

.y2bbl-registration-header {
	text-align: center;
	margin-bottom: 24px;
}

.y2bbl-registration-header h2 {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f172a;
}

.y2bbl-registration-header p {
	margin: 0;
	font-size: 0.85rem;
	color: #64748b;
}

.y2bbl-hidden {
	display: none !important;
}

/* ── SUCCESS STATE ── */
.y2bbl-registration-success {
	text-align: center;
	padding: 24px 8px 8px;
}

.y2bbl-success-icon {
	font-size: 2.5rem;
	margin-bottom: 8px;
}

.y2bbl-registration-success h3 {
	margin: 0 0 12px;
	font-size: 1.3rem;
	font-weight: 800;
	color: #15803d;
}

.y2bbl-registration-success p {
	margin: 0 0 8px;
	font-size: 0.92rem;
	color: #334155;
	line-height: 1.6;
}

/* ── FORM STRUCTURE ── */
.y2bbl-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 20px;
}

.y2bbl-fieldset legend {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2563eb;
	padding: 0 0 10px;
	width: 100%;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 14px;
}

.y2bbl-field {
	margin-bottom: 16px;
}

.y2bbl-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.y2bbl-required {
	color: #dc2626;
}

.y2bbl-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.y2bbl-input-wrap i.fa-solid:first-child {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	font-size: 0.9rem;
	pointer-events: none;
}

.y2bbl-input-wrap input[type="text"],
.y2bbl-input-wrap input[type="tel"],
.y2bbl-input-wrap input[type="email"],
.y2bbl-input-wrap input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 40px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.92rem;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.y2bbl-input-wrap input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.12 );
}

.y2bbl-input-wrap input.y2bbl-input-invalid {
	border-color: #dc2626;
}

.y2bbl-toggle-password {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.y2bbl-toggle-password:hover {
	color: #475569;
}

.y2bbl-field-error {
	display: block;
	margin-top: 5px;
	font-size: 0.76rem;
	font-weight: 600;
	color: #dc2626;
	min-height: 0;
}

.y2bbl-field-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 500;
	font-size: 0.85rem;
	color: #334155;
	cursor: pointer;
}

.y2bbl-field-checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
	cursor: pointer;
}

.y2bbl-general-error {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	color: #b91c1c;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 18px;
}

/* ── SUBMIT BUTTON — blue, per YES2Brokers branding ── */
/* ── PROFILE PHOTO UPLOAD ── */
.y2bbl-pp-upload-area {
	position: relative;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	background: #f8fafc;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.y2bbl-pp-upload-area:hover,
.y2bbl-pp-upload-area.y2bbl-pp-upload-dragover {
	border-color: #2563eb;
	background: #eff6ff;
}

.y2bbl-pp-upload-area i {
	font-size: 1.4rem;
	color: #2563eb;
	margin-bottom: 6px;
	display: block;
}

.y2bbl-pp-upload-area p {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

.y2bbl-pp-upload-area input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.y2bbl-pp-image-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.y2bbl-pp-image-preview {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.y2bbl-pp-image-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.y2bbl-pp-image-remove {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba( 15, 23, 42, 0.7 );
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	padding: 0;
}

.y2bbl-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.y2bbl-submit-btn:hover {
	background: #1d4ed8;
}

.y2bbl-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── RESPONSIVE: Tablet & Mobile ── */
@media ( max-width: 600px ) {
	.y2bbl-registration-wrap {
		margin: 16px auto;
		padding: 0 10px;
	}

	.y2bbl-registration-card {
		padding: 20px;
		border-radius: 12px;
	}

	.y2bbl-registration-header h2 {
		font-size: 1.25rem;
	}
}
