/* ============================================================
   Job Apply Page  —  ja-  prefix
   ============================================================ */

.ja-page {
    --ja-blue:   #2563eb;
    --ja-sky:    #0ea5e9;
    --ja-cyan:   #06b6d4;
    --ja-teal:   #14b8a6;
    --ja-rose:   #e11d48;
    --ja-ink:    #060f1e;
    --ja-navy:   #0d1b2e;
    --ja-text:   #1e293b;
    --ja-muted:  #64748b;
    --ja-soft:   #f0f4f9;
    --ja-line:   #e2e8f0;
    --ja-card:   #ffffff;
    --ja-shadow: 0 20px 60px rgba(6,15,30,.10);
    --ja-ease:   cubic-bezier(.22,.8,.2,1);
    --ja-radius: 14px;

    background: var(--ja-soft);
    color: var(--ja-text);
    font-family: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.ja-page *, .ja-page *::before, .ja-page *::after { box-sizing: border-box; }
.ja-page img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   HERO STRIP
══════════════════════════════════════════════════════════════ */
.ja-hero {
    position: relative;
    padding: 100px 0 52px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 65% 55% at 10% 30%, rgba(37,99,235,.44), transparent 54%),
        radial-gradient(ellipse 50% 50% at 88% 70%, rgba(20,184,166,.28), transparent 52%),
        linear-gradient(160deg, #060f1e 0%, #0d1b2e 48%, #111830 100%);
}

.ja-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.30), transparent);
    pointer-events: none;
}

.ja-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.46);
    font-size: 13px;
    font-weight: 700;
}
.ja-breadcrumb a { color: rgba(255,255,255,.40); text-decoration: none; }
.ja-breadcrumb a:hover { color: rgba(255,255,255,.80); }
.ja-breadcrumb i { font-size: 15px; }

.ja-hero-content { position: relative; z-index: 2; }

.ja-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.ja-dept-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(37,99,235,.22);
    border: 1px solid rgba(37,99,235,.30);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
}
.ja-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(148,163,184,.80);
    font-size: 13px;
    font-weight: 700;
}
.ja-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(148,163,184,.40);
    flex-shrink: 0;
}
.ja-hero-meta i { font-size: 14px; }

.ja-hero-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 46px;
    font-weight: 950;
    line-height: 1.10;
    letter-spacing: -1px;
    max-width: 780px;
}

.ja-hero-sub {
    margin: 0;
    max-width: 660px;
    color: rgba(203,213,225,.76);
    font-size: 16px;
    line-height: 1.72;
}
.ja-hero-sub em { color: #f87171; font-style: normal; }

/* ══════════════════════════════════════════════════════════════
   BODY LAYOUT
══════════════════════════════════════════════════════════════ */
.ja-body {
    padding: 48px 0 96px;
}

.ja-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.ja-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Summary card */
.ja-sidebar-card {
    padding: 22px;
    border-radius: var(--ja-radius);
    border: 1px solid var(--ja-line);
    background: var(--ja-card);
    box-shadow: var(--ja-shadow);
}

.ja-sc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--ja-ink);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.ja-sc-title i { color: var(--ja-blue); }

.ja-sc-desc {
    margin: 0 0 16px;
    color: var(--ja-muted);
    font-size: 13px;
    line-height: 1.68;
    border-bottom: 1px solid var(--ja-line);
    padding-bottom: 16px;
}

.ja-sc-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    margin: 0 0 18px;
}
.ja-sc-dl dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ja-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.ja-sc-dl dt i { color: var(--ja-blue); font-size: 13px; }
.ja-sc-dl dd {
    margin: 0;
    color: var(--ja-ink);
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
}

.ja-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ja-blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-top: 1px solid var(--ja-line);
    padding-top: 14px;
    width: 100%;
    transition: gap .2s;
}
.ja-back-link:hover { gap: 9px; }

/* Section tracker */
.ja-tracker {
    padding: 18px 20px;
    border-radius: var(--ja-radius);
    border: 1px solid var(--ja-line);
    background: var(--ja-card);
    box-shadow: var(--ja-shadow);
}
.ja-tracker-label {
    margin: 0 0 12px;
    color: var(--ja-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.ja-tracker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ja-tracker-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ja-tracker-item:hover { background: var(--ja-soft); }

.ja-ti-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e2e8f0;
    color: var(--ja-muted);
    font-size: 11px;
    font-weight: 900;
    transition: background .25s, color .25s, box-shadow .25s;
}
.ja-ti-text {
    color: var(--ja-muted);
    font-size: 13px;
    font-weight: 700;
    transition: color .25s;
}

.ja-tracker-active .ja-ti-num {
    background: linear-gradient(135deg, var(--ja-blue), var(--ja-cyan));
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.28);
}
.ja-tracker-active .ja-ti-text { color: var(--ja-ink); font-weight: 800; }

.ja-tracker-done .ja-ti-num {
    background: #d1fae5;
    color: #059669;
}
.ja-tracker-done .ja-ti-text { color: var(--ja-muted); }

/* ══════════════════════════════════════════════════════════════
   FORM PANEL
══════════════════════════════════════════════════════════════ */
.ja-form-panel {
    min-width: 0;
}

/* Global status bar */
.ja-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}
.ja-status[hidden] { display: none; }
.ja-status.ja-status-error {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fff5f5;
}
.ja-status.ja-status-success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}
.ja-status i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Form */
.ja-form { display: flex; flex-direction: column; gap: 0; }

/* ── Section ─────────────────────────────────────────────── */
.ja-section {
    padding: 28px;
    margin-bottom: 18px;
    border-radius: var(--ja-radius);
    border: 1px solid var(--ja-line);
    background: var(--ja-card);
    box-shadow: 0 4px 20px rgba(6,15,30,.05);
    scroll-margin-top: 100px;
    transition: box-shadow .25s, border-color .25s;
}
.ja-section:focus-within {
    border-color: rgba(37,99,235,.28);
    box-shadow: 0 6px 28px rgba(37,99,235,.08);
}
.ja-section-last { margin-bottom: 0; }

/* Section header */
.ja-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ja-line);
}
.ja-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ja-blue), var(--ja-cyan));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .4px;
    box-shadow: 0 4px 14px rgba(37,99,235,.26);
    margin-top: 2px;
}
.ja-sec-head > div { min-width: 0; }
.ja-sec-head h2 {
    margin: 0 0 3px;
    color: var(--ja-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.ja-sec-head p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 13px;
    font-weight: 600;
}

/* ── Grid ───────────────────────────────────────────────── */
.ja-grid { display: grid; gap: 16px; }
.ja-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ── Field ──────────────────────────────────────────────── */
.ja-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ja-field-full { grid-column: span 2; }

.ja-label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05px;
}
.ja-label em {
    color: var(--ja-rose);
    font-style: normal;
    margin-left: 2px;
}

.ja-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid #dde3ec;
    border-radius: 10px;
    color: var(--ja-ink);
    background: #f8fafc;
    font-size: 14.5px;
    font-weight: 600;
    outline: 0;
    font-family: inherit;
    transition: border-color .2s var(--ja-ease), box-shadow .2s var(--ja-ease), background .2s;
}
.ja-input::placeholder { color: #94a3b8; font-weight: 500; }

.ja-input:hover:not(:focus) { border-color: #94a3b8; background: #fff; }
.ja-input:focus {
    border-color: var(--ja-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.ja-select { cursor: pointer; }

/* Field error state */
.ja-input.ja-has-error {
    border-color: var(--ja-rose) !important;
    box-shadow: 0 0 0 3px rgba(225,29,72,.10) !important;
}

/* Inline error message */
.ja-err {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #be123c;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}
.ja-err::before {
    content: "\EF43";
    font-family: "remixicon";
    font-size: 14px;
    flex-shrink: 0;
}
.ja-err.ja-visible { display: flex; }

/* Consent error */
.ja-consent-err {
    margin-top: 8px;
    grid-column: 1 / -1;
}

/* ── File Upload ─────────────────────────────────────────── */
.ja-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 170px;
    padding: 28px 24px;
    border: 2px dashed rgba(37,99,235,.28);
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    cursor: pointer;
    transition: border-color .22s, background .22s, box-shadow .22s;
}
.ja-upload:hover,
.ja-upload.ja-drag-over {
    border-color: var(--ja-blue);
    background: #dbeafe;
    box-shadow: 0 0 0 4px rgba(37,99,235,.09);
}
.ja-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ja-upload.ja-has-error { border-color: var(--ja-rose) !important; }

.ja-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(37,99,235,.10);
    color: var(--ja-blue);
    font-size: 28px;
    margin-bottom: 4px;
    transition: background .22s;
}
.ja-upload:hover .ja-upload-icon,
.ja-upload.ja-drag-over .ja-upload-icon { background: rgba(37,99,235,.18); }

.ja-upload strong {
    display: block;
    color: var(--ja-ink);
    font-size: 15px;
    font-weight: 800;
}
.ja-upload span {
    display: block;
    color: var(--ja-muted);
    font-size: 13px;
    font-weight: 600;
}
.ja-upload em {
    display: block;
    color: var(--ja-blue);
    font-size: 12.5px;
    font-weight: 800;
    font-style: normal;
    min-height: 18px;
    word-break: break-all;
}

/* ── Consent ─────────────────────────────────────────────── */
.ja-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 16px;
    border-radius: 10px;
    border: 1.5px solid var(--ja-line);
    background: var(--ja-soft);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ja-consent:hover { border-color: rgba(37,99,235,.28); background: #eff6ff; }
.ja-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ja-cb-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    color: #fff;
    background: #fff;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.ja-cb-box i { opacity: 0; transition: opacity .18s; font-size: 13px; }

.ja-consent input:checked ~ .ja-cb-box {
    background: linear-gradient(135deg, var(--ja-blue), var(--ja-cyan));
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(37,99,235,.30);
}
.ja-consent input:checked ~ .ja-cb-box i { opacity: 1; }
.ja-consent.ja-consent-error { border-color: var(--ja-rose); background: #fff5f5; }

.ja-cb-text {
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.64;
}

/* ── Submit row ──────────────────────────────────────────── */
.ja-submit-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 0 0;
}

.ja-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 36px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: 0 14px 40px rgba(29,78,216,.34);
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform .22s var(--ja-ease), box-shadow .22s var(--ja-ease), opacity .2s;
}
.ja-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 52px rgba(29,78,216,.44); }
.ja-submit-btn:active:not(:disabled) { transform: translateY(0); }
.ja-submit-btn:disabled { opacity: .68; cursor: not-allowed; transform: none; }
.ja-submit-btn i { font-size: 17px; }
.ja-btn-loading { display: none; align-items: center; gap: 8px; }

.ja-submit-note {
    margin: 0;
    color: var(--ja-muted);
    font-size: 12.5px;
    font-weight: 600;
}
.ja-submit-note a { color: var(--ja-blue); }

/* ── Success screen ──────────────────────────────────────── */
.ja-success {
    padding: 52px 32px;
    border-radius: var(--ja-radius);
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    text-align: center;
}
.ja-success[hidden] { display: none; }

.ja-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 40px;
    margin: 0 auto 22px;
    box-shadow: 0 14px 40px rgba(5,150,105,.28);
    animation: jaPop .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes jaPop {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}

.ja-success h2 {
    margin: 0 0 12px;
    color: #166534;
    font-size: 26px;
    font-weight: 950;
}
.ja-success > p {
    margin: 0 auto 28px;
    max-width: 540px;
    color: #374151;
    font-size: 15px;
    line-height: 1.72;
}

.ja-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ja-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(29,78,216,.28);
    transition: transform .2s, box-shadow .2s;
}
.ja-btn-primary:hover { color: #fff; transform: translateY(-2px); }

.ja-btn-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .2s, background .2s;
}
.ja-btn-ghost:hover { border-color: #94a3b8; background: var(--ja-soft); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1099.98px) {
    .ja-layout { grid-template-columns: 240px minmax(0,1fr); gap: 20px; }
    .ja-hero-title { font-size: 40px; }
}

@media (max-width: 899.98px) {
    .ja-layout { grid-template-columns: 1fr; }
    .ja-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .ja-sidebar-card { flex: 1 1 280px; }
    .ja-tracker { flex: 1 1 220px; }
    .ja-tracker-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .ja-tracker-item { padding: 7px 10px; }
    .ja-tracker-label { display: none; }
}

@media (max-width: 767.98px) {
    .ja-hero { padding: 88px 0 40px; }
    .ja-hero-title { font-size: 34px; letter-spacing: -.8px; }
    .ja-hero-sub { font-size: 15px; }
    .ja-body { padding: 28px 0 72px; }
    .ja-grid-2 { grid-template-columns: 1fr; }
    .ja-field-full { grid-column: span 1; }
    .ja-section { padding: 22px 18px; }
    .ja-sec-head { gap: 12px; margin-bottom: 18px; }
    .ja-sec-head h2 { font-size: 15px; }
    .ja-sec-num { width: 32px; height: 32px; font-size: 12px; }
    .ja-submit-btn { width: 100%; justify-content: center; }
    .ja-success { padding: 36px 20px; }
}

@media (max-width: 575.98px) {
    .ja-hero-title { font-size: 28px; }
    .ja-hero-meta { gap: 6px; }
    .ja-meta-dot { display: none; }
    .ja-meta-item { font-size: 12px; }
    .ja-sidebar { flex-direction: column; }
    .ja-sidebar-card, .ja-tracker { flex: unset; width: 100%; }
    .ja-tracker-list { flex-direction: column; }
    .ja-tracker-label { display: block; }
    .ja-section { padding: 18px 16px; }
    .ja-input { min-height: 48px; font-size: 15px; }
    .ja-upload { min-height: 140px; padding: 22px 16px; }
    .ja-submit-btn { min-height: 52px; font-size: 15px; }
    .ja-success-actions { flex-direction: column; align-items: stretch; }
    .ja-btn-primary, .ja-btn-ghost { justify-content: center; text-align: center; }
}
