/**
 * TD Vertical Tabs Component Styles (Plugin td-uxbuilder-blocks)
 */

.td-vtabs-section {
    width: 100%;
    box-sizing: border-box;
}

.td-vtabs-container {
    display: grid;
    grid-template-columns: 37fr 63fr;
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Left Navigation */
.td-vtabs-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-vtab-item {
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.td-vtab-btn {
    display: flex;
    margin: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.td-vtab-btn:hover {
    border-color: #1F6F4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Active State */
.td-vtab-btn.active {
    background-color: #0D3B2E;
    border-color: #0D3B2E;
    box-shadow: 0 10px 24px rgba(13, 59, 46, 0.22);
}

.td-vtab-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

/* Icon Box */
.td-vtab-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #1A1A1A;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.td-vtab-btn.active .td-vtab-icon-box {
    background-color: #1F6F4A;
    border-color: #1F6F4A;
    color: #FFFFFF;
}

.td-vtab-icon-box svg,
.td-vtab-icon-box i {
    width: 22px;
    height: 22px;
    font-size: 20px;
    stroke: currentColor;
    fill: none;
}

.td-vtab-icon-box svg.fill-current {
    fill: currentColor;
    stroke: none;
}

.td-vtab-icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Tab Title */
.td-vtab-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    transition: color 0.25s ease;
    letter-spacing: -0.01em;
}

.td-vtab-btn.active .td-vtab-title {
    color: #FFFFFF;
}

/* Right Chevron Arrow */
.td-vtab-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.td-vtab-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.td-vtab-btn.active .td-vtab-arrow {
    color: #FFFFFF;
    transform: translateX(3px);
}

/* Right Content Area */
.td-vtabs-content-wrap {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    min-height: 380px;
    box-sizing: border-box;
    width: 100%;
}

.td-vtab-panel {
    display: none;
}

.td-vtab-panel.active {
    display: block;
    animation: tdTabFadeIn 0.3s ease;
}

@keyframes tdTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Bar (Hidden by default on Desktop) */
.td-vtabs-nav-mobile {
    display: none;
}

/* Default Fallback Content (matching screenshot) */
.td-vtab-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    border: 1px solid #F97316;
    color: #EA580C;
    background: #FFF7ED;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.td-vtab-panel-heading {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 32px 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.td-vtab-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 36px;
}

.td-vtab-feature-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-vtab-feature-icon {
    width: 44px;
    height: 44px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EA580C;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.td-vtab-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.td-vtab-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #101828;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.td-vtab-feature-desc {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.55;
    margin: 0;
}

/* Responsive - Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .td-vtabs-container {
        grid-template-columns: 35fr 65fr;
        gap: 16px;
    }

    .td-vtabs-content-wrap {
        padding: 24px 20px;
    }
}

/* Responsive - Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .td-vtabs-container {
        display: block !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Hide desktop vertical navigation buttons */
    .td-vtabs-nav {
        display: none !important;
    }

    /* Mobile Header Banner */
    .td-vtabs-nav-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: relative;
        background-color: #0D3B2E;
        color: #FFFFFF;
        padding: 14px 16px;
        margin-bottom: 20px;
        width: calc(100% + 32px);
        transform: translateX(-16px);
        box-sizing: border-box;
    }

    .td-vtab-mobile-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s ease, transform 0.15s ease;
        padding: 0;
        outline: none;
        margin: 0;
    }

    .td-vtab-mobile-btn:hover,
    .td-vtab-mobile-btn:active {
        background: rgba(255, 255, 255, 0.32);
        transform: scale(1.05);
    }

    .td-vtab-mobile-btn svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }

    .td-vtab-mobile-title-box {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: 1;
        margin: 0 12px;
        overflow: hidden;
        will-change: transform, opacity;
    }

    .td-vtab-mobile-title-box.td-vtab-anim-next {
        animation: tdVtabMobileSlideNext 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .td-vtab-mobile-title-box.td-vtab-anim-prev {
        animation: tdVtabMobileSlidePrev 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .td-vtab-mobile-title {
        font-weight: 700;
        font-size: 16px;
        line-height: 1.35;
        color: #ffffff;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        letter-spacing: -0.01em;
    }

    /* Downward pointer triangle below active mobile banner */
    .td-vtab-mobile-pointer {
        display: block;
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #0D3B2E;
        z-index: 4;
    }

    /* Clean mobile content area without box-shadow/heavy border */
    .td-vtabs-content-wrap {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 0 24px 0 !important;
        min-height: auto !important;
        background: transparent !important;
    }

    .td-vtab-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .td-vtab-panel-heading {
        font-size: 22px;
        margin-bottom: 24px;
        line-height: 1.35;
    }

    .td-vtab-badge {
        font-size: 14px;
        padding: 4px 16px;
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .td-vtab-feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .td-vtab-feature-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .td-vtab-feature-desc {
        font-size: 15px;
        line-height: 1.55;
    }
}

/* Animations */
@keyframes tdVtabMobileSlideNext {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tdVtabMobileSlidePrev {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.td-vtab-panel.slide-next {
    animation: tdVtabSlideNext 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.td-vtab-panel.slide-prev {
    animation: tdVtabSlidePrev 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tdVtabSlideNext {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tdVtabSlidePrev {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}