/*===================================================
    Career page
    (shared inner-hero styles live in common.css)
===================================================*/

/*===inner hero - button pair on the right===*/
.innerHeroSec{
    .innerHeroRow{
        align-items: flex-start;
    }
    .innerHeroCont{
        flex: 1;
        .innerHeroSub{
            max-width: 880px;
        }
    }
    .heroBtnWrap{
        flex-shrink: 0;
        /*===buttons sit level with the sub copy, per the design===*/
        align-self: flex-end;
        margin-bottom: 4px;
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 0;
            li{
                a{
                    padding: 13px 26px;
                    font-size: 15px;
                    white-space: nowrap;
                    background-color: #fff;
                    border-color: #d4dbe4;
                    &:hover{
                        background-color: var(--blue);
                        border-color: var(--blue);
                    }
                    &.blueBtn{
                        background-color: var(--blue);
                        border-color: var(--blue);
                    }
                }
            }
        }
    }
}
@media (max-width: 991px){
    .innerHeroSec{
        .heroBtnWrap{
            margin-top: 10px;
        }
    }
}

/*===why work here - image strip, copy & value cards===*/
.whyWorkSec{
    .headingWrap{
        align-items: flex-start;
        .headingLeft{
            width: 50%;
            .tagHolder{
                max-width: 100%;
            }
        }
        .headingRight{
            width: calc(100% - 50%);
            .whyWorkImg{
                border-radius: 120px;
                overflow: hidden;
                margin-bottom: 22px;
                img{
                    width: 100%;
                    height: 160px;
                    object-fit: cover;
                    object-position: center top;
                }
            }
            p{
                margin: 0;
                color: #1d2a36;
                font-size: 18px;
                line-height: 1.7;
                letter-spacing: 0.2px;
            }
        }
    }
    .whyWorkGrid{
        .row{
            row-gap: 26px;
        }
        .whyWorkCard{
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100%;
            padding: 32px 22px;
            text-align: center;
            background-color: #eef3f800;
            border-radius: 20px;
            transition: transform .4s ease, box-shadow .4s ease;
            border: 1px solid var(--blue);
            &:hover{
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgb(11 51 85 / 12%);
            }
            .whyWorkIcon{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 85px;
                height: 85px;
                margin-bottom: 28px;
                background-color: #7CA9CD;
                border-radius: 18px;
                i,
                svg{
                    font-size: 42px;
                    width: 1em;
                    height: auto;
                    color: #fff;
                    fill: currentColor;
                }
            }
            .whyWorkTitle{
                display: block;
                font-size: 20px;
                font-weight: 700;
                color: var(--blue);
                margin-bottom: 12px;
            }
            p{
                margin: 0;
                max-width: 273px;
                font-size: 15px;
                line-height: 1.6;
                letter-spacing: 0.2px;
                color: #1d2a36;
            }
        }
    }
}
@media (max-width: 991px){
    .whyWorkSec{
        .headingWrap{
            .headingLeft,
            .headingRight{
                width: 100%;
            }
            .headingRight{
                padding-left: 0;
                margin-top: 30px;
            }
        }
    }
}

/*===current openings - light panel with job cards===*/
.openingsSec{
    .openingsPanel{
        background-color: #e8eef8;
    }
    .headingWrap{
        .tagHolder{
            max-width: 100%;
        }
    }
    .jobGrid{
        .row{
            row-gap: 26px;
        }
        .jobCard{
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            height: 100%;
            padding: 40px 24px;
            background-color: #fff;
            border-radius: 20px;
            transition: transform .4s ease, box-shadow .4s ease;
            &:hover{
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgb(11 51 85 / 12%);
            }
            .jobTop{
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                margin-bottom: 14px;
                .jobType{
                    font-size: 15px;
                    letter-spacing: 0.2px;
                    color: var(--blue);
                }
                .jobLocation{
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    font-size: 14px;
                    color: #1d2a36;
                    i,
                    svg{
                        font-size: 16px;
                        width: 1em;
                        height: auto;
                        color: var(--blue);
                        fill: currentColor;
                    }
                }
            }
            .jobTitle{
                display: block;
                font-size: 24px;
                font-weight: 700;
                color: #1d2a36;
                margin-bottom: 16px;
                line-height: normal;
            }
            p{
                margin: 0 0 16px;
                font-size: 18px;
                line-height: 1.6;
                letter-spacing: 0.2px;
                color: #4b5a66;
            }
            .jobExp{
                color: #1d2a36;
                strong{
                    font-weight: 700;
                }
            }
            .btnOne{
                margin-top: auto;
                padding: 12px 38px;
                font-size: 15px;
            }
        }
    }
    /*===pagination circles===*/
    .blogPagination{
        display: flex;
        /*===a run of 42px circles plus 17px gaps outgrows a phone
             once there are more than about six pages, so let the
             row break instead of pushing the page sideways===*/
        flex-wrap: wrap;
        justify-content: center;
        gap: 17px;
        margin: 50px 0 0;
        li{
            button{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 42px;
                height: 42px;
                border-radius: 50%;
                font-family: inherit;
                font-size: 19px;
                font-weight: 500;
                color: #1d2a36;
                background-color: transparent;
                border: 1px solid #9fb4c6;
                cursor: pointer;
                transition: all .3s ease;
                &:hover{
                    border-color: var(--blue);
                    color: var(--blue);
                }
            }
            &.is-active{
                button{
                    background-color: var(--blue);
                    border-color: var(--blue);
                    color: #fff;
                }
            }
        }
    }
}
.captchaRow{
    p:first-child{
        width: 174px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0px;
    }
    .fieldBox{
        flex: 1;
        p{
            width: 100%;
        }
    }
}
/*===send us your resume - copy & apply form===*/
.resumeSec{
    .resumeCont{
        .tagHolder{
            max-width: 100%;
        }
        p{
            max-width: 640px;
            margin: 26px 0 30px;
            color: #1d2a36;
            font-size: 15px;
            line-height: 1.7;
            letter-spacing: 0.2px;
        }
        .resumePoints{
            display: flex;
            flex-direction: column;
            gap: 18px;
            margin: 0 0 36px;
            max-width: 655px;
            li{
                display: flex;
                align-items: center;
                gap: 16px;
                padding: 18px 16px;
                background-color: #eef3f8;
                border-radius: 14px;
                .pointIcon{
                    flex-shrink: 0;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 52px;
                    height: 52px;
                    border-radius: 50%;
                    background-color: #7CA9CD;
                    i,
                    svg{
                        font-size: 20px;
                        width: 1em;
                        height: auto;
                        color: #fff;
                        fill: currentColor;
                    }
                }
                p{
                    margin: 0;
                    max-width: none;
                    font-size: 16px;
                    line-height: 1.5;
                }
            }
        }
        .noFitWrap{
            .noFitTitle{
                display: block;
                font-size: 20px;
                font-weight: 700;
                color: var(--blue);
                margin-bottom: 8px;
            }
            p{
                margin: 0;
                a{
                    color: var(--blue);
                    font-weight: 600;
                    &:hover{
                        text-decoration: underline !important;
                    }
                }
            }
        }
    }
    .applyFormCard{
        padding: 45px 55px;
        background-color: #F0F8FF;
        border-radius: 20px;
        box-shadow: 10px 10px 0 0 var(--blue);
        .applyFormH{
            font-size: 50px;
            font-weight: 700;
            margin-bottom: 30px;
            text-align: center;
            text-transform: uppercase;
        }
        .formGroup{
            position: relative;
            margin-bottom: 20px;
            input,
            select,
            textarea{
                width: 100%;
                background-color: transparent;
                border-bottom: 1px solid #9fb4c6;
                padding: 9px 0;
                font-size: 15px;
                font-family: inherit;
                color: #1d2a36;
                border-radius: 0;
                resize: none;
                &::placeholder{
                    color: #1d2a36;
                }
                &:focus{
                    border-bottom-color: var(--blue);
                }
            }
            select{
                appearance: none;
                -webkit-appearance: none;
                cursor: pointer;
                &:invalid{
                    color: #1d2a36;
                }
            }
            .selectArrow{
                position: absolute;
                right: 5px;
                top: 14px;
                width: 9px;
                height: 9px;
                border-right: 2px solid #1d2a36;
                border-bottom: 2px solid #1d2a36;
                transform: rotate(45deg);
                pointer-events: none;
            }
            /*===file upload drawn as an underline row===*/
            &.uploadGroup{
                label{
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 9px 0;
                    border-bottom: 1px solid #9fb4c6;
                    font-size: 15px;
                    color: #1d2a36;
                    cursor: pointer;
                    i,
                    svg{
                        font-size: 16px;
                        width: 1em;
                        height: auto;
                        color: var(--blue);
                        fill: currentColor;
                    }
                }
                input[type="file"]{
                    display: none;
                }
            }
        }
        .applyBtnWrap{
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
        }
        .sendBtn{
            padding: 15px 62px;
            border-radius: 30px;
            background-color: var(--blue);
            border: 1px solid var(--blue);
            color: #fff;
            font-size: 17px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all .3s ease;
            &:hover{
                background-color: #0d4d80;
            }
        }
    }
}
@media (max-width: 991px){
    .resumeSec{
        .applyFormCard{
            margin-top: 40px;
        }
    }
}
@media (max-width: 991px){
    .resumeSec{
        .applyFormCard{
            .applyFormH{
                font-size: 36px;
            }
        }
    }
}
@media (max-width: 767px){
    .resumeSec{
        .applyFormCard{
            padding: 30px 22px;
            /*===50px uppercase is wider than a phone once a word
                 like "Career" can't break===*/
            .applyFormH{
                font-size: 26px;
                margin-bottom: 22px;
            }
        }
    }
}

/*===apply popup - opened from the Apply Now buttons===*/
.applyModal{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
    .applyModalOverlay{
        position: absolute;
        inset: 0;
        background-color: rgb(6 32 56 / 55%);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity .35s ease;
    }
    .applyModalDialog{
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 640px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        border-radius: 20px;
        background-color: #fff;
        box-shadow: 0 30px 70px rgb(6 32 56 / 35%);
        opacity: 0;
        transform: translateY(40px) scale(.97);
        transition: transform .4s cubic-bezier(.22, .8, .36, 1), opacity .35s ease;
    }
    .applyModalClose{
        position: absolute;
        right: 18px;
        top: 18px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #eef3f8;
        border: 1px solid #d4dbe4;
        cursor: pointer;
        transition: all .3s ease;
        i,
        svg{
            font-size: 15px;
            width: 1em;
            height: auto;
            color: #1d2a36;
            fill: currentColor;
        }
        &:hover{
            background-color: var(--blue);
            border-color: var(--blue);
            i,
            svg{
                color: #fff;
            }
        }
    }
    .applyModalCard{
        padding: 38px 42px;
    }
    .applyModalH{
        font-size: 30px;
        font-weight: 800;
        color: #1d2a36;
        margin-bottom: 16px;
    }
    /*===role chip picked from the job card===*/
    .roleBadge{
        display: none;
        align-items: center;
        gap: 10px;
        margin-bottom: 24px;
        padding: 10px 20px;
        border-radius: 30px;
        background-color: #eef3f8;
        border: 1px solid #b9cede;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--blue);
        i,
        svg{
            font-size: 14px;
            width: 1em;
            height: auto;
            color: var(--blue);
            fill: currentColor;
        }
        &.is-shown{
            display: inline-flex;
        }
    }
    /*===two-column field grid===*/
    .fieldGrid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 18px;
        .fullBox{
            grid-column: 1 / -1;
        }
    }
    /*===boxed inputs with the label sitting on the border===*/
    .fieldBox{
        position: relative;
        label{
            position: absolute;
            left: 14px;
            top: -8px;
            z-index: 1;
            padding: 0 6px;
            background-color: #fff;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.3px;
            color: var(--blue);
            em{
                font-style: normal;
                color: #d23c3c;
            }
        }
        input,
        select,
        textarea{
            width: 100%;
            padding: 15px 16px;
            font-size: 14px;
            font-family: inherit;
            color: #1d2a36;
            background-color: #fff;
            border: 1px solid #d4dbe4;
            border-radius: 12px;
            resize: none;
            transition: border-color .3s ease, box-shadow .3s ease;
            &::placeholder{
                color: #8a97a5;
            }
            &:focus{
                border-color: var(--blue);
                box-shadow: 0 0 0 3px rgb(22 103 166 / 12%);
            }
        }
        select{
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            &:invalid{
                color: #8a97a5;
            }
        }
        .selectArrow{
            position: absolute;
            right: 18px;
            top: 22px;
            width: 8px;
            height: 8px;
            border-right: 2px solid #4b5a66;
            border-bottom: 2px solid #4b5a66;
            transform: rotate(45deg);
            pointer-events: none;
        }
        /*===captcha mismatch state===*/
        &.is-error{
            input{
                border-color: #d23c3c;
                box-shadow: 0 0 0 3px rgb(210 60 60 / 12%);
            }
            label{
                color: #d23c3c;
            }
        }
    }
    /*===dashed upload tiles with the file-size note===*/
    .uploadCol{
        .uploadBox{
            position: relative;
            label{
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 15px 16px;
                border: 1.5px dashed #b9cede;
                border-radius: 12px;
                font-size: 14px;
                color: #4b5a66;
                cursor: pointer;
                transition: all .3s ease;
                i,
                svg{
                    font-size: 16px;
                    width: 1em;
                    height: auto;
                    color: var(--blue);
                    fill: currentColor;
                    flex-shrink: 0;
                }
                .uploadText{
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                &:hover{
                    border-color: var(--blue);
                    background-color: #f6f9fc;
                }
            }
            input[type="file"]{
                position: absolute;
                width: 1px;
                height: 1px;
                opacity: 0;
                pointer-events: none;
            }
            /*===a picked file turns the tile solid===*/
            &.has-file{
                label{
                    border-style: solid;
                    border-color: var(--blue);
                    background-color: #eef3f8;
                    color: #1d2a36;
                }
            }
        }
        .uploadNote{
            margin: 8px 0 0;
            font-size: 11.5px;
            letter-spacing: 0.2px;
            color: #8a97a5;
            strong{
                color: var(--blue);
                font-weight: 700;
            }
        }
    }
    /*===captcha row - canvas code, refresh & answer field===*/
    .captchaRow{
        display: flex;
        align-items: center;
        gap: 14px;
        .captchaCanvas{
            flex-shrink: 0;
            width: 120px;
            height: 46px;
            border: 1px solid #d4dbe4;
            border-radius: 10px;
            background-color: #f6f9fc;
        }
        .captchaRefresh{
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #fff;
            border: 1px solid #d4dbe4;
            cursor: pointer;
            transition: all .3s ease;
            i,
            svg{
                font-size: 14px;
                width: 1em;
                height: auto;
                color: var(--blue);
                fill: currentColor;
            }
            &:hover{
                background-color: var(--blue);
                border-color: var(--blue);
                i,
                svg{
                    color: #fff;
                }
            }
        }
        .captchaField{
            flex: 1;
        }
    }
    /*===submit===*/
    .applySubmitWrap{
        margin-top: 28px;
    }
    .applySubmitBtn{
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 32px;
        border-radius: 30px;
        background-color: var(--blue);
        border: 1px solid var(--blue);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all .3s ease;
        i,
        svg{
            font-size: 14px;
            width: 1em;
            height: auto;
            fill: currentColor;
            transition: transform .3s ease;
        }
        &:hover{
            background-color: #0f507f;
            border-color: #0f507f;
            i,
            svg{
                transform: translateX(4px) rotate(8deg);
            }
        }
    }
    /*===success state swaps in after submit===*/
    .applySuccess{
        display: none;
        padding: 30px 0 10px;
        text-align: center;
        .successIcon{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 74px;
            height: 74px;
            margin: 0 auto 24px;
            border-radius: 50%;
            background-color: var(--blue);
            animation: successPop .45s cubic-bezier(.22, .8, .36, 1) both;
            i,
            svg{
                font-size: 30px;
                width: 1em;
                height: auto;
                color: #fff;
                fill: currentColor;
            }
        }
        .successTitle{
            display: block;
            font-size: 26px;
            font-weight: 700;
            color: var(--blue);
            margin-bottom: 12px;
        }
        p{
            max-width: 360px;
            margin: 0 auto 26px;
            font-size: 14px;
            line-height: 1.65;
            letter-spacing: 0.2px;
            color: #1d2a36;
        }
        .btnOne{
            padding: 11px 34px;
        }
    }
    /*===open state===*/
    &.is-open{
        visibility: visible;
        pointer-events: auto;
        .applyModalOverlay{
            opacity: 1;
        }
        .applyModalDialog{
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    /*===submitted state: form out, success in===*/
    &.is-sent{
        .applyModalForm,
        .roleBadge{
            display: none;
        }
        .applySuccess{
            display: block;
        }
    }
}
@keyframes successPop{
    0%{
        transform: scale(.4);
        opacity: 0;
    }
    70%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}
/*===page scroll locked while the popup is open===*/
html.applyModalLock,
html.applyModalLock body{
    overflow: hidden;
}
@media (max-width: 767px){
    .applyModal{
        padding: 14px;
        .applyModalCard{
            padding: 55px 20px 30px;
        }
        .applyModalH{
            font-size: 24px;
        }
        .fieldGrid{
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .captchaRow{
            flex-wrap: wrap;
            .captchaField{
                flex: 1 1 100%;
                margin-top: 6px;
            }
        }
    }
}
