/* =====================================================================
   Halaman karir publik — memakai variabel warna dari landing.css
   ===================================================================== */

.cp-body {
    background: var(--lp-bg-soft);
}

.cp-body main {
    display: block;
}

/* ---------- header ---------- */

.cp-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--lp-line);
    backdrop-filter: blur(10px);
}

.cp-header-inner {
    min-height: var(--lp-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cp-brand-logo {
    max-height: 44px;
    width: auto;
}

.cp-brand-name {
    font-weight: 800;
    font-size: 20px;
    color: var(--lp-navy-dark);
    letter-spacing: -.02em;
}

.cp-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
}

.cp-nav a {
    text-decoration: none;
    color: var(--lp-text-muted);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.cp-nav a:hover,
.cp-nav a.is-active {
    color: var(--lp-navy-dark);
    border-bottom-color: var(--lp-gold);
}

.cp-nav .cp-login {
    color: var(--lp-navy);
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    padding: 8px 18px;
}

.cp-nav .cp-login:hover {
    border-color: var(--lp-navy);
    color: var(--lp-navy-dark);
}

/* ---------- hero ---------- */

.cp-hero {
    background:
        radial-gradient(1000px 380px at 12% -20%, rgba(255, 215, 0, .16), transparent 62%),
        linear-gradient(160deg, var(--lp-navy-dark) 0%, var(--lp-navy) 100%);
    color: #fff;
    padding: 64px 0 56px;
}

.cp-hero-detail {
    padding-bottom: 48px;
}

.cp-hero-title {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #fff;
}

.cp-hero-text {
    max-width: 640px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.cp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lp-gold);
}

.cp-breadcrumb {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cp-breadcrumb:hover {
    color: var(--lp-gold);
}

.cp-hero .cp-btn-primary {
    margin-top: 4px;
}

/* ---------- section ---------- */

.cp-section {
    padding: 48px 0 72px;
}

.cp-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.cp-detail-main,
.cp-detail-side {
    min-width: 0;
}

/* ---------- filter ---------- */

.cp-filter {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 18px;
    box-shadow: 0 6px 20px rgba(10, 26, 63, .05);
}

.cp-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cp-filter-field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}

.cp-filter-field input,
.cp-filter-field select,
.cp-field input,
.cp-field select,
.cp-field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--lp-text);
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cp-filter-field input:focus,
.cp-filter-field select:focus,
.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
    border-color: var(--lp-navy);
    box-shadow: 0 0 0 3px rgba(26, 58, 122, .12);
}

.cp-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 26px 0 16px;
    font-weight: 700;
    color: var(--lp-navy-dark);
}

.cp-text-muted {
    color: var(--lp-text-muted);
    font-weight: 500;
}

/* ---------- tombol ---------- */

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.cp-btn:hover {
    transform: translateY(-1px);
}

.cp-btn-primary {
    background: var(--lp-gold);
    color: var(--lp-navy-dark);
}

.cp-btn-primary:hover {
    background: var(--lp-gold-light);
    color: var(--lp-navy-dark);
}

.cp-btn-ghost {
    background: transparent;
    border-color: var(--lp-line);
    color: var(--lp-navy-dark);
}

.cp-btn-ghost:hover {
    border-color: var(--lp-navy);
}

.cp-hero .cp-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.cp-btn-block {
    width: 100%;
    margin-top: 14px;
}

/* ---------- kartu lowongan ---------- */

.cp-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cp-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 24px;
    box-shadow: 0 8px 22px rgba(10, 26, 63, .05);
}

.cp-job-card.is-featured {
    border-color: rgba(255, 215, 0, .7);
    box-shadow: 0 10px 28px rgba(255, 215, 0, .18);
}

.cp-job-card .cp-badge {
    align-self: flex-start;
    margin-bottom: 10px;
}

.cp-job-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cp-job-title a {
    color: var(--lp-navy-dark);
    text-decoration: none;
}

.cp-job-title a:hover {
    color: var(--lp-navy);
}

.cp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text-muted);
    margin-bottom: 12px;
}

.cp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cp-meta-lg {
    font-size: 15px;
    color: rgba(255, 255, 255, .86);
    margin-bottom: 22px;
}

.cp-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.cp-job-excerpt {
    margin: 0 0 16px;
    color: var(--lp-text-muted);
    font-size: 15px;
}

.cp-job-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: auto 0 4px;
    padding-top: 14px;
    border-top: 1px dashed var(--lp-line);
    font-size: 14px;
    color: var(--lp-text-muted);
}

.cp-job-facts strong {
    color: var(--lp-text);
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cp-badge-gold {
    background: rgba(255, 215, 0, .22);
    color: #7a5c00;
}

.cp-badge-muted {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* ---------- pagination & empty ---------- */

.cp-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.cp-pagination a {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--lp-line);
    background: #fff;
    color: var(--lp-navy-dark);
    font-weight: 700;
    text-decoration: none;
}

.cp-pagination a.is-active {
    background: var(--lp-navy-dark);
    border-color: var(--lp-navy-dark);
    color: #fff;
}

.cp-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 64px 24px;
}

.cp-empty-icon {
    width: 44px;
    height: 44px;
    color: var(--lp-navy);
    margin-bottom: 12px;
}

.cp-empty h2 {
    margin: 0 0 8px;
    color: var(--lp-navy-dark);
}

.cp-empty p {
    margin: 0 auto 20px;
    max-width: 460px;
    color: var(--lp-text-muted);
}

/* ---------- panel detail ---------- */

.cp-panel {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 26px;
    box-shadow: 0 8px 22px rgba(10, 26, 63, .05);
    margin-bottom: 20px;
}

.cp-panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    color: var(--lp-navy-dark);
}

.cp-rich {
    color: var(--lp-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.cp-rich>*:first-child {
    margin-top: 0;
}

.cp-rich>*:last-child {
    margin-bottom: 0;
}

.cp-rich ul,
.cp-rich ol {
    padding-left: 22px;
}

.cp-note {
    font-size: 13px;
    color: var(--lp-text-muted);
}

.cp-note a {
    color: var(--lp-navy);
}

.cp-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cp-alert-error {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #8c2020;
}

/* ---------- form lamaran ---------- */

.cp-apply {
    position: sticky;
    top: calc(var(--lp-header-h) + 16px);
    max-height: calc(100vh - var(--lp-header-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.cp-form-heading {
    margin: 24px 0 12px;
    padding-top: 18px;
    border-top: 1px solid var(--lp-line);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--lp-navy);
}

.cp-form-heading:first-of-type {
    margin-top: 12px;
    border-top: 0;
    padding-top: 0;
}

.cp-field {
    margin-bottom: 14px;
}

.cp-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-text);
}

.cp-field textarea {
    resize: vertical;
    min-height: 64px;
}

.cp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cp-req {
    color: #c0392b;
}

.cp-opt {
    font-weight: 500;
    color: var(--lp-text-muted);
}

.cp-help {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--lp-text-muted);
}

.cp-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b3261e;
}

.cp-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 4px;
    font-size: 13.5px;
    color: var(--lp-text-muted);
    line-height: 1.5;
}

.cp-check input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.cp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cp-closed-box h2 {
    color: var(--lp-navy-dark);
}

/* ---------- sukses ---------- */

.cp-success-wrap {
    display: flex;
    justify-content: center;
}

.cp-success {
    max-width: 620px;
    width: 100%;
    text-align: center;
    padding: 44px 32px;
}

.cp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(39, 174, 96, .12);
    color: #1e8449;
    margin-bottom: 14px;
}

.cp-success-icon svg {
    width: 34px;
    height: 34px;
}

.cp-success h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--lp-navy-dark);
}

.cp-code-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 22px auto;
    padding: 16px;
    max-width: 320px;
    border: 1px dashed var(--lp-gold);
    border-radius: 12px;
    background: rgba(255, 215, 0, .1);
}

.cp-code-box span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}

.cp-code-box strong {
    font-size: 24px;
    letter-spacing: .04em;
    color: var(--lp-navy-dark);
}

.cp-success-job,
.cp-success-meta {
    color: var(--lp-text-muted);
    font-size: 14.5px;
    margin: 0 0 10px;
}

.cp-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ---------- footer ---------- */

.cp-footer {
    background: var(--lp-navy-dark);
    color: rgba(255, 255, 255, .76);
    padding: 40px 0 28px;
    font-size: 14px;
}

.cp-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: start;
}

.cp-footer strong {
    color: #fff;
    font-size: 17px;
}

.cp-footer-text {
    margin: 8px 0 0;
    max-width: 420px;
    color: rgba(255, 255, 255, .62);
}

.cp-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.cp-footer-links a {
    color: var(--lp-gold);
    text-decoration: none;
}

.cp-footer-links a:hover {
    text-decoration: underline;
}

.cp-footer-copy {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- responsif ---------- */

@media (max-width: 1100px) {
    .cp-filter {
        grid-template-columns: 1fr 1fr;
    }

    .cp-filter-search {
        grid-column: 1 / -1;
    }

    .cp-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cp-detail-grid {
        grid-template-columns: 1fr;
    }

    .cp-apply {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 820px) {
    .cp-job-grid {
        grid-template-columns: 1fr;
    }

    .cp-hero {
        padding: 44px 0 40px;
    }

    .cp-section {
        padding: 32px 0 56px;
    }

    .cp-filter {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cp-detail-grid {
        gap: 20px;
    }
}

@media (max-width: 620px) {
    .cp-header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px;
    }

    .cp-nav {
        gap: 14px;
        font-size: 14px;
    }

    .cp-nav .cp-login {
        padding: 6px 14px;
    }

    .cp-field-row {
        grid-template-columns: 1fr;
    }

    .cp-panel {
        padding: 20px;
    }

    .cp-footer-inner {
        grid-template-columns: 1fr;
    }

    .cp-success {
        padding: 32px 20px;
    }
}
