/*
 * Therapist profile (Figma "New Layout Design for Review" > Therapist Profile,
 * and Responsive - Mobile > Counselor Detail). Scoped to .tProfile.
 */

.tProfile {
    --tp-font: Samim, sans-serif;
    --tp-font-600: Samim-m, Samim, sans-serif;
    --tp-font-700: Samim-b, Samim, sans-serif;
    --tp-inter: Inter, Samim, sans-serif;
    --tp-navy: #004492;
    --tp-coral: #d67a69;
    --tp-coral-text: #ca7e6d;
    --tp-ink: #141b34;
    --tp-slate: #35405e;
    --tp-grey: #72798e;
    --tp-panel: #f6f8fa;
    --tp-hero: #eff6fe;
    --tp-blue-soft: #ecf4fe;
    --tp-line: #eceef2;
    --tp-green: #00964c;
    background: var(--tp-panel);
    color: var(--tp-slate);
    font-family: var(--tp-font);
    font-synthesis: none;
    padding-bottom: 64px;
}
.tProfile *,
.tSheet * {
    box-sizing: border-box;
}
html:lang(ar) .tProfile,
html:lang(ar) .tSheet {
    direction: rtl;
}
:where(.tProfile, .tSheet) :is(h1, h2, p) {
    margin: 0;
    font-weight: normal;
}
.tProfile button {
    font-family: inherit;
}
.tProfile__wrap {
    width: 976px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

/* ---- Hero ------------------------------------------------------------------ */

.tProfile__hero {
    background: var(--tp-hero);
    padding: 32px 0 27px;
}
.tProfile__heroInner {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}
.tProfile__avatar {
    position: relative;
    flex: none;
    width: 178px;
    height: 178px;
}
.tProfile__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 16px;
    object-fit: cover;
}
.tProfile__online {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #15cf74;
}
html:lang(ar) .tProfile__online {
    right: auto;
    left: -3px;
}
.tProfile__id {
    flex: 1;
    min-width: 0;
    padding-top: 30px;
}
.tProfile__name {
    margin: 0;
    font-family: var(--tp-font-700);
    font-size: 24px;
    line-height: 30px;
    color: var(--tp-slate);
}
.tProfile__title,
.tProfile__headline {
    margin-top: 6px;
    font-size: 16px;
    line-height: 24px;
    color: var(--tp-slate);
}
.tProfile__headline {
    margin-top: 2px;
}
.tProfile__score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    line-height: 20px;
    color: var(--tp-slate);
}
.tProfile__score img {
    width: 16px;
    height: 16px;
}
.tProfile__actions {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    padding-top: 28px;
}
.tProfile__cta {
    display: flex;
    align-items: center;
    gap: 22px;
}
.tProfile__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 56px;
    border-radius: 300px;
    background: var(--tp-navy);
    font-family: var(--tp-font-700);
    font-size: 20px;
    line-height: 24px;
    color: #fff;
    text-decoration: none;
}
.tProfile__book:hover,
.tProfile__book:focus {
    color: #fff;
    text-decoration: none;
}
.tProfile__chatBtn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
}
.tProfile__chatBtn img {
    width: 28px;
    height: 28px;
}
.tProfile__chat .chat-menu {
    right: 0;
    left: auto;
    padding: 8px 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 27, 52, 0.12);
}
.tProfile__chat .chat-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--tp-slate);
}
.tProfile__chat .chat-menu img {
    width: 20px;
}
.tProfile__share {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.tProfile__share span {
    font-family: var(--tp-font-600);
    font-size: 14px;
    line-height: 18px;
    color: var(--tp-slate);
}
.tProfile__shareIcons {
    display: flex;
    gap: 12px;
}
.tProfile__shareIcons img {
    display: block;
    width: 24px;
    height: 24px;
}
.tProfile__share--foot,
.tProfile__certified--top,
.tProfile__tabs,
.tProfile__bar,
.tProfile__specialities {
    display: none;
}

/* ---- Cards -------------------------------------------------------------------- */

.tProfile__grid {
    display: grid;
    grid-template-columns: 376px minmax(0, 1fr);
    align-items: start;
    gap: 20px 24px;
    margin-top: 20px;
}
.tProfile__card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
}
.tProfile__intro {
    padding: 28px;
}
.tProfile__heading {
    margin: 0;
    font-family: var(--tp-font-700);
    font-size: 22px;
    line-height: 28px;
    color: var(--tp-slate);
}
.tProfile__subheading {
    margin: 0;
    font-family: var(--tp-font-700);
    font-size: 16px;
    line-height: 20px;
    color: var(--tp-slate);
}
.tProfile__facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.tProfile__facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    line-height: 24px;
    color: var(--tp-slate);
}
.tProfile__facts li > img {
    flex: none;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.tProfile__facts strong {
    margin-inline-start: -10px;
    font-family: var(--tp-font-600);
    font-weight: normal;
}
.tProfile__fact--green {
    font-family: var(--tp-font-600);
    color: var(--tp-green) !important;
}
.tProfile__chip {
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--tp-blue-soft);
    font-family: var(--tp-font-600);
    color: var(--tp-navy);
}
.tProfile__certified--card {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tp-line);
}
.tProfile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}
.tProfile__badges img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.tProfile__video {
    display: block;
    width: 100%;
    aspect-ratio: 519 / 244;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
}
.tProfile__bio {
    margin-top: 8px;
    font-size: 16px;
    line-height: 28px;
    color: var(--tp-slate);
}

/* ---- Rating & Review ---------------------------------------------------------- */

.tProfile__rating {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 328px minmax(0, 1fr);
    gap: 0 42px;
}
/* one review and no facet scores yet: the card keeps the About column's width */
.tProfile__rating:not(.is-empty):not(:has(.tProfile__performance)) {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
}
.tProfile__rating.is-empty {
    grid-template-columns: minmax(0, 1fr);
}
.tProfile__ratingMain {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tProfile__ratingMain .tProfile__heading {
    align-self: stretch;
}
.tProfile__rating:has(.tProfile__performance) .tProfile__ratingMain {
    border-inline-end: 1px solid var(--tp-line);
    margin-inline-end: -21px;
    padding-inline-end: 21px;
}
.tProfile__score--big {
    margin-top: 14px;
    font-family: var(--tp-font-700);
    font-size: 40px;
    line-height: 44px;
    color: var(--tp-slate);
}
.tStars {
    display: inline-flex;
    gap: 4px;
}
.tStars i,
.tStarInput button {
    display: block;
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    -webkit-mask: url("../images/booking/star.svg") center / contain no-repeat;
    mask: url("../images/booking/star.svg") center / contain no-repeat;
}
.tStars i.is-on,
.tStarInput button.is-on {
    background: #ffbd00;
}
.tStars--lg {
    gap: 10px;
    margin-top: 8px;
}
.tStars--lg i {
    width: 24px;
    height: 24px;
}
.tProfile__count {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    line-height: 18px;
    color: var(--tp-slate);
    text-decoration: underline;
}
.tProfile__reviewActions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.tProfile__reviewActions:empty {
    display: none;
}
.tProfile__reviewBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 214px;
    height: 40px;
    padding: 0 24px;
    border: 1px solid var(--tp-coral);
    border-radius: 100px;
    background: var(--tp-coral);
    font-family: var(--tp-font-600);
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    text-decoration: none;
}
.tProfile__reviewBtn:hover,
.tProfile__reviewBtn:focus {
    color: #fff;
    text-decoration: none;
}
.tProfile__reviewBtn--ghost {
    background: #fff;
    color: var(--tp-coral-text);
}
.tProfile__reviewBtn--ghost:hover,
.tProfile__reviewBtn--ghost:focus {
    color: var(--tp-coral-text);
}
.tProfile__rating.is-empty .tProfile__ratingMain {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "heading heading" "new actions";
    align-items: center;
}
.tProfile__rating.is-empty .tProfile__heading {
    grid-area: heading;
}
.tProfile__rating.is-empty .tProfile__reviewActions {
    grid-area: actions;
    margin-top: 16px;
}
.tProfile__rating.is-empty .tProfile__reviewBtn {
    min-width: 174px;
    height: 36px;
}
.tProfile__new {
    grid-area: new;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}
.tProfile__new img {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}
.tProfile__new p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 18px;
}
.tProfile__new strong {
    font-family: var(--tp-font-600);
    font-weight: normal;
}
.tProfile__performance {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tProfile__facet {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tProfile__facetLabel {
    display: flex;
    justify-content: space-between;
    font-family: var(--tp-font-600);
    font-size: 13px;
    line-height: 16px;
    color: var(--tp-ink);
}
.tProfile__facetTrack {
    height: 5px;
    border-radius: 5px;
    background: #eef0f3;
}
.tProfile__facetTrack span {
    display: block;
    height: 100%;
    border-radius: 5px;
}
.tProfile__facetTrack .is-best {
    background: #22c55e;
}
.tProfile__facetTrack .is-good {
    background: #f5b800;
}
.tProfile__facetTrack .is-fair {
    background: #ff9800;
}
.tProfile__facetTrack .is-low {
    background: #ff8318;
}

/* ---- Sheets: View Reviews and Write Review ------------------------------------- */

body.tSheet-open {
    overflow: hidden;
}
.tSheet[hidden] {
    display: none;
}
.tSheet {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: var(--tp-font);
    color: var(--tp-slate);
}
.tSheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 27, 52, 0.35);
}
.tSheet__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 650px;
    max-width: 100%;
    max-height: min(720px, 100%);
    padding: 28px 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}
.tSheet__dialog--form {
    width: 650px;
    margin: 0;
}
.tSheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.tSheet__title {
    margin: 0;
    font-family: var(--tp-font-700);
    font-size: 20px;
    line-height: 26px;
    color: var(--tp-ink);
}
.tSheet__help {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 20px;
}
.tSheet__close {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
}
.tSheet__close img {
    width: 100%;
}
.tSheet__filters {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.tSheet__select select {
    height: 40px;
    padding: 0 40px 0 16px;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    background: #fff url("../images/booking/filter-chevron-down-sm.svg") no-repeat right 14px center / 12px 7px;
    font-family: var(--tp-font);
    font-size: 15px;
    color: var(--tp-ink);
    -webkit-appearance: none;
    appearance: none;
}
html:lang(ar) .tSheet__select select {
    padding: 0 16px 0 40px;
    background-position: left 14px center;
}
.tSheet__select--wide select {
    width: 100%;
}
.tSheet__body {
    flex: 1;
    min-height: 0;
    margin: 16px -16px 0;
    padding: 0 16px;
    overflow-y: auto;
}
.tReviews {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tReviews__item {
    padding: 14px 0;
    border-bottom: 1px solid var(--tp-line);
}
.tReviews__top,
.tReviews__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tReviews__top {
    justify-content: flex-start;
}
.tReviews__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    object-fit: cover;
}
.tReviews__name {
    font-family: var(--tp-font-600);
    font-size: 16px;
    color: var(--tp-ink);
}
.tReviews__line {
    margin-top: 12px;
}
.tReviews__tag {
    font-family: var(--tp-font-700);
    font-size: 16px;
    color: var(--tp-ink);
}
.tReviews__message {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--tp-slate);
}
.tReviews__empty {
    padding: 24px 0;
    text-align: center;
}
.tForm__label {
    display: block;
    margin: 16px 0 8px;
    font-family: var(--tp-font-600);
    font-size: 15px;
    line-height: 20px;
    color: var(--tp-ink);
}
.tForm__label span {
    font-family: var(--tp-font);
    color: #9aa1b2;
}
.tStarInput {
    display: inline-flex;
    gap: 6px;
}
.tStarInput button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    cursor: pointer;
}
.tStarInput--lg {
    gap: 14px;
}
.tStarInput--lg button {
    width: 28px;
    height: 28px;
}
.tForm__message {
    position: relative;
}
.tForm__message textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 14px 14px 26px;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    outline: 0;
    font-family: var(--tp-font);
    font-size: 15px;
    line-height: 22px;
    color: var(--tp-ink);
    resize: vertical;
}
.tForm__count {
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 11px;
    color: #9aa1b2;
}
html:lang(ar) .tForm__count {
    right: auto;
    left: 14px;
}
.tForm__facet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}
.tForm__error {
    min-height: 18px;
    margin: 8px 0 0;
    font-size: 14px;
    color: #b93333;
}
.tSheet__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
}
.tForm__submit,
.tForm__delete {
    min-width: 214px;
    height: 40px;
    border: 0;
    border-radius: 100px;
    background: var(--tp-coral);
    font-family: var(--tp-font-600);
    font-size: 15px;
    color: #fff;
}
.tForm__delete {
    min-width: 0;
    padding: 0 20px;
    border: 1px solid var(--tp-coral);
    background: #fff;
    color: var(--tp-coral-text);
}
.tForm__delete[hidden] {
    display: none;
}
.tForm__submit:disabled,
.tForm__delete:disabled {
    opacity: 0.6;
}

/* ---- Phones (Responsive - Mobile > Counselor Detail) -------------------------- */

@media (max-width: 767px) {
    .tProfile {
        padding-bottom: 96px;
    }
    .tProfile__wrap {
        max-width: none;
        width: auto;
        margin: 0 20px;
    }
    .tProfile__hero {
        padding: 16px 0;
    }
    .tProfile__heroInner {
        align-items: center;
        gap: 14px;
    }
    .tProfile__avatar {
        width: 90px;
        height: 90px;
    }
    .tProfile__avatar img {
        border-radius: 12px;
    }
    .tProfile__online {
        width: 12px;
        height: 12px;
    }
    .tProfile__id {
        padding-top: 0;
    }
    .tProfile__name {
        font-size: 18px;
        line-height: 24px;
    }
    .tProfile__title {
        margin-top: 2px;
        font-size: 13px;
        line-height: 18px;
    }
    .tProfile__headline,
    .tProfile__actions,
    .tProfile__certified--card {
        display: none;
    }
    .tProfile__score {
        font-size: 12px;
    }
    .tProfile__score img {
        width: 14px;
        height: 14px;
    }
    .tProfile__certified--top {
        display: block;
        padding-top: 16px;
    }
    .tProfile__certified--top .tProfile__subheading {
        font-size: 14px;
    }
    .tProfile__badges {
        gap: 14px;
        margin-top: 8px;
    }
    .tProfile__badges img {
        width: 52px;
        height: 52px;
    }
    .tProfile__tabs {
        display: flex;
        margin-top: 16px;
        padding: 4px;
        border-radius: 100px;
        background: #fff;
    }
    .tProfile__tab {
        flex: 1;
        height: 30px;
        padding: 0 8px;
        border: 0;
        border-radius: 100px;
        background: none;
        font-family: var(--tp-inter);
        font-size: 13px;
        color: var(--tp-slate);
    }
    .tProfile__tab.is-active {
        background: var(--tp-panel);
        font-weight: 600;
        color: var(--tp-ink);
    }
    .tProfile__grid {
        display: block;
        margin-top: 16px;
    }
    .tProfile__card {
        display: none;
        padding: 18px 16px;
    }
    .tProfile__card.is-active {
        display: block;
    }
    .tProfile__heading {
        font-size: 18px;
        line-height: 24px;
    }
    .tProfile__facts li {
        gap: 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .tProfile__facts li > img {
        width: 20px;
        height: 20px;
    }
    .tProfile__specialities {
        display: block;
        margin-top: 16px;
    }
    .tProfile__specialitiesLabel {
        font-size: 14px;
    }
    .tProfile__specialityChips {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 12px;
        margin-top: 10px;
    }
    .tProfile__specialityChips a {
        padding: 6px 18px;
        border: 1px solid var(--tp-navy);
        border-radius: 8px;
        font-size: 14px;
        color: var(--tp-navy);
        text-decoration: none;
    }
    .tProfile__video {
        margin-bottom: 14px;
        aspect-ratio: 330 / 218;
    }
    .tProfile__intro {
        padding: 16px;
    }
    .tProfile__bio {
        font-size: 13px;
        line-height: 22px;
    }
    .tProfile__rating.is-active {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .tProfile__rating:has(.tProfile__performance) .tProfile__ratingMain {
        margin: 0;
        padding: 0;
        border: 0;
    }
    .tProfile__rating.is-empty .tProfile__ratingMain {
        display: flex;
        align-items: stretch;
    }
    .tProfile__rating.is-empty .tProfile__reviewActions {
        justify-content: center;
    }
    .tProfile__share--foot {
        display: flex;
        align-items: flex-start;
        margin-top: 24px;
    }
    .tProfile__share--foot span {
        font-size: 12px;
    }
    .tProfile__bar {
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 67px;
        padding: 10px 20px;
        border-top: 1px solid #e6e9ee;
        background: #fff;
    }
    /* the site-wide WhatsApp button sits above the bar instead of over Cancel */
    body:has(.tProfile__bar) .whatsapp-contact {
        bottom: 84px !important;
    }
    .tProfile__barCancel {
        flex: 1;
        font-family: var(--tp-font-600);
        font-size: 18px;
        color: #919191;
        text-align: center;
        text-decoration: none;
    }
    .tProfile__bar .tProfile__book {
        width: 166px;
        height: 48px;
        font-family: var(--tp-inter);
        font-weight: 700;
        font-size: 18px;
    }
    .tSheet {
        align-items: flex-end;
        padding: 0;
    }
    .tSheet__backdrop {
        background: rgba(0, 0, 0, 0.6);
    }
    .tSheet__dialog,
    .tSheet__dialog--form {
        width: 100%;
        max-height: 88vh;
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }
    .tSheet__title {
        font-family: var(--tp-inter);
        font-weight: 600;
        font-size: 16px;
    }
    #reviewsSheet .tSheet__title {
        color: var(--tp-coral-text);
    }
    .tSheet__help {
        font-size: 12px;
    }
    .tSheet__filters {
        gap: 12px;
        margin-top: 12px;
    }
    .tSheet__filters .tSheet__select {
        flex: 1;
    }
    .tSheet__filters select {
        width: 100%;
        height: 36px;
        font-size: 13px;
    }
    .tForm__label,
    .tForm__facet {
        font-size: 13px;
    }
    .tForm__submit {
        width: 100%;
    }
}
