/* =========================================
   NEW PROCESS SECTION STYLES (Snake Layout)
   ========================================= */

.process-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 4rem 2rem;
}

.process-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
    /* align-items: flex-start; */
}

.process-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #001E61;
    line-height: 1.2;
    text-align: left;
    max-width: 500px;
}

.process-subtitle {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    position: relative;
}

.step-card {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-size: 2.5rem;
    color: #20A7C7;
    /* Light green color */
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: sans-serif;
}

.step-content {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #001E61;
    line-height: 1.2;
    text-align: left;
    max-width: 500px;
}

.step-link {
    color: #20A7C7;
    text-decoration: underline;
    font-weight: 500;
}

.step-optional {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-list {
    padding-left: 1.2rem;
    list-style-type: disc;
}

.step-list li {
    margin-bottom: 0.5rem;
}

/* --- Positioning for Desktop (Snake Layout - 5 Steps) --- */

/* Row 1: 1, 2, 3 (Each spans 2 columns = 1/3 width) */
.step-01 {
    grid-column: 1 / 3;
    grid-row: 1;
}

.step-02 {
    grid-column: 3 / 5;
    grid-row: 1;
}

.step-03 {
    grid-column: 5 / 7;
    grid-row: 1;
}

/* Row 2: 4 and 5 (Each spans 3 columns = 1/2 width) */
/* Snake Flow: 3 (Top Right) -> 4 (Bottom Right) -> 5 (Bottom Left) */
.step-04 {
    grid-column: 4 / 7;
    grid-row: 2;
}

.step-05 {
    grid-column: 1 / 4;
    grid-row: 2;
}


/* --- Arrows --- */

.step-card::after {
    content: '';
    position: absolute;
    background-color: #20A7C7;
    pointer-events: none;
    z-index: 1;
}

.step-card::before {
    /* Arrow head */
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}


/* Arrow 1 -> 2 */
/* Gap is 2rem. */
/* Shorten line by 5px to hide square end behind triangle */
.step-01::after,
.step-02::after {
    height: 3px;
    width: calc(2rem - 5px);
    top: 55px;
    right: calc(-2rem + 5px);
    /* Pull back from destination */
    background-color: #20A7C7;
}

.step-01::before,
.step-02::before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #20A7C7;
    top: 48.5px;
    /* Perfect center align (55 + 1.5 - 8) */
    right: -2rem;
}


/* Arrow 3 -> 4 (Downwards) */
.step-03::after {
    width: 3px;
    height: calc(3rem - 5px);
    /* Shorten line */
    bottom: calc(-2rem + 5px);
    /* Pull up from destination */
    left: 80%;
    background-color: #20A7C7;
}

.step-03::before {
    border-width: 12px 8px 0 8px;
    border-color: #20A7C7 transparent transparent transparent;
    bottom: -2rem;
    left: 80%;
    margin-left: -6.5px;
}

/* Arrow 4 -> 5 (Left) */
.step-04::after {
    height: 3px;
    width: calc(2rem - 5px);
    top: 55px;
    left: calc(-2rem + 5px);
    /* Pull back from destination */
    background-color: #20A7C7;
}

.step-04::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent #20A7C7 transparent transparent;
    top: 48.5px;
    /* Perfect center align */
    left: -2rem;
}


/* --- Responsive (Mobile) --- */
@media (max-width: 900px) {
    .process-header {
        flex-direction: column;
        gap: 1rem;
    }

    .process-title {
        max-width: 100%;
        font-size: 1.8rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 3rem;
    }

    /* Reset grid placement to default auto flow */
    .step-01,
    .step-02,
    .step-03,
    .step-04,
    .step-05,
    .step-06 {
        grid-column: auto;
        grid-row: auto;
    }

    /* Mobile Arrows: All point DOWN */
    .step-card {
        margin-bottom: 0;
    }

    .step-card::after {
        display: block;
        width: 3px;
        height: calc(3rem - 5px);
        /* Shorten line */
        top: auto;
        bottom: calc(-3rem + 5px);
        /* Pull up */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background-color: #20A7C7;
    }

    .step-card::before {
        display: block;
        border-width: 12px 8px 0 8px;
        border-color: #20A7C7 transparent transparent transparent;
        top: auto;
        bottom: -3rem;
        left: 50%;
        right: auto;
        margin-left: -8px;
    }

    /* Remove arrow from the last step (Step 5) */
    .step-05::after,
    .step-05::before {
        display: none;
    }
}


/* faq section styling */


.faq-section {
    max-width: 1000px;
    margin: 0 auto;
}