/* ========================================
   Enhanced Phases Section - Modern Timeline
   ======================================== */

.equibook-phases-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.equibook-phases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(197, 166, 83, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197, 166, 83, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.equibook-phases-label {
    color: #C5A653;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.equibook-phases-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.equibook-phases-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Timeline Container */
.equibook-phases-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 40px;
}

/* Phase Item */
.equibook-phase-item {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.equibook-phase-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(197, 166, 83, 0.2);
    border-color: #C5A653;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

/* Phase Icon Container */
.equibook-phase-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(197, 166, 83, 0.1) 0%, rgba(197, 166, 83, 0.05) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.equibook-phase-item:hover .equibook-phase-icon {
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(197, 166, 83, 0.4);
}

.equibook-phase-icon svg {
    color: #C5A653;
    transition: all 0.4s ease;
    z-index: 2;
}

.equibook-phase-item:hover .equibook-phase-icon svg {
    color: #ffffff;
}

/* Phase Number Badge */
.equibook-phase-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(197, 166, 83, 0.4);
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(197, 166, 83, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(197, 166, 83, 0.6);
    }
}

/* Phase Content */
.equibook-phase-content {
    position: relative;
    z-index: 1;
}

.equibook-phase-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.equibook-phase-item:hover .equibook-phase-title {
    color: #C5A653;
}

.equibook-phase-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Connector Line Between Phases */
.equibook-phase-connector {
    position: absolute;
    top: 90px;
    right: -30px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #C5A653 0%, rgba(197, 166, 83, 0.3) 100%);
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.equibook-phase-item:hover .equibook-phase-connector {
    opacity: 1;
    animation: flowRight 1.5s ease-in-out infinite;
}

@keyframes flowRight {

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

    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}

/* Hide connector on last item */
.equibook-phase-item:last-child .equibook-phase-connector {
    display: none;
}

/* Decorative elements */
.equibook-phase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #C5A653 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equibook-phase-item:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .equibook-phases-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .equibook-phase-connector {
        display: none;
    }
}

@media (max-width: 767px) {
    .equibook-phases-section {
        padding: 60px 0;
    }

    .equibook-phases-title {
        font-size: 32px;
    }

    .equibook-phases-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .equibook-phases-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .equibook-phase-item {
        padding: 30px 20px;
    }

    .equibook-phase-icon {
        width: 80px;
        height: 80px;
    }

    .equibook-phase-icon svg {
        width: 32px;
        height: 32px;
    }

    .equibook-phase-title {
        font-size: 18px;
    }

    .equibook-phase-description {
        font-size: 13px;
    }
}

/* Additional hover effect - shimmer */
.equibook-phase-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
    pointer-events: none;
}

.equibook-phase-item:hover::after {
    transform: translateX(100%) rotate(45deg);
}