.advanced-tabs-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Navigation Container */
.advanced-tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
    align-items: center;
}

.advanced-tabs-wrapper.vertical-layout .advanced-tabs-nav {
    flex-direction: column;
    width: 280px;
    min-width: 280px;
    gap: 0;
    padding: 40px;
    margin-bottom: 0;
    margin-right: 40px;
    align-items: flex-start;
    position: relative;
}

.advanced-tabs-wrapper.vertical-layout {
    flex-direction: row;
    align-items: flex-start;
}

.advanced-tabs-wrapper.vertical-layout .advanced-tabs-content {
    flex: 1;
}

/* Tab Button Styles */
.advanced-tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.advanced-tabs-wrapper.vertical-layout .advanced-tab-button {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.advanced-tabs-wrapper.vertical-layout .child-tabs-container .advanced-tab-button:last-child{
    margin-bottom: 0;
}   

.advanced-tab-button:hover .tab-title {
    color: #EF1B25;
}

/* Connecting Lines Between Tabs */

/* Static background lines (gray) */
.advanced-tab-button:not(:last-child)::after {
    content: '';
    position: absolute;
    background-color: #e0e0e0;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Horizontal background lines */
.advanced-tabs-wrapper:not(.vertical-layout) .advanced-tab-button:not(:last-child)::after {
    width: calc(100% - 40px);
    height: 3px;
    top: 50%;
    left: calc(50% + 20px);
    transform: translateY(-50%);
}

/* Vertical background lines - FIXED POSITION */
.advanced-tabs-wrapper.vertical-layout .advanced-tab-button:not(:last-child)::after {
    width: 3px;
    height: 50px;
    top: 60px;
    left: 27px;
}

.advanced-tabs-wrapper.vertical-layout .advanced-tab-button.child-tab:not(:last-child)::after {
    top: 40px;
    left: 22px;
}

/* Animated connecting lines (red) */
.advanced-tab-button:not(:last-child) .connecting-line {
    position: absolute;
    background-color: #EF1B25;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Horizontal animated lines */
.advanced-tabs-wrapper:not(.vertical-layout) .advanced-tab-button:not(:last-child) .connecting-line {
    width: calc(100% - 40px);
    height: 3px;
    top: 50%;
    left: calc(50% + 20px);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
}

/* Vertical animated lines - FIXED POSITION */
.advanced-tabs-wrapper.vertical-layout .advanced-tab-button:not(:last-child) .connecting-line {
    width: 3px;
    height: 50px;
    top: 60px;
    left: 27px;
    transform: scaleY(0);
    transform-origin: top;
}

.advanced-tabs-wrapper.vertical-layout .advanced-tab-button:not(:last-child) .connecting-line.child-connecting-line {
    left: 22px;
    top: 40px;
}

/* Active line states */
.advanced-tabs-wrapper:not(.vertical-layout) .advanced-tab-button.completed:not(:last-child) .connecting-line {
    transform: translateY(-50%) scaleX(1);
}

.advanced-tabs-wrapper.vertical-layout .advanced-tab-button.completed:not(:last-child) .connecting-line {
    transform: scaleY(1);
}

/* Tab Indicator */
.tab-indicator {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    z-index: 5;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.indicator-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

.indicator-progress {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-ring-circle {
    stroke: #EF1B25;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    transform: rotate(-90deg);
}

/* Active and Completed States */
.advanced-tab-button.active .tab-indicator,
.advanced-tab-button.completed .tab-indicator {
    background-color: #EF1B25;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 27, 37, 0.3);
}

.advanced-tab-button.active .indicator-inner,
.advanced-tab-button.completed .indicator-inner {
    color: white;
}

.advanced-tab-button.active .indicator-progress,
.advanced-tab-button.completed .indicator-progress {
    opacity: 1;
}

.advanced-tab-button.completed .progress-ring-circle {
    stroke-dashoffset: 0;
}

.advanced-tab-button.active .tab-indicator {
    animation: pulse 2s infinite;
}

/* Tab Title */
.tab-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.advanced-tabs-wrapper.vertical-layout .tab-title {
    white-space: normal;
    text-align: left;
    margin-left: 10px;
}

/* Content Area */
.advanced-tabs-content {
    position: relative;
    min-height: 300px;
}

.advanced-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.advanced-tab-content.active {
    display: block;
}

.tab-content-inner {
    padding: 40px;
}

/* FIXED CONTENT ANIMATION */
.content-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.advanced-tab-content.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation Buttons */
.tab-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 40px 30px 40px;
}

.tab-nav-button {
    background: linear-gradient(135deg, #EF1B25, #d91621);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.tab-nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 27, 37, 0.3);
    background: linear-gradient(135deg, #d91621, #c41419);
}

.tab-nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tab-nav-button .button-icon {
    font-size: 16px;
}

.book-appointment-button {
    background: linear-gradient(135deg, #EF1B25, #d91621);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 27, 37, 0.2);
}

.book-appointment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 27, 37, 0.4);
    background: linear-gradient(135deg, #d91621, #c41419);
    color: white;
    text-decoration: none;
}

/* Parent-Child Tab Structure */
.parent-child-tabs .advanced-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
    align-items: flex-start;
}

.parent-child-tabs.vertical-layout .advanced-tabs-nav {
    width: 320px;
    min-width: 320px;
    padding: 40px;
    margin-right: 40px;
}

.parent-child-tabs.vertical-layout {
    flex-direction: row;
    align-items: flex-start;
}

.parent-child-tabs.vertical-layout .advanced-tabs-content {
    flex: 1;
}

/* Parent Tab Container */
.parent-tab-container {
    width: 100%;
    margin-bottom: 0px;
    position: relative;
}

/* Animated Line from Active Parent Container to Next Parent */
.parent-tab-container.active::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #EF1B25, rgba(239, 27, 37, 0.6));
    z-index: 1;
    left: 27px;
    top: 60px;
    height: 0;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 0 2px 2px;
}

/* Animate line height when parent is active and not the last one */
.parent-tab-container.active:not(:last-child)::after {
    height: calc(100% + 40px);
}

.parent-tab-container.active .advanced-tab-button:not(:last-child)::after {
    content: '';
    background: #ef1b25;
}

.parent-tab-container.active .advanced-tab-button.child-tab:not(:last-child)::after{
    content: '';
    background: #d7d7d7;
}

/* Pulsing effect for active parent container */
.parent-tab-container.active .parent-indicator {
    position: relative;
    overflow: visible;
}

.parent-tab-container.active .parent-indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(239, 27, 37, 0.3);
    border-radius: 50%;
    animation: parentPulse 2s infinite;
}

@keyframes parentPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Enhanced child container styling when parent is active */
.parent-tab-container.active .child-tabs-container {
    background: rgba(239, 27, 37, 0.01);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 0 27px;
    box-shadow: inset 0 1px 3px rgba(239, 27, 37, 0.1);
}

/* Smooth reveal animation for child tabs when parent becomes active */
.parent-tab-container.active .child-tabs-container .child-tab {
    animation: revealChild 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.parent-tab-container.active .child-tabs-container .child-tab:nth-child(1) {
    animation-delay: 0.1s;
}

.parent-tab-container.active .child-tabs-container .child-tab:nth-child(2) {
    animation-delay: 0.2s;
}

.parent-tab-container.active .child-tabs-container .child-tab:nth-child(3) {
    animation-delay: 0.3s;
}

.parent-tab-container.active .child-tabs-container .child-tab:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes revealChild {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Connection line with animated dots */
.parent-tab-container.active::after {
    background: linear-gradient(180deg, #EF1B25 0%, #EF1B25 50%, rgba(239, 27, 37, 0.6) 100%);
    position: relative;
}

/* Animated dots traveling down the line */
.parent-tab-container.active.line-animated::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #EF1B25;
    border-radius: 50%;
    left: 25px;
    top: 60px;
    animation: travelDown 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    z-index: 3;
    box-shadow: 0 0 8px rgba(239, 27, 37, 0.6);
}

@keyframes travelDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100% + 40px));
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .parent-tab-container.active::after {
        left: 20px;
        height: calc(100% + 30px);
    }
    
    .parent-tab-container.active.line-animated::before {
        left: 18px;
    }
}

@media (max-width: 768px) {
    .parent-tab-container.active {
        transform: translateX(0);
    }
    
    .parent-tab-container.active .parent-tab {
        margin: -4px;
        padding: 4px;
    }
}

/* Parent Tab Button */
.parent-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.parent-tab:hover .tab-title {
    color: #EF1B25;
}

/* Child Tab Container - REMOVED BORDER */
.child-tabs-container {
    margin-left: 27px;
    position: relative;
    /* REMOVED: border-left: 3px solid #e0e0e0; */
    padding-left: 27px;
    transition: all 0.3s ease;
}

/* REMOVED: .child-tabs-container.active border styles */

/* Parent-Child Connector */
.parent-child-connector {
    position: absolute;
    left: 0px; /* Adjusted to align properly without border */
    top: 0px;
    width: 3px;
    height: 175px;
    background-color: #e0e0e0;
    transition: background-color 0.8s ease;
}

.child-tabs-container.active .parent-child-connector {
    background-color: #EF1B25;
}

/* Child Tab Button */
.child-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.child-tab:hover .tab-title {
    color: #EF1B25;
}

/* Parent Tab Indicator */
.parent-indicator {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    z-index: 5;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Child Tab Indicator */
.child-indicator {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    z-index: 5;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Indicator Inner Content */
.indicator-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
}

.parent-indicator .indicator-inner {
    font-size: 16px;
}

.child-indicator .indicator-inner {
    font-size: 14px;
}

/* Child Letter Styling */
.child-letter {
    font-weight: 700;
    color: #666;
}

/* Progress Rings */
.indicator-progress {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-ring-circle {
    stroke: #EF1B25;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    transform: rotate(-90deg);
}

/* Active and Completed States */
.advanced-tab-button.active .tab-indicator,
.advanced-tab-button.completed .tab-indicator {
    background-color: #EF1B25;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 27, 37, 0.3);
}

.child-tab.active .child-indicator,
.child-tab.completed .child-indicator {
    transform: scale(1.05);
}

.advanced-tab-button.active .indicator-inner,
.advanced-tab-button.completed .indicator-inner,
.advanced-tab-button.active .child-letter,
.advanced-tab-button.completed .child-letter {
    color: white;
}

.advanced-tab-button.active .indicator-progress,
.advanced-tab-button.completed .indicator-progress {
    opacity: 1;
}

.advanced-tab-button.completed .progress-ring-circle {
    stroke-dashoffset: 0;
}

.advanced-tab-button.active .tab-indicator {
    animation: pulse 2s infinite;
}

/* Connecting Lines - EXTENDED TO NEXT PARENT */
.parent-connecting-line,
.child-connecting-line {
    position: absolute;
    background-color: #EF1B25;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parent Connecting Lines - Vertical */
.parent-tab:not(:last-child) .parent-connecting-line {
    width: 3px;
    height: 50px;
    top: 60px;
    left: 27px; /* Updated to match your positioning */
    transform: scaleY(0);
    transform-origin: top;
}

.parent-tab.completed:not(:last-child) .parent-connecting-line {
    transform: scaleY(1);
}

/* Child Connecting Lines - Vertical */
.child-tab:not(:last-child) .child-connecting-line {
    width: 3px;
    height: 30px;
    top: 45px;
    left: 22px; /* Updated to match your positioning */
    transform: scaleY(0);
    transform-origin: top;
}

.child-tab.completed:not(:last-child) .child-connecting-line {
    transform: scaleY(1);
}

/* EXTENDED LINE FROM LAST CHILD TO NEXT PARENT */
.child-tab:last-child .child-to-parent-line {
    position: absolute;
    width: 3px;
    background-color: #EF1B25;
    z-index: 2;
    top: 45px;
    left: 22px;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Calculate height based on distance to next parent */
.parent-tab-container:not(:last-child) .child-tab:last-child .child-to-parent-line {
    height: calc(100% + 50px); /* Extends to next parent tab */
}

.child-tab.completed:last-child .child-to-parent-line {
    transform: scaleY(1);
}

/* Tab Titles */
.tab-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: left;
    margin-left: 10px;
}

.child-tab .tab-title {
    font-size: 16px;
    font-weight: 400;
}

/* Content Area */
.advanced-tabs-content {
    position: relative;
    min-height: 300px;
}

.advanced-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    margin-bottom: 20px;
}

.advanced-tab-content.active {
    display: block;
}

.parent-content {
    border-left: 4px solid #EF1B25;
}

.child-content {
    border-left: 4px solid #666;
    margin-left: 20px;
    position: relative;
}

.child-content::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    width: 20px;
    height: 2px;
    background-color: #666;
}

.tab-content-inner {
    padding: 40px;
}

.content-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.advanced-tab-content.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation Buttons */
.tab-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 40px 30px 40px;
}

.tab-nav-button {
    background: linear-gradient(135deg, #EF1B25, #d91621);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.tab-nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 27, 37, 0.3);
    background: linear-gradient(135deg, #d91621, #c41419);
}

.tab-nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.book-appointment-button {
    background: linear-gradient(135deg, #EF1B25, #d91621);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 27, 37, 0.2);
}

.book-appointment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 27, 37, 0.4);
    background: linear-gradient(135deg, #d91621, #c41419);
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

/* Content Animation Classes */
.content-animation-slideInUp {
    animation: contentSlideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Enhanced Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

/* Content Animation Classes - FIXED */
.content-animation-fadeIn {
    animation: contentFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-slideInUp {
    animation: contentSlideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-slideInDown {
    animation: contentSlideInDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-slideInLeft {
    animation: contentSlideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-slideInRight {
    animation: contentSlideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-zoomIn {
    animation: contentZoomIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-bounceIn {
    animation: contentBounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-animation-flipInX {
    animation: contentFlipInX 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation Keyframes */
@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes contentSlideInDown {
    from { 
        opacity: 0;
        transform: translateY(-40px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentSlideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-40px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentSlideInRight {
    from { 
        opacity: 0;
        transform: translateX(40px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentZoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentBounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.3);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
    70% { transform: scale(0.9); }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentFlipInX {
    from { 
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    40% { 
        transform: perspective(400px) rotateX(-20deg);
    }
    60% { 
        opacity: 1;
        transform: perspective(400px) rotateX(10deg);
    }
    80% { 
        transform: perspective(400px) rotateX(-5deg);
    }
    to { 
        opacity: 1;
        transform: perspective(400px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .advanced-tabs-wrapper.vertical-layout {
        flex-direction: column;
    }
    
    .advanced-tabs-wrapper.vertical-layout .advanced-tabs-nav {
        flex-direction: row;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        overflow-x: auto;
        padding: 20px;
    }
    
    .advanced-tabs-wrapper.vertical-layout .advanced-tab-button {
        margin-bottom: 0;
        margin-right: 60px;
    }
    
    .advanced-tabs-wrapper.vertical-layout .advanced-tab-button:not(:last-child)::after {
        width: 60px;
        height: 3px;
        top: 50%;
        left: calc(50% + 20px);
        transform: translateY(-50%);
    }
    
    .advanced-tabs-wrapper.vertical-layout .advanced-tab-button:not(:last-child) .connecting-line {
        width: 60px;
        height: 3px;
        top: 50%;
        left: calc(50% + 20px);
        transform: translateY(-50%) scaleX(0);
        transform-origin: left;
    }
    
    .advanced-tabs-wrapper.vertical-layout .advanced-tab-button.completed:not(:last-child) .connecting-line {
        transform: translateY(-50%) scaleX(1);
    }
    
    .parent-child-tabs.vertical-layout {
        flex-direction: column;
    }
    
    .parent-child-tabs.vertical-layout .advanced-tabs-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .child-tabs-container {
        margin-left: 20px;
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .tab-navigation-buttons {
        padding: 0 20px 20px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tab-nav-button,
    .book-appointment-button {
        min-width: 100px;
        flex: 1;
    }
    
    .tab-content-inner {
        padding: 30px 20px;
    }
    
    .tab-indicator {
        width: 35px;
        height: 35px;
    }
    
    .tab-title {
        font-size: 14px;
    }
    
    .child-content {
        margin-left: 10px;
    }
    
    .child-content::before {
        left: -14px;
        width: 10px;
    }
}
