/* ======================================================
  FINAL "SIMPLE C-RING" CSS (WHITE CHAT BOX)
  ======================================================
*/
.process-simple-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
}

/* Each Step Row */
.process-simple-step {
    position: relative;
    width: 100%;
    height: 150px; 
    margin-bottom: 2rem; 
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-simple-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* The central element: Icon + C-Ring */
.simple-step-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 150px; 
    height: 150px;
    z-index: 2;
}

/* The White Inner Circle */
.icon-inner-circle {
    position: absolute;
    top: 25px; 
    left: 25px;
    width: 100px; 
    height: 100px;
    background: var(--bg-light, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 3;
}

/* The Colored "C" Ring */
.color-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 150px */
    height: 100%; /* 150px */
    border-radius: 50%;
    border: 25px solid; 
    z-index: 2;
    transition: all 0.3s ease-out;
}

/* The Text Label (Left or Right) */
.simple-step-label {
    position: absolute;
    top: 2rem; 
    width: calc(50% - 75px - 3rem); 
    box-sizing: border-box; 
    
    display: flex;
    align-items: flex-start; 
    gap: 1rem; 
}

/* Wrapper for the text content */
.label-text-content {
    flex-grow: 1;
    position: relative; /* For chat box positioning */
}

.simple-step-label .step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #333);
}

/* ======================================================
  MODIFIED: CHAT BOX STYLES (NOW WHITE)
  ======================================================
*/
.simple-step-label p {
    /* Base styles */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    
    /* Chat box look - CHANGED */
    background-color: var(--bg-light, #ffffff); /* CHANGED */
    color: var(--text-dark, #333); /* CHANGED */
    border: 1px solid var(--border-gray, #e0e0e0); /* ADDED */
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    
    /* Floating position */
    position: absolute;
    top: 100%; /* Sits below the title */
    margin-top: 0.75rem; /* Space from title */
    width: 300px; /* Fixed width */
    z-index: 10;
    
    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Fly-in effect */
    /* ADDED transition for shadow */
    transition: all 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* Position chat box on the left/right side */
.step-odd .simple-step-label p {
    left: 0;
}
.step-even .simple-step-label p {
    right: 0;
}

/* Show chat box on hover */
.process-simple-step:hover .simple-step-label p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ======================================================
  END CHAT BOX STYLES
  ======================================================
*/

/* The little colored number */
.step-number-badge {
    position: relative; 
    top: 0.25rem; 
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0; 
}

/* --- Alternating Layout (Matches Image) --- */
.step-odd .simple-step-label {
    left: calc(50% + 75px + 3rem); 
    text-align: left; 
    flex-direction: row; 
}
.step-even .simple-step-label {
    right: calc(50% + 75px + 3rem); 
    text-align: right; 
    flex-direction: row-reverse; 
}

/* --- Colors (This creates the "C" shape) --- */
.step-1 .icon-inner-circle { color: #29c7b0; }
.step-1 .step-number-badge { background: #29c7b0; }
.step-1 .color-ring {
    border-color: #29c7b0;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(-45deg);
}
.step-2 .icon-inner-circle { color: #2985c7; }
.step-2 .step-number-badge { background: #2985c7; }
.step-2 .color-ring {
    border-color: #2985c7;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}
.step-3 .icon-inner-circle { color: #8b29c7; }
.step-3 .step-number-badge { background: #8b29c7; }
.step-3 .color-ring {
    border-color: #8b29c7;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(-45deg);
}
.step-4 .icon-inner-circle { color: #c72985; }
.step-4 .step-number-badge { background: #c72985; }
.step-4 .color-ring {
    border-color: #c72985;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}
.step-5 .icon-inner-circle { color: #c77a29; }
.step-5 .step-number-badge { background: #c77a29; }
.step-5 .color-ring {
    border-color: #c77a29;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(-45deg);
}

/* ======================================================
  GLOW EFFECT ON HOVER (RING + CHAT BOX)
  ======================================================
*/
/* --- RING GLOW --- */
.step-1:hover .color-ring {
    box-shadow: 0 0 25px 3px rgba(41, 199, 176, 0.7);
}
.step-2:hover .color-ring {
    box-shadow: 0 0 25px 3px rgba(41, 133, 199, 0.7);
}
.step-3:hover .color-ring {
    box-shadow: 0 0 25px 3px rgba(139, 41, 199, 0.7);
}
.step-4:hover .color-ring {
    box-shadow: 0 0 25px 3px rgba(199, 41, 133, 0.7);
}
.step-5:hover .color-ring {
    box-shadow: 0 0 25px 3px rgba(199, 122, 41, 0.7);
}

/* --- NEW: CHAT BOX GLOW --- */
/* Combines the standard shadow with the new color glow */
.step-1:hover .simple-step-label p {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), 0 0 20px 0px rgba(41, 199, 176, 0.7);
}
.step-2:hover .simple-step-label p {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), 0 0 20px 0px rgba(41, 133, 199, 0.7);
}
.step-3:hover .simple-step-label p {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), 0 0 20px 0px rgba(139, 41, 199, 0.7);
}
.step-4:hover .simple-step-label p {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), 0 0 20px 0px rgba(199, 41, 133, 0.7);
}
.step-5:hover .simple-step-label p {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), 0 0 20px 0px rgba(199, 122, 41, 0.7);
}

/*
======================================================
7. RESPONSIVE (Mobile for Simple C-Ring)
======================================================
*/
@media (max-width: 768px) {
    .process-simple-container {
        padding: 0;
        background: none; 
    }
    .process-simple-step {
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 0 1rem;
        margin-bottom: 3rem;
        height: auto; 
    }
    
    .step-even {
        flex-direction: column;
    }
    
    .simple-step-icon {
        position: relative; 
        left: auto;
        transform: none;
        margin-bottom: 1rem;
    }

    .simple-step-label {
        width: 100%;
        text-align: center !important;
        padding: 0 !important;
        position: relative;
        left: auto;
        right: auto;
        justify-content: center;
        flex-direction: column !important;
    }
    
    .label-text-content {
        text-align: center !important;
    }
    
    /* On mobile, show chat box below text */
    .simple-step-label p {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin: 0.75rem auto 0 auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        left: auto;
        right: auto;
        top: auto;
        /* Remove hover glow on mobile */
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }

    .step-number-badge {
        margin: 0 auto 0.5rem auto;
        top: 0;
    }
}