/* ============================================================
   JOB DETAIL PAGE STYLES  (loaded only on job-detail.php)
   ============================================================ */

/* ---------------- banner ---------------- */

.jd-banner {
    position: relative;
    padding: 150px 0 70px;
    background: #EEF1FB url('../images/news-banner.min.jpg') center / cover no-repeat;
    overflow: hidden;
}

.jd-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 45px;
    background: #FFFFFFB2;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #012854;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.jd-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-dot);
    flex-shrink: 0;
}

.jd-title {
    font-size: clamp(38px, 4.6vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--blue);
    margin: 0 0 16px;
}

.jd-meta {
    color: #565C67;
    font-family: 'Geist', var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.jd-meta .sep {
    margin: 0 10px;
    color: #B7BECB;
}

/* locations the role is open in — chips under the meta line, same look as
   the careers list */
.jd-locs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.jd-loc-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7385;
}
.jd-loc-label .ic { width: 15px; height: 15px; color: var(--orange); }
.jd-loc {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.85);
    border: 1px solid #D9E0EE;
    color: var(--blue);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

/* ---------------- main : content + apply form ---------------- */

.jd-main {
    padding: 60px 0 90px;
    background: #fff;
}

.jd-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- left : job content --- */
.jd-block {
    margin-bottom: 40px;
}

.jd-block:last-child {
    margin-bottom: 0;
}

.jd-content h2 {
    font-family: 'Geist', var(--font-sans);
    font-size: 32px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -1px;
    color: #27377F;
    margin: 0 0 18px;
}

.jd-content p,
.jd-content li {
    font-family: 'Geist', var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0;
    color: rgba(32, 36, 39, .80);
}

.jd-content p:last-child {
    margin-bottom: 0;
}

.jd-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jd-content ul li {
    position: relative;
    padding-left: 24px;
}

.jd-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(32, 36, 39, .55);
}

/* --- rich-text blocks entered in the admin panel --- */
.jd-rte p { margin: 0 0 14px; }
.jd-rte ol { margin: 0 0 14px; padding-left: 22px; }
.jd-rte ol li { padding-left: 6px; margin-bottom: 6px; }
.jd-rte ul { margin: 0 0 14px; }
.jd-rte h3, .jd-rte h4 {
    font-family: 'Geist', var(--font-sans);
    color: #27377F;
    margin: 18px 0 10px;
}
.jd-rte a { color: var(--brand, #f68c31); text-decoration: underline; }

/* --- right : apply form card --- */
.jd-apply {
    background: #fff;
    border: 1px solid #E4E4E5;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(20, 35, 80, .08);
    padding: 32px 30px 30px;
    position: sticky;
    top: 110px;
}

.jd-apply-title {
    font-family: 'Geist', var(--font-sans);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0;
    color: #012854;
    margin: 0 0 4px;
}

.jd-apply-req {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #9098A8;
    margin: 0 0 22px;
}

.jd-apply .form-group {
    margin-bottom: 16px;
}

.jd-apply label {
    color: rgba(12, 18, 26, .55);
}

.jd-apply select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    color: #16264C;
    padding: 14px 22px;
    border: 1px solid #E4E7EE;
    border-radius: 40px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%234B5670' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.jd-apply select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(246, 140, 49, .12);
}

.jd-apply select.placeholder {
    color: #A6AEC0;
}

/* file upload */
/* required-asterisk: superscript, tight against the label text */
.jd-apply-form label .req {
    letter-spacing: 0;
    margin-left: 2px;
    font-size: 9px;
    vertical-align: super;
    line-height: 1;
}

.jd-upload {
    border: 1px dashed #C7CDDA;
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
    background: #FBFCFE;
    display: flex;
    align-items: center;
    justify-content: center;
    /* matches the Figma upload hint: regular sans, not the mono label style */
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: #6E7689;
    gap: 10px;
    color: #6B7280;
    font-size: 13.5px;
}

.jd-upload:hover {
    border-color: var(--orange);
    background: #fff;
}

.jd-upload i {
    font-size: 16px;
    color: #9098A8;
}

.jd-upload input[type="file"] {
    display: none;
}

.jd-upload.has-file {
    border-color: var(--green-dot);
    color: #0B7C52;
}

.jd-apply .btn-block {
    margin-top: 8px;
}

/* submit loader */
#applySubmit { position: relative; }
#applySubmit .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jd-spin .7s linear infinite;
}
#applySubmit.is-loading { pointer-events: none; opacity: .85; cursor: default; }
#applySubmit.is-loading .btn-label { opacity: .7; }
#applySubmit.is-loading .btn-circle { display: none; }
#applySubmit.is-loading .btn-spinner { display: inline-block; }

@keyframes jd-spin { to { transform: rotate(360deg); } }

/* validation */
.jd-apply .field-error {
    display: block;
    margin-top: 7px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: #D93440;
    min-height: 1em;
    line-height: 1.3;
}

.jd-apply .form-group input.is-invalid,
.jd-apply select.is-invalid {
    border-color: #D93440;
}

.jd-apply .form-group input.is-invalid:focus,
.jd-apply select.is-invalid:focus {
    border-color: #D93440;
    box-shadow: 0 0 0 4px rgba(217, 52, 64, .12);
}

.jd-apply .form-success {
    background: #E5F7EF;
    border: 1px solid #9ADFC2;
    color: #0B7C52;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 991.98px) {
    .jd-banner {
        padding: 120px 0 50px;
    }

    .jd-main {
        padding: 40px 0 60px;
    }

    .jd-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jd-apply {
        position: static;
        top: auto;
    }

    .jd-content h2 {
        font-size: 27px;
    }
}

@media (max-width: 575.98px) {
    .jd-banner {
        padding: 110px 0 44px;
    }

    .jd-content h2 {
        font-size: 24px;
    }

    .jd-content p,
    .jd-content li {
        font-size: 16px;
    }
}
