/* =====================================================================
 * Free intro call (Dec 2026). Markup: inc/intro-call/ttf-intro-call.php.
 * Site tokens: accent #F7C845, light #FFF8E1, ink #282828, muted #5b6573,
 * line #E0E0E0. Loaded site-wide (the badge is on cards everywhere),
 * versioned by file time so an upload busts the cache on its own.
 * ===================================================================== */

/* ---------- The badge, on every card ---------- */
.ttf-ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 12px 5px 10px;
    border: 1px solid #F7C845;
    border-radius: 999px;
    background: #FFF8E1;
    color: #282828;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}
.ttf-ic-badge::before {
    content: "";
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23282828' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 16.4v2.9a1.9 1.9 0 0 1-2.1 1.9 18.8 18.8 0 0 1-8.2-2.9 18.5 18.5 0 0 1-5.7-5.7A18.8 18.8 0 0 1 2.1 4.3 1.9 1.9 0 0 1 4 2.2h2.9a1.9 1.9 0 0 1 1.9 1.6c.12.9.34 1.8.66 2.7a1.9 1.9 0 0 1-.43 2L7.8 9.7a15.2 15.2 0 0 0 5.7 5.7l1.2-1.2a1.9 1.9 0 0 1 2-.43c.87.32 1.77.54 2.7.66A1.9 1.9 0 0 1 21 16.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Search card (Elementor 1364): above the View profile button. */
.ttf-ic-badge--flow {
    align-self: center;
    margin: 6px auto 14px;
}
/* Fallback when the template has no viewProfile button: top of the card. */
.ttf-ic-badge--top {
    align-self: center;
    margin: 18px auto 0;
}
/* Location pages' compact card: between the summary and the buttons. */
.ttf-cc .ttf-ic-badge {
    margin: 0 0 .75rem;
}
/* Shortlist page card: under the name and practitioner line. */
.ttf-shortlist-card .ttf-ic-badge {
    align-self: center;
    margin: 0 0 .75rem;
}

/* ---------- The profile ---------- */
/* Joins "Featured Therapist" and "Accepting new clients" in the hero. */
.tp-profile .tp-badge.ttf-ic-badge--profile {
    gap: 5px;
    padding: 3px 10px 3px 8px;
    border: 1px solid var(--tp-accent, #F7C845);
    background: var(--tp-accent-l, #fef3d4);
    color: var(--tp-on-accent, #1d2530);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.tp-profile .tp-badge.ttf-ic-badge--profile::before {
    width: 12px;
    height: 12px;
}

/* "Book a free call", next to "Email Therapist". */
.tp-profile .ttf-ic-cta .ttf-ic-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.tp-profile .ttf-ic-cta .ttf-ic-icon--ext {
    width: 13px;
    height: 13px;
    margin-left: -2px;
    opacity: .7;
}
.tp-profile .ttf-ic-cta:focus-visible {
    outline: 2px solid var(--tp-text, #1d2530);
    outline-offset: 2px;
}

/* Phone sticky bar: Email, Free call and Call stay on one row. The phone
   button drops to its icon (its aria-label still reads the number), and on
   the narrowest phones the other icons go too. */
.tp-cta-row-sticky:has(.ttf-ic-cta) {
    flex-wrap: nowrap;
}
.tp-cta-row-sticky:has(.ttf-ic-cta) .tp-btn {
    padding-left: 12px;
    padding-right: 12px;
}
.tp-cta-row-sticky:has(.ttf-ic-cta) .tp-btn-primary {
    min-width: 0;
    white-space: nowrap;
}
.tp-cta-row-sticky:has(.ttf-ic-cta) a.tp-btn[href^="tel:"] {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
}
.tp-cta-row-sticky:has(.ttf-ic-cta) a.tp-btn[href^="tel:"] .tp-cta-label-short {
    display: none;
}
@media (max-width: 380px) {
    .tp-cta-row-sticky:has(.ttf-ic-cta):has(a[href^="tel:"]) .tp-btn-primary svg {
        display: none;
    }
}
@media (max-width: 340px) {
    .tp-cta-row-sticky:has(.ttf-ic-cta):has(a[href^="tel:"]) .ttf-ic-cta svg {
        display: none;
    }
}

/* ---------- The form controls (signup step 3, dashboard card) ---------- */
.ttf-ic {
    display: grid;
    gap: 18px;
    color: #282828;
}
.ttf-ic *,
.ttf-ic *::before,
.ttf-ic *::after {
    box-sizing: border-box;
}

/* The tick box, as a card the whole of which can be clicked. */
.ttf-ic .ttf-ic__switch {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    background: #FAFAFA;
    cursor: pointer;
    line-height: 1.4;
    text-transform: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.ttf-ic .ttf-ic__switch:hover {
    border-color: #F7C845;
}
.ttf-ic.is-on .ttf-ic__switch {
    border-color: #F7C845;
    background: #FFF8E1;
}
.ttf-ic .ttf-ic__switch:has(input:focus-visible) {
    outline: 2px solid #282828;
    outline-offset: 2px;
}
/* The real checkbox: invisible, but still focusable and still the control. */
.ttf-ic .ttf-ic__switch input,
.ttf-ic .ttf-ic__length input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
.ttf-ic .ttf-ic__switch-box {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    transition: background-color .15s ease, border-color .15s ease;
}
.ttf-ic.is-on .ttf-ic__switch-box,
.ttf-ic .ttf-ic__switch input:checked + .ttf-ic__switch-box {
    border-color: #282828;
    background: #F7C845;
    color: #282828;
}
.ttf-ic .ttf-ic__switch-text {
    display: block;
    min-width: 0;
}
.ttf-ic .ttf-ic__switch-title {
    display: block;
    color: #282828;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.ttf-ic .ttf-ic__switch-desc {
    display: block;
    margin-top: 3px;
    color: #5b6573;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.ttf-ic .ttf-ic__details {
    display: grid;
    gap: 18px;
}
.ttf-ic .ttf-ic__details[hidden] {
    display: none;
}

.ttf-ic .ttf-ic__lengths {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.ttf-ic .ttf-ic__label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #282828;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
}
.ttf-ic .ttf-ic__req {
    color: #F80718;
}
.ttf-ic .ttf-ic__opt {
    color: #5b6573;
    font-weight: 400;
}

.ttf-ic .ttf-ic__length-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ttf-ic .ttf-ic__length {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}
.ttf-ic .ttf-ic__length span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #E0E0E0;
    border-radius: 999px;
    background: #fff;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.ttf-ic .ttf-ic__length:hover span {
    border-color: #282828;
}
.ttf-ic .ttf-ic__length input:checked + span {
    border-color: #F7C845;
    background: #FFF8E1;
    box-shadow: inset 0 0 0 1px #F7C845;
    font-weight: 600;
}
.ttf-ic .ttf-ic__length input:focus-visible + span {
    outline: 2px solid #282828;
    outline-offset: 2px;
}
.ttf-ic .ttf-ic__lengths.is-invalid .ttf-ic__length span,
.ttf-ic .ttf-ic__length input.error-field + span {
    border-color: #dc2626;
}

.ttf-ic .ttf-ic__url {
    display: block;
    width: 100%;
    margin: 0;
    font-family: inherit;
}
.ttf-ic .ttf-ic__url.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}
.ttf-ic .ttf-ic__help {
    margin: 8px 0 0;
    color: #5b6573;
    font-size: 13px;
    line-height: 1.5;
}
.ttf-ic .ttf-ic__error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}
.ttf-ic .ttf-ic__error::before {
    content: "";
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23dc2626'/%3E%3Cpath d='M10 5.5v5.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.2' r='1.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ttf-ic .ttf-ic__error[hidden] {
    display: none;
}
.ttf-ic .ttf-ic__preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #5b6573;
    font-size: 13px;
}

/* Signup: the step's own look (all.css .contact-info). */
.ttf-ic-signup-wrap {
    display: grid;
    gap: 12px;
}
.therapist-step-form-new .ttf-ic-signup-title {
    margin: 0;
    color: #282828 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}
.ttf-ic--signup .ttf-ic__url {
    padding: 14px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: #FAFAFA;
    color: #000;
    font-size: 14px;
    line-height: 1.4;
}
.ttf-ic--signup .ttf-ic__url:focus {
    border-color: #F7C845;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 200, 69, .25);
}
.ttf-ic--signup .ttf-ic__url::placeholder {
    color: #868EAE;
}

/* Dashboard: the editor's own tokens (style.css .ttf-edit-dashboard). */
.ttf-ic--dashboard .ttf-ic__switch {
    border-color: var(--ttf-line, #e6e6e6);
    background: var(--ttf-bg, #f7f7f5);
}
.ttf-ic--dashboard.is-on .ttf-ic__switch {
    border-color: var(--ttf-accent, #F7C845);
    background: #fff8e1;
}
.ttf-ic--dashboard .ttf-ic__length span {
    border-color: var(--ttf-line, #e6e6e6);
}
.ttf-ic--dashboard .ttf-ic__help {
    font-size: 12px;
}

@media (max-width: 600px) {
    .ttf-ic .ttf-ic__switch {
        padding: 14px;
        gap: 12px;
    }
    .ttf-ic .ttf-ic__length {
        flex: 1 1 0;
    }
    .ttf-ic .ttf-ic__length span {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
    }
}

/* ---------- The search filter pill (/find-a-therapist) ---------- */
/* Matches .ttf-flt__btn in style.css; prefixed like it to beat the
   Elementor custom-code snippet (post 237) and the theme's button rules. */
.therapistFinderBox .ttf-flt__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #DCDCDC;
    border-radius: 999px;
    background: #fff;
    color: #282828;
    font: 500 14px/1.2 'Poppins', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.therapistFinderBox .ttf-flt__toggle:hover {
    border-color: #282828;
}
.therapistFinderBox .ttf-flt__toggle:has(input:focus-visible) {
    outline: 2px solid #282828;
    outline-offset: 2px;
}
.therapistFinderBox .ttf-flt--toggle.is-active .ttf-flt__toggle,
.therapistFinderBox .ttf-flt__toggle:has(input:checked) {
    border-color: #F7C845;
    background: #FFF8E1;
}
/* The checkbox is the control; it is hidden from sight, not from keyboards. */
.therapistFinderBox .ttf-flt__toggle .ttf-flt__options {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
}
.therapistFinderBox .ttf-flt__toggle-icon {
    flex: 0 0 auto;
}
.therapistFinderBox .ttf-flt__toggle-icon--on {
    display: none;
}
.therapistFinderBox .ttf-flt--toggle.is-active .ttf-flt__toggle-icon--off,
.therapistFinderBox .ttf-flt__toggle:has(input:checked) .ttf-flt__toggle-icon--off {
    display: none;
}
.therapistFinderBox .ttf-flt--toggle.is-active .ttf-flt__toggle-icon--on,
.therapistFinderBox .ttf-flt__toggle:has(input:checked) .ttf-flt__toggle-icon--on {
    display: inline-block;
}
@media (max-width: 767px) {
    .therapistFinderBox .ttf-flt__toggle {
        padding: 10px 14px;
    }
}
