/* ============================================================================
   View Job page redesign — ported from
   frontend-design/page-redesigns/view-job-header-blue.html.
   Scoped under .vj2 (added to the page's top-level .container in
   application/jobview/index.phtml). Loaded AFTER view-job.min.css: the job
   detail card is new markup; the apply form keeps its existing DOM and is
   re-skinned by overrides here.
   ========================================================================== */

.vj2 {
    --vj-blue: #2B59FF;
    --vj-ink: #1B1E20;
    --vj-muted: #6B7280;
    --vj-muted-2: #8A90A2;
    --vj-line: #E7E9F0;
    --vj-pill: #F1F3F7;
}

/* ================= JOB DETAIL CARD ================= */
.vj2 .job-wrap { margin-top: 34px; }
.vj2 .job-detail {
    background: #fff;
    border: 1px solid #BFD3F8;
    border-radius: 14px;
    padding: 10px;
}

/* ---- head panel (solid blue, white text + icons) ---- */
.vj2 .jd-head {
    background: linear-gradient(165deg, #4066FF 0%, #2348F0 100%);
    border: 1px solid #2E52F5;
    border-radius: 10px;
    padding: 22px 26px 26px;
    position: relative;
}
.vj2 .jd-premium-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.vj2 .jd-premium {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--vj-blue);
    border-radius: 999px; padding: 6px 14px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.vj2 .jd-premium svg { width: 12px; height: 12px; fill: var(--vj-blue); display: block; flex: none; }
.vj2 .jd-premium img { width: 14px; height: 14px; display: block; flex: none; }

.vj2 .jd-id-row { display: flex; align-items: center; gap: 18px; }
.vj2 .jd-logo {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    overflow: hidden;
    background: #fff; padding: 3px;   /* white ring so any logo reads on the blue panel */
    display: flex; align-items: center; justify-content: center;
}
.vj2 .jd-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.vj2 .jd-titles { flex: 1; min-width: 0; }
.vj2 h1.jd-title {
    font-size: 24px; font-weight: 600; color: #fff; margin: 0;
    letter-spacing: -0.3px; line-height: 1.2; overflow-wrap: anywhere;
}
.vj2 .jd-company { font-size: 16px; font-weight: 600; color: #fff; opacity: .92; margin-top: 6px; overflow-wrap: anywhere; }

.vj2 .jd-meta {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 14px; margin-top: 30px;
    padding: 0; list-style: none; margin-bottom: 0;
}
.vj2 .jd-meta-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vj2 .jd-meta-item > div { min-width: 0; }
.vj2 .jd-meta-icon { flex: none; width: 24px; height: 24px; }
.vj2 .jd-meta-icon svg { width: 24px; height: 24px; stroke: #fff; }
.vj2 .jd-meta-label { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.vj2 .jd-meta-value { font-size: 14px; font-weight: 600; color: #fff; margin-top: 3px; overflow-wrap: anywhere; }

/* ---- description body ---- */
.vj2 .jd-body { padding: 26px 24px 8px; }
.vj2 .jd-section { margin-bottom: 26px; }
.vj2 .jd-about { display: flex; gap: 16px; align-items: flex-start; }
.vj2 .jd-about-logo {
    flex: none; width: 56px; height: 56px; border-radius: 12px;
    border: 1px solid var(--vj-line); background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vj2 .jd-about-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vj2 .jd-about-text { min-width: 0; }
.vj2 .jd-about-text h3 { font-size: 15px; font-weight: 600; color: var(--vj-ink); margin: 0 0 8px; }
.vj2 .jd-about-text p { font-size: 14px; font-weight: 500; color: #3E444F; line-height: 1.75; margin: 0; }

/* real job description = raw feed/employer HTML inside .description-inner */
.vj2 .jd-desc .description-inner h2.job-title {
    font-size: 18px; font-weight: 600; color: var(--vj-blue); margin: 0 0 12px;
}
.vj2 .jd-desc .description-inner,
.vj2 .jd-desc .description-inner p,
.vj2 .jd-desc .description-inner li {
    font-size: 14px; font-weight: 500; color: #3E444F; line-height: 1.75;
}
.vj2 .jd-desc .description-inner p { margin: 0 0 12px; }
.vj2 .jd-desc .description-inner ul,
.vj2 .jd-desc .description-inner ol { margin: 0 0 12px 25px; }
.vj2 .jd-desc .description-inner h1,
.vj2 .jd-desc .description-inner h3,
.vj2 .jd-desc .description-inner h4,
.vj2 .jd-desc .description-inner strong,
.vj2 .jd-desc .description-inner b { font-size: 15px; font-weight: 600; color: var(--vj-ink); line-height: 1.4; }
.vj2 .jd-desc .description-inner h1,
.vj2 .jd-desc .description-inner h3,
.vj2 .jd-desc .description-inner h4 { margin: 20px 0 10px; }
.vj2 .jd-desc .description-inner img { max-width: 100%; height: auto; }

/* mobile-only description toggle (hidden on desktop) */
.vj2 .jd-toggle { display: none; }
.vj2 .jd-share-lead { display: none; }

/* ---- foot: apply + share ---- */
.vj2 .jd-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    border-top: 1px solid #EDF0F7;
    margin: 4px 14px 8px;
    padding: 16px 10px 10px;
}
.vj2 .jd-foot .apply-button a.btn-apply-premium {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--vj-blue); color: #fff; border: none;
    border-radius: 999px !important; height: 44px; padding: 0 28px;
    font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: box-shadow .15s ease;
}
.vj2 .jd-foot .apply-button a.btn-apply-premium:hover { box-shadow: 0 6px 18px rgba(43, 89, 255, 0.35); color: #fff; }
.vj2 .jd-foot .apply-button p { color: #1D7A46; font-style: italic; margin: 0; font-weight: 600; }
/* mobile-only Apply inside the blue head card */
.vj2 .btn-apply--card {
    display: none;
    align-items: center; gap: 10px;
    background: #fff; color: var(--vj-blue); border: none;
    border-radius: 999px; height: 40px; padding: 0 26px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    margin-top: 24px;
}
.vj2 .btn-apply--card:hover { color: var(--vj-blue); text-decoration: none; }

/* share bar — restyles the socialmedia.phtml partial (ul.social-icon) */
.vj2 .jd-share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vj2 .jd-share .social-icon {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    list-style: none; margin: 0; padding: 0;
}
.vj2 .jd-share .social-icon li { display: inline-flex; align-items: center; gap: 8px; }
.vj2 .jd-share .social-icon a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--vj-blue); text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}
.vj2 .jd-share .social-icon a:hover { transform: translateY(-2px); opacity: .85; }
.vj2 .jd-share .social-icon svg,
.vj2 .jd-share .social-icon img { width: 22px; height: 22px; display: block; }

/* ================= CTA BANNER (Apply AI) ================= */
.vj2 .cta-wrap { margin-top: 30px; }
.vj2 .bnr {
    position: relative; width: 100%;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, #2C4CEA 0%, #1E3CD8 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.vj2 .bnr--left { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: stretch; min-height: 300px; }
.vj2 .bnr--left .media { position: relative; overflow: hidden; background: #11227A; }
.vj2 .bnr--left .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
.vj2 .bnr--left .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(30, 60, 216, 0.55) 0%, rgba(30, 60, 216, 0) 26%); }
.vj2 .bnr--left .body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; }
.vj2 .bnr--left .body__inner { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: max-content; max-width: 100%; }
.vj2 .bnr-badge {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 11px; color: #fff;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26);
}
.vj2 .bnr-badge svg { width: 10px; height: 10px; }
.vj2 .bnr-title { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.vj2 .bnr-subtitle { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.84); max-width: 540px; }
.vj2 .bnr-divider { height: 1px; background: rgba(255, 255, 255, 0.22); margin: 22px 0; width: 100%; }
.vj2 .stats { display: flex; gap: 42px; }
.vj2 .stat__num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.vj2 .stat__label { margin-top: 5px; font-size: 11.5px; color: rgba(255, 255, 255, 0.80); }
.vj2 .bnr-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 10px;
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    margin-top: 26px; align-self: flex-start;
}
.vj2 .bnr-btn--primary { background: #fff; color: #1E44E6; box-shadow: 0 6px 16px rgba(8, 18, 60, 0.20); }
.vj2 .bnr-btn--primary:hover { background: #EFF3FF; color: #1E44E6; text-decoration: none; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(8, 18, 60, 0.28); }
.vj2 .bnr-btn svg { width: 14px; height: 14px; }

/* ================= APPLY FORM (overlay on the existing DOM) ================= */
.vj2 .apply-now-form { padding: 70px 0 40px; }
.vj2 .apply-now-form-inner .form-head .title-and-subtitle h3 {
    text-align: center;
    font-size: 44px; font-weight: 500; color: #000;
    letter-spacing: -0.5px; line-height: 1.15;
}
.vj2 .apply-now-form-inner .form-head .title-and-subtitle .subtitle {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 12px; margin-top: 30px;
}
/* keep the old desktop/mobile visibility toggles (our flex rule above outranks them) */
.vj2 .apply-now-form-inner .form-head .title-and-subtitle .subtitle.mobile-view { display: none; }
@media (max-width: 900px) {
    .vj2 .apply-now-form-inner .form-head .title-and-subtitle .subtitle.desktop-view { display: none; }
    .vj2 .apply-now-form-inner .form-head .title-and-subtitle .subtitle.mobile-view {
        display: flex; flex-direction: column; gap: 10px;
    }
}
.vj2 .apply-now-form-inner .form-head .title-and-subtitle .subtitle p { font-size: 12.5px; font-weight: 600; color: var(--vj-ink); margin: 0; }
.vj2 .apply-now-form-inner .subtitle a.button-priamry,
.vj2 .apply-now-form-inner .subtitle a.register-button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--vj-blue); color: #fff; border: none;
    border-radius: 6px !important; height: 32px; padding: 0 18px;
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    transition: box-shadow .15s ease;
}
.vj2 .apply-now-form-inner .subtitle a.button-priamry:hover,
.vj2 .apply-now-form-inner .subtitle a.register-button:hover { box-shadow: 0 4px 14px rgba(43, 89, 255, 0.35); color: #fff; }

/* the form card */
.vj2 .interesting-form {
    background: #fff;
    border: 1px solid var(--vj-line);
    border-radius: 12px;
    margin-top: 46px;
    padding: 22px 28px 28px;
}

/* fields */
.vj2 .apply-now-form .form-inner label,
.vj2 .apply-now-form .control-label,
.vj2 .apply-now-form .form-label {
    font-size: 12px; font-weight: 600; color: var(--vj-ink);
    margin-bottom: 8px;
}
.vj2 .apply-now-form .input-field {
    border: 1px solid #E2E6F0 !important; border-radius: 8px !important;
    font-size: 12.5px; color: var(--vj-ink);
    background-color: #fff;
    transition: border-color .15s ease;
}
.vj2 .apply-now-form input.input-field {
    height: 40px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
    line-height: 38px;
    color: var(--vj-ink);
}
.vj2 .apply-now-form .input-field::placeholder { color: #9AA0AD; }
.vj2 .apply-now-form .input-field:focus { border-color: #B9C6FF !important; outline: none; box-shadow: none; }
.vj2 .apply-now-form textarea.input-field {
    min-height: 88px; height: auto !important;
    padding: 11px 13px !important; font-size: 12.5px !important; line-height: 1.6;
}

/* select2 to match */
.vj2 .apply-now-form .select2-container .select2-selection--single {
    height: 40px; border: 1px solid #E2E6F0; border-radius: 8px;
}
.vj2 .apply-now-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px; font-size: 12.5px; color: var(--vj-ink);
}
.vj2 .apply-now-form .select2-container .select2-selection--single .select2-selection__arrow { height: 38px; }
.vj2 .apply-now-form .select2-container--default.select2-container--open .select2-selection--single,
.vj2 .apply-now-form .select2-container--default.select2-container--focus .select2-selection--single { border-color: #B9C6FF; }

/* ---- attachments: single designer upload box (blue circle icon, centred) ---- */
.vj2 .apply-now-form #file-attach { border: none; background: transparent; padding: 0; margin: 0; }
.vj2 .apply-now-form .attachments .file-attach {
    position: relative;
    border: 1px solid #E2E6F0 !important; border-radius: 8px !important;
    padding: 26px 16px 22px !important;
    min-height: 0 !important; height: auto !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 4px !important;
    text-align: center; cursor: pointer; background: #fff !important;
    transition: border-color .15s ease, background .15s ease;
}
.vj2 .apply-now-form .attachments .file-attach:hover { border-color: #B9C6FF !important; background: #FAFBFF !important; }
/* the real Dropzone element is the empty first box — stretch it invisibly over
   the whole designer box so any click opens the file dialog (legacy behaviour) */
.vj2 .apply-now-form .attachments .image_select.image-select-first {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important;
    border: none !important; background: transparent !important;
    z-index: 2; cursor: pointer;
}
.vj2 .apply-now-form .attachments .image-select-first .dz-default,
.vj2 .apply-now-form .attachments .image-select-first .dz-message { display: none !important; }
.vj2 .apply-now-form .attachments .image_select:not(.image-select-first) {
    border: none !important; background: transparent !important;
    padding: 0 !important; margin: 0 !important; width: auto !important;
    min-height: 0 !important; height: auto !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0;
}
.vj2 .apply-now-form .attachments .image-and-text {
    display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center;
    gap: 12px; margin: 0 !important; min-height: 0 !important; padding: 0 !important;
}
.vj2 .apply-now-form .attachments .image { margin: 0 !important; padding: 0 !important; width: auto !important; }
.vj2 .apply-now-form .attachments .upload-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--vj-blue); flex: none;
}
.vj2 .apply-now-form .attachments .upload-icon svg { width: 20px; height: 20px; stroke: #fff; }
.vj2 .apply-now-form .attachments .content { margin: 0 !important; padding: 0 !important; width: auto !important; }
.vj2 .apply-now-form .attachments .content h5 {
    font-size: 13px !important; font-weight: 600 !important; color: var(--vj-ink) !important;
    margin: 0 !important; padding: 0 !important; line-height: 1.4;
}
.vj2 .apply-now-form .attachments .content h5 a { color: var(--vj-blue) !important; text-decoration: underline !important; }
.vj2 .apply-now-form .attachments .upload-hint {
    font-size: 11px !important; font-weight: 500 !important; color: var(--vj-muted-2) !important;
    margin: 6px 0 0 !important; padding: 0 !important; text-align: center; line-height: 1.5;
}

/* visa radios */
.vj2 .apply-now-form .custom-checkbox1 input[type="radio"] { accent-color: var(--vj-blue); }

/* privacy checkbox */
.vj2 .apply-now-form .privacy--checkbox input[type="checkbox"] { accent-color: var(--vj-blue); }
.vj2 .apply-now-form .privacy--checkbox label span { font-size: 12.5px; color: var(--vj-ink); }
.vj2 .apply-now-form .-ol-link { color: var(--vj-blue); font-weight: 600; }

/* submit buttons */
.vj2 .apply-now-form .send-application,
.vj2 .apply-now-form .next-step,
.vj2 .apply-now-form .send-application-mobile {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--vj-blue); color: #fff; border: none;
    border-radius: 6px !important; height: 38px; padding: 0 20px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: box-shadow .15s ease;
}
.vj2 .apply-now-form .send-application:hover,
.vj2 .apply-now-form .next-step:hover,
.vj2 .apply-now-form .send-application-mobile:hover { box-shadow: 0 4px 14px rgba(43, 89, 255, 0.35); }
/* desktop submit: compact button per the design (old CSS pins display:block,
   border-radius:16px !important and max-width — force past them) */
@media (min-width: 901px) {
    .vj2 .apply-now-form .send-application-button .send-application {
        display: inline-flex !important;
        width: auto !important;
        max-width: none !important;
        min-width: 160px;
        padding: 0 24px;
        border-radius: 6px !important;
        font-size: 13px !important;
    }
}

/* ================= APPLY FORM LAYOUT (designer .apply-card grid) ================= */
/* the section itself: no border box, generous top spacing (designer .apply-section) */
.vj2 .apply-now-form {
    border: none !important;
    background: transparent;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 90px 0 70px;
    margin-bottom: 0 !important;
}
/* style.min.css caps .form-head at 872px — the designer card spans the full container */
.vj2 .apply-now-form .apply-now-form-inner .form-head { max-width: 100%; width: 100%; }

/* the validation placeholder / error spans must not take flow space
   (they were adding ~2 lines of empty height under every field) */
.vj2 .apply-now-form .form-field .info-title,
.vj2 .apply-now-form .form-full .info-title {
    position: absolute; top: 100%; left: 0; margin: 0; padding: 0;
    font-size: 11px; line-height: 1.3; color: #E5484D;
}

/* remaining legacy .form-group labels (attachments etc.) match the designer scale */
.vj2 .apply-now-form .apply-now-form-inner .form-head .interesting-form .interesting-form-inner .form-group label {
    font-size: 12px; font-weight: 600; color: var(--vj-ink);
    padding-left: 0; margin-bottom: 8px;
}

/* phone with country-code prefix chip (kept in sync with the Country Code select) */
.vj2 .apply-now-form .d-phone { display: flex; gap: 10px; }
.vj2 .apply-now-form .d-phone__code {
    flex: none; min-width: 52px; height: 40px; padding: 0 12px;
    border: 1px solid #E2E6F0; border-radius: 8px; background: #F6F8FF;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 600; color: var(--vj-ink);
}
.vj2 .apply-now-form .d-phone .input-field { width: auto; flex: 1; min-width: 0; }
.vj2 .apply-now-form-inner .form-head .title-and-subtitle h3 {
    font-size: 44px !important;   /* old css pins 36px with !important */
    font-weight: 500;
    margin-bottom: 0;
}
.vj2 .apply-now-form-inner .subtitle a.button-priamry,
.vj2 .apply-now-form-inner .subtitle a.register-button {
    border-radius: 6px !important;
    width: auto !important;
}

/* card head: briefcase + "Apply Now" (designer .apply-card__head) */
.vj2 .interesting-form .apply-card__head {
    display: flex; align-items: center; gap: 9px;
    padding-bottom: 16px; margin-bottom: 22px;
    border-bottom: 1px solid #EDF0F7;
}
.vj2 .interesting-form .apply-card__head svg { width: 17px; height: 17px; stroke: var(--vj-ink); flex: none; }
.vj2 .interesting-form .apply-card__head span { font-size: 13.5px; font-weight: 600; color: var(--vj-ink); }

.vj2 .interesting-form-inner { width: 100%; }

/* 4-column field grid */
.vj2 .apply-now-form .form-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px 26px;
    margin-bottom: 22px;
}
/* .form-field carries legacy .form-inner for the validator hooks — neutralise its old flex layout */
.vj2 .apply-now-form .form-field.form-inner {
    display: block; width: 100%; min-width: 0; margin: 0; padding: 0; position: relative;
}
.vj2 .apply-now-form .form-field label { display: block; width: 100%; }
.vj2 .apply-now-form .form-field .input-field { width: 100%; }
.vj2 .apply-now-form .form-field .select2-container { width: 100% !important; }
.vj2 .apply-now-form .form-field .tooltip { display: inline-block; vertical-align: middle; }

/* full-width rows (cover letter, resume select, attachments) */
.vj2 .apply-now-form .form-full.form-inner {
    display: block; width: 100%; margin: 0 0 22px; padding: 0; position: relative;
}
.vj2 .apply-now-form .form-full label { display: block; width: 100%; }
.vj2 .apply-now-form .form-full .input-field { width: 100%; }

/* date fields get the designer calendar glyph (the old inline svg is gone) */
.vj2 .apply-now-form input.datepick,
.vj2 .apply-now-form input.availability_pick {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2.5'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center;
    padding-right: 38px;
}

/* remaining legacy .form-group wrappers (attachments, privacy, captcha, admin OTP) flow as blocks */
.vj2 .apply-now-form .interesting-form-inner .form-group { display: block; width: 100%; }
.vj2 .apply-now-form .interesting-form-inner .form-group .form-inner { width: 100%; display: block; position: relative; }

/* visa question: label left, radios right on the SAME row (designer .visa-row);
   the old css forces `label { flex: 0 0 100% }` — counter it with !important */
.vj2 .apply-now-form .visa-row {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    flex-wrap: wrap; gap: 14px; margin: 26px 0 0 !important; padding: 0 !important; width: 100% !important;
}
.vj2 .apply-now-form .visa-row > label {
    flex: 1 1 auto !important; width: auto !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important;
    font-size: 12.5px !important; font-weight: 600 !important; color: var(--vj-ink) !important;
    display: inline-flex !important; align-items: center !important;
}
.vj2 .apply-now-form .visa-row .custom-checkbox1 {
    display: flex !important; align-items: center !important; gap: 0;
    width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important;
    font-size: 12.5px; font-weight: 500; color: var(--vj-ink);
}
.vj2 .apply-now-form .visa-row .custom-checkbox1 input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    border: 1.5px solid #C4CAD8; background: #fff;
    cursor: pointer; display: inline-block; position: relative;
    margin: 0 8px 0 0; transition: border-color .15s ease;
}
/* the radios/text are bare siblings: 8px binds each radio to its own text,
   26px separates the Yes / No pairs (designer .visa-options) */
.vj2 .apply-now-form .visa-row .custom-checkbox1 input[type="radio"]:not(:first-child) { margin-left: 26px; }
.vj2 .apply-now-form .visa-row .custom-checkbox1 input[type="radio"]:checked { border-color: var(--vj-blue); }
.vj2 .apply-now-form .visa-row .custom-checkbox1 input[type="radio"]:checked::after {
    content: ""; position: absolute; inset: 2.5px;
    border-radius: 50%; background: var(--vj-blue);
}

/* privacy row spacing per the designer (.m-agree) */
.vj2 .apply-now-form .privacy-checkbox { margin: 22px 0 2px !important; }

/* submit row: compact "Submit →" + bordered Cancel (designer .apply-actions) */
.vj2 .apply-now-form .send-application-button { margin-top: 30px; }
.vj2 .apply-now-form .send-application-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.vj2 .apply-now-form .send-application svg { width: 14px; height: 14px; stroke: #fff; flex: none; }
.vj2 .apply-now-form .send-application-inner .btn-cancel-apply {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: auto !important; max-width: none !important; flex: none;
    background: #fff !important; color: var(--vj-ink) !important;
    border: 1px solid #E2E6F0 !important; border-radius: 6px !important;
    height: 38px !important; padding: 0 20px !important; margin: 0 !important;
    font-family: inherit; font-size: 13px !important; font-weight: 600; cursor: pointer;
    box-shadow: none !important;
    transition: all .15s ease;
}
.vj2 .apply-now-form .send-application-inner .btn-cancel-apply:hover { background: #F6F8FF !important; border-color: #C9D2EA !important; }

/* ================= SELECT2 DROPDOWN PANEL (designer .combo-list) =================
   The panel is appended to <body> (outside .vj2), but this stylesheet only loads
   on the job view page, so the global selectors stay page-scoped. */
.select2-container--default .select2-dropdown {
    border: 0;
    border-radius: 10px;
    /* NOT overflow:hidden — the search field is positioned above the panel
       (see below) and would be clipped away */
    overflow: visible;
    z-index: 10050;
}
/* no gap: the search field overlays the closed control, list sits flush under it */
.select2-dropdown--below { margin-top: 0; }
.select2-dropdown--above { margin-bottom: 0; }
/* the results block carries the panel chrome (global css gives it a hard blue border) */
.select2-container--open .select2-dropdown .select2-results,
.select2-container--default .select2-dropdown .select2-results {
    border: 1px solid #E2E6F0 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
    background: #fff;
    overflow: hidden;
}
.select2-container--open .select2-dropdown--above .select2-results {
    border-radius: 10px 10px 0 0 !important;
}
/* Search field: keep the site's behaviour (it overlays the closed control, so
   the box you clicked turns into the filter input) — just restyled to the
   redesign's tokens. */
.select2-container--open .select2-dropdown span.select2-search.select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
    padding: 0 !important;
    position: absolute;
    top: -40px;
    width: 100%;
}
.select2-container--open .select2-dropdown span.select2-search.select2-search--dropdown input.select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    height: 40px !important;
    margin: 0;
    padding: 0 34px 0 13px !important;
    border: 1px solid #B9C6FF !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: #fff;
    font-family: inherit !important;
    font-size: 12.5px !important;
    line-height: 38px !important;
    color: var(--vj-ink, #1B1E20);
    outline: none;
    box-shadow: none;
}
.select2-container--open .select2-dropdown--above span.select2-search.select2-search--dropdown input.select2-search__field {
    border: 1px solid #B9C6FF !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
}
.select2-container--open .select2-dropdown .select2-results .select2-results__options,
.select2-container--default .select2-results__options { padding: 6px; max-height: 190px; }
/* the global stylesheet pins these at 16px/#606a80 with a deeper selector — match its depth */
.select2-container--open .select2-dropdown .select2-results .select2-results__options .select2-results__option,
.select2-container--default .select2-results__option {
    padding: 9px 11px !important;
    border-radius: 7px;
    font-size: 12.5px !important;
    font-weight: 500;
    line-height: 1.5 !important;
    color: #1B1E20 !important;
}
.select2-container--open .select2-dropdown .select2-results .select2-results__options .select2-results__option--highlighted[aria-selected],
.select2-container--open .select2-dropdown .select2-results .select2-results__options .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #F3F6FF !important;
    color: #2B59FF !important;
}
/* closed control: designer chevron + placeholder tone */
.vj2 .apply-now-form .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9AA0AD; }
.vj2 .apply-now-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6B7280 transparent transparent transparent;
}
.vj2 .apply-now-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6B7280 transparent;
}

/* ================= DATEPICKER (designer .dp, ported widget) ================= */
.vj2 .dp {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
    background: #fff; border: 1px solid #E2E6F0; border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    padding: 12px; width: 252px;
}
.vj2 .dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.vj2 .dp-nav {
    flex: none; width: 26px; height: 26px; border: 1px solid #E2E6F0; border-radius: 7px;
    background: #fff; cursor: pointer; font-size: 15px; line-height: 1; color: var(--vj-ink);
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.vj2 .dp-nav:hover { border-color: #B9C6FF; color: var(--vj-blue); }
.vj2 .dp-nav:disabled { opacity: .35; cursor: default; border-color: #E2E6F0; color: var(--vj-ink); }
.vj2 .dp-month, .vj2 .dp-year {
    flex: 1; height: 28px; border: 1px solid #E2E6F0; border-radius: 7px;
    font-family: inherit; font-size: 12px; font-weight: 500; color: var(--vj-ink);
    background: #fff; outline: none; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    padding: 0 20px 0 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 7px center;
    min-width: 0;
}
.vj2 .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.vj2 .dp-dow {
    font-size: 10px; font-weight: 600; color: var(--vj-muted-2);
    text-align: center; padding: 4px 0; text-transform: uppercase;
}
.vj2 .dp-day {
    border: none; background: transparent; border-radius: 7px;
    font-family: inherit; font-size: 12px; font-weight: 500; color: var(--vj-ink);
    height: 28px; cursor: pointer; padding: 0;
}
.vj2 .dp-day:hover { background: #F3F6FF; color: var(--vj-blue); }
.vj2 .dp-day.is-today { box-shadow: inset 0 0 0 1px #B9C6FF; }
.vj2 .dp-day.is-sel { background: var(--vj-blue); color: #fff; font-weight: 600; }
.vj2 .dp-day:disabled { color: #E0E3EC; cursor: default; background: transparent; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .vj2 .jd-meta { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
    .vj2 .apply-now-form .form-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .vj2 .job-wrap { margin-top: 20px; }

    /* job card holds just the facts + Apply; the description flows on the page below */
    .vj2 .job-detail { border: none; border-radius: 0; padding: 0; background: transparent; }
    .vj2 .jd-head { padding: 20px 18px 24px; border-radius: 16px; }
    .vj2 .jd-premium-row { position: absolute; top: 20px; right: 18px; margin: 0; }
    .vj2 .jd-id-row { display: block; }
    .vj2 .jd-logo { width: 48px; height: 48px; margin-bottom: 16px; }
    .vj2 h1.jd-title { font-size: 19px; }
    .vj2 .jd-company { font-size: 14.5px; }
    .vj2 .jd-meta { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
    .vj2 .btn-apply--card { display: inline-flex; }
    .vj2 .jd-body { padding: 28px 2px 0; }
    .vj2 .jd-desc .description-inner h2.job-title { font-size: 20px; }

    /* collapsible description — the fade hides any half-cut line */
    .vj2 .jd-desc { position: relative; }
    .vj2 .jd-desc.is-collapsed { max-height: 540px; overflow: hidden; }
    .vj2 .jd-desc.is-collapsed::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 80%);
        pointer-events: none;
    }
    .vj2 .jd-toggle {
        display: flex; align-items: center; justify-content: center; gap: 7px;
        width: 100%; margin: 16px 0 4px; border: none; background: transparent;
        color: var(--vj-blue); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .vj2 .jd-toggle svg { width: 14px; height: 14px; stroke: var(--vj-blue); transition: transform .15s ease; }
    .vj2 .jd-toggle.is-open svg { transform: rotate(180deg); }

    /* centred Apply pill + bordered share bar */
    .vj2 .jd-foot { flex-direction: column; align-items: center; gap: 24px; border-top: none; margin: 12px 0 0; padding: 0; }
    .vj2 .jd-foot .apply-button a.btn-apply-premium { height: 46px; padding: 0 34px; font-size: 15px; }
    .vj2 .jd-share {
        width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px;
        border: 1px solid var(--vj-line); border-radius: 14px; padding: 13px 22px;
    }
    .vj2 .jd-share .social-icon { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
    /* icons only on phones — except the text-only Copy-link anchor, which keeps its label */
    .vj2 .jd-share .social-icon li:not(:first-child) a { font-size: 0; gap: 0; }
    .vj2 .jd-share-lead { display: inline-flex; }
    .vj2 .jd-share-lead svg { width: 21px; height: 21px; display: block; }

    /* apply form heading */
    .vj2 .apply-now-form { padding: 46px 0 30px; }
    .vj2 .apply-now-form-inner .form-head .title-and-subtitle h3 { font-size: 24px; }
    .vj2 .interesting-form { padding: 20px 16px 24px; border-radius: 14px; }

    /* CTA banner stacks: photo on top, body below */
    .vj2 .cta-wrap { margin-top: 24px; }
    .vj2 .bnr--left { grid-template-columns: 1fr; min-height: 0; }
    .vj2 .bnr--left .media { height: 210px; }
    .vj2 .bnr--left .body { padding: 26px 20px 30px; align-items: flex-start; }
    .vj2 .bnr--left .body__inner { width: 100%; max-width: 100%; }
    .vj2 .bnr-title { font-size: 24px; }
    .vj2 .bnr-subtitle { font-size: 12.5px; }
    .vj2 .bnr-divider { margin: 18px 0; }
    .vj2 .stats { gap: 28px; }
    .vj2 .stat__num { font-size: 22px; }
}

@media (max-width: 900px) {
    .vj2 .apply-now-form { padding: 56px 0 50px; }
    .vj2 .apply-now-form-inner .form-head .title-and-subtitle h3 { font-size: 24px !important; }
    /* the step wizard takes over on small screens — fields stack singly */
    .vj2 .apply-now-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .vj2 .jd-meta { grid-template-columns: 1fr; }
}
