/* "Apply to join" (/my-account/): same card look as sign-in (assets/signin.css), in place of WordPress's registration
   form. Owner, Oct 2026: on a phone the old form's Submit button had slid off the screen; labels must be plain. */
.wt-join, .wt-join * { box-sizing: border-box; }
.wt-join {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding: 34px 28px 22px;
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
  font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #111827;
  text-align: left; text-transform: none; letter-spacing: normal; font-style: normal;
}
.wt-join button, .wt-join a, .wt-join input, .wt-join select, .wt-join label, .wt-join h2, .wt-join p, .wt-join span {
  text-transform: none; letter-spacing: normal; font-family: inherit; text-shadow: none;
}
.wt-join [hidden] { display: none !important; }
.wt-langs { position: absolute; top: 14px; right: 14px; display: inline-flex; padding: 3px; border-radius: 999px; background: #f3f4f6; }
.wt-langs button {
  min-width: 40px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: #6b7280; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.4; transition: background .15s, color .15s;
}
.wt-langs button.on { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }

.wt-jn-logo { display: block; width: 96px; height: auto; margin: 8px auto 14px; }
.wt-jn-title { margin: 0; text-align: center; font-family: inherit; font-weight: 650; font-size: 22px; line-height: 1.25; color: #111827; }
.wt-jn-sub { margin: 6px 0 22px; text-align: center; color: #6b7280; font-size: 14px; }
.wt-jn-msg { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.wt-jn-msg a { color: inherit !important; font-weight: 600; text-decoration: underline !important; }

.wt-jn-field { margin: 0 0 16px; }
.wt-jn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wt-jn-label { display: block; margin: 0 0 6px; color: #374151; font-weight: 600; font-size: 13px; }
.wt-jn-input {
  width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 12px;
  background: #fff; color: #111827; font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1; outline: none; box-shadow: none;
}
/* A date field: iOS draws an empty one collapsed and its value centred */
.wt-jn-input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 44px; }
.wt-jn-input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.wt-jn-input:focus { border-color: #3352b8; box-shadow: 0 0 0 3px rgba(51, 82, 184, .18); }
.wt-jn-input.bad { border-color: #ef4444; }
/* Gmail only (owner, 2026-10-31): the end of the address is written in the box, what comes before it is typed */
.wt-jn-gmail { position: relative; }
.wt-jn-gmail .wt-jn-input { padding-right: 104px; }
.wt-jn-gmail span { position: absolute; top: 0; right: 14px; bottom: 0; display: flex; align-items: center; color: #6b7280; font-size: 15px; pointer-events: none; }

/* tap-to-choose options (level: one; license: one or more) */
.wt-jn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-jn-chips.bad .wt-jn-chip { border-color: #fca5a5; }
.wt-jn-chip {
  padding: 9px 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1.2; transition: background .15s, border-color .15s, color .15s;
}
.wt-jn-chip:hover { border-color: #9ca3af; }
.wt-jn-chip.on { background: #131314; border-color: #131314; color: #fff; }
/* the licenses in three stages: preparing; insurance (one); securities (any) — each its own row, with a small heading */
.wt-jn-lgroup { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wt-jn-lhead { flex: 1 1 100%; font-size: 12.5px; color: #6b7280; margin-top: 4px; }
html[data-theme="dark"] .wt-jn-lhead { color: #A39D90; }

.wt-jn-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin: 22px 0 0; border: 0; border-radius: 14px;
  background: #131314; color: #fff !important; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1;
}
/* !important: on /my-account/ the card sits in the new page (.wt-site button {color: inherit}) and the label went dark on black */
.wt-jn-submit:hover { background: #000; }
.wt-jn-submit:disabled { opacity: .55; cursor: default; }
.wt-jn-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #f3f4f6; text-align: center; color: #6b7280; font-size: 14px; }
.wt-jn-foot a { color: #3352b8 !important; font-weight: 600; text-decoration: none !important; }

.wt-jn-done { padding: 10px 0 4px; text-align: center; }
.wt-jn-check {
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 6px auto 16px; border-radius: 50%;
  background: #ecfdf3; color: #067647;
}
.wt-jn-check svg { width: 30px; height: 30px; }
.wt-jn-done h2 { margin: 0 0 8px; font-family: inherit; font-weight: 650; font-size: 22px; color: #111827; }
.wt-jn-done p { margin: 0 auto; max-width: 320px; color: #6b7280; font-size: 15px; }
.wt-jn-back {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; padding: 0 22px; height: 46px; border-radius: 12px;
  background: #131314; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important;
}

@media (max-width: 480px) {
  .wt-join { padding: 30px 18px 18px; border-radius: 18px; }
  .wt-jn-row { grid-template-columns: 1fr; gap: 0; }
}
/* Chinese order: surname (姓) before given name (名) */
.wt-join[lang="zh-CN"] .wt-jn-row > :first-child { order: 2; }
/* The WordPress text widget around the old form had a translucent white panel; the card is its own panel now */
.elementor-widget-container:has(> .wt-join), .elementor-widget-container:has(> * > .wt-join) { background: transparent !important; box-shadow: none !important; }

/* Dark mode (owner, 2026-10-21): the card follows the member's choice (localStorage wt-theme, set on the new pages; a line
   in this page's <head> applies it) */
html[data-theme="dark"] .wt-join { background: #161E2B; color: #ECE7DC; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); }
html[data-theme="dark"] .wt-jn-logo { filter: brightness(1.6) saturate(1.1); }
html[data-theme="dark"] .wt-join .wt-langs { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .wt-join .wt-langs button { color: #A8A192; }
html[data-theme="dark"] .wt-join .wt-langs button.on { background: #2A3446; color: #fff; box-shadow: none; }
html[data-theme="dark"] .wt-jn-title, html[data-theme="dark"] .wt-jn-done h2 { color: #F1EBDD; }
html[data-theme="dark"] .wt-jn-sub, html[data-theme="dark"] .wt-jn-done p, html[data-theme="dark"] .wt-jn-foot { color: #A8A192; }
html[data-theme="dark"] .wt-jn-msg { background: rgba(240, 138, 126, .12); color: #F4A79D; }
html[data-theme="dark"] .wt-jn-label { color: #D9D3C6; }
html[data-theme="dark"] .wt-jn-input { background: #0F1621; border-color: #36435A; color: #ECE7DC; }
html[data-theme="dark"] .wt-jn-input:focus { border-color: #8FB0DA; box-shadow: 0 0 0 3px rgba(143, 176, 218, .22); }
html[data-theme="dark"] .wt-jn-input.bad { border-color: #F97066; }
html[data-theme="dark"] .wt-jn-gmail span { color: #A8A192; }
html[data-theme="dark"] .wt-jn-chip { background: transparent; border-color: #36435A; color: #D9D3C6; }
html[data-theme="dark"] .wt-jn-chip:hover { border-color: #4A5870; }
html[data-theme="dark"] .wt-jn-chip.on, html[data-theme="dark"] .wt-jn-submit, html[data-theme="dark"] .wt-jn-back { background: #fff; border-color: #fff; color: #1F1F1F !important; }
html[data-theme="dark"] .wt-jn-submit:hover { background: #ECEDEF; }
html[data-theme="dark"] .wt-jn-foot { border-top-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .wt-jn-foot a { color: #A9C1E6 !important; }
html[data-theme="dark"] .wt-jn-check { background: rgba(108, 233, 166, .12); color: #6CE9A6; }

/* their TFA email, shown once Securities License or IAR is chosen (owner, 2026-11-16; join.js tfaSync) */
.wt-jn-tfa { margin-top: -6px; padding: 12px 14px 10px; border: 1px solid #D6DDF0; border-radius: 12px; background: #F5F7FC; animation: wt-jn-pop .22s ease-out; }
.wt-jn-tfa[hidden] { display: none; }
.wt-jn-tfa .wt-jn-input { background: #fff; }
.wt-jn-tfa .wt-jn-input::placeholder { color: #E39A9A; }
.wt-jn-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b7280; word-break: keep-all; overflow-wrap: anywhere; }
html[data-theme="dark"] .wt-jn-tfa { background: #142036; border-color: #2E3C55; }
html[data-theme="dark"] .wt-jn-tfa .wt-jn-input { background: #0F1621; }
html[data-theme="dark"] .wt-jn-tfa .wt-jn-input::placeholder { color: #C77C7C; }
html[data-theme="dark"] .wt-jn-hint { color: #A39D90; }
@keyframes wt-jn-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wt-jn-tfa { animation: none; } }

/* their name as WFG has it, and a fold for the one they go by (owner, 2026-11-17; join.js, api/join.js) */
.wt-jn-namehint { margin: -10px 0 8px; }
.wt-join .wt-jn-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0 0 12px; padding: 0; border: 0; background: none;
  color: #3352b8; font-family: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: start;
}
.wt-jn-plus { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; }
.wt-jn-plus::before, .wt-jn-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; margin: -.75px 0 0 -4px; background: currentColor; transition: transform .18s; }
.wt-jn-plus::after { transform: rotate(90deg); }
.wt-jn-more[aria-expanded="true"] .wt-jn-plus::after { transform: rotate(0deg); }
.wt-jn-pref { margin: -4px 0 16px; padding: 12px 14px 10px; border: 1px solid #D6DDF0; border-radius: 12px; background: #F5F7FC; animation: wt-jn-pop .22s ease-out; }
.wt-jn-pref[hidden] { display: none; }
.wt-jn-pref .wt-jn-field { margin-bottom: 10px; }
.wt-jn-pref .wt-jn-input { background: #fff; }
.wt-jn-pref .wt-jn-hint { margin-top: 0; }
.wt-jn-done p.wt-jn-hint { margin: 0 auto; font-size: 15px; line-height: 1.55; }
@media (pointer: coarse) { .wt-join .wt-jn-more { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .wt-jn-pref { animation: none; } .wt-jn-plus::after { transition: none; } }
html[data-theme="dark"] .wt-jn-more { color: #A9C1E6; }
html[data-theme="dark"] .wt-jn-pref { background: #142036; border-color: #2E3C55; }
html[data-theme="dark"] .wt-jn-pref .wt-jn-input { background: #0F1621; }
