/* ==========================================================================
   TripLead UM forms (handle: triplead-um)
   Loaded only on /join/, /login/ and /password-reset/, after UM's CSS and after
   triplead-core (which holds the :root tokens this file uses).

   Scope: everything hangs off body.tl-um-page (all three pages) or
   body.tl-join-page .tl-join (join only), so UM is never restyled site-wide.

   !important: only where Ultimate Member (or Astra) already uses !important on
   the same property. Each such block names the rule it beats. Nothing else here
   uses it. Details and the full override list: docs/CSS.md.

   Breakpoints: 1000px (join aside drops below the form), 768px (card chrome drops),
   600px (field pairs stack).
   ========================================================================== */

/* ---- 0. Icon masks (drawn in currentColor/background via mask-image) ------ */
body.tl-um-page {
	--tl-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
	--tl-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	--tl-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--tl-i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
	--tl-i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M9 21v-4h6v4M8 7h2M14 7h2M8 11h2M14 11h2'/%3E%3C/svg%3E");
	--tl-i-id: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c.5-1.5 1.7-2.2 3-2.2s2.5.7 3 2.2M14 10h4M14 14h3'/%3E%3C/svg%3E");
	--tl-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
	--tl-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
	--tl-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	--tl-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
	--tl-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--tl-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}

/* ---- 1. Page chrome (Astra) on the three UM pages ------------------------ */
body.tl-um-page { background-color: var(--tl-wash); }


/* ---- 2. Shared UM form skin (join, login, reset) ------------------------- */
body.tl-um-page .um {
	font-family: var(--tl-font);
	font-size: 16px;
	color: var(--tl-body);
}
body.tl-um-page .um .um-field { padding-top: 18px; }
body.tl-um-page .um .um-field-label { margin: 0 0 6px; color: var(--tl-navy); }
body.tl-um-page .um .um-field-label label { font-weight: 600; color: var(--tl-navy); }
body.tl-um-page .um span.um-req { margin: 0 0 0 3px; font-size: 15px; color: var(--tl-danger); }
body.tl-um-page .um .um-field-block { font-size: 15px; color: var(--tl-body); }
body.tl-um-page .um a { color: var(--tl-teal); }

/* Text inputs and textarea.
   !important beats: um-styles .um-form input[type=text]{height:40px!important;
   padding:0 12px!important;font-size:15px!important;box-shadow:none!important}
   and um-old-default .um .um-form input[type=text]{border:1px solid #ddd!important}.
   font-size 16px also stops iOS zooming into the field. */
body.tl-um-page .um .um-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"]) {
	box-sizing: border-box;
	width: 100%;
	height: var(--tl-control-h) !important;
	margin: 0;
	padding: 0 14px !important;
	border: 1px solid var(--tl-line) !important;
	border-radius: var(--tl-radius-control);
	background-color: var(--tl-white);
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px !important;
	line-height: normal;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Beats um-styles .um-form textarea{padding:8px 12px!important;font-size:15px!important;
   min-height:80px!important} (UM also prints an inline height:100px). */
body.tl-um-page .um .um-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 120px !important;
	padding: 12px 14px !important;
	border: 1px solid var(--tl-line) !important;
	border-radius: var(--tl-radius-control);
	background-color: var(--tl-white);
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px !important;
	resize: vertical;
	box-shadow: none;
}
body.tl-um-page .um .um-form ::placeholder { color: var(--tl-mute); }

/* Focus ring. Beats um-styles .um-form input:focus{box-shadow:none!important;outline:0!important}
   and um-old-default .um .um-form input:focus{border:1px solid #bbb!important}, which
   would otherwise leave no visible focus. */
body.tl-um-page .um .um-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"], textarea):focus {
	border-color: var(--tl-teal) !important;
	box-shadow: var(--tl-focus-ring) !important;
	outline: 0;
}

/* Error state. Beats um-styles .um-form input[type=text].um-error{border-color:#c74a4a!important}. */
body.tl-um-page .um .um-form .um-field.um-error :is(input, textarea),
body.tl-um-page .um .um-form :is(input, textarea).um-error,
body.tl-um-page .um .um-form :is(input, textarea)[aria-invalid="true"] {
	border-color: var(--tl-danger) !important;
}

/* Leading icons inside inputs (mock A1/A2, login, reset). */
body.tl-um-page .um .um-field:is(
	[data-key="first_name"], [data-key="last_name"], [data-key="user_email"], [data-key="triplead_mobile"],
	[data-key="user_password"], [data-key="confirm_user_password"], [data-key="triplead_agency_name"],
	[data-key="triplead_abn"], [data-key="triplead_city"], [data-key="triplead_accreditation_number"],
	[data-key="triplead_website"], [data-key="username"], [data-key="username_b"], [data-key="triplead_countries"],
	[data-key="tl_current_password"], [data-key="tl_new_password"], [data-key="tl_confirm_password"]
) > .um-field-area::before {
	content: "";
	position: absolute;
	top: calc(var(--tl-control-h) / 2 - 9px);
	left: 14px;
	z-index: 2;
	width: 18px;
	height: 18px;
	background-color: var(--tl-mute);
	-webkit-mask: var(--tl-i-user) center / contain no-repeat;
	mask: var(--tl-i-user) center / contain no-repeat;
	pointer-events: none;
}
body.tl-um-page .um .um-field:is([data-key="user_email"], [data-key="username"], [data-key="username_b"]) > .um-field-area::before { -webkit-mask-image: var(--tl-i-mail); mask-image: var(--tl-i-mail); }
body.tl-um-page .um .um-field[data-key="triplead_mobile"] > .um-field-area::before { -webkit-mask-image: var(--tl-i-phone); mask-image: var(--tl-i-phone); }
body.tl-um-page .um .um-field:is([data-key="user_password"], [data-key="confirm_user_password"], [data-key="tl_current_password"], [data-key="tl_new_password"], [data-key="tl_confirm_password"]) > .um-field-area::before { -webkit-mask-image: var(--tl-i-lock); mask-image: var(--tl-i-lock); }
body.tl-um-page .um .um-field[data-key="triplead_agency_name"] > .um-field-area::before { -webkit-mask-image: var(--tl-i-building); mask-image: var(--tl-i-building); }
body.tl-um-page .um .um-field:is([data-key="triplead_abn"], [data-key="triplead_accreditation_number"]) > .um-field-area::before { -webkit-mask-image: var(--tl-i-id); mask-image: var(--tl-i-id); }
body.tl-um-page .um .um-field[data-key="triplead_city"] > .um-field-area::before { -webkit-mask-image: var(--tl-i-pin); mask-image: var(--tl-i-pin); }
body.tl-um-page .um .um-field[data-key="triplead_website"] > .um-field-area::before { -webkit-mask-image: var(--tl-i-link); mask-image: var(--tl-i-link); }
body.tl-um-page .um .um-field[data-key="triplead_countries"] > .um-field-area::before { -webkit-mask-image: var(--tl-i-search); mask-image: var(--tl-i-search); }
/* Same !important source as the input block above (UM padding:0 12px!important). */
body.tl-um-page .um .um-form .um-field:is(
	[data-key="first_name"], [data-key="last_name"], [data-key="user_email"], [data-key="triplead_mobile"],
	[data-key="user_password"], [data-key="confirm_user_password"], [data-key="triplead_agency_name"],
	[data-key="triplead_abn"], [data-key="triplead_city"], [data-key="triplead_accreditation_number"],
	[data-key="triplead_website"], [data-key="username"], [data-key="username_b"],
	[data-key="tl_current_password"], [data-key="tl_new_password"], [data-key="tl_confirm_password"]
) input { padding-left: 42px !important; }

/* Password show/hide toggle. Right padding beats um-styles
   .um-form .um-field-area-password input[type=password]{padding-right:40px!important}
   (our shorthand above resets it, so it is restated here). */
body.tl-um-page .um .um-form .um-field-area-password input { padding-right: 46px !important; }
body.tl-um-page .um .um-toggle-password {
	width: 46px;
	height: var(--tl-control-h);
	line-height: var(--tl-control-h);
	color: var(--tl-mute);
}
body.tl-um-page .um .um-toggle-password:hover i { color: var(--tl-teal); }

/* Field errors: red text with an icon, not UM's red box.
   color on links beats um-styles .um-field-error a{color:#fff!important}. */
body.tl-um-page .um .um-field-error {
	position: relative;
	margin: 6px 0 0;
	padding: 0 0 0 24px;
	border-radius: 0;
	background: none;
	color: var(--tl-danger);
	font-size: 14px;
	font-weight: 500;
}
body.tl-um-page .um .um-field-error::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: var(--tl-danger);
	-webkit-mask: var(--tl-i-alert) center / contain no-repeat;
	mask: var(--tl-i-alert) center / contain no-repeat;
}
body.tl-um-page .um .um-field-error .um-field-arrow { display: none; }
body.tl-um-page .um .um-field-error a { color: var(--tl-danger) !important; text-decoration: underline !important; }

/* Form-level notices (login errors, reset confirmation). */
body.tl-um-page .um p.um-notice,
body.tl-um-page .um .um-notice {
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--tl-danger-soft);
	color: var(--tl-danger);
	font-size: 15px;
}
body.tl-um-page .um .um-notice.success { background: var(--tl-success-soft); color: var(--tl-success); }
body.tl-um-page .um .um-notice.warning { background: var(--tl-wash); border-color: var(--tl-line); color: var(--tl-body); }
body.tl-um-page .um .um-notice a { color: inherit; text-decoration: underline; }
body.tl-um-page .um .um-notice i { display: none; }

/* Select2 (single). Every property UM sets here is !important:
   um-styles .um-field .select2.select2-container .select2-selection{padding:0 0 0 12px!important;
   line-height:35px!important;color:#666!important;font-size:15px!important;
   border-radius:2px!important;background:#fff!important;border:1px solid #ddd!important}. */
body.tl-um-page .um .um-field .select2.select2-container .select2-selection {
	height: var(--tl-control-h);
	padding: 0 0 0 14px !important;
	line-height: calc(var(--tl-control-h) - 2px) !important;
	border: 1px solid var(--tl-line) !important;
	border-radius: var(--tl-radius-control) !important;
	background: var(--tl-white) !important;
	color: var(--tl-navy) !important;
	font-size: 16px !important;
}
body.tl-um-page .um .um-field .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: calc(var(--tl-control-h) - 2px);
	color: var(--tl-navy);
}
body.tl-um-page .um .um-field .select2-container--default .select2-selection__placeholder { color: var(--tl-mute); }
/* Arrow glyph: beats um-styles ...select2-selection__arrow:before{font-size:28px!important}. */
body.tl-um-page .um .um-field .select2.select2-container .select2-selection .select2-selection__arrow::before {
	font-size: 20px !important;
	line-height: calc(var(--tl-control-h) - 2px);
	color: var(--tl-mute);
}
body.tl-um-page .um .um-field .select2.select2-container.select2-container--focus .select2-selection,
body.tl-um-page .um .um-field .select2.select2-container.select2-container--open .select2-selection {
	border-color: var(--tl-teal) !important;
	box-shadow: var(--tl-focus-ring);
}

/* Select2 (multiple: destinations, origins). Beats um-styles
   .select2-selection--multiple{line-height:.8!important;padding-bottom:4px!important}. */
body.tl-um-page .um .um-field .select2.select2-container .select2-selection.select2-selection--multiple {
	min-height: var(--tl-control-h);
	padding: 5px 36px 5px 10px !important;
	line-height: 1.2 !important;
}
body.tl-um-page .um .um-field[data-key="triplead_countries"] .select2.select2-container .select2-selection.select2-selection--multiple { padding-left: 40px !important; }
body.tl-um-page .um .um-field .select2-container--default .select2-selection--multiple .select2-selection__rendered { line-height: 1.2; }
body.tl-um-page .um .um-field .select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin: 3px 6px 3px 0;
	max-height: none;
	padding: 5px 10px;
	border: 0;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
	font-size: 14px;
	font-weight: 600;
}
body.tl-um-page .um .um-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-right: 4px; color: var(--tl-teal); }
/* The inline search box inside a multi select is an input[type=search]; UM's
   .um-form input[type=search]{height:40px!important;padding:0 12px!important} and
   old-default border:1px solid #ddd!important would draw a box inside the box. */
body.tl-um-page .um .um-form .select2-container .select2-search--inline .select2-search__field {
	height: 34px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px !important;
}

/* Select2 dropdown: UM parents it inside .um-field; the second selector covers a
   body-level dropdown. Beats um-styles ...select2-dropdown{border:1px solid #ddd!important}
   and ...select2-results li{margin:5px!important;color:#666!important;padding:3px 7px 4px!important}. */
body.tl-um-page .um-field .select2-container.select2-container--open .select2-dropdown,
body.tl-um-page .select2-container--open .select2-dropdown {
	overflow: hidden;
	border: 1px solid var(--tl-line) !important;
	border-radius: 10px;
	box-shadow: var(--tl-shadow-pop);
	font-family: var(--tl-font);
}
body.tl-um-page .um-field .select2-container.select2-container--open .select2-dropdown .select2-results li,
body.tl-um-page .select2-container--open .select2-dropdown .select2-results li {
	margin: 2px 6px !important;
	padding: 10px 12px !important;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-navy) !important;
	font-size: 15px;
}
body.tl-um-page .um-field .select2-dropdown .select2-results li.select2-results__option.select2-results__option--highlighted,
body.tl-um-page .select2-dropdown .select2-results li.select2-results__option--highlighted { background: var(--tl-teal-soft); color: var(--tl-teal-hover) !important; }
body.tl-um-page .um-field .select2-dropdown .select2-results li.select2-results__option[aria-selected="true"],
body.tl-um-page .select2-dropdown .select2-results li.select2-results__option[aria-selected="true"] { background: var(--tl-wash); }

/* UM checkboxes and radios (icon-font glyphs).
   Option colour beats um-styles .um-field-checkbox-option{color:#888!important}
   (#888 on white is 3.5:1, below AA). */
body.tl-um-page .um .um-field-checkbox-option,
body.tl-um-page .um .um-field-radio-option {
	margin-left: 34px;
	line-height: 24px;
	color: var(--tl-body) !important;
	font-size: 15px;
}
body.tl-um-page .um .um-field-checkbox-option a { color: var(--tl-teal); text-decoration: underline; }
body.tl-um-page .um .um-field-checkbox-state i,
body.tl-um-page .um .um-field-radio-state i { color: var(--tl-mute); }
body.tl-um-page .um .um-field-checkbox.active i,
body.tl-um-page .um .um-field-radio.active i { color: var(--tl-teal); }
/* The real input is opacity 0 (UM), so show keyboard focus on the glyph. */
body.tl-um-page .um :is(.um-field-checkbox, .um-field-radio):has(input:focus-visible) :is(.um-field-checkbox-state, .um-field-radio-state) {
	border-radius: 6px;
	outline: 2px solid var(--tl-teal);
	outline-offset: 1px;
}

/* Buttons: solid teal, white label, 8px radius, one height.
   !important beats um-styles .um-button{padding:16px 20px!important;border:none!important;
   border-radius:4px!important;font-weight:400!important} and
   input[type=submit].um-button{height:auto!important;outline:0!important}. */
body.tl-um-page .um :is(.um-button, input[type="submit"].um-button),
body.tl-um-page .tl-join .tl-join-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: var(--tl-control-h) !important;
	margin: 0;
	padding: 0 24px !important;
	border: 1.5px solid var(--tl-teal) !important;
	border-radius: var(--tl-radius-btn) !important;
	background: var(--tl-teal);
	color: var(--tl-white);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700 !important; /* STYLE-CHECKLIST §7, chunk 4 (was 600) */
	line-height: 1 !important;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.tl-um-page .um input[type="submit"].um-button { display: inline-block; }
body.tl-um-page .um :is(a.um-button, input[type="submit"].um-button):is(:hover, :focus),
body.tl-um-page .tl-join .tl-join-btn:is(:hover, :focus) {
	background: var(--tl-teal-hover);
	border-color: var(--tl-teal-hover) !important;
	color: var(--tl-white);
}
body.tl-um-page .um :is(.um-button, input[type="submit"].um-button):focus-visible,
body.tl-um-page .tl-join .tl-join-btn:focus-visible {
	outline: 2px solid var(--tl-teal) !important;
	outline-offset: 2px;
}
/* Secondary (outline) button: login's "Join as an agent". */
body.tl-um-page .um :is(a.um-button.um-alt, input[type="submit"].um-button.um-alt) { background: var(--tl-white); color: var(--tl-teal); }
body.tl-um-page .um :is(a.um-button.um-alt, input[type="submit"].um-button.um-alt):is(:hover, :focus) {
	background: var(--tl-teal-soft);
	border-color: var(--tl-teal) !important;
	color: var(--tl-teal-hover);
}
/* Beats um-styles .um-center .um-button{width:auto!important;min-width:250px!important}. */
body.tl-um-page .um .um-center .um-button { width: 100% !important; min-width: 0 !important; }
/* Beats um-styles a.um-link-alt{color:#888!important;text-decoration:none!important} (contrast; the
   inline-link underline, chunk 5). */
body.tl-um-page .um a.um-link-alt:hover { text-decoration-thickness: 2px !important; }
body.tl-um-page .um a.um-link-alt { color: var(--tl-teal-hover) !important; font-weight: 600; text-decoration-line: underline !important; text-decoration-thickness: 1px !important; } /* longhands: UM's text-decoration shorthand is !important too. teal-hover: the inline-link colour (chunk 5; was teal) */

/* ---- 3. Login and reset: one card (.tl-auth__card, slice 11) --------------
   um-specialist's .tl-auth wraps UM's form; the card chrome lives on .tl-auth__card
   and UM's .um sits flat inside it (no card inside a card). */
body.tl-um-page .tl-auth { width: 100%; max-width: 460px; margin: 0 auto; font-family: var(--tl-font); }
body.tl-um-page .tl-auth__card {
	padding: 32px 32px 24px;
	border: 1px solid var(--tl-line);
	border-radius: 16px;
	background: var(--tl-white);
	box-shadow: none; /* STYLE-CHECKLIST §6: no shadow on this card (chunk 4; was --tl-shadow-card) */
}
body.tl-um-page .tl-auth__head { text-align: center; }
/* The page H1 (STYLE-CHECKLIST §1, chunk 2): triplead.css --tl-page-h1-* (40 / 34 / 30 / 26, 1.15). Was 30 / 26. */
body.tl-um-page .tl-auth__title { margin: 0; font-size: var(--tl-page-h1-size); font-weight: 800; line-height: var(--tl-page-h1-lh); letter-spacing: -0.02em; color: var(--tl-navy); }
body.tl-um-page .tl-auth__sub { margin: 10px 0 0; /* H1 -> intro 10, STYLE-CHECKLIST §4 (chunk 3; was 6) */ font-size: 16px; line-height: 1.5; color: var(--tl-body); }
/* Decision #72: /login/'s line under the H1 ("For approved travel agents.") is 15px body; the reset card has no sub line. */
body.tl-um-page .tl-auth__sub--login { font-size: 15px; }
body.tl-um-page .tl-auth__body { margin-top: 8px; }
body.tl-um-page .tl-auth .um.um-login,
body.tl-um-page .tl-auth .um.um-password {
	box-sizing: border-box;
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
/* Decision #72: the card ends on one quiet line, "New here? Join as an agent"
   (footer.tl-auth__foot--join > p.tl-auth__alt--join, login only), after UM's "Forgot your
   password?". No divider. Centred, as the head and "Forgot your password?" are. 24px from the
   forgot line (which sits 16px under the button), so it reads as its own line, not part of the
   form; the card's 24px bottom padding under it. 14px --tl-mute = muted small text
   (STYLE-CHECKLIST §3), white surface only: true here (the card is white from 768 and the page
   is white below it). */
body.tl-um-page .tl-auth__foot { margin-top: 24px; text-align: center; }
/* The foot's 24px is the whole gap. Beats um.min.css / um-styles.min.css
   .um{margin-bottom:30px!important}, which would collapse with the 24 into 30. */
body.tl-um-page .tl-auth--login .um.um-login { margin-bottom: 0 !important; }
body.tl-um-page .tl-auth__alt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tl-mute); text-wrap: balance; }
/* The link keeps the inline-link look (section 7: teal-hover, 600, 1px underline at 3px). Plain
   inline text in the sentence; 13px of block padding makes a 44px-tall hit area around the 14px
   text (18px content box + 26) without changing the line box. */
body.tl-um-page .tl-auth__alt-link { display: inline; padding: 13px 0; color: var(--tl-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.tl-um-page .tl-auth__alt-link:hover { color: var(--tl-teal-hover); }
body.tl-um-page .um.um-login .um-col-alt,
body.tl-um-page .um.um-password .um-col-alt { margin: 20px 0 0; }
body.tl-um-page .um.um-login .um-half {
	float: none;
	width: 100%;
	margin: 0 0 12px;
}
body.tl-um-page .um.um-login .um-half .um-button { width: 100%; }
/* "Forgot your password?" (UM's a.um-link-alt: display:block!important, 22px line): 11px of
   padding cancelled by -11px margins gives it a 44px hit area without moving anything (the
   arrow-link pattern, STYLE-CHECKLIST §8). 16px above it (was 8) keeps that hit area and its
   2px focus ring (offset 2) clear of the Log in button. flow-root keeps the -11px bottom
   margin inside the row (it would otherwise collapse through .um into the foot's 24px and
   pull the join line up to 13px). */
body.tl-um-page .um.um-login .um-col-alt-b { display: flow-root; padding-top: 16px; text-align: center; }
body.tl-um-page .um.um-login .um-col-alt-b a.um-link-alt { padding: 11px 0; margin: -11px 0; }
body.tl-um-page .um.um-login .um-field-c { padding-top: 4px; }
/* ux-review n2: breathing room between "Keep me signed in" and Log in. */
body.tl-um-page .um.um-login .um-col-alt .um-field-c { margin-bottom: 16px; }
body.tl-um-page .um.um-password .um-field-block { line-height: 1.5; }
/* Reset intro sits above the new "Work email" label: give the label its own gap. */
body.tl-um-page .um.um-password .um-field-type_block + .um-field { padding-top: 20px; }
/* "Back to log in" is printed after the .um card (UM keeps margin-bottom:30px!important on
   .um), so it sits centred under the card in every reset state. */
body.tl-reset-page .tl-reset-back {
	max-width: 460px;
	margin: -18px auto 0;
	text-align: center;
	font-family: var(--tl-font);
}
/* The shared back link (triplead.css 7b: chevron + span, the span underlines); "Back to your account"
   for a logged-in agent. It sits outside .um, so UM's a:focus outline rule doesn't reach it. */
body.tl-reset-page .tl-reset-back__link {
	padding: 0 12px;
	color: var(--tl-teal-hover);
	font-size: 15px;
	font-weight: 600;
	transition: color 0.15s ease;
}
body.tl-reset-page .tl-reset-back__link:hover { color: var(--tl-navy); }
body.tl-reset-page .tl-reset-back__link:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; border-radius: var(--tl-radius-btn); }

/* ---- 3b. Change password (logged-in agents on /password-reset/, um-password.php) --
   Sits in the same .um.um-password card as the reset form; only the extra parts are
   styled here. Fields, errors, notice and the submit button come from section 2. */
body.tl-reset-page .um.tl-change-pw .tl-change-pw__intro { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
body.tl-reset-page .um.tl-change-pw .tl-change-pw__notice { margin: 16px 0 0; }
body.tl-reset-page .um.tl-change-pw .tl-join-hint { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--tl-mute); }
body.tl-reset-page .um.tl-change-pw .tl-change-pw__email { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--tl-line); }
body.tl-reset-page .um.tl-change-pw .tl-change-pw__email p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); text-align: center; }
/* 80e: the agent's address in the intro and the "Check your email" line (span.tl-email, <wbr> after
   "@" and before dots) breaks only there, as everywhere else (triplead.css 3); scoped through the card
   so no UM form rule can reach it first. */
body.tl-reset-page .um.tl-change-pw .tl-email { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
/* A submit button that reads as a text link. Resets Astra's button, button:hover and
   button:focus fill (0,1,1) by specificity. */
body.tl-reset-page .um.tl-change-pw .tl-change-pw__link {
	display: inline;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--tl-teal);
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	cursor: pointer;
}
body.tl-reset-page .um.tl-change-pw .tl-change-pw__link:is(:hover, :focus) { background: none; color: var(--tl-teal-hover); }
body.tl-reset-page .um.tl-change-pw .tl-change-pw__link:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; border-radius: 2px; }
/* "Password changed" / "Check your email". */
body.tl-reset-page .um.tl-change-pw .tl-change-pw__done {
	margin: 12px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--tl-success-soft);
	font-size: 15px;
	line-height: 1.5;
	color: var(--tl-body);
}
body.tl-reset-page .um.tl-change-pw .tl-change-pw__done p { margin: 0; }
body.tl-reset-page .um.tl-change-pw .tl-change-pw__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--tl-success); }

/* ---- 4. Join page layout -------------------------------------------------- */
body.tl-join-page .tl-join {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 40px;
	max-width: 1120px;
	margin: 0 auto;
	font-family: var(--tl-font);
	color: var(--tl-body);
}

/* Aside: title, three reasons, log-in box pinned to the bottom. */
body.tl-join-page .tl-join__aside {
	display: flex;
	flex-direction: column;
	padding: 24px 0 8px;
}
body.tl-join-page .tl-join__title {
	margin: 0;
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--tl-navy);
}
body.tl-join-page .tl-join__lede { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
body.tl-join-page .tl-join__reasons { margin: 44px 0 0; padding: 0; list-style: none; }
body.tl-join-page .tl-join__reason {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 30px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tl-navy);
}
body.tl-join-page .tl-join__reason-icon { display: flex; flex: none; color: var(--tl-teal); }
body.tl-join-page .tl-join__reason-icon svg { width: 30px; height: 30px; }
body.tl-join-page .tl-join__login {
	margin: auto 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--tl-teal-soft);
	font-size: 14px;
	line-height: 1.5;
	color: var(--tl-body);
}
body.tl-join-page .tl-join__login > span { display: block; }
body.tl-join-page .tl-join__login a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--tl-teal-hover);
	font-weight: 600;
	text-decoration: none;
}
/* Inline links on the UM screens (STYLE-CHECKLIST §8, chunk 5): "Forgot your password?", the auth card's
   "Join as an agent" / "how TripLead works for agents", "Log in here" (/join/)
   and /join/'s "how TripLead works for agents". Plain inline links (no arrows; um-specialist drops the
   typed ones). The ring needs !important: um-styles .um:not(.um-admin) a:focus { outline: 0 !important }
   removed it from the two links inside .um. */
body.tl-um-page :is(.um a.um-link-alt, .tl-auth__alt-link, .tl-join__login a, .tl-join .tl-join-more a) {
	color: var(--tl-teal-hover);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
body.tl-um-page :is(.um a.um-link-alt, .tl-auth__alt-link, .tl-join__login a, .tl-join .tl-join-more a):hover { color: var(--tl-navy) !important; text-decoration-thickness: 2px; } /* !important: um-link-alt's own colour is !important */
body.tl-um-page :is(.um a.um-link-alt, .tl-auth__alt-link, .tl-join__login a, .tl-join .tl-join-more a):focus-visible { outline: 2px solid var(--tl-teal) !important; outline-offset: 2px !important; } /* beats um-styles .um:not(.um-admin) a:focus { outline: 0 !important } */
@media (prefers-reduced-motion: reduce) {
	body.tl-um-page :is(.um a.um-link-alt, .tl-auth__alt-link, .tl-join__login a, .tl-join .tl-join-more a) { transition: none; }
	body.tl-reset-page .tl-reset-back__link { transition: none; }
}
/* No-JS message above the join form (inside <noscript>, so it only ever renders without JS). */
body.tl-join-page .tl-join-noscript {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--tl-danger);
	border-radius: 10px;
	background: var(--tl-danger-soft);
	color: var(--tl-danger);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

/* Form card. */
body.tl-join-page .tl-join__main {
	min-width: 0;
	padding: 28px 40px 8px;
	background: var(--tl-white);
	border: 1px solid var(--tl-line);
	border-radius: 16px;
	box-shadow: var(--tl-shadow-card);
}

/* Progress header: the shared component (triplead.css 3d) inside um-specialist's
   div.tl-join-progress host at the top of the card. 8px here + the step block's 20px top
   padding = 28px from the bar to the step headline. */
body.tl-join-page .tl-join .tl-join-progress { margin: 0 0 8px; }

/* Step panels: UM's floated 48% columns become a two-column grid. JS toggles
   panel visibility with inline display:none, so display here is only the "on" state. */
body.tl-join-page .tl-join .tl-join-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	align-items: start;
}
body.tl-join-page .tl-join .tl-join-panel > .um-clear { display: none; }
body.tl-join-page .tl-join .tl-join-panel > .um-col-1 { grid-column: 1 / -1; }
body.tl-join-page .tl-join .tl-join-panel > :is(.um-col-121, .um-col-122) { float: none; width: auto; margin: 0; }
/* Password + confirm share one UM column; the mock puts them side by side. */
body.tl-join-page .tl-join .um-col-1:has(> .um-field[data-key="confirm_user_password"]) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	align-items: start;
}

/* Step heading block. */
body.tl-join-page .tl-join .um-field-block[data-key^="triplead_step_"] { padding-top: 20px; }
body.tl-join-page .tl-join .tl-join-step__title {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--tl-navy);
}
/* With JS, join-steps.js turns the block's h2 into p.tl-join-step__title.tl-join-step__lede
   (the progress header's h2 names the step). It keeps the title class, so it stays the
   card's big headline (26px, 22px on phones), as in the locked mock. No lede rule needed. */
body.tl-join-page .tl-join .tl-join-step__sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); }

/* Hints, counters, notes. */
body.tl-join-page .tl-join .tl-join-hint { margin: 6px 0 0; font-size: 14px; /* muted small text 14 (STYLE-CHECKLIST §3, chunk 3; was 13.5), as /post/'s .tl-help */ line-height: 1.4; color: var(--tl-mute); }
/* #55: A1's "Want to know more first? See how TripLead works for agents." (p.tl-join-hint.tl-join-more,
   under .tl-join-step__sub). Its link had no rule (Astra's colour, no underline). Now the
   in-copy link of the auth cards: teal (4.9:1 on white), 600, underlined, hover teal-hover;
   the shared 2px teal focus ring. 8px under the sub line: a quiet follow-on, not a field hint. */
body.tl-join-page .tl-join .tl-join-hint.tl-join-more { margin-top: 8px; text-wrap: balance; }
/* "how TripLead works for agents": the shared inline-link rule above (chunk 5; was teal, 2px offset). */
body.tl-join-page .tl-join .tl-join-count { margin: 6px 0 0; font-size: 13px; color: var(--tl-mute); text-align: right; }
body.tl-join-page .tl-join :is(.tl-join-note, .tl-join-legal, .tl-join-open__note) {
	position: relative;
	margin: 6px 0 0;
	padding: 14px 16px 14px 46px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-wash);
	font-size: 14px;
	line-height: 1.5;
	color: var(--tl-body);
}
body.tl-join-page .tl-join :is(.tl-join-note, .tl-join-legal, .tl-join-open__note)::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 16px;
	width: 20px;
	height: 20px;
	background-color: var(--tl-teal);
	-webkit-mask: var(--tl-i-info) center / contain no-repeat;
	mask: var(--tl-i-info) center / contain no-repeat;
}
body.tl-join-page .tl-join .tl-join-legal__title { margin: 0 0 4px; font-weight: 600; color: var(--tl-navy); }
body.tl-join-page .tl-join .tl-join-legal ul { margin: 0 0 0 18px; padding: 0; list-style: disc; }
body.tl-join-page .tl-join .tl-join-legal li { margin: 2px 0; font-size: 13.5px; }

/* Password strength meter. */
body.tl-join-page .tl-join .tl-join-pw {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
}
body.tl-join-page .tl-join .tl-join-pw.is-empty { display: none; }
body.tl-join-page .tl-join .tl-join-pw__bar {
	position: relative;
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-line);
}
body.tl-join-page .tl-join .tl-join-pw__bar::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 10%;
	border-radius: inherit;
	background: var(--tl-danger);
	transition: width 0.2s ease, background-color 0.2s ease;
}
body.tl-join-page .tl-join .tl-join-pw[data-score="1"] .tl-join-pw__bar::after { width: 30%; background: var(--tl-danger); }
body.tl-join-page .tl-join .tl-join-pw[data-score="2"] .tl-join-pw__bar::after { width: 55%; background: var(--tl-amber); }
body.tl-join-page .tl-join .tl-join-pw[data-score="3"] .tl-join-pw__bar::after { width: 80%; background: var(--tl-teal); }
body.tl-join-page .tl-join .tl-join-pw[data-score="4"] .tl-join-pw__bar::after { width: 100%; background: var(--tl-success); }
body.tl-join-page .tl-join .tl-join-pw__label { min-width: 56px; font-size: 13px; font-weight: 600; color: var(--tl-body); text-align: right; }

/* "Are you?" radios: one row on desktop (mock A2), stacked on mobile. */
body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) .um-field-area {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
}
body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) .um-field-area > .um-clear { display: none; }
body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) label.um-field-radio {
	float: none;
	width: auto;
	margin: 4px 0;
	padding: 4px 0;
}
body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) .um-field-radio-state { top: 4px; }

/* A4 order: plan cards, "What you're agreeing to", then the three checkboxes. */
body.tl-join-page .tl-join .um-field-block[data-key="triplead_note_legal"] { padding-top: 20px; }
body.tl-join-page .tl-join .um-field-block[data-key="triplead_note_legal"] .tl-join-legal { margin-top: 0; }

/* Legal checkboxes (A4): tight group, first one 16px under the legal box. */
body.tl-join-page .tl-join .um-field-type_checkbox { padding-top: 10px; }
body.tl-join-page .tl-join .um-col-1:has(> [data-key="triplead_note_legal"]) + .um-col-1 > .um-field-type_checkbox { padding-top: 16px; }
body.tl-join-page .tl-join .um-field-type_checkbox label.um-field-checkbox { float: none; width: auto; margin: 0; }
body.tl-join-page .tl-join .um-field-type_checkbox .um-field-checkbox-option { font-size: 14px; line-height: 1.5; padding-top: 2px; }

/* Chips (trip types, budget). JS hides the select2 box on these fields; this keeps it
   hidden if select2 re-initialises after the JS pass. */
body.tl-join-page .tl-join .tl-join-field--chips .select2-container { display: none; }
body.tl-join-page .tl-join .tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.tl-join-page .tl-join .tl-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-body);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.tl-join-page .tl-join .tl-chip:hover { border-color: var(--tl-teal); background: var(--tl-wash); color: var(--tl-navy); }
body.tl-join-page .tl-join .tl-chip:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
body.tl-join-page .tl-join .tl-chip:is(.is-selected, [aria-pressed="true"]),
body.tl-join-page .tl-join .tl-chip:is(.is-selected, [aria-pressed="true"]):is(:hover, :focus) {
	border-color: var(--tl-teal);
	background: var(--tl-teal);
	color: var(--tl-white);
}

/* A3 destinations (6b): region chips, country search (UM select2), "Open to anywhere".
   join-steps.js adds .tl-join-dest--regions / --countries / --open to the three UM
   fields, .is-disabled on regions + countries while open-anywhere is ticked, and
   .is-checked on the open field. */
body.tl-join-page .tl-join .tl-join-dest--regions .tl-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tl-join-page .tl-join .tl-join-dest--regions .tl-chip { min-height: 44px; padding: 6px 12px; font-size: 14px; text-align: center; }
body.tl-join-page .tl-join .tl-chip[disabled],
body.tl-join-page .tl-join .tl-chip[disabled]:is(:hover, :focus) {
	border-color: var(--tl-line);
	background: var(--tl-wash);
	color: var(--tl-mute);
	cursor: not-allowed;
	opacity: 0.7;
}
body.tl-join-page .tl-join .tl-join-dest.is-disabled .um-field-label { opacity: 0.6; }
body.tl-join-page .tl-join .tl-join-dest--countries.is-disabled .select2-container { opacity: 0.5; pointer-events: none; }
/* "Open to anywhere": UM's checkbox field, boxed so it reads as the alternative. */
body.tl-join-page .tl-join .tl-join-dest--open { margin-top: 16px; padding: 12px 16px 14px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-white); }
body.tl-join-page .tl-join .tl-join-dest--open.is-checked { border-color: var(--tl-teal); background: var(--tl-teal-soft); }
body.tl-join-page .tl-join .tl-join-dest--open .um-field-checkbox-option { font-weight: 600; color: var(--tl-navy) !important; } /* same UM .um-field-checkbox-option{color:#888!important} as section 2 */
body.tl-join-page .tl-join .tl-join-open__hint { margin: 4px 0 0 34px; font-size: 13px; line-height: 1.45; color: var(--tl-mute); }
body.tl-join-page .tl-join .tl-join-open__note { margin-top: 10px; }

/* A2 business logo (slice 9): UM's image field (profile_photo) with a square crop.
   "Upload logo" is an outline button (it shouldn't compete with Next); the section 2
   button skin already beats UM's .um-button !important rules, so only colours change. */
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] .um-field-area { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] .um-single-image-preview:not(.show) { display: none; }
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] .um-single-image-preview.show { position: relative; width: 96px; }
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] .um-single-image-preview img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 1px solid var(--tl-line);
	border-radius: 14px;
	background: var(--tl-white);
}
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] a.um-button {
	width: auto;
	min-width: 0;
	border-color: var(--tl-teal) !important; /* section 2 sets the border with !important (UM .um-button{border:none!important}) */
	background: var(--tl-white);
	color: var(--tl-teal);
}
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] a.um-button:is(:hover, :focus) { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
body.tl-join-page .tl-join .um-field[data-key="profile_photo"] .tl-join-hint { flex-basis: 100%; }

/* Plan cards (A4). UM's radio glyph is hidden; the card draws its own.
   Decision #64 follow-up (Daniel, 4 Oct): the same look as the For agents plan cards
   (for-agents.css F7c): white, 1px line border, radius 16 (14 under 768), padding 28 (22/20
   on phones), name 18/800, price 40/800 (36 on phones) + 14px mute period, the wash allowance
   box, plain 16px teal ticks, the tag on the top edge at the right. What stays radio-card: the
   22px radio (bottom centre; top right on phones), hover (teal-bright, hover devices only), the
   focus ring, and the selected state.
   Selected = For agents' Pro look: 2px teal border (padding 1px less, so nothing moves) and the
   page's soft card shadow, on white, plus the filled radio. On the join form the border is the
   selection, so unselected Pro has the 1px line border like Free: nothing looks pre-selected.
   The old wash fill on the selected card is gone (white keeps mute at 4.6:1 and the allowance
   box reads the same in both states). */
body.tl-join-page .tl-join .tl-join-field--plans { padding-top: 24px; }
body.tl-join-page .tl-join .tl-plan-cards {
	--tl-plan-pad: 28px;
	--tl-plan-pad-b: 70px; /* radio: 22px, 20px off the bottom, 28px clear above it */
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
body.tl-join-page .tl-join .tl-plan-cards > .um-clear { display: none; }
body.tl-join-page .tl-join label.tl-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	float: none;
	width: auto;
	margin: 0;
	padding: var(--tl-plan-pad) var(--tl-plan-pad) var(--tl-plan-pad-b);
	border: 1px solid var(--tl-line);
	border-radius: 16px;
	background: var(--tl-white);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Hover only where there is one: on touch, :hover sticks after a tap and left an unselected card
   with a teal-bright border (#64 check at 390). */
@media (hover: hover) {
	body.tl-join-page .tl-join label.tl-plan-card:hover { border-color: var(--tl-teal-bright); }
}
body.tl-join-page .tl-join label.tl-plan-card:has(input:focus-visible) { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active) {
	padding: calc(var(--tl-plan-pad) - 1px) calc(var(--tl-plan-pad) - 1px) calc(var(--tl-plan-pad-b) - 1px);
	border: 2px solid var(--tl-teal);
	background: var(--tl-white);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--tl-navy) 4%, transparent), 0 14px 36px color-mix(in srgb, var(--tl-navy) 8%, transparent); /* for-agents.css --tl-fa-shadow */
}
body.tl-join-page .tl-join label.tl-plan-card .um-field-radio-state { display: none; }
body.tl-join-page .tl-join label.tl-plan-card::after {
	content: "";
	position: absolute;
	bottom: 20px;
	left: 50%;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	margin-left: -11px;
	border: 2px solid var(--tl-mute);
	border-radius: 50%;
	background: var(--tl-white);
}
/* The radio stays put when the border thickens (it's positioned from the padding box). */
body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active)::after {
	bottom: 19px;
	margin-left: -11px;
	border-color: var(--tl-teal);
	background: var(--tl-teal);
	box-shadow: inset 0 0 0 4px var(--tl-white);
}
/* Plan name, .tl-fa-plan__name's 18/800. Colour restated with !important for the same UM
   #888!important rule as above. */
body.tl-join-page .tl-join label.tl-plan-card .um-field-radio-option {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--tl-navy) !important;
}
/* Tag ("For busy agents"): on the top edge, 24px from the right (16 on phones), as .tl-fa-plan__tag. */
body.tl-join-page .tl-join .tl-plan-card__badge {
	position: absolute;
	top: 0;
	right: 24px;
	padding: 4px 11px;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-teal);
	color: var(--tl-white);
	font-size: 13px; /* 13px floor (Daniel, 4 Oct; was 12) */
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transform: translateY(-50%);
}
body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active) .tl-plan-card__badge { right: 23px; transform: translateY(calc(-50% - 1px)); }
body.tl-join-page .tl-join .tl-plan-card__tagline { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--tl-mute); }
/* Price: amount + period on one baseline (the period's leading space collapses in the flex row). */
body.tl-join-page .tl-join .tl-plan-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 18px 0 0;
	color: var(--tl-mute);
	font-size: 14px;
	line-height: 1.4;
}
body.tl-join-page .tl-join .tl-plan-card__amount {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--tl-navy);
}
body.tl-join-page .tl-join .tl-plan-card__period { color: var(--tl-mute); font-size: 14px; }
/* Allowance box (join-steps.js: "<strong>1</strong> lead a month"): .tl-fa-plan__allowance. */
body.tl-join-page .tl-join .tl-plan-card__allowance {
	display: block;
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--tl-wash);
	color: var(--tl-body);
	font-size: 15px;
	line-height: 1.5;
}
body.tl-join-page .tl-join .tl-plan-card__allowance strong { color: var(--tl-navy); font-size: 18px; font-weight: 800; }
/* Ticks: the For agents plan cards' plain 16px teal check (no disc), drawn as a mask. */
body.tl-join-page .tl-join .tl-plan-card__features { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
body.tl-join-page .tl-join .tl-plan-card__features li {
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--tl-body);
}
body.tl-join-page .tl-join .tl-plan-card__features li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 16px;
	height: 16px;
	background-color: var(--tl-teal);
	-webkit-mask: var(--tl-i-check) center / contain no-repeat;
	mask: var(--tl-i-check) center / contain no-repeat;
}

/* Back / Next / Submit. */
body.tl-join-page .tl-join .tl-join-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 0;
	padding: 20px 0 0;
}
body.tl-join-page .tl-join .tl-join-btn--next,
body.tl-join-page .tl-join .um input[type="submit"].tl-join-btn--submit { margin-left: auto; min-width: 160px; width: auto; }
body.tl-join-page .tl-join .tl-join-btn--back,
body.tl-join-page .tl-join .tl-join-btn--back:is(:hover, :focus) {
	min-width: 120px;
	border-color: var(--tl-line) !important;
	background: var(--tl-white);
	color: var(--tl-body);
}
body.tl-join-page .tl-join .tl-join-btn--back:hover { background: var(--tl-wash); }
body.tl-join-page .tl-join .tl-join-btn--back:is([disabled], .is-disabled) { opacity: 0.5; cursor: default; }
body.tl-join-page .tl-join .tl-join-btn__arrow { font-size: 17px; line-height: 1; }
/* Back's chevron (size and stroke: the shared back link, triplead.css 7b). The box above stays as it is, so
   no underline. The 17px is for Next's typed arrow: here it would size the 1em icon past the 16px label. */
body.tl-join-page .tl-join .tl-join-btn--back { gap: 0; }
body.tl-join-page .tl-join .tl-join-btn--back .tl-join-btn__arrow { display: inline-flex; flex: none; font-size: inherit; }

/* ---- 4j. Join step 4 "Free while we launch" note (membership A1) -------------
   Own block on purpose (A1 brief §3): the consistency release edits the shared join rules above
   (chips, Continue), so nothing above is touched and this block merges on its own.
   um-specialist's triplead_um_join_launch_note() in the A4 Content Block, under the "Almost done"
   lede: div.tl-join-launch-note > p.__tag + p.__title + p.__text (+ p.__error[role=alert], added by
   join-steps.js only when a plan error comes back; inserted before the hidden plan field if the
   note is missing, so __error is styled without the note as parent).
   - Box: wash fill and 1px --tl-line, as the For agents and Account A1 strips, with the 10px radius of
     the join notes on this screen (the "What you're agreeing to" box right under it: existing pattern
     wins over the strips' 12). 18 / 20 padding (16 on phones). 16px under the lede; 8px + the next
     field's 20px top padding (28px) above the agreement box and the consent ticks.
   - Tag: the For agents launch card's "Now open" pill (for-agents.css F7c) inverted for a light
     background, as the mock draws it: navy fill, white 13 / 700 uppercase, 0.08em, 4 / 10 padding.
     White on navy 14.4:1.
   - Title: the body H3 (18 / 700 / 1.3 navy, -0.01em), 12px under the pill. Text: 15 / 1.6 body
     (6.8:1 on wash; mute would be 4.29). Error: the join field error (section 2: 14 / 500
     --tl-danger with the 18px alert icon), 10px under the text; danger on wash 6.2:1. */
body.tl-join-page .tl-join .tl-join-launch-note {
	box-sizing: border-box;
	margin: 16px 0 8px;
	padding: 18px 20px;
	border: 1px solid var(--tl-line);
	border-radius: 10px; /* the join notes on this screen (.tl-join-legal under it: 10px) */
	background: var(--tl-wash);
	color: var(--tl-body);
	font-family: var(--tl-font);
	text-align: left;
}
body.tl-join-page .tl-join .tl-join-launch-note__tag {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
	padding: 4px 10px;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-navy);
	color: var(--tl-white);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.tl-join-page .tl-join .tl-join-launch-note > .tl-join-launch-note__title {
	margin: 12px 0 0;
	padding: 0;
	color: var(--tl-navy);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
body.tl-join-page .tl-join .tl-join-launch-note > .tl-join-launch-note__text { margin: 6px 0 0; padding: 0; color: var(--tl-body); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
body.tl-join-page .tl-join .tl-join-launch-note__error {
	position: relative;
	margin: 10px 0 0;
	padding: 0 0 0 24px;
	color: var(--tl-danger);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}
body.tl-join-page .tl-join .tl-join-launch-note__error::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: var(--tl-danger);
	-webkit-mask: var(--tl-i-alert) center / contain no-repeat;
	mask: var(--tl-i-alert) center / contain no-repeat;
}
@media (max-width: 767px) {
	body.tl-join-page .tl-join .tl-join-launch-note { padding: 16px; }
}
/* The plan radio itself (A1 step 5 fix): div.um-field[data-key="triplead_plan"] in the A4 section,
   checked server-side (um-fields.php: ?plan=free|pro, else Free). join-steps.js hides it inline;
   this hides it with JS off too (and before the script runs), so the "Free" / "TripLead Pro Agent"
   radios never show. display:none, not `disabled`: the checked radio still posts. Keyed on
   data-key under the join wrapper, not #um_field_24_triplead_plan, so a different form ID on
   production can't miss it. Exception: if the server bounces a plan error (.um-field-error inside
   the field: a forged post only), the field stays visible with JS off so the message has somewhere
   to show. With JS on, join-steps.js still hides it and mirrors the error under the note. */
body.tl-join-page .tl-join .um-field[data-key="triplead_plan"]:not(:has(.um-field-error)) { display: none; }

/* ---- 5. Responsive --------------------------------------------------------- */
/* Under 1000px the aside no longer fits beside the form: the form goes first,
   the aside drops below it and keeps only the log-in box (mock mobile has no aside). */
@media (max-width: 999px) {
	body.tl-join-page .tl-join { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 720px; padding-top: 16px; }
	body.tl-join-page .tl-join__main { order: 1; }
	body.tl-join-page .tl-join__aside { order: 2; padding: 0 0 8px; }
	body.tl-join-page .tl-join__title {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
	body.tl-join-page .tl-join__lede,
	body.tl-join-page .tl-join__reasons { display: none; }
}

@media (max-width: 767px) {
	body.tl-join-page { background-color: var(--tl-white); }
	/* Side gutter: the shared phone form edge (#47, QA2-03: 16px, triplead.css token; the slim
	   main's own 12px stays on the other slim pages). */
	body.tl-join-page .tl-slim.tl-traveller .tl-traveller-main { padding-top: 8px; padding-right: var(--tl-form-m-edge, 16px); padding-left: var(--tl-form-m-edge, 16px); background: var(--tl-white); }
	body.tl-join-page .tl-join__main { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

	/* The shared phone step heading (triplead.css tokens, also /post/'s step question). */
	body.tl-join-page .tl-join .tl-join-step__title {
		font-size: var(--tl-form-step-title-size-m, 22px);
		font-weight: var(--tl-form-step-title-weight-m, 700);
		line-height: var(--tl-form-step-title-lh-m, 1.25);
		letter-spacing: var(--tl-form-step-title-ls-m, -0.01em);
	}

	body.tl-join-page .tl-join .tl-chip { min-height: 44px; }
	body.tl-join-page .tl-join .tl-join-dest--regions .tl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Stacked, 20px apart (room for the tag on the next card's top edge). Padding 22/20 as the For
	   agents cards; only the name and tagline (the rows beside the radio, top right 20px in) keep
	   36px clear on the right, so the allowance box and ticks run the full width as on For agents. */
	body.tl-join-page .tl-join .tl-plan-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	body.tl-join-page .tl-join label.tl-plan-card { padding: 22px 20px 20px; border-radius: 14px; }
	body.tl-join-page .tl-join label.tl-plan-card :is(.um-field-radio-option, .tl-plan-card__tagline) { padding-right: 36px; }
	body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active) { padding: 21px 19px 19px; }
	body.tl-join-page .tl-join label.tl-plan-card::after { top: 20px; right: 20px; bottom: auto; left: auto; margin: 0; }
	body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active)::after { top: 19px; right: 19px; bottom: auto; margin: 0; }
	body.tl-join-page .tl-join .tl-plan-card__amount { font-size: 36px; }
	/* The tag stays on the top edge (as at 768+), 16px from the right as on For agents; the radio
	   sits 20px down, clear of it. */
	body.tl-join-page .tl-join .tl-plan-card__badge { right: 16px; }
	body.tl-join-page .tl-join label.tl-plan-card:is(.is-selected, .active) .tl-plan-card__badge { right: 15px; }

	/* No Back on A1 (disabled). A4 keeps Back: the step dots that used to go back are gone (29 Sep). */
	body.tl-join-page .tl-join .tl-join-btn--back:is([disabled], .is-disabled) { display: none; }
	body.tl-join-page .tl-join .tl-join-nav :is(.tl-join-btn, input.tl-join-btn) { flex: 1 1 0; min-width: 0; padding: 0 16px !important; } /* !important: same UM .um-button padding rule as section 2 */
	body.tl-join-page .tl-join .um input[type="submit"].tl-join-btn--submit { flex: 1 1 0; min-width: 0; }
	/* QA2-04 (1 Oct): A4 on phones. join-steps.js adds .tl-join-nav--stacked and puts the submit
	   before Back in the DOM, so the column below is also the tab order: "Create agent account"
	   full width on top, Back full width under it, 12px apart (the /join/ and /post/ button gap),
	   both 48px. (0,6,2) beats the half-width rules above and the submit's desktop
	   margin-left:auto / width:auto ((0,5,2)). The label wraps rather than clips if the button is
	   ever narrower than it (200% text): two 16px lines fit the 48px height (line-height 1). */
	body.tl-join-page .tl-join .um .tl-join-nav.tl-join-nav--stacked { flex-direction: column; align-items: stretch; gap: 12px; }
	body.tl-join-page .tl-join .um .tl-join-nav.tl-join-nav--stacked :is(.tl-join-btn, input.tl-join-btn) { flex: 0 0 auto; width: 100%; min-width: 0; margin-left: 0; white-space: normal; }

	/* Flat on phones (Daniel, 4 Oct; STYLE-CHECKLIST §6): no border, radius or fill. The card sat 12px
	   in; 4px inline padding puts its content on the 16px phone gutter. */
	body.tl-um-page .tl-auth__card { padding: 8px 4px 0; border: 0; border-radius: 0; background: none; }
	/* With no card, the page is white like /join/ (wash is 4.47:1 for the teal links, under AA). */
	body.tl-um-page:not(.tl-join-page) { background-color: var(--tl-page-bg); }
	body.tl-um-page:not(.tl-join-page) .tl-slim.tl-traveller .tl-traveller-main { background: var(--tl-page-bg); }
}

@media (max-width: 600px) {
	body.tl-join-page .tl-join .tl-join-panel,
	body.tl-join-page .tl-join .um-col-1:has(> .um-field[data-key="confirm_user_password"]) { grid-template-columns: minmax(0, 1fr); }
	body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) .um-field-area { flex-direction: column; }
	body.tl-join-page .tl-join .um-field-type_radio:not(.tl-join-field--plans) label.um-field-radio { margin: 0; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	body.tl-um-page .um *,
	body.tl-join-page .tl-join * { transition: none; }
}
