﻿/* ===== Candidate process flow: mobile-first ===== */
.candidate-process-flow {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 12px;
    overflow-x: auto; /* horizontal scroll on phones */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; /* nice snap per card */
    scrollbar-width: thin;
}

    .candidate-process-flow::-webkit-scrollbar {
        height: 6px;
    }

    .candidate-process-flow::-webkit-scrollbar-thumb {
        background: #00000033;
        border-radius: 6px;
    }

    /* Each step becomes a card on mobile */
    .candidate-process-flow .process-step {
        scroll-snap-align: start;
        min-width: 200px; /* card width */
        display: grid;
        grid-template-columns: auto 1fr; /* icon + label */
        align-items: center;
        gap: 10px 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #00000014;
        border-radius: 16px;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
    }

    .candidate-process-flow .step-circle img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .candidate-process-flow .step-label {
        font-size: 14px;
        line-height: 1.4;
    }

    .candidate-process-flow .step-connector {
        display: none !important;
    }

/* ===== Desktop/tablet: restore your original inline timeline look ===== */
@media (min-width: 992px) {
    .candidate-process-flow {
        overflow: visible;
        gap: 24px;
        padding: 0;
        scroll-snap-type: none;
    }

        .candidate-process-flow .process-step {
            min-width: unset;
            padding: 0;
            border: 0;
            box-shadow: none;
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .candidate-process-flow .step-circle img {
            width: 52px;
            height: 52px;
        }

        .candidate-process-flow .step-label {
            font-size: 15px;
            text-align: center;
        }

        .candidate-process-flow .step-connector {
            display: block !important;
            width: 60px;
            height: 2px;
            background: #2085CC33;
        }
}


/* ===== Mobile-friendly submit button ===== */
@media (max-width: 768px) {
    #search-button.submit-button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 500;
        padding: 14px;
        border-radius: 12px;
        background-color: #2085CC;
        color: #fff;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }

        #search-button.submit-button img.button-icon {
            width: 22px;
            height: 22px;
        }

        /* Optional: add tap highlight style for better feedback */
        #search-button.submit-button:active {
            background-color: #176CA6;
            transform: scale(0.98);
        }
}

/* ===== Step subtitle + image (mobile-friendly) ===== */
.step-flex {
    display: grid;
    grid-template-columns: 1fr; /* stack on phones */
    gap: 14px;
    align-items: start;
    padding: 8px 0;
}

/* icon + text row */
.step-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.step-subtitle-label span {
    font-size: 15px;
    line-height: 1.6;
    display: inline-block;
}

/* image responsive */
.step-left img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* optional: softer look on mobile */
}

/* tablet/desktop: side-by-side */
@media (min-width: 768px) {
    .step-flex {
        grid-template-columns: 1fr 1fr; /* subtitle | image */
        gap: 20px;
        align-items: center;
    }

    .step-circle img {
        width: 48px;
        height: 48px;
    }

    .step-subtitle-label span {
        font-size: 16px;
    }
}
