/* Orthodontic Journey Widget Styles */
.orthodontic-journey-widget {
    padding: 20px 0;
}

/* Main Header */
.orthodontic-journey-widget .main-header {
    text-align: center;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.orthodontic-journey-widget .journey-main-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.orthodontic-journey-widget .journey-main-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Treatment Journey Container */
.orthodontic-journey-widget .treatment-journey {
    position: relative;
    padding: 40px 0;
}

/* Main timeline line */
.orthodontic-journey-widget .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0168B0;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

/* Journey Steps */
.orthodontic-journey-widget .journey-step {
    position: relative;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.orthodontic-journey-widget .journey-step:last-child {
    margin-bottom: 0;
}

/* Alternating left and right positioning */
.orthodontic-journey-widget .journey-step:nth-child(odd) {
    justify-content: flex-start;
}

.orthodontic-journey-widget .journey-step:nth-child(even) {
    justify-content: flex-end;
}

/* Step Content Cards */
.orthodontic-journey-widget .step-content {
    width: 45%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.orthodontic-journey-widget .step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Timeline connectors */
.orthodontic-journey-widget .journey-step:nth-child(odd) .step-content::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    transform: translateY(-50%);
}

.orthodontic-journey-widget .journey-step:nth-child(even) .step-content::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border-right: 20px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    transform: translateY(-50%);
}

/* Timeline dots */
.orthodontic-journey-widget .timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0168B0, #4a90e2);
}

/* Step Header */
.orthodontic-journey-widget .step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.orthodontic-journey-widget .step-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.orthodontic-journey-widget .step-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.orthodontic-journey-widget .step-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: 0;
}

.orthodontic-journey-widget .step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.orthodontic-journey-widget .step-description p {
    margin-bottom: 15px;
}

.orthodontic-journey-widget .step-description p:last-child {
    margin-bottom: 0;
}

/* Special styling for resting period */
.orthodontic-journey-widget .resting .step-content {
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border: 2px solid #ffa726;
}

/* Special arrow styling for resting period */
.orthodontic-journey-widget .resting.journey-step:nth-child(odd) .step-content::after {
    border-left-color: #fff3c4;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    position: relative;
}

.orthodontic-journey-widget .resting.journey-step:nth-child(odd) .step-content::before {
    content: '';
    position: absolute;
    right: -22px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid #ffa726;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    transform: translateY(-50%);
    z-index: -1;
}

.orthodontic-journey-widget .resting.journey-step:nth-child(even) .step-content::after {
    border-right-color: #fff3c4;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    position: relative;
}

.orthodontic-journey-widget .resting.journey-step:nth-child(even) .step-content::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    width: 0;
    height: 0;
    border-right: 20px solid #ffa726;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    transform: translateY(-50%);
    z-index: -1;
}

/* Progress indicators */
.orthodontic-journey-widget .progress-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0168B0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
    top: -40px;
    border: 1px solid #e0e0e0;
}

/* Journey flow arrows - Hidden on all devices */
.orthodontic-journey-widget .flow-arrow {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .orthodontic-journey-widget .timeline-line {
        left: 50%;
        z-index: 0;
    }

    .orthodontic-journey-widget .journey-step {
        justify-content: center !important;
        padding-left: 0;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .orthodontic-journey-widget .step-content {
        width: 90%;
        margin-top: 60px;
        position: relative;
        z-index: 2;
        background: white;
    }

    .orthodontic-journey-widget .journey-step .step-content::after {
        display: none;
    }

    .orthodontic-journey-widget .journey-step .step-content::before {
        display: none;
    }

    /* Hide flow arrows on mobile */
    .orthodontic-journey-widget .flow-arrow {
        display: none;
    }

    .orthodontic-journey-widget .timeline-dot {
        display: none;
    }

    .orthodontic-journey-widget .progress-label {
        left: 50%;
        font-size: 0.8rem;
        z-index: 3;
        background: white;
        top: -30px;
    }

    .orthodontic-journey-widget .journey-main-title {
        font-size: 2rem;
    }

    .orthodontic-journey-widget .step-title {
        font-size: 1.5rem;
    }

    .orthodontic-journey-widget .main-header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .orthodontic-journey-widget .step-content {
        padding: 30px 20px;
    }

    .orthodontic-journey-widget .journey-step {
        margin-bottom: 60px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .orthodontic-journey-widget .journey-main-title {
        font-size: 1.8rem;
    }

    .orthodontic-journey-widget .journey-main-subtitle {
        font-size: 1rem;
    }

    .orthodontic-journey-widget .step-title {
        font-size: 1.3rem;
    }

    .orthodontic-journey-widget .step-subtitle {
        font-size: 1rem;
    }

    .orthodontic-journey-widget .step-description {
        font-size: 0.9rem;
    }
}
