/*
 * Traders Edge — Register (production only)
 * All rules are scoped under .te-register so this cannot bleed into the
 * active theme, Elementor, MemberPress's own styles, or the other
 * traders-edge-* plugins. Deliberately self-contained/duplicated rather
 * than sharing a stylesheet, so this plugin stays independently reversible.
 * Values (colours, widths, paddings, header/footer, buttons) are copied
 * directly from the rest of the site's design system.
 */

.te-register {
	--te-bg: #14130f;
	--te-bg-alt: #1b1a15;
	--te-gold: #c9a25a;
	--te-gold-soft: rgba(201, 162, 90, 0.35);
	--te-off-white: #f2efe7;
	--te-off-white-bright: #fffaf0;
	--te-off-white-dim: rgba(242, 239, 231, 0.72);

	color: var(--te-off-white);
	background: var(--te-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;

	/* Matches the rest of the site's band width — see the other
	   traders-edge-* plugins for the measured 1200px/10px derivation. */
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

.te-register *,
.te-register *::before,
.te-register *::after {
	box-sizing: inherit;
}

.te-register__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Buttons */

.te-register__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.te-register__btn--primary {
	background: var(--te-gold);
	color: #14130f;
}

.te-register__btn--primary:hover {
	opacity: 0.88;
}

.te-register__btn--secondary {
	background: transparent;
	color: var(--te-off-white);
	border: 1px solid var(--te-gold-soft);
}

.te-register__btn--secondary:hover {
	border-color: var(--te-gold);
	color: var(--te-gold);
}

.te-register__btn--small {
	padding: 9px 18px;
	font-size: 13px;
}

/*
 * Keyboard focus indicator. The active theme resets outline:none !important
 * on every link (selector "body a"); the class-level selector below
 * outranks that on specificity alone, so it wins regardless of stylesheet
 * load order without needing to touch the theme. Also covers the existing
 * MemberPress form controls and submit button.
 */
.te-register a:focus-visible,
.te-register button:focus-visible,
.te-register .mepr-form-input:focus-visible,
.te-register .mepr-submit:focus-visible {
	outline: 2px solid var(--te-gold) !important;
	outline-offset: 3px;
}

/* Site header */

.te-register__site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--te-bg);
	border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}

.te-register__site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.te-register__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--te-off-white-bright);
	text-decoration: none;
}

.te-register__brand:hover {
	color: var(--te-gold);
}

/*
 * !important on width/height: Elementor's own frontend stylesheet ships
 * ".elementor img { height: auto; max-width: 100%; }", which outranks our
 * single-class selector on specificity alone (class+type beats class).
 */
.te-register__brand-icon {
	display: block;
	width: auto !important;
	height: 28px !important;
	flex-shrink: 0;
}

.te-register__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.te-register__nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-register__nav-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--te-off-white-dim);
	text-decoration: none;
	transition: color 0.15s ease;
}

.te-register__nav-links a:hover {
	color: var(--te-off-white);
}

.te-register__nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.te-register__nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.te-register__nav-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--te-off-white);
}

.te-register .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Site footer */

.te-register__site-footer {
	background: var(--te-bg-alt);
	padding: 48px 0 32px;
	border-top: 1px solid rgba(242, 239, 231, 0.08);
	text-align: left;
}

.te-register__site-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.te-register__footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-register__brand--footer {
	margin: 0;
	font-size: 15px;
}

.te-register__footer-tagline {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	color: var(--te-off-white-dim);
}

.te-register__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.te-register__footer-links a {
	font-size: 13.5px;
	color: var(--te-off-white-dim);
	text-decoration: none;
}

.te-register__footer-links a:hover {
	color: var(--te-gold);
}

.te-register__footer-copy {
	margin: 8px 0 0;
	padding-top: 20px;
	font-size: 12.5px;
	color: rgba(242, 239, 231, 0.52);
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

/* Content band wrapping the existing, untouched MemberPress form */

.te-register__content {
	background: var(--te-bg);
	padding: clamp(52px, 7.5vw, 92px) 0;
}

.te-register__content .te-register__inner {
	max-width: 640px;
}

/* Presentation-only intro — lives outside the MemberPress form entirely */

.te-register__intro {
	margin: 0 0 40px;
	text-align: center;
}

.te-register__eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--te-gold);
}

.te-register__heading {
	margin: 0 0 14px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--te-off-white-bright);
}

.te-register__intro-text {
	margin: 0;
	font-size: clamp(15px, 1.6vw, 17px);
	color: var(--te-off-white-dim);
}

/*
 * MemberPress form reskin — every selector below targets MemberPress's own
 * existing class names (confirmed by inspecting the live rendered form),
 * not markup we introduce. No field, name, id, action, or hidden input is
 * touched anywhere in this stylesheet or the PHP that loads it.
 */

.te-register .mp_wrapper {
	text-align: left;
	padding: clamp(28px, 4vw, 40px);
	background: rgba(242, 239, 231, 0.03);
	border: 1px solid rgba(242, 239, 231, 0.08);
	border-radius: 2px;
}

/*
 * MemberPress prints its own inline <style> block alongside the form
 * (form.mepr-signup-form.mepr-form { width: 80%; }), which otherwise
 * shrinks the whole form to 80% of the card at every breakpoint. #id
 * selector specificity guarantees this wins regardless of source order,
 * without needing !important. Only the form's own CSS width is changed —
 * its id, name, action, and every field remain exactly as MemberPress
 * generates them.
 */
.te-register #mepr_signup_form {
	width: 100%;
}

.te-register .mp-form-row {
	margin: 0 0 22px;
}

.te-register .mp-form-row:last-child {
	margin-bottom: 0;
}

.te-register .mp-form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--te-off-white-dim);
}

.te-register .mp-form-label label {
	color: inherit;
}

.te-register input.mepr-form-input,
.te-register select.mepr-form-input,
.te-register textarea.mepr-form-input {
	width: 100%;
	padding: 12px 16px;
	background: rgba(242, 239, 231, 0.04);
	border: 1px solid rgba(242, 239, 231, 0.16);
	border-radius: 2px;
	color: var(--te-off-white);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s ease;
}

.te-register input.mepr-form-input:focus {
	outline: none;
	border-color: var(--te-gold);
}

/* Price row */

.te-register .mepr_price {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}

.te-register .mepr_price_cell_label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--te-off-white-dim);
}

.te-register .mepr_price_cell {
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 600;
	color: var(--te-gold);
}

/*
 * Existing MemberPress validation errors — confirmed live in the rendered
 * DOM as hidden ".cc-error" spans per field and a form-level
 * ".mepr-form-has-errors" banner, both toggled visible by MemberPress's own
 * script on validation failure. Only colour/spacing is set here; the
 * display/visibility toggle logic itself belongs to MemberPress and is
 * never touched.
 */
/*
 * No "display" property here on purpose — both elements are hidden by
 * MemberPress by default and shown by its own script on validation
 * failure. Setting display here would have overridden that and made
 * every error message permanently visible even on a fresh, untouched
 * form (caught and reverted after live verification). Only color/spacing
 * apply, and only once MemberPress itself decides to show them.
 */
.te-register .cc-error {
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	color: #e2a0a0;
}

.te-register .mepr-form-has-errors {
	margin-bottom: 20px;
	padding: 12px 16px;
	background: rgba(226, 160, 160, 0.08);
	border: 1px solid rgba(226, 160, 160, 0.3);
	border-radius: 2px;
	font-size: 14px;
	color: #e2a0a0;
}

/*
 * !important is used on this button only: the Vayvo Progression theme's
 * own stylesheet enqueues after ours and applies a generic orange/white
 * button style directly to input[type=submit], which otherwise wins the
 * cascade purely on load order — the same conflict already fixed for the
 * Contact Form 7 submit button elsewhere on this site. The button's own
 * text/value ("Renew") is MemberPress's existing wording and is left
 * completely untouched here.
 */
.te-register .mepr-submit {
	display: inline-block;
	width: auto !important;
	padding: 14px 32px !important;
	background: var(--te-gold) !important;
	border: none !important;
	border-radius: 2px !important;
	color: #14130f !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.te-register .mepr-submit:hover {
	opacity: 0.88;
}

/* Header mobile menu */

@media (max-width: 860px) {
	.te-register__nav-toggle {
		display: flex;
	}

	.te-register__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		background: var(--te-bg);
		border-bottom: 1px solid rgba(242, 239, 231, 0.08);
		transition: max-height 0.2s ease;
	}

	.te-register__nav.is-open {
		max-height: 420px;
	}

	.te-register__nav-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.te-register__nav-links a {
		display: block;
		width: 100%;
		padding: 14px 24px;
		border-top: 1px solid rgba(242, 239, 231, 0.06);
	}

	.te-register__nav-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 24px 20px;
	}
}

/* Mobile refinements */

@media (max-width: 600px) {
	.te-register__inner {
		padding: 0 20px;
	}

	.te-register__footer-links {
		gap: 14px;
	}

	.te-register .mp-form-submit {
		display: block;
	}

	.te-register .mepr-submit {
		width: 100% !important;
	}
}
