/* ============================================================================
   Enroll.css -- Public Broker/Freelancer Enrollment portal (Phase 58t)
   Self-contained: this anonymous page does NOT load TeamlineTheme/TeamlineHead.
   Prefix: be-
   ============================================================================ */

:root {
    --be-navy: #0b1f3a;
    --be-blue: #2563eb;
    --be-blue-2: #378ADD;
    --be-blue-dark: #1d4ed8;
    --be-text: #0f172a;
    --be-muted: #64748b;
    --be-border: #e2e8f0;
    --be-bg: #f1f5f9;
    --be-green: #16a34a;
    --be-red: #dc2626;
    --be-amber: #d97706;
    --be-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; min-height: 100%;
    font-family: var(--be-font);
    color: var(--be-text);
    background: linear-gradient(160deg, #0b1f3a 0%, #123a6b 45%, #1d4ed8 130%);
}

/* soft animated orbs in the backdrop */
.be-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.be-bg-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: beFloat 14s ease-in-out infinite alternate; }
.be-bg-orb-1 { width: 480px; height: 480px; background: #378ADD; top: -140px; right: -120px; }
.be-bg-orb-2 { width: 380px; height: 380px; background: #7c3aed; bottom: -120px; left: -100px; animation-delay: 3s; }
@keyframes beFloat { from { transform: translateY(0) } to { transform: translateY(40px) } }

.be-shell { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 28px 18px 40px; }

/* ===== header ===== */
.be-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.be-brand { display: flex; align-items: center; gap: 13px; }
.be-brand-mark {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 21px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
}
.be-brand-name { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.be-brand-sub { color: rgba(255,255,255,.65); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.be-secure-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: rgba(22,163,74,.18); border: 1px solid rgba(74,222,128,.45); color: #bbf7d0;
    font-size: 12.5px; font-weight: 700;
}

/* ===== stepper ===== */
.be-stepper { position: relative; display: flex; justify-content: space-between; margin: 0 8px 18px; }
.be-stepper-line { position: absolute; left: 24px; right: 24px; top: 17px; height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; }
.be-stepper-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #4ade80, #38bdf8); border-radius: 2px; transition: width .45s ease; }
.be-step-dot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; }
.be-step-dot span {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.30); color: rgba(255,255,255,.75);
    font-size: 14px; font-weight: 800; transition: all .3s ease;
}
.be-step-dot label { color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.be-step-dot.is-on span { background: #fff; border-color: #fff; color: var(--be-blue-dark); box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.be-step-dot.is-on label { color: #fff; }
.be-step-dot.is-done span { background: #4ade80; border-color: #4ade80; color: #064e3b; }

/* ===== card + panels ===== */
.be-card {
    position: relative; background: #fff; border-radius: 22px; padding: 34px 36px 30px;
    box-shadow: 0 30px 60px -18px rgba(2,6,23,.55);
    overflow: hidden;
}
.be-panel { display: none; }
.be-panel.be-active { display: block; animation: beSlideIn .35s ease; }
@keyframes beSlideIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }

.be-h1 { margin: 0 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -.3px; }
.be-h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.be-h2-ico { color: var(--be-blue); font-size: 18px; }
.be-lead { margin: 0 0 22px; color: var(--be-muted); font-size: 14.5px; line-height: 1.55; }
.be-muted { color: var(--be-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }
.be-opt { color: #94a3b8; font-weight: 600; font-size: 10px; }

/* ===== type cards ===== */
.be-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.be-type-card {
    text-align: left; background: #f8fafc; border: 2px solid var(--be-border); border-radius: 16px;
    padding: 22px; cursor: pointer; font-family: var(--be-font); transition: all .18s ease;
}
.be-type-card:hover { border-color: var(--be-blue); background: #eff6ff; transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(37,99,235,.45); }
.be-type-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; margin-bottom: 14px;
}
.be-type-icon-co { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.be-type-icon-fr { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.be-type-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.be-type-card p { margin: 0 0 14px; color: var(--be-muted); font-size: 13px; line-height: 1.5; }
.be-type-go { color: var(--be-blue); font-size: 13px; font-weight: 700; }
.be-type-go i { font-size: 11px; margin-left: 4px; transition: transform .18s ease; }
.be-type-card:hover .be-type-go i { transform: translateX(4px); }

/* ===== fields ===== */
.be-field { margin-bottom: 16px; }
.be-field label {
    display: block; font-size: 11px; font-weight: 800; color: var(--be-blue-dark);
    text-transform: uppercase; letter-spacing: .7px; margin-bottom: 7px;
}
.be-field input, .be-field select {
    width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: var(--be-font); color: var(--be-text);
    border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.be-field input:focus, .be-field select:focus { border-color: var(--be-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.be-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* structured mobile: country-code select + national number */
.be-phone-row { display: flex; gap: 8px; }
.be-phone-row select {
    flex: 0 0 150px; max-width: 45%; padding: 12px 8px; font-size: 13.5px; font-family: var(--be-font);
    color: var(--be-text); border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; outline: none;
}
.be-phone-row select:focus { border-color: var(--be-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.be-phone-row input { flex: 1; min-width: 0; }
.be-hint { display: block; color: #94a3b8; font-size: 11px; margin-top: 5px; }

/* honeypot: visually removed, still in the DOM for bots */
.be-hp { position: absolute; left: -6000px; top: -6000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== OTP ===== */
.be-otp-banner {
    display: flex; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #1e40af; margin: 6px 0 14px;
}
.be-otp-row { display: flex; gap: 10px; align-items: stretch; }
.be-otp-row input {
    flex: 1; max-width: 230px; padding: 12px 14px; font-size: 24px; letter-spacing: 10px; font-weight: 800;
    text-align: center; border: 1.5px solid #cbd5e1; border-radius: 10px; outline: none; font-family: var(--be-font);
}
.be-otp-row input:focus { border-color: var(--be-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.be-link { background: none; border: none; color: var(--be-blue); font-size: 13px; font-weight: 700; cursor: pointer; padding: 10px 2px; font-family: var(--be-font); }
.be-link:disabled { color: #94a3b8; cursor: default; }

/* ===== buttons ===== */
.be-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.be-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 11px; font-size: 14.5px; font-weight: 800; font-family: var(--be-font);
    cursor: pointer; border: none; transition: all .16s ease; -webkit-tap-highlight-color: rgba(37,99,235,.25);
    touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.be-btn-primary { background: linear-gradient(135deg, var(--be-blue-2), var(--be-blue)); color: #fff; box-shadow: 0 8px 18px -6px rgba(37,99,235,.55); }
.be-btn-primary:hover { background: linear-gradient(135deg, var(--be-blue), var(--be-blue-dark)); }
.be-btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.be-btn-ghost { background: #f1f5f9; color: #334155; border: 1px solid var(--be-border); }
.be-btn-ghost:hover { background: #e2e8f0; }
.be-btn-submit { padding: 14px 30px; font-size: 15px; }

/* ===== documents ===== */
.be-doc-row {
    display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--be-border); border-radius: 13px;
    padding: 14px 16px; margin-bottom: 11px; transition: border-color .15s ease; flex-wrap: wrap;
}
.be-doc-row.is-up { border-color: #86efac; background: #f0fdf4; }
.be-doc-ico {
    width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: #eff6ff; color: var(--be-blue); font-size: 16px; flex: 0 0 auto;
}
.be-doc-row.is-up .be-doc-ico { background: #dcfce7; color: var(--be-green); }
.be-doc-main { flex: 1; min-width: 180px; }
.be-doc-title { font-size: 14px; font-weight: 700; }
.be-doc-sub { font-size: 12px; color: var(--be-muted); margin-top: 2px; word-break: break-all; }
.be-req-chip {
    display: inline-block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
    font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.be-opt-chip {
    display: inline-block; background: #f8fafc; color: #64748b; border: 1px solid var(--be-border);
    font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.be-doc-exp { display: flex; flex-direction: column; gap: 4px; }
.be-doc-exp label { font-size: 9.5px; font-weight: 800; color: var(--be-blue-dark); text-transform: uppercase; letter-spacing: .6px; }
.be-doc-exp input { padding: 8px 10px; border: 1.5px solid #cbd5e1; border-radius: 9px; font-size: 13px; font-family: var(--be-font); }
.be-doc-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
    background: #eff6ff; color: var(--be-blue-dark); border: 1.5px solid #bfdbfe; font-size: 13px; font-weight: 800;
    cursor: pointer; font-family: var(--be-font); transition: all .15s ease; white-space: nowrap;
}
.be-doc-btn:hover { background: #dbeafe; }
.be-doc-btn:disabled { opacity: .6; cursor: default; }

/* ===== review ===== */
.be-rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; background: #f8fafc; border: 1px solid var(--be-border); border-radius: 13px; padding: 16px 18px; margin-bottom: 14px; }
.be-rev-item { padding: 7px 0; }
.be-rev-k { font-size: 10.5px; font-weight: 800; color: var(--be-muted); text-transform: uppercase; letter-spacing: .6px; }
.be-rev-v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.be-rev-docs { font-size: 13px; color: var(--be-text); background: #f8fafc; border: 1px solid var(--be-border); border-radius: 13px; padding: 14px 18px; }
.be-rev-docs b { display: block; font-size: 10.5px; color: var(--be-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.be-rev-docs .ok { color: var(--be-green); }

/* ===== proof of work strip ===== */
.be-pow { display: flex; align-items: center; gap: 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin-top: 16px; color: #1e40af; font-size: 13.5px; }
.be-pow i { font-size: 18px; }
.be-pow-bar { width: 220px; max-width: 50vw; height: 7px; background: #dbeafe; border-radius: 4px; margin-top: 7px; overflow: hidden; }
.be-pow-bar > div { height: 100%; width: 0%; background: linear-gradient(90deg, #38bdf8, #2563eb); border-radius: 4px; transition: width .25s ease; }

/* ===== done ===== */
.be-done-check { display: flex; justify-content: center; margin: 8px 0 16px; }
.be-done-check svg { width: 92px; height: 92px; }
.be-done-check circle { fill: none; stroke: #16a34a; stroke-width: 4; stroke-dasharray: 185; stroke-dashoffset: 185; animation: beDraw .7s ease forwards; }
.be-done-check path { fill: none; stroke: #16a34a; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; animation: beDraw .45s ease .55s forwards; }
@keyframes beDraw { to { stroke-dashoffset: 0; } }
.be-ref {
    text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 2.5px; color: var(--be-blue-dark);
    background: #eff6ff; border: 1.5px dashed #93c5fd; border-radius: 13px; padding: 16px; margin: 12px auto 16px; max-width: 420px;
}

/* ===== locked ===== */
.be-locked-icon { display: flex; justify-content: center; font-size: 50px; color: #cbd5e1; margin: 16px 0 14px; }

/* ===== inline error strip ===== */
.be-err {
    margin-top: 18px; background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--be-red);
    color: #991b1b; border-radius: 10px; padding: 12px 15px; font-size: 13.5px; line-height: 1.5;
}

/* ===== footer ===== */
.be-footer { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 20px; }
.be-footer .be-footer-dot { margin: 0 8px; }

/* spinner state on buttons */
.be-btn .fa-spinner { animation: beSpin 1s linear infinite; }
@keyframes beSpin { to { transform: rotate(360deg); } }

/* ===== responsive ===== */
@media (max-width: 640px) {
    .be-shell { padding: 18px 12px 30px; }
    .be-card { padding: 24px 18px 22px; border-radius: 18px; }
    .be-type-grid { grid-template-columns: 1fr; }
    .be-grid2 { grid-template-columns: 1fr; }
    .be-rev-grid { grid-template-columns: 1fr; }
    .be-h1 { font-size: 23px; }
    .be-actions { flex-direction: column-reverse; align-items: stretch; }
    .be-actions .be-btn { width: 100%; }
    .be-step-dot label { display: none; }
    .be-secure-chip { display: none; }
}
