/**
 * TefoLab Onboarding v2 Stylesheet
 * Captures custom layouts for Accordion path selector, search, and dynamic challenge boards.
 */

.tfl-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.tfl-search-input {
    width: 100%;
    padding: 0.8rem 1.25rem 0.8rem 2.75rem;
    border-radius: 100px;
    border: 2px solid #1C1E26;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease-in-out;
    background: #fff;
    color: #1C1E26;
}

.tfl-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tfl-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #9CA3AF;
}

.tfl-search-clear {
    display: none;
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 700;
    padding: 4px;
}

.tfl-accordion-tree {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tfl-path-node {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease-in-out;
}

.tfl-path-node:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.tfl-path-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.tfl-path-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.tfl-path-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.tfl-path-icon {
    width: 32px;
    height: 32px;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfl-path-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1C1E26;
}

.tfl-toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease-in-out;
    color: #9CA3AF;
}

.tfl-sub-paths-container {
    display: none;
    padding: 0.5rem 1.5rem 1.5rem 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background: rgba(0, 0, 0, 0.005);
    border-left: 2px solid rgba(99, 102, 241, 0.2);
}

.tfl-sub-node {
    margin-top: 1rem;
}

.tfl-sub-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding-block: 0.25rem;
    user-select: none;
}

.tfl-subpath-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.tfl-sub-title {
    font-weight: 700;
    font-size: 1rem;
    color: #374151;
    flex: 1;
}

.tfl-branches-container {
    display: none;
    padding: 0.75rem 0 0.5rem 1.75rem;
    border-left: 2px solid rgba(0, 0, 0, 0.04);
}

.tfl-branch-node {
    margin-bottom: 1rem;
}

.tfl-branch-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.tfl-branch-checkbox {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    cursor: pointer;
    margin: 0;
}

.tfl-branch-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4B5563;
}

.tfl-branch-desc {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.tfl-focus-areas-container {
    display: none;
    padding: 0.75rem 0 0 1.5rem;
    border-left: 2px dashed rgba(0, 0, 0, 0.03);
}

.tfl-focus-area-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
    user-select: none;
}

.tfl-focus-area-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.tfl-focus-area-checkbox {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    cursor: pointer;
    margin: 0;
}

.tfl-fa-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1F2937;
}

.tfl-fa-desc {
    font-size: 0.8rem;
    color: #4B5563;
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.tfl-custom-wrapper {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.tfl-custom-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6B7280;
    user-select: none;
}

.tfl-custom-toggle-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

.tfl-custom-text-input {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease-in-out;
}

.tfl-custom-text-input:focus {
    border-color: #6366f1;
}

.tfl-custom-path-container {
    display: none;
    padding: 0 1.5rem 1.5rem 3.5rem;
}

.tfl-profile-gifts-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tfl-gift-column {
    flex: 1;
    min-width: 260px;
    border-radius: 16px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    transition: all 0.3s ease;
    position: relative;
}

.tfl-gift-column--left {
    border-left: 4px solid #5BA4F5;
}

.tfl-gift-column--right {
    border-left: 4px solid #6366f1;
}

.tfl-gift-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.tfl-gift-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.tfl-gift-title--left {
    color: #4B5563;
}

.tfl-gift-title--right {
    color: #6366f1;
    border-bottom-color: rgba(99, 102, 241, 0.05);
}

.tfl-gifts-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tfl-gifts-list li {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.tfl-gift-column--left .tfl-gifts-list li {
    background: rgba(91, 164, 245, 0.08);
    color: #2b7bc4;
    border: 1px solid rgba(91, 164, 245, 0.15);
}

.tfl-gift-column--right .tfl-gifts-list li {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tfl-challenge-board {
    background: linear-gradient(135deg, #1C1E26 0%, #0F1015 100%);
    color: #faf8f4;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    margin-bottom: 2.25rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.tfl-challenge-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tfl-challenge-bg-pattern svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.tfl-challenge-badge-title {
    color: #F97316;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.75rem;
}

.tfl-challenge-selected {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.tfl-challenge-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(250, 248, 244, 0.8);
    margin-bottom: 1.5rem;
}

.tfl-challenge-rewards-section {
    border-top: 1px solid rgba(250, 248, 244, 0.1);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.tfl-rewards-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.5);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.tfl-rewards-badges-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tfl-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid;
    display: inline-block;
}

.tfl-badge--green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.25);
}

.tfl-badge--indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.25);
}

.tfl-badge--blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
}

.tfl-badge--pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.25);
}

.tfl-badge--orange {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}

.tfl-badge--emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.tfl-anti-ai-notice {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    color: #991B1B;
    position: relative;
    padding-left: 3rem;
}

.tfl-anti-ai-notice::before {
    content: "⚠️";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    font-size: 1.25rem;
}

.tfl-anti-ai-title {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.tfl-anti-ai-desc {
    font-size: 0.85rem;
    color: #991b1b;
    margin: 0;
    line-height: 1.5;
}

/* Adjustments for typography hierarchy inside form */
.tfl-accordion-header .toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.tfl-accordion-item.active > .tfl-accordion-header .toggle-arrow {
    transform: rotate(180deg);
}

/* Redesigned Onboarding Wizard Grid and Card Selectors */
.tfl-selection-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tfl-selection-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    user-select: none;
}

.tfl-selection-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.tfl-selection-card.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
    box-shadow: 0 0 0 1px #6366f1, 0 10px 25px -5px rgba(99, 102, 241, 0.08);
}

.tfl-selection-card .card-icon-container {
    width: 40px;
    height: 40px;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.tfl-selection-card.active .card-icon-container {
    color: #6366f1;
}

.tfl-selection-card .card-checkbox {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.tfl-selection-card .card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1C1E26;
    margin: 0;
}

.tfl-selection-card .card-desc {
    font-size: 0.85rem;
    color: #5C6275;
    line-height: 1.45;
    margin: 0;
}

/* Redesigned Onboarding Focus Industry & Focus Area Tag Pills */
.tfl-tag-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tfl-tag-pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.tfl-tag-pill:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.01);
}

.tfl-tag-pill.active {
    background: #1C1E26;
    border-color: #1C1E26;
    color: #faf8f4;
}

.tfl-tag-pill .pill-checkbox {
    display: none;
}

/* Redesigned Onboarding Flat Branch Sections */
.tfl-flat-branch-section {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.tfl-flat-branch-section:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.tfl-flat-branch-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1C1E26;
    margin: 0 0 0.25rem 0;
}

.tfl-flat-branch-desc {
    font-size: 0.85rem;
    color: #5C6275;
    margin: 0 0 1.25rem 0;
    line-height: 1.45;
}

.tfl-focus-area-card,
.tfl-industry-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
    display: block;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

.tfl-focus-area-card:hover,
.tfl-industry-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.01);
}

.tfl-focus-area-card.active,
.tfl-industry-card.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
}

.tfl-focus-area-card .pill-checkbox,
.tfl-industry-card .pill-checkbox {
    display: inline-block;
}

/* Mobile Responsive Optimization Styles */
@media (max-width: 768px) {
    .card {
        padding: 1.25rem !important;
    }
    
    .tfl-path-header {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .tfl-path-title-wrap {
        gap: 0.5rem !important;
    }
    
    .tfl-path-title {
        font-size: 1rem !important;
    }

    .tfl-sub-paths-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .tfl-sub-header {
        gap: 0.5rem !important;
    }
    
    .tfl-sub-title {
        font-size: 0.95rem !important;
    }

    .tfl-branches-container {
        padding-left: 0.75rem !important;
        padding-right: 1rem !important;
    }
    
    .tfl-branch-header {
        gap: 0.5rem !important;
    }
    
    .tfl-branch-title {
        font-size: 0.9rem !important;
    }

    .tfl-focus-areas-container {
        padding-left: 0.75rem !important;
        padding-right: 1rem !important;
    }
    
    .tfl-focus-area-item {
        gap: 0.5rem !important;
        padding: 0.4rem !important;
    }
    
    .tfl-fa-title {
        font-size: 0.85rem !important;
    }
    
    .tfl-custom-path-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .tfl-custom-wrapper {
        padding-left: 0 !important;
    }

    .tfl-profile-gifts-row {
        gap: 1rem;
    }
    
    .tfl-gift-column {
        min-width: 100% !important;
        padding: 1.25rem;
    }
    
    .tfl-challenge-board {
        padding: 1.75rem 1.25rem;
    }
    
    /* Enforce strict box bounding to prevent right margin overflow */
    .tfl-accordion-tree,
    .tfl-path-node,
    .tfl-accordion-content,
    .tfl-sub-node,
    .tfl-branch-node,
    .tfl-focus-area-item,
    .tfl-custom-wrapper,
    .tfl-custom-text-input {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .tfl-path-title-wrap,
    .tfl-branch-header > div,
    .tfl-focus-area-item > div {
        min-width: 0 !important;
        word-break: break-word !important;
    }

    /* Redesigned components responsive overrides */
    .tfl-selection-card-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .tfl-selection-card {
        padding: 1.25rem !important;
    }

    .tfl-flat-branch-section {
        padding: 1.25rem !important;
    }

    .tfl-tag-pill {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ─── TWO-PANEL NAVIGATOR LAYOUT ──────────────── */

.tfl-navigator-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    min-height: 520px;
    align-items: start;
    margin-bottom: 2rem;
}

/* --- Left Sidebar Menu --- */
.tfl-navigator-sidebar {
    background: #faf8f4;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.tfl-sidebar-path-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tfl-sidebar-path-header {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.75rem;
    margin-bottom: 0.25rem;
}

.tfl-sidebar-subpaths {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tfl-sidebar-subpath-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.tfl-sidebar-subpath-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1C1E26;
}

.tfl-sidebar-subpath-btn.active {
    background: #1C1E26;
    color: #faf8f4;
}

/* --- Right Content Area --- */
.tfl-navigator-content {
    background: #fff;
    min-height: 100%;
}

.tfl-content-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    color: #9CA3AF;
    font-size: 0.95rem;
}

.tfl-subpath-content-container {
    animation: fadeIn 0.3s ease-out;
}

.tfl-subpath-content-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1C1E26;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #1C1E26;
    padding-bottom: 0.5rem;
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 768px) {
    .tfl-navigator-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Transform Sidebar into a horizontal scrollable tab bar on mobile */
    .tfl-navigator-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.75rem 1rem;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .tfl-navigator-sidebar::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .tfl-sidebar-path-group {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .tfl-sidebar-path-header {
        font-size: 0.7rem;
        padding-left: 0;
        margin-bottom: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        padding-right: 0.5rem;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .tfl-sidebar-subpaths {
        flex-direction: row;
        gap: 0.35rem;
    }

    .tfl-sidebar-subpath-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 100px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        background: #fff;
    }
    
    .tfl-sidebar-subpath-btn.active {
        border-color: #1C1E26;
    }
}

/* Sequential Sub-Path Page Custom Layout */
.tfl-subpath-page {
    animation: tflFadeIn 0.3s ease-out;
}

@keyframes tflFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus Area Card Custom Styling */
.tfl-focus-area-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #faf8f4 !important;
    box-shadow: none !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
}

.tfl-focus-area-card:hover {
    background: rgba(99, 102, 241, 0.03) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.tfl-focus-area-card.active {
    background: rgba(99, 102, 241, 0.05) !important;
    border-color: #6366f1 !important;
}

.tfl-remove-path-btn {
    transition: all 0.2s ease-in-out;
}
.tfl-remove-path-btn:hover {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

/* Hide search bar wrapper on sequential sub-path flow since pages are small and focused */
#tfl-path-search, .tfl-path-search-wrapper {
    display: none !important;
}

/* ── Unified Card Aesthetics: Steps 1, 2, 3 ── */
/* Apply the warm #faf8f4 background to selection cards across all steps */
.tfl-selection-card {
    background: #faf8f4 !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

.tfl-selection-card:hover {
    background: #f5f2ee !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px) !important;
}

.tfl-selection-card.active {
    background: rgba(99, 102, 241, 0.04) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 1px #6366f1, 0 8px 20px -4px rgba(99, 102, 241, 0.1) !important;
}

/* ── Wizard Action Buttons: Mobile Responsive ── */
/* Desktop: side-by-side (default) */
.tfl-wizard-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Mobile: stack vertically, full-width buttons */
@media (max-width: 640px) {
    .tfl-wizard-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .tfl-wizard-actions .btn {
        flex: none !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Put Submit/Next first on mobile so it's easier to reach */
    .tfl-wizard-actions #tfl-step4-next-btn,
    .tfl-wizard-actions #tfl-step4-submit-btn {
        order: -1;
    }

    .tfl-wizard-actions #tfl-step4-back-btn {
        order: 1;
    }
}

/* Progress steps list: hide scrollbar visually */
.tfl-progress-steps-list::-webkit-scrollbar {
    display: none;
}
