/**
 * JR ATS — Consultants Module frontend styles (Phase 2).
 * Brand color: #5277ba (canonical). Surfaces: [jr_consultant_register],
 * [jr_consultant_profile]. Later phases append their sections below.
 */

.jrc-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #1d2733;
}

.jrc-card {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(82, 119, 186, 0.07);
}

.jrc-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #22314a;
}

.jrc-section-title {
    margin: 26px 0 14px;
    padding-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #5277ba;
    border-bottom: 2px solid #eaeffa;
}

.jrc-form .jrc-section-title:first-of-type {
    margin-top: 0;
}

/* ---------------- Grid & fields ---------------- */

.jrc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.jrc-span2 {
    grid-column: 1 / -1;
}

.jrc-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: #33415c;
}

.jrc-req {
    color: #c23b3b;
}

.jrc-field input[type="text"],
.jrc-field input[type="email"],
.jrc-field input[type="password"],
.jrc-field input[type="number"],
.jrc-field select,
.jrc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd6e5;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 14px;
    color: #1d2733;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jrc-field input:focus,
.jrc-field select:focus,
.jrc-field textarea:focus {
    outline: none;
    border-color: #5277ba;
    box-shadow: 0 0 0 3px rgba(82, 119, 186, 0.18);
}

.jrc-hint {
    margin: 5px 0 0;
    font-size: 12px;
    color: #6b7a90;
}

/* ---------------- Checkbox groups ---------------- */

.jrc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.jrc-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13.5px;
    color: #33415c;
    cursor: pointer;
}

.jrc-toggles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jrc-terms {
    margin-top: 16px;
}

/* ---------------- Buttons ---------------- */

.jrc-btn {
    display: inline-block;
    padding: 11px 26px;
    border: 1px solid #5277ba;
    border-radius: 8px;
    background: #ffffff;
    color: #5277ba;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.jrc-btn:hover {
    background: #eef2fb;
    color: #40639f;
}

.jrc-btn-primary {
    background: #5277ba;
    color: #ffffff;
}

.jrc-btn-primary:hover {
    background: #40639f;
    color: #ffffff;
}

.jrc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------- Notices ---------------- */

.jrc-notice p {
    margin: 0;
}

.jrc-notice-success {
    border-color: #bfe3c8;
    background: #f2fbf4;
    color: #1d6b34;
}

.jrc-notice-error {
    border-color: #eec5c5;
    background: #fdf4f4;
    color: #9c2b2b;
}

/* ---------------- Email hint / save message ---------------- */

.jrc-email-hint,
.jrc-save-msg {
    display: inline-block;
    margin-top: 5px;
    font-size: 12.5px;
    font-weight: 600;
}

.jrc-hint-ok {
    color: #1d6b34;
}

.jrc-hint-bad {
    color: #9c2b2b;
}

.jrc-hint-wait {
    color: #6b7a90;
}

/* ---------------- Profile extras ---------------- */

.jrc-progress-card .jrc-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #33415c;
}

.jrc-progress {
    height: 10px;
    border-radius: 6px;
    background: #e8edf7;
    overflow: hidden;
}

.jrc-progress-bar {
    height: 100%;
    border-radius: 6px;
    background: #5277ba;
    transition: width 0.4s ease;
}

.jrc-status-line {
    margin: 12px 0 0;
    font-size: 13.5px;
    color: #33415c;
}

.jrc-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.jrc-badge-complete {
    background: #eaf7ee;
    color: #1d6b34;
}

.jrc-badge-incomplete {
    background: #fdf6ec;
    color: #9a6a1d;
}

.jrc-photo-preview {
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid #eaeffa;
    object-fit: cover;
}

.jrc-hidden {
    display: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px) {
    .jrc-grid {
        grid-template-columns: 1fr;
    }

    .jrc-card {
        padding: 20px 16px;
    }
}

/* ================================================================
   PHASE 4 — Consultant Search + Public Profile
   ================================================================ */

.jrc-search .jrc-filters {
    padding: 22px;
}

.jrc-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.jrc-search-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ccd6e5;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 15px;
    color: #1d2733;
}

.jrc-search-input:focus {
    outline: none;
    border-color: #5277ba;
    box-shadow: 0 0 0 3px rgba(82, 119, 186, 0.18);
}

.jrc-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px 16px;
}

.jrc-filter-actions {
    display: flex;
    align-items: flex-end;
}

.jrc-result-count {
    margin: 4px 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5a72;
}

.jrc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 18px;
}

.jrc-consultant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jrc-consultant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(82, 119, 186, 0.14);
}

.jrc-card-photo {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
    border-radius: 50%;
    border: 2px solid #eaeffa;
    object-fit: cover;
}

.jrc-card-photo-empty {
    background: linear-gradient(135deg, #eaeffa, #d8e2f5);
}

.jrc-card-name {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 700;
    color: #22314a;
}

.jrc-card-title {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5277ba;
}

.jrc-card-years,
.jrc-card-place {
    margin: 0 0 4px;
    font-size: 13px;
    color: #56657e;
}

.jrc-card-meta {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #56657e;
}

.jrc-meta-label {
    font-weight: 700;
    color: #33415c;
}

.jrc-card-cta {
    margin: 16px 0 0;
    width: 100%;
}

.jrc-card-cta .jrc-btn {
    width: 100%;
    padding: 9px 0;
}

.jrc-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.jrc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.jrc-page-info {
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5a72;
}

/* ---------------- Public consultant profile ---------------- */

.jrc-public-hero {
    display: flex;
    align-items: center;
    gap: 22px;
}

.jrc-public-photo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #eaeffa;
    object-fit: cover;
}

.jrc-public-name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #22314a;
}

.jrc-public-title {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 600;
    color: #5277ba;
}

.jrc-public-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
    font-size: 13.5px;
    color: #56657e;
}

.jrc-public-summary {
    margin: 0;
    color: #33415c;
}

.jrc-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jrc-detail-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    align-items: start;
}

.jrc-detail-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #33415c;
}

.jrc-detail-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jrc-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef2fb;
    color: #40639f;
    font-size: 12.5px;
    font-weight: 600;
}

.jrc-public-list {
    margin: 0;
    padding-left: 20px;
    color: #33415c;
}

.jrc-public-list li {
    margin-bottom: 7px;
    font-size: 14px;
}

.jrc-contact-gate .jrc-section-title {
    margin-top: 0;
}

.jrc-contact-details {
    margin-top: 14px;
}

.jrc-disclaimer {
    margin: 8px 4px 24px;
    font-size: 12px;
    line-height: 1.6;
    color: #7b8798;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px) {
    .jrc-search-row {
        flex-direction: column;
    }

    .jrc-public-hero {
        flex-direction: column;
        text-align: center;
    }

    .jrc-public-facts {
        justify-content: center;
    }

    .jrc-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ================================================================
   PHASE 5 — Consultant Portal + Contact Reveal
   ================================================================ */

.jrc-portal-hero .jrc-title {
    margin-bottom: 14px;
}

.jrc-portal-listing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 14px;
    color: #33415c;
}

.jrc-portal-expiry {
    font-size: 13.5px;
    color: #56657e;
}

.jrc-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.jrc-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.jrc-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 18px;
    margin-bottom: 0;
    text-align: center;
}

.jrc-kpi-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: #5277ba;
}

.jrc-kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #56657e;
}

.jrc-portal-summary {
    margin-top: 20px;
}

/* ---------------- Contact reveal ---------------- */

.jrc-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f7f9fd;
}

.jrc-contact-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    align-items: center;
}

.jrc-contact-row a {
    color: #5277ba;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.jrc-contact-row a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .jrc-contact-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .jrc-portal-actions .jrc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================================================
   Consultant sign-in — [jr_consultant_login]
   ================================================================ */

.jrc-login {
    max-width: 460px;
}

.jrc-login-note {
    margin: -10px 0 18px;
}

.jrc-login .jrc-field {
    margin-bottom: 16px;
}

.jrc-login-links {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--jrc-muted, #6b7a90);
}

.jrc-login-links a {
    color: #5277ba;
    text-decoration: none;
    font-weight: 600;
}

.jrc-login-links a:hover {
    text-decoration: underline;
}

/* ---------------- Consultant OTP step ---------------- */

.jrc-otp-resend {
    margin: 0 0 6px;
}

.jrc-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: #5277ba;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.jrc-linkbtn:hover {
    color: #40639f;
}

#jrc-otp-code {
    letter-spacing: 6px;
    font-size: 20px;
    text-align: center;
}

/* ================================================================
   Consultant notifications bell
   ================================================================ */

.jrc-bell {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.jrc-bell:focus {
    outline: none;
}

.jrc-bell:focus-visible {
    outline: 2px solid #5277ba;
    border-radius: 4px;
}

.jrc-bell-icon {
    font-size: 18px;
    line-height: 1;
}

.jrc-bell-count {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: top;
    margin-inline-start: 2px;
}

.jrc-bell-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(82, 119, 186, 0.14);
    z-index: 9999;
    cursor: default;
}

.jrc-bell.is-open .jrc-bell-dropdown {
    display: block;
}

.jrc-bell-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f7;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jrc-bell-item:last-child {
    border-bottom: none;
}

.jrc-bell-item:hover {
    background: #eef2fb;
}

.jrc-bell-item.is-read {
    opacity: 0.55;
}

.jrc-bell-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #22314a;
}

.jrc-bell-item p {
    margin: 0 0 3px;
    font-size: 12px;
    line-height: 1.5;
    color: #56657e;
}

.jrc-bell-item small {
    font-size: 11px;
    color: #96a1b3;
}

.jrc-bell-empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    color: #96a1b3;
}

#jrc-bell-toast {
    position: fixed;
    top: 20px;
    inset-inline-end: 20px;
    display: none;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #22314a;
    color: #fff;
    font-size: 13px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================================================
   Consultant portal tabs
   ================================================================ */

.jrc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8edf7;
}

.jrc-tab {
    padding: 11px 20px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    color: #56657e;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.jrc-tab:hover {
    color: #5277ba;
}

.jrc-tab.is-active {
    color: #5277ba;
    border-bottom-color: #5277ba;
}

.jrc-portal-panel > .jrc-wrap {
    max-width: none;
    margin: 0;
}

/* ---------------- Notifications list ---------------- */

.jrc-notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jrc-notif {
    padding: 12px 14px;
    border: 1px solid #eaeffa;
    border-radius: 8px;
    background: #fbfcfe;
}

.jrc-notif.is-unread {
    border-inline-start: 3px solid #5277ba;
    background: #f4f7fd;
}

.jrc-notif strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #22314a;
}

.jrc-notif-body {
    font-size: 13px;
    line-height: 1.6;
    color: #56657e;
}

.jrc-notif small {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: #96a1b3;
}

@media (max-width: 640px) {
    .jrc-tabs {
        gap: 0;
    }

    .jrc-tab {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 13.5px;
        text-align: center;
    }
}

/* ---------------- Actionable notifications ---------------- */

.jrc-bell-item.has-link {
    position: relative;
    padding-inline-end: 30px;
}

.jrc-bell-item.has-link::after {
    content: '\203A';
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5277ba;
    font-size: 20px;
    line-height: 1;
}

a.jrc-notif {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.jrc-notif.has-link {
    position: relative;
    padding-inline-end: 32px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.jrc-notif.has-link::after {
    content: '\203A';
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5277ba;
    font-size: 22px;
    line-height: 1;
}

a.jrc-notif.has-link:hover {
    border-color: #c9d6ef;
    background: #eef2fb;
}

/* ---------------- Dashboard public-profile QR ---------------- */

.jrc-hero-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.jrc-hero-main {
    flex: 1 1 auto;
    min-width: 0;
}

.jrc-hero-qr {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eaeffa;
    border-radius: 10px;
    background: #fbfcfe;
    text-align: center;
}

.jrc-qr-box {
    width: 132px;
    height: 132px;
    line-height: 0;
}

.jrc-qr-box img,
.jrc-qr-box canvas {
    display: block;
    width: 132px;
    height: 132px;
}

.jrc-qr-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #5277ba;
    text-decoration: none;
    max-width: 150px;
}

.jrc-qr-link:hover {
    text-decoration: underline;
}

.jrc-qr-note {
    max-width: 150px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #96a1b3;
}

.jrc-hero-qr.is-inactive .jrc-qr-box {
    opacity: 0.4;
    filter: grayscale(1);
}

@media (max-width: 640px) {
    .jrc-hero-split {
        flex-direction: column;
        align-items: stretch;
    }

    .jrc-hero-qr {
        align-self: center;
    }
}

/* ---------------- Missing profile fields ---------------- */

.jrc-missing {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.jrc-missing-block {
    flex: 1 1 260px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eaeffa;
    background: #fbfcfe;
}

.jrc-missing-block strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.jrc-missing-block .jrc-hint {
    margin: 0 0 8px;
}

.jrc-missing-required {
    border-color: #eec5c5;
    background: #fdf4f4;
}

.jrc-missing-required strong {
    color: #9c2b2b;
}

.jrc-missing-optional strong {
    color: #9a6a1d;
}

.jrc-missing-list {
    margin: 0;
    padding-inline-start: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #56657e;
}

.jrc-missing-none {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d6b34;
}

/* ================================================================
   Header button — [jr_consultant_login_btn]

   Class names are shared verbatim with the employee login button so the
   two are pixel-identical in the header. The employee button prints the
   same rules inline; duplicated identical declarations are harmless,
   and keeping them here honours the module's no-inline-assets rule.
   ================================================================ */

.jrats-loginbtn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.jrats-loginbtn__join {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: #1f2a44;
    text-decoration: none;
    transition: color 0.15s ease;
}

.jrats-loginbtn__join:hover,
.jrats-loginbtn__join:focus {
    color: #5277ba;
    text-decoration: none;
}

.jrats-loginbtn__join:focus-visible {
    outline: 2px solid #5277ba;
    outline-offset: 2px;
    border-radius: 4px;
}

.jrats-userbtn {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.jrats-userbtn__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.jrats-userbtn__name {
    font-weight: 600;
    color: inherit;
}

.jrats-userbtn__chevron {
    font-size: 11px;
    color: #5277ba;
    transition: transform 0.15s ease;
}

.jrats-userbtn.is-open .jrats-userbtn__chevron {
    transform: rotate(180deg);
}

.jrats-userbtn__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #5277ba;
}

.jrats-userbtn__avatar img,
.jrats-userbtn__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.jrats-userbtn__avatar-initial {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}

.jrats-userbtn__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(82, 119, 186, 0.18);
    padding: 6px;
    display: none;
    z-index: 9999;
}

.jrats-userbtn.is-open .jrats-userbtn__menu {
    display: block;
}

.jrats-userbtn__item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1f2a44;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.jrats-userbtn__item:hover {
    background: #eef2fb;
    color: #5277ba;
}

.jrats-userbtn__item--logout {
    color: #b3261e;
}

.jrats-userbtn__item--logout:hover {
    background: #fdecea;
    color: #b3261e;
}

/* ---------------- Consultant ID in the welcome card ---------------- */

.jrc-portal-id {
    margin: 0 0 6px;
    font-size: 13.5px;
    color: #33415c;
}

.jrc-id-value {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: #eef2fb;
    color: #40639f;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ---------------- Consultant search: headline + upgrade ---------------- */

.jrc-stats-wrap {
    margin-bottom: 18px;
}

.jrc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 20px;
    margin-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, #f4f7fd, #ffffff);
    border-color: #dbe4f3;
}

.jrc-stat-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #5277ba;
}

.jrc-stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #56657e;
}

.jrc-upgrade {
    text-align: center;
    padding: 34px 26px;
    border-color: #dbe4f3;
}

.jrc-upgrade .jrc-title {
    margin-bottom: 10px;
}

.jrc-upgrade p {
    max-width: 560px;
    margin: 0 auto 14px;
    color: #56657e;
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------------- Consultants by industry ---------------- */

.jrc-industries {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 20px 22px;
}

.jrc-industries-title {
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #33415c;
}

.jrc-industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jrc-industry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 999px;
    background: #f7f9fd;
    color: #33415c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.jrc-industry-count {
    color: #5277ba;
    font-weight: 700;
}

button.jrc-industry-btn {
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button.jrc-industry-btn:hover {
    background: #eef2fb;
    border-color: #c9d6ef;
}

button.jrc-industry-btn:focus-visible {
    outline: 2px solid #5277ba;
    outline-offset: 2px;
}

button.jrc-industry-btn.is-active {
    background: #5277ba;
    border-color: #5277ba;
    color: #fff;
}

button.jrc-industry-btn.is-active .jrc-industry-count {
    color: #dce6f8;
}

.jrc-industries .jrc-hint {
    margin: 10px 0 0;
}

/* ================================================================
   Consultant profile modal
   ================================================================ */

body.jrc-modal-open {
    overflow: hidden;
}

.jrc-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.jrc-modal[hidden] {
    display: none;
}

.jrc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(29, 39, 51, 0.55);
}

.jrc-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    padding: 30px 32px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(29, 39, 51, 0.3);
    animation: jrc-modal-in 0.18s ease-out;
}

@keyframes jrc-modal-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jrc-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f4fa;
    color: #56657e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.jrc-modal-close:hover {
    background: #e3e9f6;
    color: #22314a;
}

.jrc-modal-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f8;
}

.jrc-modal-photo {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #eaeffa;
    object-fit: cover;
}

.jrc-modal-name {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    color: #22314a;
}

.jrc-modal-title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #5277ba;
}

.jrc-modal-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0;
    font-size: 13px;
    color: #56657e;
}

.jrc-modal-section {
    padding: 18px 0;
    border-bottom: 1px solid #eef2f8;
}

.jrc-modal-section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #5277ba;
}

.jrc-modal-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #33415c;
}

.jrc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
}

.jrc-modal-message-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f8;
}

.jrc-modal-message-form h4 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #22314a;
}

.jrc-msg-status {
    margin-inline-start: 10px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .jrc-modal {
        padding: 16px 10px;
    }

    .jrc-modal-dialog {
        padding: 24px 18px;
    }

    .jrc-modal-hero {
        flex-direction: column;
        text-align: center;
    }

    .jrc-modal-facts {
        justify-content: center;
    }

    .jrc-modal-actions .jrc-btn {
        width: 100%;
        text-align: center;
    }
}
