/*
 * =========================================================
 * HC_ECO_ONBOARDING_ENTRY_STYLE_V2
 * =========================================================
 *
 * Homepage entry only.
 *
 * Existing supplier / worker / provider pages are untouched.
 */

.hc-join-open{
    appearance:none;
    border:0;

    min-height:30px;

    padding:
        0
        13px;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    border-radius:999px;

    background:#fff;

    color:#347b2e;

    font-size:13px;
    font-weight:800;

    cursor:pointer;

    box-shadow:
        0 2px 10px
        rgba(20,70,20,.08);
}


.hc-join-open:hover{
    background:#f4faef;
}


.hc-join-modal{
    position:fixed;

    inset:0;

    display:none;

    z-index:15000;
}


.hc-join-modal.is-open{
    display:block;
}


.hc-join-backdrop{
    position:absolute;

    inset:0;

    background:
        rgba(15,23,42,.46);

    backdrop-filter:
        blur(3px);
}


.hc-join-dialog{
    position:absolute;

    top:50%;
    left:50%;

    transform:
        translate(-50%,-50%);

    width:
        min(
            720px,
            calc(100vw - 32px)
        );

    max-height:
        min(
            720px,
            calc(100dvh - 40px)
        );

    overflow:auto;

    box-sizing:border-box;

    padding:24px;

    background:#fff;

    border-radius:20px;

    box-shadow:
        0 24px 70px
        rgba(15,23,42,.26);
}


.hc-join-head{
    display:flex;

    align-items:flex-start;
    justify-content:space-between;

    gap:16px;

    margin-bottom:20px;
}


.hc-join-title h2{
    margin:0 0 6px;

    color:#183a19;

    font-size:24px;
}


.hc-join-title p{
    margin:0;

    color:#758078;

    font-size:13px;

    line-height:1.6;
}


.hc-join-close{
    flex:0 0 38px;

    width:38px;
    height:38px;

    padding:0;

    border:0;

    border-radius:50%;

    background:#f1f4ef;

    color:#465147;

    font-size:24px;

    cursor:pointer;
}


.hc-join-grid{
    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:12px;
}


.hc-join-card{
    display:flex;

    align-items:center;

    gap:14px;

    min-width:0;

    padding:16px;

    box-sizing:border-box;

    border:
        1px solid
        #e4eae1;

    border-radius:14px;

    background:#fbfcfa;

    color:inherit;

    text-decoration:none;

    transition:
        .15s ease;
}


.hc-join-card:hover{
    border-color:#bddcaf;

    background:#f2f8ee;

    transform:
        translateY(-1px);
}


.hc-join-icon{
    flex:
        0
        0
        46px;

    width:46px;
    height:46px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:#eaf4e5;

    color:#3b8333;

    font-size:21px;
}


.hc-join-info{
    min-width:0;
}


.hc-join-info strong{
    display:block;

    margin-bottom:4px;

    color:#243326;

    font-size:15px;
}


.hc-join-info span{
    display:block;

    color:#768078;

    font-size:12px;

    line-height:1.5;
}


.hc-join-arrow{
    margin-left:auto;

    color:#60a04f;

    font-size:20px;

    font-weight:700;
}


.hc-join-note{
    margin-top:16px;

    padding:11px 13px;

    border-radius:9px;

    background:#f4f7f2;

    color:#6d776e;

    font-size:12px;

    line-height:1.6;
}


body.hc-join-modal-open{
    overflow:hidden !important;
}


@media(max-width:768px){

    .hc-join-dialog{
        top:auto;
        bottom:0;
        left:0;

        transform:none;

        width:100%;

        max-height:
            min(
                86dvh,
                760px
            );

        padding:
            18px
            14px
            calc(
                24px
                +
                env(safe-area-inset-bottom)
            );

        border-radius:
            20px
            20px
            0
            0;
    }


    .hc-join-title h2{
        font-size:20px;
    }


    .hc-join-grid{
        grid-template-columns:1fr;

        gap:9px;
    }


    .hc-join-card{
        padding:13px;
    }


    .hc-join-icon{
        flex-basis:42px;

        width:42px;
        height:42px;
    }
}
