/* =========================================================
   JOBS ABROAD — THREE-STEP EXPLORER
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.jobs-explorer {
    min-height: calc(100vh - 75px);
    padding: 30px 20px 50px;
    background: #f1f5f9;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.jobs-explorer-header {
    width: min(760px, 100%);
    margin: 0 auto 22px;
    text-align: center;
}

.page-label,
.step-label {
    display: inline-block;
    color: #d8a83e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.jobs-explorer-header h1 {
    margin: 5px auto 0;
    color: #083d63;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.12;
}

.jobs-explorer-header p {
    max-width: 650px;
    margin: 8px auto 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   PROGRESS STEPS
========================================================= */

.jobs-progress {
    width: min(700px, 100%);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobs-progress-step {
    min-width: 125px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.jobs-progress-step span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.jobs-progress-step:hover span {
    border-color: #d8a83e;
}

.jobs-progress-step.active {
    color: #083d63;
}

.jobs-progress-step.active span {
    border-color: #d8a83e;
    background: #d8a83e;
    color: #ffffff;
}

.jobs-progress-step.completed {
    color: #1478bd;
}

.jobs-progress-step.completed span {
    border-color: #1478bd;
    background: #1478bd;
    color: #ffffff;
}

.jobs-progress-line {
    width: 75px;
    height: 2px;
    margin-bottom: 20px;
    background: #cbd5e1;
}


/* =========================================================
   PAGE STEPS
========================================================= */

.jobs-step {
    display: none;
}

.jobs-step.active {
    display: block;
    animation: jobsStepFade 0.4s ease;
}

@keyframes jobsStepFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   STEP 1 — COUNTRY SELECTION
========================================================= */

.country-introduction {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    overflow: hidden;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(8, 61, 99, 0.12);
}

.country-introduction-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(
            rgba(4, 43, 70, 0.93),
            rgba(4, 43, 70, 0.93)
        ),
        url("../images/hero/jobs-abroad.jpg")
        center / cover no-repeat;
    color: #ffffff;
}

.country-introduction-content .step-label {
    color: #f2c45f;
}

.country-introduction-content h2 {
    margin: 6px 0 11px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.15;
}

.country-introduction-content > p {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.45;
}

.country-help-box {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.country-help-box strong {
    display: block;
    color: #f2c45f;
    font-size: 13px;
    line-height: 1.35;
}

.country-help-box p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   COUNTRY OPTIONS
========================================================= */

.country-options-panel {
    padding: 28px;
    background: #ffffff;
}

.country-options-heading {
    margin-bottom: 13px;
    text-align: center;
}

.country-options-heading span {
    display: inline-block;
    color: #d8a83e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.country-options-heading h3 {
    margin: 4px 0 0;
    color: #083d63;
    font-size: 21px;
    line-height: 1.2;
}

.country-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.country-option {
    min-height: 58px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    background: #f8fafc;
    color: #17324d;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.country-option:hover {
    border-color: #1478bd;
    background: #edf6fc;
    transform: translateY(-1px);
}

.country-option:focus-visible {
    outline: 3px solid rgba(20, 120, 189, 0.22);
    outline-offset: 2px;
}

.country-option.selected {
    border-color: #d8a83e;
    background: #fff8e8;
    box-shadow: 0 0 0 2px rgba(216, 168, 62, 0.15);
}

.country-flag {
    flex-shrink: 0;
    font-size: 23px;
    line-height: 1;
}

.country-name {
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}


/* =========================================================
   STEP 2 AND STEP 3 CARDS
========================================================= */

.step-content-card {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 30px;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(8, 61, 99, 0.12);
}

.step-content-heading {
    width: min(670px, 100%);
    margin: 0 auto 21px;
    text-align: center;
}

.step-content-heading h2 {
    margin: 5px 0 8px;
    color: #083d63;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.15;
}

.step-content-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.step-content-heading strong {
    color: #1478bd;
}


/* =========================================================
   JOB CATEGORIES
========================================================= */

.job-category-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.job-category-option {
    min-height: 118px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ea;
    border-radius: 11px;
    background: #f8fafc;
    color: #17324d;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.job-category-option:hover {
    border-color: #1478bd;
    background: #edf6fc;
    transform: translateY(-2px);
}

.job-category-option:focus-visible {
    outline: 3px solid rgba(20, 120, 189, 0.22);
    outline-offset: 2px;
}

.job-category-option.selected {
    border-color: #d8a83e;
    background: #fff8e8;
    box-shadow: 0 0 0 2px rgba(216, 168, 62, 0.15);
}

.job-category-option > span {
    margin-bottom: 6px;
    font-size: 25px;
    line-height: 1;
}

.job-category-option strong {
    color: #083d63;
    font-size: 13px;
    line-height: 1.2;
}

.job-category-option small {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   SELECTION MESSAGES
========================================================= */

.selection-message {
    margin: 12px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}


/* =========================================================
   BUTTONS
========================================================= */

.jobs-next-button,
.jobs-back-button,
.jobs-start-again-button,
.register-job-seeker-button {
    min-height: 41px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.jobs-next-button,
.register-job-seeker-button {
    border: 0;
    background: #083d63;
    color: #ffffff;
}

.jobs-next-button:hover,
.register-job-seeker-button:hover {
    background: #0c5b8f;
    color: #ffffff;
    transform: translateY(-1px);
}

.jobs-next-button:focus-visible,
.jobs-back-button:focus-visible,
.jobs-start-again-button:focus-visible,
.register-job-seeker-button:focus-visible {
    outline: 3px solid rgba(20, 120, 189, 0.22);
    outline-offset: 2px;
}

.jobs-next-button:disabled {
    background: #a8b5c1;
    color: #eef2f6;
    cursor: not-allowed;
    transform: none;
}

.country-options-panel > .jobs-next-button {
    width: 100%;
}

.jobs-back-button,
.jobs-start-again-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #083d63;
}

.jobs-back-button:hover,
.jobs-start-again-button:hover {
    border-color: #083d63;
    background: #edf6fc;
    color: #083d63;
}

.step-buttons {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
}


/* =========================================================
   EMPTY JOB RESULTS
========================================================= */

.jobs-empty-state {
    width: min(670px, 100%);
    margin: 0 auto;
    padding: 27px;
    border: 2px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
    text-align: center;
}

.jobs-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f1f8;
    font-size: 25px;
}

.jobs-empty-state h3 {
    margin: 6px 0;
    color: #083d63;
    font-size: 20px;
    line-height: 1.2;
}

.jobs-empty-state p {
    max-width: 520px;
    margin: 7px auto 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .country-introduction {
        grid-template-columns: 1fr;
    }

    .country-introduction-content {
        padding: 28px;
    }

    .job-category-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .jobs-explorer {
        min-height: auto;
        padding: 22px 10px 38px;
    }

    .jobs-explorer-header {
        margin-bottom: 18px;
    }

    .jobs-explorer-header h1 {
        font-size: 26px;
    }

    .jobs-explorer-header p {
        font-size: 12px;
    }

    .jobs-progress {
        margin-bottom: 20px;
    }

    .jobs-progress-step {
        min-width: 70px;
        font-size: 9px;
    }

    .jobs-progress-step span {
        width: 27px;
        height: 27px;
        font-size: 11px;
    }

    .jobs-progress-line {
        width: 22px;
        margin-bottom: 18px;
    }

    .country-introduction {
        border-radius: 13px;
    }

    .country-introduction-content,
    .country-options-panel,
    .step-content-card {
        padding: 20px 15px;
    }

    .country-introduction-content h2,
    .step-content-heading h2 {
        font-size: 22px;
    }

    .country-options-heading h3 {
        font-size: 19px;
    }

    .country-options-grid,
    .job-category-options {
        grid-template-columns: 1fr;
    }

    .country-option {
        min-height: 53px;
    }

    .job-category-option {
        min-height: 98px;
    }

    .step-buttons {
        flex-direction: column;
    }

    .step-buttons button {
        width: 100%;
    }

    .jobs-empty-state {
        padding: 22px 15px;
    }

    .register-job-seeker-button {
        width: 100%;
    }

}