/* Imdaa /join (office intake form), task 224. Loaded after style.css; reuses its tokens.
   RTL via logical properties only. */

.join-hero { padding-bottom: clamp(36px, 5vw, 56px); }
.join-hero .hero-sub { max-width: 40em; }

.join-main { padding: 0 0 clamp(56px, 8vw, 96px); }

/* ---- progress ---- */
.join-progress {
  position: sticky; top: var(--header-h); z-index: 15;
  background: rgba(251, 248, 242, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.jp-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.jp-label { font-size: var(--fs-small); font-weight: 700; color: var(--teal-900); white-space: nowrap; min-width: 8.5em; }
.jp-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; }
.jp-steps li { flex: 1; min-width: 0; }
.jp-steps a { display: block; padding: 10px 0 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-500); line-height: 1.3; border-top: 4px solid var(--sand-200); border-radius: 2px; transition: border-color .25s, color .25s; }
.jp-steps a span { display: none; }
.jp-steps li.done a { border-top-color: var(--teal-500); color: var(--teal-800); }
.jp-steps li.current a { border-top-color: var(--gold-500); color: var(--teal-900); }
@media (min-width: 760px) { .jp-steps a span { display: inline; } .jp-label { display: none; } }

/* ---- form shell ---- */
.join-form { max-width: 780px; margin: clamp(24px, 4vw, 44px) auto 0; display: grid; gap: clamp(20px, 3vw, 28px); }
.jstep {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-m);
  padding: clamp(22px, 3.4vw, 36px); margin: 0; min-width: 0;
  box-shadow: 0 1px 0 rgba(20, 33, 31, .03), 0 14px 36px -24px rgba(6, 42, 43, .25);
}
.jstep > legend { padding: 0; float: left; width: 100%; margin-bottom: 4px; }
html[dir="rtl"] .jstep > legend { float: right; }
.jstep > legend + * { clear: both; }
.jstep-head { display: flex; align-items: center; gap: 14px; }
.jstep-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-900); color: var(--gold-300); display: grid; place-items: center; font-weight: 800; font-size: 1.0625rem; }
.jstep-title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); font-weight: 800; color: var(--teal-900); line-height: 1.25; letter-spacing: -.02em; }
html[dir="rtl"] .jstep-title { letter-spacing: 0; }
.jstep-lead { margin: 10px 0 0; color: var(--ink-700); font-size: var(--fs-small); max-width: 38em; }

.jgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 22px; }
.jgrid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .jgrid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-weight: 700; font-size: .9375rem; color: var(--ink-900); line-height: 1.35; }
.field .opt { font-weight: 500; color: var(--ink-500); font-size: .8125rem; }
.field .hint { font-size: .8125rem; color: var(--ink-500); line-height: 1.5; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink-900);
  background: var(--paper); border: 1.5px solid var(--sand-300); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--teal-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(42, 154, 147, .22); background: var(--white); }
.field .ltr-in { direction: ltr; text-align: start; }
html[dir="rtl"] .field .ltr-in { text-align: right; }
.field.has-error input, .field.has-error textarea, .field.has-error .dz { border-color: #B3261E; background: #FFF6F5; }
.ferr { display: none; font-size: .875rem; font-weight: 600; color: #B3261E; line-height: 1.45; }
.field.has-error .ferr, .ferr.show { display: block; }
.req { color: #B3261E; font-weight: 800; margin-inline-start: 2px; }

.ingroup { display: flex; align-items: stretch; direction: ltr; }
.ingroup input { border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; border-inline-end: 0 !important; text-align: left !important; }
.ingroup .suffix { display: flex; align-items: center; padding: 0 14px; background: var(--sand-100); border: 1.5px solid var(--sand-300); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-700); font-weight: 600; font-size: .9375rem; white-space: nowrap; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-700); }
.opts { display: grid; gap: 10px; margin-top: 2px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--sand-300); border-radius: var(--radius-s); background: var(--paper); cursor: pointer; font-weight: 600; min-height: 50px; }
.opt-row:has(input:checked) { border-color: var(--teal-700); background: var(--teal-100); }
.opt-row input { width: 20px; height: 20px; accent-color: var(--teal-700); flex: none; }
.opt-row small { font-weight: 500; color: var(--ink-700); }
.color-pick { margin-top: 10px; display: none; align-items: center; gap: 12px; }
.color-pick.show { display: flex; }
.color-pick input[type="color"] { width: 64px; height: 50px; padding: 4px; border: 1.5px solid var(--sand-300); border-radius: var(--radius-s); background: var(--white); }

/* ---- file slots ---- */
.slot { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--sand-300); }
.slot:first-of-type { border-top: 0; padding-top: 0; }
.slot-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.slot-title { font-weight: 800; color: var(--teal-900); font-size: 1.0625rem; }
.badge { font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.badge.req-b { background: var(--gold-100); color: #7A5410; border: 1px solid var(--gold-300); }
.badge.opt-b { background: var(--sand-100); color: var(--ink-500); border: 1px solid var(--sand-200); }
.slot-why { margin: 6px 0 12px; color: var(--ink-700); font-size: .9375rem; }
.slot-warn { margin: 0 0 12px; padding: 10px 14px; border-inline-start: 3px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .875rem; font-weight: 600; color: var(--teal-900); line-height: 1.5; }
html[dir="rtl"] .slot-warn { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.examples { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.ex { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; line-height: 1.35; max-width: 15em; }
.ex svg { flex: none; width: 56px; height: 72px; border-radius: 6px; border: 1.5px solid var(--sand-300); background: var(--white); }
.ex.good { color: var(--teal-800); } .ex.good svg { border-color: var(--teal-500); }
.ex.bad { color: #8E2A22; } .ex.bad svg { border-color: #D98E88; }

.dz { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 2px dashed var(--sand-300); border-radius: var(--radius-s); background: var(--paper); transition: border-color .2s, background .2s; }
.dz:hover, .dz.drag { border-color: var(--teal-500); background: var(--teal-100); }
.dz:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(42, 154, 147, .22); }
.dz input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-btn { pointer-events: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; background: var(--teal-900); color: var(--white); font-weight: 700; font-size: .9375rem; }
.dz-names { pointer-events: none; font-size: .9375rem; color: var(--ink-700); overflow-wrap: anywhere; flex: 1; min-width: 10em; }
.dz.has-file .dz-names { color: var(--teal-900); font-weight: 600; }
.dz.has-file { border-style: solid; border-color: var(--teal-500); background: var(--teal-100); }

/* ---- confirm + submit ---- */
.confirm-box { margin-top: 20px; display: grid; gap: 16px; }
.notice { padding: 14px 16px; border-radius: var(--radius-s); background: var(--sand-100); font-size: .9375rem; color: var(--ink-700); line-height: 1.6; }
.ts-wrap { min-height: 66px; display: flex; align-items: center; }
.submit-row { display: grid; gap: 14px; justify-items: start; }
.btn-submit { width: 100%; max-width: 420px; border: 0; cursor: pointer; font-family: inherit; }
.btn-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.prog { width: 100%; max-width: 420px; display: none; }
.prog.show { display: block; }
.prog-bar { height: 10px; border-radius: 999px; background: var(--sand-200); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); transition: width .2s; }
.prog-txt { margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--ink-700); }
.banner { display: none; padding: 16px 18px; border-radius: var(--radius-s); border: 1.5px solid #D98E88; background: #FFF6F5; color: #8E2A22; font-weight: 600; font-size: .9375rem; line-height: 1.55; }
.banner.show { display: block; }
.banner ul { margin: 8px 0 0; padding-inline-start: 20px; font-weight: 500; }
.banner .btn-retry { margin-top: 10px; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid #8E2A22; background: var(--white); color: #8E2A22; font: inherit; font-weight: 700; cursor: pointer; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- thank you ---- */
.thanks { display: none; max-width: 640px; margin: clamp(28px, 5vw, 56px) auto 0; text-align: center; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-m); padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px); box-shadow: 0 14px 36px -24px rgba(6, 42, 43, .25); }
.thanks.show { display: block; }
.thanks-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal-900); color: var(--gold-300); display: grid; place-items: center; }
.thanks-ic svg { width: 32px; height: 32px; }
.thanks h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--teal-900); line-height: 1.15; }
.thanks p { margin-top: 14px; color: var(--ink-700); }
.refcode { display: inline-block; margin: 22px 0 4px; padding: 14px 28px; border-radius: var(--radius-s); background: var(--gold-100); border: 1.5px solid var(--gold-300); font-size: 2rem; font-weight: 800; letter-spacing: .12em; color: var(--teal-900); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.thanks .btn-row { justify-content: center; margin-top: 26px; }
.thanks .btn-light { color: var(--teal-900); border-color: var(--teal-700); background: transparent; }

.js-only { display: none; }
html.jsok .js-only { display: block; }
.nojs-msg { max-width: 780px; margin: 24px auto 0; }
html.jsok .nojs-msg { display: none; }

.free-note { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: var(--radius-s); background: var(--teal-100); border: 1px solid var(--teal-500); color: var(--teal-900); font-weight: 600; font-size: .9375rem; line-height: 1.55; }
.free-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-700); color: var(--white); display: grid; place-items: center; font-size: .8125rem; font-weight: 800; margin-top: 1px; }
