/* ============================================================
   LoveDate Child - Modern registration wizard
   Scoped entirely to .jws-modern-register so nothing else on
   the site (login form, edit-profile, etc.) is affected.
============================================================ */

.jws-modern-register {
	/* The theme's global --heading custom property is set to #ffffff
	   site-wide (see the inline :root style in <head>, driven by the
	   theme's own color settings - correct for things like text over
	   photos elsewhere, e.g. match/discover cards). Every var(--heading,
	   #b08d57) in this file assumed that variable would stay close to its
	   gold fallback, so inheriting white here silently turned pill labels,
	   dropdown field labels, and checkbox text invisible (white text on
	   this wizard's white/cream background). Redeclaring it on this
	   wrapper overrides it for every element inside the registration
	   wizard only, without touching the global site-wide setting. */
	--heading: #b08d57;
	max-width: 640px;
	margin: 60px auto;
	padding: 40px 44px 44px;
	background: var(--white, #fff);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(176, 141, 87, 0.08);
}

.jws-register-intro {
	text-align: center;
	margin-bottom: 28px;
}

.jws-register-intro h1 {
	font-size: 28px;
	font-weight: 700;
	color: #26374F;
	margin: 0 0 8px;
}

.jws-register-intro p {
	color: var(--body, #b08d57);
	opacity: 0.75;
	margin: 0;
	font-size: 15px;
}

/* ---------- Progress bar / steps ---------- */

.jws-register-progress {
	margin-bottom: 36px;
}

.jws-register-progress-bar {
	height: 6px;
	border-radius: 6px;
	background: #f8f5f0;
	overflow: hidden;
	margin-bottom: 18px;
}

.jws-register-progress-fill {
	height: 100%;
	width: 0%;
	border-radius: 6px;
	background: #6A2A3A;
	transition: width 0.35s ease;
}

.jws-register-steps-list {
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px;
}

.jws-step-dot {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	text-align: center;
	opacity: 0.45;
	transition: opacity 0.25s ease;
}

.jws-step-dot.is-active,
.jws-step-dot.is-done {
	opacity: 1;
}

.jws-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f8f5f0;
	color: var(--main, #b08d57);
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
}

.jws-step-dot.is-active .jws-step-number {
	background: #6A2A3A;
	color: #fff;
}

.jws-step-dot.is-done .jws-step-number {
	background: #6A2A3A;
	color: #fff;
}

.jws-step-label {
	font-size: 12px;
	color: var(--body, #b08d57);
	line-height: 1.3;
	max-width: 90px;
}

/* ---------- Step panels ---------- */

.jws-modern-register .register-section h2,
.jws-modern-register .jws-register-step h2 {
	font-size: 20px;
	font-weight: 700;
	color: #26374F;
	margin: 0 0 4px;
}

.jws-step-desc {
	color: var(--body, #b08d57);
	opacity: 0.7;
	font-size: 14px;
	margin: 0 0 24px;
}

.jws-modern-register .jws-register-step,
.jws-modern-register #basic-details-section {
	display: none;
}

.jws-modern-register .jws-register-step.is-active,
.jws-modern-register #basic-details-section.is-active {
	display: block;
	animation: jwsFadeIn 0.3s ease;
}

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

/* When JS hasn't loaded, fall back to showing everything in one long form. */
.jws-modern-register.no-js .jws-register-step,
.jws-modern-register.no-js #basic-details-section {
	display: block !important;
}
.jws-modern-register.no-js .jws-register-progress,
.jws-modern-register.no-js .jws-register-nav .jws-btn-next,
.jws-modern-register.no-js .jws-register-nav .jws-btn-back {
	display: none !important;
}
.jws-modern-register.no-js .jws-btn-submit {
	display: block !important;
}

/* ---------- Fields ---------- */

.jws-modern-register .jws-field,
.jws-modern-register .jws-fields-grid > div.editfield {
	margin-bottom: 22px;
}

.jws-modern-register label,
.jws-modern-register legend {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #26374F;
	margin-bottom: 8px;
}

.jws-required {
	color: #ff5a7a;
}

.jws-field-hint {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--body, #b08d57);
	opacity: 0.6;
}

.jws-modern-register input[type="text"],
.jws-modern-register input[type="email"],
.jws-modern-register input[type="password"],
.jws-modern-register input[type="number"],
.jws-modern-register select,
.jws-modern-register textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1.5px solid #f4efe8;
	border-radius: 12px;
	font-size: 15px;
	color: var(--heading, #b08d57);
	background: #fdfdfc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jws-modern-register input:focus,
.jws-modern-register select:focus,
.jws-modern-register textarea:focus {
	outline: none;
	border-color: var(--main, #b08d57);
	box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12);
	background: #fff;
}

.jws-modern-register input.jws-field-error,
.jws-modern-register .bp-field-error input,
.jws-modern-register .bp-field-error select {
	border-color: #ff5a7a;
}

.jws-password-wrap {
	position: relative;
}

.jws-password-wrap input {
	padding-right: 46px;
}

.jws-toggle-password {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--body, #b08d57);
	opacity: 0.55;
	padding: 8px;
	font-size: 16px;
}

.jws-toggle-password:hover {
	opacity: 1;
}

/* Radio / checkbox pill options */

.jws-modern-register .input-options.radio-button-options,
.jws-modern-register .input-options.checkbox-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jws-modern-register .option-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1.5px solid #f4efe8;
	border-radius: 30px;
	font-weight: 500;
	font-size: 14px;
	color: var(--heading, #b08d57);
	cursor: pointer;
	background: #fdfdfc;
	transition: all 0.2s ease;
}

.jws-modern-register .option-label:hover {
	border-color: var(--main, #b08d57);
}

.jws-modern-register .option-label input {
	accent-color: var(--main, #b08d57);
}

.jws-modern-register .option-label.jws-option-checked,
.jws-modern-register .option-label:has(input:checked) {
	border-color: var(--main, #b08d57);
	background: #b08d5714;
	color: var(--main, #b08d57);
}

.jws-modern-register .datebox-selects {
	display: flex;
	gap: 10px;
}

.jws-modern-register .datebox-selects select {
	flex: 1;
}

.jws-modern-register .field-visibility-settings-toggle,
.jws-modern-register .field-visibility-settings-notoggle {
	font-size: 12px;
	opacity: 0.6;
	margin-top: 8px;
}

.jws-modern-register .error {
	color: #ff5a7a;
	font-size: 13px;
	margin-top: 6px;
	font-weight: 600;
}

/* ---------- Navigation buttons ---------- */

.jws-register-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
	gap: 12px;
}

.jws-register-nav .jws-btn-submit {
	flex: 1;
	margin: 0;
}

.jws-btn-next,
.jws-btn-submit input,
.jws-btn-back {
	flex: 1;
	padding: 15px 20px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	border: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jws-btn-next,
.jws-btn-submit input {
	color: #fff;
	box-shadow: 0 10px 24px rgba(176, 141, 87, 0.35);
}

.jws-btn-submit input {
	background: linear-gradient(90deg, var(--main, #b08d57), var(--accent, #ff88ff));
}

/* "Continue" button only, requested 2026-10-13 - the final-step "Submit"/
   signup button above keeps its original gradient. */
.jws-btn-next {
	background: #6A2A3A;
}

.jws-btn-next:hover,
.jws-btn-submit input:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(176, 141, 87, 0.4);
}

.jws-btn-back {
	flex: 0 0 auto;
	background: #faf7f3;
	color: var(--heading, #b08d57);
}

.jws-btn-back:hover {
	background: #f4efe8;
}

/* ---------- Success screen ---------- */

.jws-register-success {
	text-align: center;
	padding: 20px 0;
}

.jws-register-success-icon {
	font-size: 46px;
	color: var(--green, #70833c);
	margin-bottom: 14px;
}

.jws-register-success p {
	font-size: 16px;
	/* Hardcoded, not var(--heading, #b08d57): .jws-register-success is its
	   own top-level screen (buddypress/members/register.php), not nested
	   inside .jws-modern-register, so it doesn't get that wrapper's
	   --heading override and would otherwise inherit the site-wide
	   --heading: #ffffff, making this text invisible. */
	color: #b08d57;
	max-width: 440px;
	margin: 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.jws-modern-register {
		margin: 20px 12px;
		padding: 28px 20px 32px;
		border-radius: 16px;
	}

	.jws-register-intro h1 {
		font-size: 22px;
	}

	.jws-step-label {
		display: none;
	}

	.jws-register-nav {
		flex-direction: column-reverse;
	}

	.jws-btn-back,
	.jws-btn-next,
	.jws-register-nav .jws-btn-submit {
		width: 100%;
	}
}

/* ============================================================
   Photo verification step
============================================================ */

.jws-face-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}

.jws-face-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.jws-face-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	/* Hardcoded, not var(--heading,...): reused on the standalone
	   /verify-photo/ page too, same reasoning as .jws-face-btn above. */
	color: #26374F;
}

.jws-face-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f8f5f0;
	color: var(--main, #b08d57);
	font-size: 12px;
	font-weight: 700;
}

.jws-face-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	border: 1.5px dashed #eae1d3;
	border-radius: 14px;
	background: #fdfdfc;
	overflow: hidden;
}

.jws-face-frame img,
.jws-face-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mirror the live preview like a mirror; captured stills stay true to life. */
.jws-face-frame video { transform: scaleX(-1); }

.jws-face-placeholder {
	padding: 0 12px;
	text-align: center;
	font-size: 13.5px;
	color: var(--body, #b08d57);
	opacity: 0.55;
}

.jws-face-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jws-face-btn,
.jws-face-verify-btn {
	padding: 11px 16px;
	border: 1.5px solid #f4efe8;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	/* Hardcoded, not var(--heading, #b08d57): this capture UI is reused on
	   the standalone /verify-photo/ page as well as inside the
	   registration wizard (see jws_face_capture_markup()), so it can't
	   rely on .jws-modern-register's local --heading override - and the
	   site-wide --heading is #ffffff, which made this white-on-white and
	   invisible on both button and background otherwise. */
	color: #b08d57;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.jws-face-btn:hover { border-color: var(--main, #b08d57); }

.jws-face-btn.is-primary {
	background: var(--main, #b08d57);
	border-color: var(--main, #b08d57);
	color: #fff;
}

.jws-face-btn:disabled { opacity: 0.55; cursor: progress; }

.jws-face-verify-btn {
	width: 100%;
	background: #6A2A3A;
	border-color: #6A2A3A;
	color: #fff;
}

.jws-face-verify-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.jws-face-status {
	min-height: 22px;
	margin: 0 0 14px;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--body, #b08d57);
}

.jws-face-status:empty { display: none; }

.jws-face-status[data-state="error"] {
	padding: 11px 14px;
	border-radius: 10px;
	background: #fff0f2;
	color: #c2304f;
	font-weight: 600;
}

.jws-face-status[data-state="ok"] {
	padding: 11px 14px;
	border-radius: 10px;
	background: #e8f5ee;
	color: #1d7a4b;
	font-weight: 600;
}

.jws-face-status[data-state="busy"]::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border: 2px solid var(--main, #b08d57);
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: jwsVoiceSpin 0.8s linear infinite;
}

/* "Continue" is still clickable (it explains what's missing) but reads as unavailable. */
.jws-btn-next.is-locked { opacity: 0.5; }

.jws-face-frame [hidden],
.jws-face-actions [hidden],
.jws-face-verify-btn[hidden] { display: none !important; }

@media (max-width: 520px) {
	.jws-face-grid { grid-template-columns: 1fr; }
	.jws-face-frame { aspect-ratio: 4 / 3; }
}

/* A refused verification should be impossible to miss. */
.jws-btn-next.is-locked { cursor: not-allowed; }

.jws-face-status.is-shaking { animation: jwsFaceShake 0.45s ease; }

@keyframes jwsFaceShake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
	.jws-face-status.is-shaking { animation: none; }
}

/* ============================================================
   Layout + field polish (v2)
   BuddyPress/theme rules float the step panels and shrink inputs;
   the #buddypress prefix wins that specificity fight so every step
   fills one centred card with full-width, evenly spaced fields.
============================================================ */

#buddypress .jws-modern-register {
	display: flow-root;
	width: calc(100% - 32px);
	max-width: 680px;
	margin: 56px auto 72px;
	padding: 44px 48px 48px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #f1e9dc;
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(176, 141, 87, 0.12);
}

#buddypress .jws-modern-register #signup_form,
#buddypress .jws-modern-register .jws-register-form {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}

/* Kill the legacy float/width on every step panel. */
#buddypress .jws-modern-register .register-section,
#buddypress .jws-modern-register .jws-register-step,
#buddypress .jws-modern-register #basic-details-section,
#buddypress .jws-modern-register #profile-details-section,
#buddypress .jws-modern-register .jws-fields-grid {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
#buddypress .jws-modern-register #profile-details-section { display: block; }

/* Intro + step headings, centred and consistent. */
#buddypress .jws-modern-register .jws-register-intro { margin-bottom: 30px; }
#buddypress .jws-modern-register .jws-register-intro h1 {
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 0;
}
#buddypress .jws-modern-register .jws-register-intro p { line-height: 1.5; }

#buddypress .jws-modern-register .jws-register-progress { margin-bottom: 34px; }
#buddypress .jws-modern-register .jws-step-number { width: 34px; height: 34px; font-size: 14px; }
#buddypress .jws-modern-register .jws-step-label { max-width: 96px; font-size: 12px; }

#buddypress .jws-modern-register .jws-register-step h2,
#buddypress .jws-modern-register #basic-details-section h2 {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 6px;
	padding: 0;
	text-align: left;
}
#buddypress .jws-modern-register .jws-step-desc {
	margin: 0 0 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid #f4efe8;
	line-height: 1.5;
}

/* Fields: one column, full width, uniform rhythm. */
#buddypress .jws-modern-register .jws-field,
#buddypress .jws-modern-register .jws-fields-grid > div.editfield {
	float: none;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
	box-sizing: border-box;
}
#buddypress .jws-modern-register fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
#buddypress .jws-modern-register label,
#buddypress .jws-modern-register legend {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

#buddypress .jws-modern-register input[type="text"],
#buddypress .jws-modern-register input[type="email"],
#buddypress .jws-modern-register input[type="password"],
#buddypress .jws-modern-register input[type="number"],
#buddypress .jws-modern-register input[type="url"],
#buddypress .jws-modern-register input[type="tel"],
#buddypress .jws-modern-register select,
#buddypress .jws-modern-register textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1.5px solid #eadfcf;
	border-radius: 12px;
	background-color: #fdfcfa;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}
#buddypress .jws-modern-register textarea {
	height: auto;
	min-height: 120px;
	padding: 14px 16px;
	resize: vertical;
}
#buddypress .jws-modern-register select {
	padding-right: 40px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b08d57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
#buddypress .jws-modern-register input::placeholder,
#buddypress .jws-modern-register textarea::placeholder { color: #c9b28a; opacity: 1; }

#buddypress .jws-modern-register input:focus,
#buddypress .jws-modern-register select:focus,
#buddypress .jws-modern-register textarea:focus {
	border-color: var(--main, #b08d57);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.15);
}

/* Password eye sits inside the field. */
#buddypress .jws-modern-register .jws-password-wrap { position: relative; width: 100%; }
#buddypress .jws-modern-register .jws-password-wrap input { padding-right: 52px; }
#buddypress .jws-modern-register .jws-toggle-password {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
}
#buddypress .jws-modern-register .jws-toggle-password:hover { background: #f8f2e8; }
#buddypress .jws-modern-register #pass-strength-result {
	width: 100%;
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	box-sizing: border-box;
}
#buddypress .jws-modern-register #pass-strength-result:empty { display: none; }

#buddypress .jws-modern-register .jws-field-hint { margin: 8px 0 0; line-height: 1.45; }

/* Pill options (radio / checkbox). */
#buddypress .jws-modern-register .input-options.radio-button-options,
#buddypress .jws-modern-register .input-options.checkbox-options { gap: 10px; margin: 0; }
#buddypress .jws-modern-register .option-label {
	margin: 0;
	padding: 12px 20px;
	border: 1.5px solid #eadfcf;
	background: #fdfcfa;
}
#buddypress .jws-modern-register .option-label input[type="radio"],
#buddypress .jws-modern-register .option-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
}
#buddypress .jws-modern-register .option-label:has(input:checked) { background: #f8f1e5; }

/* Birth date: three equal selects. */
#buddypress .jws-modern-register .datebox-selects { display: flex; gap: 12px; }
#buddypress .jws-modern-register .datebox-selects select { flex: 1 1 0; min-width: 0; }

#buddypress .jws-modern-register .field-visibility-settings-toggle,
#buddypress .jws-modern-register .field-visibility-settings-notoggle {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.4;
}
#buddypress .jws-modern-register .visibility-toggle-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--main, #b08d57);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

/* Buttons: equal height, aligned in one row. */
#buddypress .jws-modern-register .jws-register-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 14px;
	margin: 34px 0 0;
	padding-top: 26px;
	border-top: 1px solid #f4efe8;
}
#buddypress .jws-modern-register .jws-btn-next,
#buddypress .jws-modern-register .jws-btn-back,
#buddypress .jws-modern-register .jws-btn-submit input {
	height: 54px;
	margin: 0;
	padding: 0 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2px;
	text-transform: none;
	box-sizing: border-box;
}
#buddypress .jws-modern-register .jws-btn-next,
#buddypress .jws-modern-register .jws-btn-submit input {
	flex: 1 1 auto;
	width: 100%;
	box-shadow: 0 10px 24px rgba(176, 141, 87, 0.3);
}
#buddypress .jws-modern-register .jws-btn-submit input {
	background: var(--main, #b08d57);
}
#buddypress .jws-modern-register .jws-btn-next {
	background: #6A2A3A;
}
#buddypress .jws-modern-register .jws-btn-back {
	flex: 0 0 auto;
	min-width: 120px;
	background: #fff;
	border: 1.5px solid #eadfcf;
	color: var(--main, #b08d57);
	box-shadow: none;
}
#buddypress .jws-modern-register .jws-btn-back:hover { border-color: var(--main, #b08d57); background: #fbf7f0; }
#buddypress .jws-modern-register .jws-btn-submit { flex: 1 1 auto; display: flex; margin: 0; }

/* Photo step. */
#buddypress .jws-modern-register .jws-face-grid { gap: 20px; margin-bottom: 20px; }
#buddypress .jws-modern-register .jws-face-frame { border-color: #e4d5bb; border-radius: 16px; background: #fdfcfa; }
#buddypress .jws-modern-register .jws-face-actions { gap: 10px; }
#buddypress .jws-modern-register .jws-face-btn,
#buddypress .jws-modern-register .jws-face-verify-btn {
	height: 46px;
	padding: 0 18px;
	border: 1.5px solid #eadfcf;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#buddypress .jws-modern-register .jws-face-btn.is-primary,
#buddypress .jws-modern-register .jws-face-verify-btn { border-color: var(--main, #b08d57); }
#buddypress .jws-modern-register .jws-face-verify-btn { width: 100%; height: 50px; }

@media (max-width: 600px) {
	#buddypress .jws-modern-register { margin: 20px auto 40px; padding: 28px 20px 30px; border-radius: 18px; }
	#buddypress .jws-modern-register .jws-register-intro h1 { font-size: 24px; }
	#buddypress .jws-modern-register .datebox-selects { flex-direction: column; }
	#buddypress .jws-modern-register .jws-register-nav { flex-direction: column-reverse; }
	#buddypress .jws-modern-register .jws-btn-back { width: 100%; }
}

/* ---------- v3: beat BuddyPress' per-field width rules and finish alignment ---------- */

#buddypress .jws-modern-register input[type="text"],
#buddypress .jws-modern-register input[type="email"],
#buddypress .jws-modern-register input[type="password"],
#buddypress .jws-modern-register input[type="number"],
#buddypress .jws-modern-register input[type="url"],
#buddypress .jws-modern-register input[type="tel"],
#buddypress .jws-modern-register select,
#buddypress .jws-modern-register textarea {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}
#buddypress .jws-modern-register .datebox-selects select { width: auto !important; flex: 1 1 0; }
#buddypress .jws-modern-register .datebox-selects { align-items: center; }
#buddypress .jws-modern-register .datebox-selects label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.7;
	flex: 0 0 auto;
}

/* Primary button text must stay readable on gold. */
#buddypress .jws-modern-register .jws-btn-next,
#buddypress .jws-modern-register .jws-btn-submit input,
#buddypress .jws-modern-register .jws-face-btn.is-primary,
#buddypress .jws-modern-register .jws-face-verify-btn {
	color: #fff !important;
}
#buddypress .jws-modern-register .jws-btn-back { color: var(--main, #b08d57) !important; }

/* Pills: radio/checkbox and text on one line, vertically centred. */
#buddypress .jws-modern-register .option-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1.2;
}
#buddypress .jws-modern-register .option-label input[type="radio"],
#buddypress .jws-modern-register .option-label input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px !important;
	min-height: 0;
	margin: 0 !important;
	accent-color: var(--main, #b08d57);
}

/* Visibility line: quiet helper text with a small inline link. */
#buddypress .jws-modern-register .field-visibility-settings-toggle,
#buddypress .jws-modern-register .field-visibility-settings-notoggle {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-style: normal;
	opacity: 0.75;
}
#buddypress .jws-modern-register .visibility-toggle-link,
#buddypress .jws-modern-register button.visibility-toggle-link {
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none !important;
	box-shadow: none;
	color: var(--main, #b08d57) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
}
#buddypress .jws-modern-register .field-visibility-settings {
	margin-top: 10px;
	padding: 14px 16px;
	border: 1px solid #eadfcf;
	border-radius: 12px;
	background: #fdfcfa;
}
#buddypress .jws-modern-register .field-visibility-settings-close {
	margin-top: 8px;
	padding: 6px 14px;
	border: 1px solid #eadfcf;
	border-radius: 8px;
	background: #fff;
	color: var(--main, #b08d57);
	font-size: 12px;
	cursor: pointer;
}

/* Required markers written by BuddyPress as "(required)". */
#buddypress .jws-modern-register .bp-required-field-label { color: #d64a68; font-size: 12px; font-weight: 600; }

/* ---------- v4: Select2-enhanced dropdowns match the plain fields ---------- */
#buddypress .jws-modern-register .select2-container {
	width: 100% !important;
	max-width: 100%;
	display: block;
}
#buddypress .jws-modern-register .datebox-selects .select2-container { flex: 1 1 0; width: auto !important; min-width: 0; }
#buddypress .jws-modern-register .select2-container .select2-selection--single {
	height: 52px;
	display: flex;
	align-items: center;
	border: 1.5px solid #eadfcf;
	border-radius: 12px;
	background: #fdfcfa;
	box-sizing: border-box;
}
#buddypress .jws-modern-register .select2-container .select2-selection__rendered {
	padding: 0 40px 0 16px;
	line-height: 1.4;
	font-size: 15px;
	color: var(--heading, #b08d57);
}
#buddypress .jws-modern-register .select2-container .select2-selection__arrow {
	height: 100%;
	right: 10px;
}
#buddypress .jws-modern-register .select2-container--open .select2-selection--single,
#buddypress .jws-modern-register .select2-container--focus .select2-selection--single {
	border-color: var(--main, #b08d57);
	box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.15);
	background: #fff;
}
.select2-dropdown { border-color: #eadfcf; border-radius: 12px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #b08d57; color: #fff; }

/* Select2 (Birthday Day/Month/Year, and other dropdown fields) appends its
   open options list to <body>, not inside .jws-modern-register - so it
   doesn't inherit the --heading override set there, and instead inherits
   the site-wide --heading: #ffffff, making every option except the
   highlighted one invisible (white text on white). The highlighted/
   selected row above already sets its own color and is unaffected. */
.select2-container--default .select2-results__option {
	color: #3a2f27;
}

/* ---------- v5: photo step buttons ---------- */
#buddypress .jws-modern-register .jws-face-verify-btn {
	background: #6A2A3A !important;
}
#buddypress .jws-modern-register .jws-face-actions .jws-face-btn { flex: 1 1 0; }
#buddypress .jws-modern-register .jws-face-btn:not(.is-primary) { background: #fff; color: #b08d57 !important; }

/* Selfie capture ("Take selfie") button only - requested 2026-10-12.
   ID selector + !important so this wins regardless of its .is-primary/
   :not(.is-primary) state. */
#jws-face-capture-btn {
	background: #B08D57 !important;
	border-color: #B08D57 !important;
	color: red !important;
}

/* ---------- v6: range fields, clear links, submit alignment ---------- */
#buddypress .jws-modern-register .bpxcftr-from-to-edit-field {
	display: flex;
	align-items: center;
	gap: 12px;
}
#buddypress .jws-modern-register .bpxcftr-from-to-edit-field input { flex: 1 1 0; min-width: 0; width: auto !important; }
#buddypress .jws-modern-register .bpxcftr-fromto-edit-separator { flex: 0 0 auto; color: var(--main, #b08d57); font-weight: 700; }

#buddypress .jws-modern-register a.clear-value,
#buddypress .jws-modern-register .clear-value {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--main, #b08d57);
	text-decoration: underline;
	cursor: pointer;
}

#buddypress .jws-modern-register .jws-register-nav .submit,
#buddypress .jws-modern-register .jws-register-nav .jws-btn-submit {
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
	flex: 1 1 auto;
}
#buddypress .jws-modern-register .jws-btn-submit input[type="submit"] { width: 100% !important; margin: 0 !important; }

/* ============================================================
   v7: responsive behaviour (desktop > tablet > phone)
============================================================ */

#buddypress .jws-modern-register,
#buddypress .jws-modern-register * { min-width: 0; }
#buddypress .jws-modern-register { overflow-wrap: anywhere; }
#buddypress .jws-modern-register img,
#buddypress .jws-modern-register video { max-width: 100%; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	#buddypress .jws-modern-register {
		margin: 40px auto 56px;
		padding: 36px 34px 40px;
		border-radius: 22px;
	}
}

/* ---------- Large phones / small tablets ---------- */
@media (max-width: 600px) {
	#buddypress .jws-modern-register {
		width: calc(100% - 24px);
		margin: 16px auto 32px;
		padding: 26px 18px 28px;
		border-radius: 18px;
		box-shadow: 0 14px 40px rgba(176, 141, 87, 0.12);
	}

	#buddypress .jws-modern-register .jws-register-intro { margin-bottom: 22px; }
	#buddypress .jws-modern-register .jws-register-intro h1 { font-size: 24px; }
	#buddypress .jws-modern-register .jws-register-intro p { font-size: 14px; }

	/* Progress: numbered dots only, the active step's name is shown below the bar. */
	#buddypress .jws-modern-register .jws-register-progress { margin-bottom: 26px; }
	#buddypress .jws-modern-register .jws-register-progress-bar { margin-bottom: 14px; }
	#buddypress .jws-modern-register .jws-register-steps-list { gap: 4px; }
	#buddypress .jws-modern-register .jws-step-dot { flex: 1 1 0; }
	#buddypress .jws-modern-register .jws-step-number { width: 30px; height: 30px; font-size: 13px; margin-bottom: 0; }
	#buddypress .jws-modern-register .jws-step-label { display: none; }
	#buddypress .jws-modern-register .jws-step-dot.is-active .jws-step-label {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		margin-top: 40px;
		max-width: none;
		font-size: 13px;
		font-weight: 600;
		text-align: center;
		color: var(--main, #b08d57);
	}
	#buddypress .jws-modern-register .jws-register-steps-list { position: relative; padding-bottom: 26px; }
	#buddypress .jws-modern-register .jws-step-dot { position: static; }

	#buddypress .jws-modern-register .jws-register-step h2,
	#buddypress .jws-modern-register #basic-details-section h2 { font-size: 20px; }
	#buddypress .jws-modern-register .jws-step-desc { font-size: 13.5px; margin-bottom: 22px; padding-bottom: 18px; }

	/* 16px fields stop iOS from zooming in on focus. */
	#buddypress .jws-modern-register input[type="text"],
	#buddypress .jws-modern-register input[type="email"],
	#buddypress .jws-modern-register input[type="password"],
	#buddypress .jws-modern-register input[type="number"],
	#buddypress .jws-modern-register input[type="url"],
	#buddypress .jws-modern-register input[type="tel"],
	#buddypress .jws-modern-register select,
	#buddypress .jws-modern-register textarea {
		height: 50px;
		font-size: 16px;
	}
	#buddypress .jws-modern-register textarea { height: auto; }
	#buddypress .jws-modern-register .select2-container .select2-selection--single { height: 50px; }
	#buddypress .jws-modern-register .select2-container .select2-selection__rendered { font-size: 16px; }

	#buddypress .jws-modern-register .jws-field,
	#buddypress .jws-modern-register .jws-fields-grid > div.editfield { margin-bottom: 20px; }

	/* Birth date: full-width stacked selects with their captions above. */
	#buddypress .jws-modern-register .datebox-selects { flex-direction: column; align-items: stretch; gap: 8px; }
	#buddypress .jws-modern-register .datebox-selects select,
	#buddypress .jws-modern-register .datebox-selects .select2-container { width: 100% !important; flex: none; }
	#buddypress .jws-modern-register .datebox-selects label { margin: 6px 0 0; }

	/* Pills wrap and stay tappable. */
	#buddypress .jws-modern-register .option-label { padding: 11px 16px; font-size: 14px; }
	#buddypress .jws-modern-register .input-options.radio-button-options,
	#buddypress .jws-modern-register .input-options.checkbox-options { gap: 8px; }

	/* Age range keeps two boxes side by side. */
	#buddypress .jws-modern-register .bpxcftr-from-to-edit-field { gap: 8px; }

	/* Visibility helper: text on one line, link underneath. */
	#buddypress .jws-modern-register .field-visibility-settings-toggle { flex-direction: column; align-items: flex-start; gap: 4px; }

	/* Photo step: single column, roomy touch targets. */
	#buddypress .jws-modern-register .jws-face-grid { grid-template-columns: 1fr; gap: 22px; }
	#buddypress .jws-modern-register .jws-face-frame { aspect-ratio: 4 / 3; }
	#buddypress .jws-modern-register .jws-face-actions { flex-direction: column; }
	#buddypress .jws-modern-register .jws-face-actions .jws-face-btn { width: 100%; flex: none; height: 48px; }
	#buddypress .jws-modern-register .jws-face-verify-btn { height: 50px; }

	/* Buttons: Continue on top (thumb reach), Back underneath, both full width. */
	#buddypress .jws-modern-register .jws-register-nav {
		flex-direction: column-reverse;
		gap: 10px;
		margin-top: 26px;
		padding-top: 20px;
	}
	#buddypress .jws-modern-register .jws-btn-next,
	#buddypress .jws-modern-register .jws-btn-back,
	#buddypress .jws-modern-register .jws-btn-submit,
	#buddypress .jws-modern-register .jws-btn-submit input { width: 100% !important; flex: none; }
	#buddypress .jws-modern-register .jws-btn-next,
	#buddypress .jws-modern-register .jws-btn-back,
	#buddypress .jws-modern-register .jws-btn-submit input { height: 52px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
	#buddypress .jws-modern-register { width: calc(100% - 16px); padding: 22px 14px 24px; }
	#buddypress .jws-modern-register .jws-register-intro h1 { font-size: 22px; }
	#buddypress .jws-modern-register .jws-step-number { width: 28px; height: 28px; font-size: 12px; }
	#buddypress .jws-modern-register .option-label { padding: 10px 14px; font-size: 13.5px; }
}

/* ---------- Landscape phones: keep the camera preview short ---------- */
@media (max-height: 500px) and (orientation: landscape) {
	#buddypress .jws-modern-register .jws-face-frame { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
	#buddypress .jws-modern-register .field-visibility-settings-toggle,
	#buddypress .jws-modern-register .field-visibility-settings-notoggle { text-align: left; }
}

@media (max-width: 600px) {
	#buddypress .jws-modern-register p.field-visibility-settings-toggle,
	#buddypress .jws-modern-register p.field-visibility-settings-notoggle {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: baseline !important;
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 4px 10px;
	}
}

/* ============================================================
   Resend verification email (confirmation screen + activate page)
============================================================ */

#buddypress .jws-register-success { max-width: 460px; margin: 0 auto; }

#buddypress .jws-resend-activation {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #f4efe8;
}
#buddypress .jws-resend-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	border: 1.5px solid #eadfcf;
	border-radius: 12px;
	background: #fff;
	color: var(--main, #b08d57);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
#buddypress .jws-resend-btn:hover { border-color: var(--main, #b08d57); background: #fbf7f0; }
#buddypress .jws-resend-btn:disabled { opacity: 0.55; cursor: progress; }
#buddypress .jws-resend-status {
	min-height: 18px;
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--body, #767676);
}
#buddypress .jws-resend-status:empty { display: none; }

/* Activation page, styled to match the rest of the wizard. */
#buddypress .jws-activate-wrap {
	max-width: 520px;
	margin: 56px auto 72px;
	padding: 44px 48px;
	background: #fff;
	border: 1px solid #f1e9dc;
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(176, 141, 87, 0.12);
	text-align: center;
}
#buddypress .jws-activate-wrap .jws-register-success-icon { font-size: 46px; color: var(--green, #70833c); margin-bottom: 14px; }
/* Hardcoded, not var(--heading, #b08d57): .jws-activate-wrap (the "Account
   verified" screen, buddypress/members/activate.php) is its own top-level
   page, not nested inside .jws-modern-register, so it would otherwise
   inherit the site-wide --heading: #ffffff and be invisible. */
#buddypress .jws-activate-wrap h1 { font-size: 24px; margin: 0 0 10px; color: #b08d57; }
#buddypress .jws-activate-wrap p { font-size: 15px; color: var(--body, #555); line-height: 1.5; }
#buddypress .jws-activate-wrap .jws-activate-error-icon { font-size: 46px; color: #d64a68; margin-bottom: 14px; }
#buddypress .jws-activate-wrap .jws-btn-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 30px;
	margin-top: 10px;
	border-radius: 12px;
	background: var(--main, #b08d57);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 600px) {
	#buddypress .jws-activate-wrap { margin: 20px auto 40px; padding: 28px 20px; border-radius: 18px; }
}

/* ============================================================
   Google sign-up button (step 1)
============================================================ */
#buddypress .jws-modern-register .jws-social-login { margin-bottom: 18px; }
#buddypress .jws-modern-register .jws-social-login .nsl-container { width: 100%; }
#buddypress .jws-modern-register .jws-social-login .nsl-container-buttons a {
	width: 100% !important;
	border-radius: 12px !important;
	border: 1.5px solid #eadfcf !important;
}
#buddypress .jws-modern-register .jws-social-login .nsl-button {
	height: 52px !important;
	border-radius: 12px !important;
	font-weight: 600;
}
#buddypress .jws-modern-register .jws-social-divider {
	position: relative;
	text-align: center;
	margin: 0 0 22px;
}
#buddypress .jws-modern-register .jws-social-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #f4efe8;
}
#buddypress .jws-modern-register .jws-social-divider span {
	position: relative;
	display: inline-block;
	padding: 0 14px;
	background: #fff;
	color: var(--body, #999);
	font-size: 13px;
}

/* ============================================================
   Standalone "Verify Your Photo" page (post-login, e.g. Google/Facebook)
============================================================ */
.jws-standalone-verify-wrap { min-height: 60vh; display: flex; align-items: flex-start; justify-content: center; background: var(--section-bg, #f8faff); padding: 0 16px; }
.jws-standalone-verify-wrap .jws-modern-register { width: 100%; }

/* ============================================================
   Real-time username/email availability feedback
============================================================ */
#buddypress .jws-modern-register .jws-field-availability {
	margin: 6px 0 0;
	font-size: 12.5px;
	min-height: 16px;
}
#buddypress .jws-modern-register .jws-field-availability:empty { display: none; }
#buddypress .jws-modern-register .jws-field-availability[data-state="taken"] { color: #d64a68; font-weight: 600; }
#buddypress .jws-modern-register .jws-field-availability[data-state="checking"] { color: var(--body, #999); }
#buddypress .jws-modern-register .jws-field-availability[data-state="checking"]::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border: 1.5px solid var(--main, #b08d57);
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: jwsAvailabilitySpin 0.8s linear infinite;
}
@keyframes jwsAvailabilitySpin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Mandatory consent checkbox (age / Terms / Privacy / data processing). */
#buddypress .jws-modern-register .jws-register-consent {
	margin: 18px 0;
	padding: 14px 16px;
	background: #faf8f5;
	border: 1px solid #e6ddd0;
	border-radius: 8px;
}
#buddypress .jws-modern-register .jws-register-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 400;
}
#buddypress .jws-modern-register .jws-register-consent-label input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--main, #b08d57);
	cursor: pointer;
}
#buddypress .jws-modern-register .jws-register-consent-text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--body, #555);
}
#buddypress .jws-modern-register .jws-register-consent-text a {
	color: var(--main, #b08d57);
	text-decoration: underline;
}
/* validateStep() (register.js) adds .jws-field-error directly to the
   checkbox input itself when the step is submitted while it's unchecked. */
#buddypress .jws-modern-register .jws-register-consent input.jws-field-error {
	outline: 2px solid #d64a68;
	outline-offset: 2px;
}
#buddypress .jws-modern-register .jws-register-consent:has(input.jws-field-error) {
	border-color: #d64a68;
}

@media (max-width: 600px) {
	#buddypress .jws-modern-register .jws-register-consent {
		padding: 12px;
	}
	#buddypress .jws-modern-register .jws-register-consent-text {
		font-size: 13px;
	}
}

/* Age field (from/to): visible inline error, shown immediately on input. */
.jws-age-error-text {
	color: #d64a68;
	font-size: 13px;
	margin: 6px 0 0;
}
input.jws-field-error {
	border-color: #d64a68 !important;
	outline: 2px solid #d64a68;
	outline-offset: 1px;
}

/* Per-field "This field can be seen by: Everyone — Change" visibility
   control: every field still saves with its existing default visibility
   (this is purely a display change, registration never submits a
   visibility value of its own), it's just not useful to show while
   signing up. Scoped to this stylesheet, which only loads on the
   registration/activation pages - profile edit still shows it normally.
   Uses the "p.<class>" form to out-specificity the existing mobile-only
   "display: flex !important" rule above (plain class alone would lose to
   it under 600px, since both are !important and specificity decides the
   tie, not source order). */
#buddypress .jws-modern-register p.field-visibility-settings-toggle,
#buddypress .jws-modern-register p.field-visibility-settings-notoggle,
#buddypress .jws-modern-register .field-visibility-settings {
	display: none !important;
}
