/* ============================================================
   VACANCY PORTAL
   MAIN STYLESHEET
============================================================ */

/* ============================================================
   ROOT VARIABLES
============================================================ */

:root {

    --primary: #1457d9;
    --primary-dark: #0d3fa5;
    --primary-light: #eaf1ff;

    --success: #198754;
    --danger: #dc3545;
    --warning: #f59f00;

    --dark: #172033;
    --text: #303b4d;
    --muted: #737d8e;

    --background: #f5f7fb;
    --surface: #ffffff;
    --border: #e2e7ef;

    --sidebar-width: 280px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm:
        0 2px 8px rgba(23, 32, 51, .05);

    --shadow-md:
        0 10px 30px rgba(23, 32, 51, .08);

    --shadow-lg:
        0 25px 60px rgba(23, 32, 51, .12);

    --transition:
        all .25s ease;

}


/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}


body {

    margin: 0;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

    color: var(--text);

    background: var(--background);

    line-height: 1.55;

}


/* ============================================================
   SELECTION
============================================================ */

::selection {

    background: var(--primary);

    color: #ffffff;

}


/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eef1f6;
}

::-webkit-scrollbar-thumb {

    background: #b8c1d0;

    border-radius: 20px;

}

::-webkit-scrollbar-thumb:hover {

    background: #8995a8;

}


/* ============================================================
   NAVBAR
============================================================ */

.portal-nav {

    min-height: 72px;

    background:
        rgba(255, 255, 255, .94);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    border-bottom:
        1px solid rgba(226, 231, 239, .9);

    box-shadow:
        0 2px 12px rgba(23, 32, 51, .04);

    z-index: 1030;

}


.navbar-brand {

    color: var(--dark) !important;

    text-decoration: none;

}


.brand-mark {

    width: 42px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #3f7df0
        );

    color: #fff;

    font-size: 19px;

    box-shadow:
        0 7px 18px rgba(20, 87, 217, .22);

}


.navbar-brand strong {

    display: block;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.1;

}


.navbar-brand small {

    display: block;

    margin-top: 2px;

    font-size: 10px;

    color: var(--muted);

}


.portal-nav .nav-link {

    color: #536073;

    font-weight: 600;

    padding:
        9px 13px !important;

    border-radius: 9px;

    transition: var(--transition);

}


.portal-nav .nav-link:hover {

    color: var(--primary);

    background: var(--primary-light);

}


.portal-nav .nav-link.active {

    color: var(--primary);

    background: var(--primary-light);

}


.navbar-toggler {

    color: var(--dark);

}


/* ============================================================
   HERO
============================================================ */

.hero {

    position: relative;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(255,255,255,.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0d3fa5 0%,
            #1457d9 48%,
            #286ce8 100%
        );

}


.hero::before {

    content: "";

    position: absolute;

    width: 380px;

    height: 380px;

    right: -150px;

    top: -180px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.12);

}


.hero::after {

    content: "";

    position: absolute;

    width: 240px;

    height: 240px;

    left: -100px;

    bottom: -130px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.10);

}


.hero-content {

    min-height: 350px;

    padding:
        60px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    position: relative;

    z-index: 1;

}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 12px;

    border-radius: 50px;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.16);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.2px;

}


.hero h1 {

    margin:
        17px 0 15px;

    font-size:
        clamp(36px, 5vw, 58px);

    font-weight: 800;

    letter-spacing: -2px;

    line-height: 1.03;

}


.hero h1 span {

    color: #dce8ff;

}


.hero p {

    max-width: 610px;

    margin: 0;

    color: rgba(255,255,255,.83);

    font-size: 15px;

    line-height: 1.8;

}


.hero-pills {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;

}


.hero-pills span {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 12px;

    border-radius: 8px;

    background:
        rgba(255,255,255,.10);

    color: rgba(255,255,255,.9);

    font-size: 11px;

    font-weight: 600;

}


/* ============================================================
   HERO CARD
============================================================ */

.hero-card {

    min-width: 260px;

    padding: 25px;

    border:
        1px solid rgba(255,255,255,.18);

    border-radius: 20px;

    background:
        rgba(255,255,255,.10);

    backdrop-filter: blur(15px);

    box-shadow:
        0 25px 50px rgba(0,0,0,.12);

}


.hero-card strong {

    display: block;

    margin-top: 15px;

    font-size: 16px;

}


.hero-card small {

    color: rgba(255,255,255,.72);

    font-size: 11px;

}


.floating-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255,255,255,.15);

    font-size: 22px;

}


/* ============================================================
   PROGRESS BAR
============================================================ */

.hero-card .progress {

    height: 6px;

    background:
        rgba(255,255,255,.16);

    border-radius: 10px;

}


.hero-card .progress-bar {

    border-radius: 10px;

    background: #ffffff;

}


/* ============================================================
   MAIN LAYOUT
============================================================ */

.application-layout {

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    gap: 25px;

    align-items: start;

}


/* ============================================================
   SIDEBAR
============================================================ */

.progress-sidebar {

    min-width: 0;

}


.side-card {

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);

}


.side-title {

    font-size: 14px;

    font-weight: 800;

    color: var(--dark);

    margin-bottom: 20px;

}


/* ============================================================
   PROGRESS RING
============================================================ */

.progress-ring-wrap {

    display: flex;

    justify-content: center;

    margin-bottom: 5px;

}


.progress-ring {

    width: 110px;

    height: 110px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    background:
        conic-gradient(
            var(--primary) 0deg,
            var(--primary) 43deg,
            #edf1f7 43deg,
            #edf1f7 360deg
        );

}


.progress-ring::before {

    content: "";

    position: absolute;

    width: 84px;

    height: 84px;

    border-radius: 50%;

    background: #ffffff;

}


.progress-ring span {

    position: relative;

    z-index: 1;

    color: var(--dark);

    font-size: 20px;

    font-weight: 800;

}


/* ============================================================
   STEPS
============================================================ */

.step-list {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.step {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 10px;

    border-radius: 11px;

    text-decoration: none;

    color: var(--muted);

    transition: var(--transition);

}


.step:hover {

    background: #f7f9fc;

    color: var(--primary);

}


.step > span {

    width: 29px;

    height: 29px;

    flex: 0 0 29px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f0f3f8;

    color: #687386;

    font-size: 11px;

    font-weight: 800;

}


.step div {

    min-width: 0;

}


.step b {

    display: block;

    color: #536073;

    font-size: 11px;

}


.step small {

    display: block;

    margin-top: 1px;

    color: #98a1af;

    font-size: 9px;

}


.step.active {

    background: var(--primary-light);

}


.step.active > span {

    background: var(--primary);

    color: #ffffff;

}


.step.active b {

    color: var(--primary);

}


/* ============================================================
   FORM CARD
============================================================ */

.form-card {

    margin-bottom: 22px;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow:
        var(--shadow-sm);

    scroll-margin-top: 90px;

}


/* ============================================================
   SECTION HEADER
============================================================ */

.section-head {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom:
        1px solid #edf0f4;

}


.section-icon {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 19px;

}


.section-head h2 {

    margin: 0;

    color: var(--dark);

    font-size: 17px;

    font-weight: 800;

}


.section-head p {

    margin:
        4px 0 0;

    color: var(--muted);

    font-size: 11px;

}


.section-number {

    margin-left: auto;

    color: #c3cad5;

    font-size: 24px;

    font-weight: 800;

}


/* ============================================================
   LABELS
============================================================ */

.form-label {

    margin-bottom: 7px;

    color: #303b4d;

    font-size: 11px;

    font-weight: 700;

}


.required::after {

    content: " *";

    color: var(--danger);

}


.required-mark {

    color: var(--danger);

}


/* ============================================================
   FORM CONTROLS
============================================================ */

.form-control,
.form-select {

    min-height: 40px;

    border:
        1px solid #cfd6e1;

    border-radius: 7px;

    color: var(--text);

    background-color: #ffffff;

    font-size: 12px;

    box-shadow: none;

    transition: var(--transition);

}


.form-control::placeholder {

    color: #a4acb8;

}


.form-control:focus,
.form-select:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(20,87,217,.10);

}


textarea.form-control {

    resize: vertical;

}


/* ============================================================
   INPUT GROUP
============================================================ */

.input-group-text {

    min-width: 42px;

    justify-content: center;

    border-color: #cfd6e1;

    background: #f8f9fb;

    color: #667286;

}


/* ============================================================
   RADIO / CHOICES
============================================================ */

.choice-group {

    display: flex;

    align-items: center;

    gap: 20px;

    min-height: 40px;

}


.choice-group label {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    color: #4e596b;

    font-size: 12px;

}


.choice-group input {

    accent-color: var(--primary);

}


/* ============================================================
   REPEATABLE TABLES
============================================================ */

.table-head {

    display: grid;

    align-items: center;

    min-height: 35px;

    padding:
        0 10px;

    margin-bottom: 2px;

    background: #f1f3f8;

    color: #4f5b70;

    font-size: 10px;

    font-weight: 800;

}


.education-grid {

    grid-template-columns:
        1.05fr
        1.65fr
        1.65fr
        1fr
        .8fr
        1fr
        1fr
        35px;

    gap: 8px;

}


.training-grid {

    grid-template-columns:
        1.8fr
        .8fr
        1.65fr
        35px;

    gap: 8px;

}


.language-grid {

    grid-template-columns:
        1fr
        1fr
        35px;

    gap: 8px;

}


.experience-grid {

    grid-template-columns:
        1.4fr
        1.3fr
        .65fr
        .65fr
        35px;

    gap: 8px;

}


.repeat-row {

    display: grid;

    align-items: center;

    padding:
        10px;

    border-bottom:
        1px solid #e5e9ef;

    transition:
        background .2s ease;

}


.repeat-row:hover {

    background: #fbfcfe;

}


.repeat-row:last-child {

    border-bottom: 0;

}


/* ============================================================
   REMOVE ROW BUTTON
============================================================ */

.remove-row {

    width: 31px;

    height: 31px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #dce1e8;

    border-radius: 7px;

    background: #ffffff;

    color: #8993a3;

    cursor: pointer;

    transition: var(--transition);

}


.remove-row:hover {

    border-color: #f1aeb5;

    background: #fff4f4;

    color: var(--danger);

}


.remove-row:active {

    transform: scale(.92);

}


/* ============================================================
   ADD ROW BUTTON
============================================================ */

.add-row {

    margin:
        15px 10px 5px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

}


.btn-outline-primary {

    color: var(--primary);

    border-color:
        rgba(20,87,217,.35);

}


.btn-outline-primary:hover {

    background: var(--primary);

    border-color: var(--primary);

}


/* ============================================================
   SUBSECTION
============================================================ */

.subsection {

    margin-top: 35px;

    padding-top: 28px;

    border-top:
        1px solid #edf0f4;

}


.subsection-title {

    margin-bottom: 12px;

    color: var(--dark);

    font-size: 11px;

    font-weight: 800;

}


/* ============================================================
   TEXTAREA
============================================================ */

.textarea-lg {

    min-height: 130px;

}


/* ============================================================
   UPLOAD BOX
============================================================ */

.upload-box {

    position: relative;

    min-height: 210px;

    padding: 30px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border:
        2px dashed #d5dce7;

    border-radius: 16px;

    background: #fafbfd;

    cursor: pointer;

    transition: var(--transition);

}


.upload-box:hover {

    border-color: var(--primary);

    background: #f5f8ff;

    transform: translateY(-2px);

}


.upload-box.dragover {

    border-color: var(--primary);

    background: var(--primary-light);

}


.upload-box input[type="file"] {

    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

    pointer-events: none;

}


.upload-icon {

    width: 55px;

    height: 55px;

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 24px;

}


.upload-box strong {

    color: var(--dark);

    font-size: 13px;

}


.upload-box small {

    margin-top: 7px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.7;

}


.file-name {

    display: block;

    max-width: 100%;

    margin-top: 10px;

    padding: 5px 9px;

    border-radius: 6px;

    background: #eef2f7;

    color: #5c687a;

    font-size: 9px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ============================================================
   CERTIFICATION
============================================================ */

.certification {

    display: flex;

    gap: 15px;

    padding: 18px;

    margin-bottom: 17px;

    border:
        1px solid #e3e8f0;

    border-radius: 12px;

    background: #f8fafc;

}


.certification > i {

    flex: 0 0 auto;

    color: var(--primary);

    font-size: 21px;

}


.certification p {

    margin: 0;

    color: #596477;

    font-size: 11px;

    line-height: 1.8;

}


/* ============================================================
   CONSENT
============================================================ */

.consent-box {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 14px;

    border:
        1px solid #e2e7ef;

    border-radius: 10px;

    cursor: pointer;

    background: #ffffff;

    transition: var(--transition);

}


.consent-box:hover {

    background: #f8faff;

    border-color:
        #b9caf0;

}


.consent-box input {

    width: 17px;

    height: 17px;

    margin-top: 1px;

    flex: 0 0 auto;

    accent-color: var(--primary);

}


.consent-box span {

    color: #596477;

    font-size: 11px;

}


/* ============================================================
   SUBMIT BAR
============================================================ */

.submit-bar {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 22px;

    border-top:
        1px solid #edf0f4;

}


.submit-bar .btn {

    min-height: 42px;

    padding:
        0 20px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

}


.btn-primary {

    background: var(--primary);

    border-color: var(--primary);

}


.btn-primary:hover {

    background: var(--primary-dark);

    border-color: var(--primary-dark);

}


.btn-submit {

    min-width: 190px;

    box-shadow:
        0 8px 20px rgba(20,87,217,.18);

}


.btn-submit:hover {

    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(20,87,217,.25);

}


/* ============================================================
   ALERT
============================================================ */

#alertBox {

    margin-bottom: 20px;

}


.portal-alert {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 15px 17px;

    border-radius: 12px;

    border: 1px solid;

    animation:
        alertSlide .3s ease;

}


@keyframes alertSlide {

    from {

        opacity: 0;

        transform: translateY(-8px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.portal-alert.error {

    color: #842029;

    background: #fff5f5;

    border-color: #f1b0b7;

}


.portal-alert.success {

    color: #0f5132;

    background: #f0fff6;

    border-color: #badbcc;

}


.portal-alert i {

    font-size: 18px;

}


.portal-alert strong {

    display: block;

    margin-bottom: 2px;

    font-size: 12px;

}


.portal-alert span {

    font-size: 11px;

}


/* ============================================================
   VALIDATION
============================================================ */

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {

    border-color: var(--danger);

}


.form-control.is-invalid,
.form-select.is-invalid {

    border-color: var(--danger);

}


.form-control.is-valid,
.form-select.is-valid {

    border-color: var(--success);

}


.invalid-feedback {

    font-size: 10px;

}


/* ============================================================
   FOOTER
============================================================ */

.portal-footer {

    padding:
        25px 0;

    border-top:
        1px solid var(--border);

    background: #ffffff;

    color: #8791a0;

    font-size: 10px;

}


/* ============================================================
   MOBILE TABLE TRANSFORMATION
============================================================ */

@media (max-width: 1199.98px) {

    .application-layout {

        grid-template-columns:
            230px
            minmax(0, 1fr);

    }

    .education-grid {

        grid-template-columns:
            1fr
            1.4fr
            1.4fr
            .9fr
            .7fr
            1fr
            1fr
            32px;

    }

    .form-card {

        padding: 24px;

    }

}


@media (max-width: 991.98px) {

    .application-layout {

        display: block;

    }


    .progress-sidebar {

        margin-bottom: 20px;

    }


    .side-card {

        position: static !important;

    }


    .step-list {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 5px;

    }


    .step {

        padding: 9px;

    }


    .hero-content {

        min-height: auto;

        padding:
            50px 0;

    }

}


/* ============================================================
   TABLET / MOBILE
============================================================ */

@media (max-width: 767.98px) {

    body {

        font-size: 13px;

    }


    .portal-nav {

        min-height: 62px;

    }


    .brand-mark {

        width: 37px;

        height: 37px;

        border-radius: 10px;

        font-size: 16px;

    }


    .navbar-brand strong {

        font-size: 13px;

    }


    .navbar-brand small {

        font-size: 9px;

    }


    .portal-nav .navbar-collapse {

        margin-top: 8px;

        padding:
            8px 0 12px;

        border-top:
            1px solid #edf0f4;

    }


    .portal-nav .nav-link {

        padding:
            10px !important;

    }


    .hero-content {

        padding:
            42px 0;

    }


    .hero h1 {

        font-size: 39px;

        letter-spacing: -1.5px;

    }


    .hero p {

        font-size: 13px;

    }


    .hero-pills {

        gap: 7px;

    }


    .hero-pills span {

        font-size: 9px;

        padding:
            7px 9px;

    }


    .form-card {

        padding: 20px 15px;

        border-radius: 15px;

    }


    .section-head {

        margin-bottom: 22px;

        padding-bottom: 16px;

    }


    .section-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        font-size: 16px;

    }


    .section-head h2 {

        font-size: 15px;

    }


    .section-head p {

        font-size: 10px;

    }


    .section-number {

        font-size: 18px;

    }


    /* -----------------------------------------
       REPEATING ROWS
    ------------------------------------------ */

    .table-head {

        display: none !important;

    }


    .repeat-row {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        margin-bottom: 12px;

        padding: 14px;

        border:
            1px solid #e2e7ef;

        border-radius: 11px;

        background: #ffffff;

        position: relative;

    }


    .repeat-row:hover {

        background: #ffffff;

    }


    .repeat-row::before {

        content: "Application information";

        display: block;

        margin-bottom: 2px;

        color: #9aa3b1;

        font-size: 9px;

        font-weight: 700;

        text-transform: uppercase;

        letter-spacing: .5px;

    }


    .repeat-row .remove-row {

        position: absolute;

        top: 10px;

        right: 10px;

    }


    .repeat-row .form-control,
    .repeat-row .form-select {

        width: 100%;

    }


    .education-grid,
    .training-grid,
    .language-grid,
    .experience-grid {

        grid-template-columns: 1fr;

    }


    .education-grid .remove-row,
    .training-grid .remove-row,
    .language-grid .remove-row,
    .experience-grid .remove-row {

        position: absolute;

        top: 10px;

        right: 10px;

    }


    .add-row {

        margin-left: 0;

        margin-right: 0;

    }


    .upload-box {

        min-height: 190px;

    }


    .submit-bar {

        flex-direction: column-reverse;

    }


    .submit-bar .btn {

        width: 100%;

    }


    .btn-submit {

        min-width: 0;

    }


    .portal-footer {

        text-align: center;

    }

}


@media (max-width: 575.98px) {

    .container-xl {

        padding-left: 13px;

        padding-right: 13px;

    }


    .hero h1 {

        font-size: 34px;

    }


    .hero-pills span:nth-child(3) {

        display: none;

    }


    .step-list {

        display: flex;

        overflow-x: auto;

        padding-bottom: 4px;

        gap: 7px;

        scrollbar-width: none;

    }


    .step-list::-webkit-scrollbar {

        display: none;

    }


    .step {

        min-width: 145px;

        flex: 0 0 145px;

        background: #f8f9fc;

    }


    .side-card {

        padding: 16px;

    }


    .progress-ring-wrap {

        display: none;

    }


    .side-card > .text-center {

        display: none;

    }


    .form-card {

        margin-bottom: 15px;

        padding: 17px 13px;

    }


    .section-head {

        align-items: flex-start;

    }


    .section-number {

        display: none;

    }


    .certification {

        flex-direction: column;

        gap: 8px;

    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .hero h1 {

        font-size: 30px;

    }


    .section-head h2 {

        font-size: 14px;

    }


    .form-control,
    .form-select {

        font-size: 11px;

    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}