/* ==========================================================================
   Specialists directory (دليل المختصين) — directory, profile card, join form
   The theme sets html { font-size: 10px }, so sizes here are in px.
   ========================================================================== */

:root {
    --sp-navy: #02194e;
    --sp-navy-2: #0a3a8a;
    --sp-navy-3: #13306d;
    --sp-gold: #fead04;
    --sp-gold-2: #ffc843;
    --sp-gold-soft: #fff4d6;
    --sp-ink: #0f1f43;
    --sp-text: #334155;
    --sp-muted: #64748b;
    --sp-line: #e3e9f3;
    --sp-soft: #f2f5fb;
    --sp-bg: #f5f7fc;
    --sp-green: #14975a;
    --sp-green-soft: #e3f6ec;
    --sp-red: #dc2626;
    --sp-radius: 20px;
    --sp-shadow: 0 10px 30px rgba(2, 25, 78, .08);
    --sp-shadow-lg: 0 22px 50px rgba(2, 25, 78, .16);
    --sp-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ page shell */

.sp-page {
    background:
        radial-gradient(1200px 400px at 50% -120px, rgba(10, 58, 138, .07), transparent 70%),
        linear-gradient(180deg, #eef2f9 0%, var(--sp-bg) 35%, #fff 100%);
    /* the site header floats over the page (absolute) — JS refines --sp-header-h */
    padding-top: calc(var(--sp-header-h, 190px) + 20px);
    padding-bottom: 90px;
    color: var(--sp-text);
    font-size: 16px;
}
@media (max-width: 1199px) {
    .sp-page { padding-top: calc(var(--sp-header-h, 100px) + 16px); }
}

/* header top bar is styled for dark banners — recolor it for this light page */
.rbt-header-top .text-white,
.rbt-header-top .rbt-information-list li a,
.rbt-header-top .social-icon li a {
    color: var(--sp-navy) !important;
    opacity: .85;
    transition: .2s ease;
}
.rbt-header-top .text-white:hover,
.rbt-header-top .rbt-information-list li a:hover,
.rbt-header-top .social-icon li a:hover {
    color: var(--sp-gold) !important;
    opacity: 1;
}

.sp-page *:focus-visible {
    outline: 3px solid rgba(254, 173, 4, .55);
    outline-offset: 2px;
}

.sp-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ buttons */

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--sp-ease), box-shadow .2s var(--sp-ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.sp-btn i { font-size: 19px; }
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn:active { transform: translateY(0); }
.sp-btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.sp-btn--gold {
    background: linear-gradient(180deg, var(--sp-gold-2), var(--sp-gold));
    color: var(--sp-navy);
    box-shadow: 0 8px 18px rgba(254, 173, 4, .35);
}
.sp-btn--gold:hover { color: var(--sp-navy); box-shadow: 0 12px 26px rgba(254, 173, 4, .45); }

.sp-btn--navy {
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    color: #fff;
    box-shadow: 0 8px 18px rgba(2, 25, 78, .25);
}
.sp-btn--navy:hover { color: #fff; box-shadow: 0 12px 26px rgba(2, 25, 78, .32); }

.sp-btn--ghost {
    background: #fff;
    border-color: var(--sp-line);
    color: var(--sp-navy);
}
.sp-btn--ghost:hover { border-color: var(--sp-navy); color: var(--sp-navy); }

.sp-btn--block { width: 100%; }

/* ------------------------------------------------------------------ badges & chips */

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(2, 25, 78, .12);
}
.sp-badge i { font-size: 14px; }
.sp-badge--verified { background: var(--sp-green); color: #fff; }
.sp-badge--verified i {
    background: #fff;
    color: var(--sp-green);
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.sp-badge--trusted { background: var(--sp-navy); color: #fff; }
.sp-badge--trusted i { color: var(--sp-gold); }

.sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--sp-soft);
    color: var(--sp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.sp-chip i { color: var(--sp-navy); font-size: 15px; }

/* ------------------------------------------------------------------ avatar */

.sp-avatar {
    --size: 132px;
    position: relative;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 210deg, var(--sp-gold), var(--sp-gold-2), #ffe6a3, var(--sp-gold));
    box-shadow: 0 10px 24px rgba(2, 25, 78, .14);
    flex-shrink: 0;
}
.sp-avatar img,
.sp-avatar .sp-avatar__initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #eef2f8;
    display: block;
}
.sp-avatar .sp-avatar__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    color: var(--sp-gold);
    font-weight: 800;
    font-size: calc(var(--size) * .3);
    letter-spacing: 1px;
}

/* ------------------------------------------------------------------ directory card */

.sp-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(2, 25, 78, .06);
    border-radius: 24px;
    padding: 28px 20px 20px;
    box-shadow: var(--sp-shadow);
    transition: transform .3s var(--sp-ease), box-shadow .3s var(--sp-ease), border-color .3s;
}
.sp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-lg);
    border-color: rgba(254, 173, 4, .45);
}
.sp-card .sp-badge {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 2;
}
.sp-card .sp-avatar { margin-bottom: 18px; transition: transform .3s var(--sp-ease); }
.sp-card:hover .sp-avatar { transform: scale(1.04); }

.sp-card__name {
    font-size: 21px;
    font-weight: 800;
    color: var(--sp-navy);
    margin: 0 0 6px;
    line-height: 1.35;
}
.sp-card__name a { color: inherit; text-decoration: none; }
.sp-card__name a:hover { color: var(--sp-navy-2); }
.sp-card__title {
    color: var(--sp-text);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.5;
    min-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-card__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.sp-card__actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* the whole card opens the profile; the call button stays its own link */
.sp-card .stretched-link::after { border-radius: 24px; z-index: 1; }
.sp-card__actions .sp-btn { position: relative; z-index: 2; }
.sp-card__more {
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color .2s, gap .2s;
}
.sp-card:hover .sp-card__more { color: var(--sp-navy); gap: 8px; }

/* ------------------------------------------------------------------ directory: hero */

.sp-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 25, 78, .18);
    background: var(--sp-navy);
}
.sp-hero__banner {
    display: block;
    width: 100%;
    height: auto;
}
.sp-hero__html {
    position: relative;
    padding: 56px 28px 92px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(500px 220px at 85% 10%, rgba(255, 255, 255, .10), transparent 70%),
        linear-gradient(135deg, var(--sp-navy-2) 0%, var(--sp-navy) 70%);
    overflow: hidden;
}
.sp-hero__html::before,
.sp-hero__html::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.sp-hero__html::before {
    width: 520px; height: 520px;
    inset-inline-start: -260px; bottom: -380px;
    border: 26px solid rgba(254, 173, 4, .9);
    border-color: var(--sp-gold) transparent transparent transparent;
    transform: rotate(-12deg);
}
.sp-hero__html::after {
    width: 380px; height: 380px;
    inset-inline-end: -160px; top: -200px;
    background: rgba(255, 255, 255, .05);
}
.sp-hero__icon {
    width: 74px; height: 74px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 173, 4, .14);
    color: var(--sp-gold);
    margin-bottom: 18px;
    font-size: 34px;
}
.sp-hero__title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.2;
}
.sp-hero__title .gold { color: var(--sp-gold); }
.sp-hero__subtitle {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .88);
    font-size: 19px;
    font-weight: 500;
    margin: 0 auto;
    max-width: 560px;
}
@media (max-width: 575px) {
    .sp-hero { border-radius: 22px; }
    .sp-hero__html { padding: 40px 20px 84px; }
    .sp-hero__title { font-size: 32px; }
    .sp-hero__subtitle { font-size: 16px; }
}

/* ------------------------------------------------------------------ directory: search & filters */

.sp-search {
    position: relative;
    z-index: 3;
    margin: -46px auto 0;
    max-width: 1000px;
    padding: 0 16px;
}
.sp-search__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 999px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(2, 25, 78, .16);
    border: 1px solid rgba(2, 25, 78, .06);
}
.sp-search__field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.sp-search__field input {
    width: 100%;
    height: 56px;
    border: 0;
    background: transparent;
    padding: 0 22px;
    padding-inline-end: 70px;
    font-size: 17px;
    color: var(--sp-ink);
    box-shadow: none;
}
.sp-search__field input::placeholder { color: #8a97ad; }
.sp-search__field input:focus { outline: none; box-shadow: none; }
.sp-search__submit {
    position: absolute;
    inset-inline-end: 4px;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(180deg, var(--sp-gold-2), var(--sp-gold));
    color: var(--sp-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform .2s var(--sp-ease), box-shadow .2s;
    box-shadow: 0 6px 14px rgba(254, 173, 4, .4);
}
.sp-search__submit:hover { transform: scale(1.06); }
.sp-search__clear {
    position: absolute;
    inset-inline-end: 64px;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-muted);
    background: var(--sp-soft);
    font-size: 16px;
    text-decoration: none;
}
.sp-search__clear:hover { color: var(--sp-navy); }
.sp-search__divider {
    width: 1px;
    height: 36px;
    background: var(--sp-line);
}
@media (max-width: 767px) {
    .sp-search { margin-top: -40px; padding: 0 8px; }
    .sp-search__bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 10px;
        gap: 10px;
    }
    .sp-search__field { background: var(--sp-soft); border-radius: 999px; }
    .sp-search__field input { height: 52px; font-size: 16px; }
    .sp-search__divider { display: none; }
    .sp-search__bar .sp-btn { width: 100%; }
}

.sp-filters {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sp-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.sp-chips__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sp-line);
    color: var(--sp-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.sp-chips__item i { color: var(--sp-gold); font-size: 16px; }
.sp-chips__item .count {
    font-size: 12px;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--sp-soft);
    color: var(--sp-muted);
}
.sp-chips__item:hover { border-color: var(--sp-navy); color: var(--sp-navy); transform: translateY(-1px); }
.sp-chips__item.is-active {
    background: var(--sp-navy);
    border-color: var(--sp-navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(2, 25, 78, .2);
}
.sp-chips__item.is-active .count { background: rgba(255, 255, 255, .16); color: #fff; }

.sp-selects {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.sp-selects .sp-select-wrap { width: 190px; }

@media (max-width: 991px) {
    /* nowrap matters: a wrapping column sizes its line to the chips' full width and widens the page */
    .sp-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    /* chips scroll sideways instead of wrapping into a tall block */
    .sp-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -12px;
        padding: 4px 12px 8px;
        scroll-snap-type: x proximity;
    }
    .sp-chips::-webkit-scrollbar { display: none; }
    .sp-chips__item { scroll-snap-align: start; }
    .sp-selects .sp-select-wrap { width: auto; flex: 1; }
}

.sp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0 20px;
    font-size: 15px;
    color: var(--sp-muted);
}
.sp-toolbar strong { color: var(--sp-navy); font-size: 17px; }
.sp-toolbar a {
    color: var(--sp-red);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* bootstrap-select (main.js wraps every <select>) */
.sp-page .bootstrap-select,
.sp-page .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100% !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.sp-page .bootstrap-select > .dropdown-toggle {
    width: 100%;
    min-height: 50px;
    height: auto;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 12px 16px;
    background: #fff;
    color: var(--sp-ink);
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
    display: flex;
    align-items: center;
}
.sp-selects .bootstrap-select > .dropdown-toggle { border-radius: 999px; padding: 12px 20px; }
.sp-page .bootstrap-select > .dropdown-toggle:focus,
.sp-page .bootstrap-select.show > .dropdown-toggle {
    outline: none !important;
    border-color: var(--sp-navy);
    box-shadow: 0 0 0 3px rgba(2, 25, 78, .1);
}
.sp-page .bootstrap-select .filter-option-inner-inner {
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-page .bootstrap-select .dropdown-menu {
    width: 100%;
    min-width: 100% !important;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid var(--sp-line);
    box-shadow: 0 14px 34px rgba(2, 25, 78, .14);
}
.sp-page .bootstrap-select .dropdown-menu.inner { padding: 0; border: 0; box-shadow: none; }
.sp-page .bootstrap-select .bs-searchbox { padding: 0 0 8px; }
.sp-page .bootstrap-select .bs-searchbox .form-control {
    height: 44px;
    font-size: 15px;
    border: 1px solid var(--sp-line);
    border-radius: 10px;
    padding: 8px 12px;
    background: #f8fafc;
}
.sp-page .bootstrap-select .dropdown-menu li a,
.sp-page .bootstrap-select .dropdown-menu li a span.text { font-size: 15px; line-height: 1.6; }
.sp-page .bootstrap-select .dropdown-menu li a { border-radius: 8px; padding: 8px 12px; white-space: normal; }
.sp-page .bootstrap-select .dropdown-menu li.selected a,
.sp-page .bootstrap-select .dropdown-menu li a:hover { background: var(--sp-soft); color: var(--sp-navy); }
.sp-page .bootstrap-select .dropdown-menu li.no-results { font-size: 15px; color: var(--sp-muted); background: transparent; padding: 10px 14px; }
.sp-field.is-invalid .bootstrap-select > .dropdown-toggle { border-color: var(--sp-red); }

/* ------------------------------------------------------------------ directory: grid / empty / cta */

.sp-grid { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }

.sp-empty {
    text-align: center;
    background: #fff;
    border-radius: 28px;
    padding: 60px 24px;
    box-shadow: var(--sp-shadow);
}
.sp-empty__icon {
    width: 96px; height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--sp-gold-soft);
    color: var(--sp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}
.sp-empty h3 { color: var(--sp-navy); font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.sp-empty p { color: var(--sp-muted); margin-bottom: 24px; }
.sp-empty__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.sp-pagination { margin-top: 40px; display: flex; justify-content: center; }
.sp-pagination .rbt-pagination { overflow: visible !important; }

.sp-cta {
    position: relative;
    margin-top: 70px;
    border-radius: 28px;
    overflow: hidden;
    padding: 46px 40px;
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.sp-cta::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    inset-inline-end: -140px; bottom: -300px;
    border-radius: 50%;
    border: 22px solid var(--sp-gold);
    border-color: var(--sp-gold) transparent transparent transparent;
    opacity: .9;
}
.sp-cta::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    inset-inline-start: -90px; top: -140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.sp-cta > * { position: relative; z-index: 1; }
.sp-cta h3 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.sp-cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 620px; font-size: 16px; }
@media (max-width: 767px) {
    .sp-cta { flex-direction: column; text-align: center; padding: 36px 22px; }
    .sp-cta h3 { font-size: 23px; }
    .sp-cta .sp-btn { width: 100%; }
}

/* entrance animation */
.sp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--sp-ease), transform .5s var(--sp-ease); }
.sp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .sp-reveal { opacity: 1; transform: none; transition: none; }
    .sp-card, .sp-btn, .sp-card .sp-avatar { transition: none; }
}

/* ------------------------------------------------------------------ profile (digital card) */

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-navy);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 18px;
}
.sp-back:hover { color: var(--sp-navy-2); }

.sp-profile {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(2, 25, 78, .14);
    overflow: hidden;
    isolation: isolate;
}
.sp-profile__deco {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.sp-profile__deco svg { position: absolute; width: 100%; height: auto; }
.sp-profile__deco .top { top: 0; left: 0; }
.sp-profile__deco .bottom { bottom: 0; left: 0; }
.sp-profile__dots {
    position: absolute;
    width: 90px; height: 70px;
    background-image: radial-gradient(rgba(2, 25, 78, .18) 1.6px, transparent 1.6px);
    background-size: 12px 12px;
}

.sp-profile__inner { padding: 28px 26px 22px; text-align: center; }
.sp-profile__brand { display: flex; justify-content: center; margin-bottom: 18px; }
.sp-profile__brand img { height: 46px; width: auto; }

.sp-profile__photo {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}
.sp-profile__photo .sp-avatar { --size: 196px; padding: 6px; }
.sp-profile__photo .sp-badge {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    font-size: 14px;
    padding: 7px 16px;
    box-shadow: 0 8px 18px rgba(2, 25, 78, .25);
}

.sp-profile__name {
    color: var(--sp-navy);
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.3;
}
.sp-profile__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--sp-ink);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}
.sp-profile__title::before,
.sp-profile__title::after {
    content: "";
    flex: 0 0 44px;
    height: 2px;
    border-radius: 2px;
    background: var(--sp-gold);
}
.sp-profile__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.sp-actions {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.sp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 12px;
    border-radius: 18px;
    background: var(--sp-soft);
    color: var(--sp-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s var(--sp-ease), box-shadow .2s, background .2s;
}
.sp-action:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--sp-shadow); color: var(--sp-navy); }
.sp-action__icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.sp-action__icon svg { width: 24px; height: 24px; fill: currentColor; }
.sp-action--whatsapp .sp-action__icon { background: #25d366; }
.sp-action--call .sp-action__icon { background: linear-gradient(135deg, #2f80ed, #1659c7); }
.sp-action--email .sp-action__icon { background: linear-gradient(135deg, #3b9cf2, #2563eb); }
.sp-action--instagram .sp-action__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sp-action--linkedin .sp-action__icon { background: #0a66c2; }
.sp-action--facebook .sp-action__icon { background: #1877f2; }
.sp-action--website .sp-action__icon { background: var(--sp-navy); }
@media (max-width: 400px) {
    .sp-actions { gap: 8px; }
    .sp-action { font-size: 12px; padding: 12px 4px 10px; }
    .sp-action__icon { width: 44px; height: 44px; font-size: 19px; }
}

.sp-section {
    text-align: start;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 22px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(2, 25, 78, .05);
    overflow: hidden;
}
.sp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sp-section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 10px 22px;
    border-end-end-radius: 999px;
    border-start-end-radius: 0;
    margin: 0;
}
[dir="rtl"] .sp-section__label { border-radius: 0 0 0 999px; }
[dir="ltr"] .sp-section__label { border-radius: 0 0 999px 0; }
.sp-section__icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-gold);
    color: var(--sp-navy);
    font-size: 20px;
}
[dir="rtl"] .sp-section__icon { border-radius: 0 0 0 16px; }
[dir="ltr"] .sp-section__icon { border-radius: 0 0 16px 0; }
.sp-section__body { padding: 0 20px; color: var(--sp-text); font-size: 16px; line-height: 1.9; margin: 0; white-space: pre-line; }

.sp-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px;
}
.sp-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafd;
    border: 1px solid var(--sp-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-ink);
    line-height: 1.5;
}
.sp-service i {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-gold-soft);
    color: #d18b00;
    font-size: 20px;
}
@media (max-width: 420px) {
    .sp-services { grid-template-columns: 1fr; }
}

.sp-profile__cta {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 22px 0 14px;
    padding: 12px 22px;
    min-height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    border: 3px solid var(--sp-gold);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(2, 25, 78, .3);
    transition: transform .2s var(--sp-ease), box-shadow .2s;
}
.sp-profile__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(2, 25, 78, .36); }
.sp-profile__cta i { font-size: 24px; color: #fff; }
.sp-profile__cta .sep { width: 2px; height: 28px; background: rgba(255, 255, 255, .5); border-radius: 2px; }
.sp-profile__cta .num { direction: ltr; unicode-bidi: embed; letter-spacing: .5px; }
@media (max-width: 420px) {
    .sp-profile__cta { font-size: 16px; gap: 10px; padding: 10px 16px; }
}

.sp-profile__secondary {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}
.sp-profile__secondary .sp-btn { flex: 1; min-height: 46px; font-size: 15px; padding: 8px 14px; }

.sp-profile__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--sp-ink);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0 4px;
}
.sp-profile__footer .sep { width: 1px; height: 16px; background: var(--sp-muted); }

@media (max-width: 575px) {
    .sp-profile { border-radius: 26px; }
    .sp-profile__inner { padding: 22px 16px 18px; }
    .sp-profile__photo .sp-avatar { --size: 168px; }
    .sp-profile__name { font-size: 27px; }
    .sp-profile__title { font-size: 16px; gap: 10px; }
    .sp-profile__title::before, .sp-profile__title::after { flex-basis: 24px; }
}

.sp-related { margin-top: 56px; }
.sp-related__title {
    color: var(--sp-navy);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

/* ------------------------------------------------------------------ join form */

.sp-join-head { text-align: center; margin-bottom: 34px; }
.sp-join-head .sp-hero__icon { background: var(--sp-gold-soft); }
.sp-join-head h1 { color: var(--sp-navy); font-size: 38px; font-weight: 900; margin-bottom: 10px; }
.sp-join-head p { color: var(--sp-muted); font-size: 17px; max-width: 620px; margin: 0 auto; }
@media (max-width: 575px) {
    .sp-join-head h1 { font-size: 28px; }
    .sp-join-head p { font-size: 15px; }
}

.sp-panel {
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--sp-shadow);
    border: 1px solid rgba(2, 25, 78, .05);
    padding: 34px;
}
@media (max-width: 575px) {
    .sp-panel { padding: 22px 16px; border-radius: 22px; }
}

.sp-stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    counter-reset: step;
    padding: 0;
    list-style: none;
}
.sp-stepper li {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.sp-stepper .bar {
    height: 6px;
    border-radius: 999px;
    background: var(--sp-line);
    overflow: hidden;
    position: relative;
}
.sp-stepper .bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--sp-gold), var(--sp-gold-2));
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform .4s var(--sp-ease);
}
[dir="rtl"] .sp-stepper .bar::after { transform-origin: right; }
[dir="ltr"] .sp-stepper .bar::after { transform-origin: left; }
.sp-stepper li.is-active .bar::after,
.sp-stepper li.is-done .bar::after { transform: scaleX(1); }
.sp-stepper .label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-muted);
}
.sp-stepper .num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-soft);
    color: var(--sp-muted);
    font-size: 13px;
    flex-shrink: 0;
    transition: background .3s, color .3s;
}
.sp-stepper li.is-active .label { color: var(--sp-navy); }
.sp-stepper li.is-active .num { background: var(--sp-navy); color: #fff; }
.sp-stepper li.is-done .num { background: var(--sp-gold); color: var(--sp-navy); }
@media (max-width: 575px) {
    .sp-stepper .label .text { display: none; }
    .sp-stepper li.is-active .label .text { display: inline; }
}

.sp-step { animation: spFade .35s var(--sp-ease); }
.sp-step[hidden] { display: none !important; }
@keyframes spFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sp-step__title {
    color: var(--sp-navy);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-step__title i { color: var(--sp-gold); }

.sp-field { margin-bottom: 20px; }
.sp-field > label,
.sp-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-ink);
    margin-bottom: 8px;
}
.sp-field .req { color: var(--sp-red); }
.sp-field .hint { display: block; font-size: 13px; color: var(--sp-muted); margin-top: 6px; }
.sp-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--sp-ink);
    transition: border-color .2s, box-shadow .2s;
    box-shadow: none;
}
.sp-input::placeholder { color: #98a4b8; }
.sp-input:focus { outline: none; border-color: var(--sp-navy); box-shadow: 0 0 0 3px rgba(2, 25, 78, .1); }
textarea.sp-input { min-height: 140px; resize: vertical; line-height: 1.8; }
.sp-input[dir="ltr"] { text-align: left; }
[dir="rtl"] .sp-input[dir="ltr"]::placeholder { text-align: right; }
.sp-field.is-invalid .sp-input { border-color: var(--sp-red); background: #fff8f8; }
.sp-error { display: block; color: var(--sp-red); font-size: 13px; font-weight: 600; margin-top: 6px; min-height: 0; }
.sp-error:empty { display: none; }

.sp-input-icon { position: relative; }
.sp-input-icon > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 16px;
    color: var(--sp-muted);
    font-size: 18px;
    pointer-events: none;
}
.sp-input-icon .sp-input { padding-inline-start: 46px; }

.sp-counter { font-size: 13px; color: var(--sp-muted); text-align: end; margin-top: 6px; }
.sp-counter.is-low { color: #c07c00; }
.sp-counter.is-ok { color: var(--sp-green); }

/* segmented pills (honorific) */
.sp-segment { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-segment input { position: absolute; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.sp-segment label {
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--sp-line);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-ink);
    cursor: pointer;
    transition: all .2s;
}
.sp-segment label:hover { border-color: var(--sp-navy); }
.sp-segment input:checked + label { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.sp-segment input:focus-visible + label { outline: 3px solid rgba(254, 173, 4, .55); outline-offset: 2px; }

/* photo dropzone */
.sp-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 2px dashed #c8d3e6;
    border-radius: 20px;
    background: #fafbfe;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.sp-drop:hover,
.sp-drop.is-dragover { border-color: var(--sp-gold); background: #fffbf0; }
.sp-field.is-invalid .sp-drop { border-color: var(--sp-red); }
.sp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sp-drop__preview {
    width: 92px; height: 92px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    border: 3px solid var(--sp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-gold);
    font-size: 32px;
    overflow: hidden;
}
.sp-drop__preview img { width: 100%; height: 100%; object-fit: cover; }
.sp-drop__text strong { display: block; color: var(--sp-navy); font-size: 16px; margin-bottom: 4px; }
.sp-drop__text span { color: var(--sp-muted); font-size: 13px; line-height: 1.6; display: block; }

/* tag input (services) */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.sp-tags:focus-within { border-color: var(--sp-navy); box-shadow: 0 0 0 3px rgba(2, 25, 78, .1); }
.sp-field.is-invalid .sp-tags { border-color: var(--sp-red); }
.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    border-radius: 999px;
    background: var(--sp-gold-soft);
    color: var(--sp-ink);
    font-size: 14px;
    font-weight: 700;
    animation: spFade .25s var(--sp-ease);
}
[dir="rtl"] .sp-tag { padding: 6px 12px 6px 8px; }
.sp-tag button {
    width: 22px; height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(2, 25, 78, .08);
    color: var(--sp-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}
.sp-tag button:hover { background: var(--sp-red); color: #fff; }
.sp-tags input {
    flex: 1;
    min-width: 160px;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    padding: 6px 8px;
    height: auto;
}
.sp-tags__add {
    border: 0;
    border-radius: 10px;
    background: var(--sp-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    cursor: pointer;
}
.sp-tags__add[disabled] { opacity: .4; cursor: not-allowed; }

.sp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--sp-text);
    cursor: pointer;
    line-height: 1.7;
}
.sp-check input {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: var(--sp-navy);
    cursor: pointer;
}
.sp-field.is-invalid .sp-check { color: var(--sp-red); }

.sp-consent {
    padding: 16px;
    border-radius: 16px;
    background: var(--sp-soft);
}

.sp-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--sp-line);
}
.sp-form-nav .spacer { flex: 1; }
.sp-form-nav .step-indicator { color: var(--sp-muted); font-size: 14px; font-weight: 600; }
@media (max-width: 575px) {
    .sp-form-nav .step-indicator,
    .sp-form-nav .spacer { display: none; }
    .sp-form-nav .sp-btn { flex: 1; padding: 10px 16px; }
}

.sp-spinner {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(2, 25, 78, .25);
    border-top-color: var(--sp-navy);
    animation: spSpin .7s linear infinite;
}
@keyframes spSpin { to { transform: rotate(360deg); } }

/* success state */
.sp-success { text-align: center; padding: 30px 10px; animation: spFade .4s var(--sp-ease); }
.sp-success__icon {
    width: 110px; height: 110px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--sp-green-soft);
    color: var(--sp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    box-shadow: 0 0 0 12px rgba(20, 151, 90, .07);
}
.sp-success h2 { color: var(--sp-navy); font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.sp-success p { color: var(--sp-muted); max-width: 480px; margin: 0 auto 26px; font-size: 16px; line-height: 1.8; }

/* side column: preview + benefits */
.sp-aside { position: sticky; top: 110px; }
.sp-preview {
    background: linear-gradient(160deg, var(--sp-navy-2), var(--sp-navy));
    border-radius: 28px;
    padding: 18px 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--sp-shadow);
}
.sp-preview summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    padding: 4px 6px 14px;
}
.sp-preview summary::-webkit-details-marker { display: none; }
.sp-preview summary .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
    display: inline-block;
    margin-inline-end: 8px;
}
.sp-preview summary i { transition: transform .25s; }
.sp-preview[open] summary i { transform: rotate(180deg); }
.sp-preview .sp-card { box-shadow: none; }
.sp-preview .sp-card:hover { transform: none; }
.sp-preview .is-placeholder { color: #a7b2c5 !important; }

.sp-benefits {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--sp-shadow);
}
.sp-benefits h3 { color: var(--sp-navy); font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.sp-benefits ul { list-style: none; padding: 0; margin: 0; }
.sp-benefits li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--sp-text);
    margin: 0 0 12px;
    line-height: 1.6;
}
.sp-benefits li:last-child { margin-bottom: 0; }
.sp-benefits li i {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--sp-gold-soft);
    color: #d18b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
@media (max-width: 991px) {
    .sp-aside { position: static; }
    .sp-benefits { display: none; }
}

/* honeypot */
/* clipped in place — a large negative offset would widen the page in RTL */
.sp-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* the [hidden] attribute must win over the display rules above */
.sp-page [hidden] { display: none !important; }
.sp-step__title:focus, .sp-success:focus { outline: none; }

/* the theme hides every checkbox/radio and fakes one on a sibling <label> — undo that here */
.sp-page .sp-check input[type=checkbox] {
    position: static;
    opacity: 1;
    -webkit-appearance: checkbox;
    appearance: auto;
}
.sp-page .sp-segment input[type=radio] ~ label {
    padding: 10px 18px;
    line-height: 1.3;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-ink);
}
.sp-page .sp-segment input[type=radio]:checked + label { color: #fff; }
.sp-page .sp-segment input[type=radio] ~ label::before,
.sp-page .sp-segment input[type=radio] ~ label::after { display: none; content: none; }

/* these labels sit directly under .sp-field, whose generic "> label" rule would make them block */
.sp-field > label.sp-drop { display: flex; margin-bottom: 0; font-weight: 400; }
.sp-field > label.sp-check { display: flex; margin-bottom: 0; font-weight: 400; color: var(--sp-text); }
.sp-field.is-invalid > label.sp-check { color: var(--sp-red); }
