/* =========================================================================
   Entrepreneur Verification & Due Diligence — public profile card, and the voluntary
   background-check question on Profile Settings and the sign-up form.
   Companion to lib/l2i-due-diligence.php.

   Selectors start with `body` because ProjectTheme prints its own <style> blocks inside the page
   body, which would otherwise win at equal specificity. Mobile-first.
   ========================================================================= */

/* ── Profile card ─────────────────────────────────────────────────────── */
/* It sits in the profile sidebar (about 250px wide on laptops) and may be used in wider places:
   rows lay out by the card's own width (container query), status chip under the text when
   narrow, on the right when there is room. */
body .l2i-dd {
    container-type: inline-size;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #d89928;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    margin: 0 0 20px;
    text-align: left;
}
body .l2i-dd-body { padding: 18px 16px; }
body .l2i-dd-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}
body .l2i-dd-title i { color: #d89928; }
body .l2i-dd-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #4b5563; }

body .l2i-dd-list { list-style: none; margin: 0; padding: 0; }
body .l2i-dd-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    align-items: start;
    margin: 0;
    padding: 11px 0;
    border-top: 1px solid #f0f0f0;
}
body .l2i-dd-row:first-child { border-top: 0; }
body .l2i-dd-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: #1f5fbf;
    font-size: 15px;
}
body .l2i-dd-text { min-width: 0; overflow-wrap: anywhere; }
body .l2i-dd-text strong { display: block; font-size: 13.5px; font-weight: 700; color: #1a1a1a; line-height: 1.35; }
body .l2i-dd-text small { display: block; margin-top: 2px; font-size: 12px; color: #6b7280; line-height: 1.4; }

body .l2i-dd-chip {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}
body .l2i-dd-chip.is-verified { background: #e7f6ec; color: #166534; }
body .l2i-dd-chip.is-verified i { color: #16a34a; }
body .l2i-dd-chip.is-review   { background: #fff6e0; color: #8a5a00; }
body .l2i-dd-chip.is-expired  { background: #fdecec; color: #991b1b; }
body .l2i-dd-chip.is-none     { background: #f3f4f6; color: #6b7280; font-weight: 600; }

body .l2i-dd-bgc { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #eee; }
body .l2i-dd-bgc-q { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
body .l2i-dd-bgc-a { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 8px; }
body .l2i-dd-radio { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #6b7280; }
body .l2i-dd-radio.is-on { color: #1a1a1a; font-weight: 600; }
body .l2i-dd-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #c7cdd6;
    background: #fff;
    box-sizing: border-box;
}
body .l2i-dd-radio.is-on .l2i-dd-dot { border: 5px solid #1f5fbf; }
body .l2i-dd-fine { margin: 0; font-size: 12px; line-height: 1.5; color: #6b7280; }

@container (min-width: 430px) {
    body .l2i-dd-body { padding: 20px; }
    body .l2i-dd-row { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
    body .l2i-dd-icon { width: 38px; height: 38px; }
    body .l2i-dd-chip { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* ── The voluntary question (Profile Settings + sign-up) ──────────────── */
body .l2i-reg-bgc { margin: 4px 0 6px; }
body .l2i-reg-bgc[hidden] { display: none !important; }
body .l2i-reg-bgc .l2i-bgc-field { margin: 0 0 14px; text-align: left; }
body .l2i-bgc-field { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fcfcfd; min-width: 0; }
body .l2i-bgc-legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
body .l2i-bgc-legend + * { clear: both; }
body .l2i-bgc-optional { font-weight: 400; color: #6b7280; font-size: 13px; }
body .l2i-bgc-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
body .l2i-bgc-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #cfd5dd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
}
body .l2i-bgc-option.is-clear { font-weight: 500; color: #4b5563; }
body .l2i-bgc-option input { width: 18px; height: 18px; margin: 0; accent-color: #1f5fbf; cursor: pointer; }
body .l2i-bgc-option:has(input:checked) { border-color: #1f5fbf; background: #f3f8ff; }
body .l2i-bgc-option:focus-within { outline: 3px solid rgba(31, 95, 191, .3); outline-offset: 2px; }
body .l2i-bgc-help { margin: 0; font-size: 12.5px; line-height: 1.55; color: #4b5563; }
body .l2i-bgc-help a { color: #1f5fbf; text-decoration: underline; }
