/* FF Vacancy Widget – single vacancy page (scoped under .ffvw-single) */

.ffvw-single {
    --ffvw-navy: #0b2a6b;
    --ffvw-navy-2: #0a225a;
    --ffvw-ink: #11203a;
    --ffvw-muted: #6b7689;
    --ffvw-border: #e3e7ee;
    --ffvw-chip: #eef1f6;
    color: var(--ffvw-ink);
}

.ffvw-single .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Hero ---------- */
.ffvw-single .page-hero {
    background: linear-gradient(135deg, var(--ffvw-navy), var(--ffvw-navy-2));
    color: #fff;
    padding: 56px 0 64px;
}

.ffvw-single .crumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 22px;
}

.ffvw-single .crumbs a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}

.ffvw-single .crumbs a:hover {
    text-decoration: underline;
}

.ffvw-single .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #bcd0ff;
    margin-bottom: 12px;
}

.ffvw-single .page-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    color: #fff;
    font-weight: 800;
}

.ffvw-single .job-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ffvw-single .job-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14.5px;
    color: #fff;
}

.ffvw-single .job-chip strong {
    font-weight: 700;
}

.ffvw-single .job-chip svg {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---------- Body layout ---------- */
.ffvw-single .section {
    padding: 56px 0;
}

.ffvw-single .job-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.ffvw-single .prose h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ffvw-ink);
    margin: 34px 0 14px;
}

.ffvw-single .prose h2:first-child {
    margin-top: 0;
}

.ffvw-single .prose p {
    font-size: 16.5px;
    line-height: 1.75;
    color: #3c4759;
    margin: 0 0 16px;
}

.ffvw-single .prose ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ffvw-single .prose ul li {
    position: relative;
    padding: 0 0 0 28px;
    margin-bottom: 12px;
    font-size: 16.5px;
    line-height: 1.6;
    color: #3c4759;
}

.ffvw-single .prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ffvw-navy);
}

/* ---------- Sidebar ---------- */
.ffvw-single .job-side {
    background: #fff;
    border: 1px solid var(--ffvw-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(17, 32, 58, .06);
    position: sticky;
    top: 24px;
}

.ffvw-single .job-side h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ffvw-ink);
}

.ffvw-single .sd-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ffvw-border);
}

.ffvw-single .sd-row .lbl {
    color: var(--ffvw-muted);
    font-size: 14.5px;
}

.ffvw-single .sd-row .val {
    color: var(--ffvw-ink);
    font-weight: 600;
    font-size: 14.5px;
    text-align: right;
}

/* ---------- Buttons ---------- */
.ffvw-single .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ffvw-single .btn .arrow {
    transition: transform .18s ease;
}

.ffvw-single .btn:hover .arrow {
    transform: translateX(4px);
}

.ffvw-single .btn-primary {
    background: var(--ffvw-navy);
    color: #fff;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 10px 24px rgba(11, 42, 107, .22);
}

.ffvw-single .btn-primary:hover {
    background: var(--ffvw-navy-2);
}

.ffvw-single .btn-ghost {
    background: transparent;
    border-color: var(--ffvw-border);
    color: var(--ffvw-ink);
}

.ffvw-single .btn-ghost.ffvw-back {
    width: 100%;
    margin-top: 10px;
}

.ffvw-single .btn-light {
    background: #fff;
    color: var(--ffvw-navy);
}

.ffvw-single .btn-light:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

/* ---------- CTA band ---------- */
.ffvw-single .cta-band {
    background: linear-gradient(135deg, var(--ffvw-navy), var(--ffvw-navy-2));
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.ffvw-single .cta-band h3 {
    margin: 0 0 24px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
}

.ffvw-single .cta-band .accent {
    color: #9dc0ff;
}

.ffvw-single .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.ffvw-single .cta-band .ffvw-ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ffvw-single .job-layout {
        grid-template-columns: 1fr;
    }

    .ffvw-single .job-side {
        position: static;
    }
}

/* ---------- Apply popup ---------- */
body.ffvw-modal-lock {
    overflow: hidden;
}

.ffvw-modal {
    --ffvw-navy: #0b2a6b;
    --ffvw-navy-2: #0a225a;
    --ffvw-ink: #11203a;
    --ffvw-muted: #6b7689;
    --ffvw-border: #e3e7ee;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.ffvw-modal.is-open {
    display: block;
}

.ffvw-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 40, .55);
    backdrop-filter: blur(2px);
}

.ffvw-modal-dialog {
    position: relative;
    max-width: 560px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(8, 18, 40, .4);
    box-sizing: border-box;
}

.ffvw-modal-x {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--ffvw-muted);
    cursor: pointer;
}

.ffvw-modal-x:hover {
    color: var(--ffvw-ink);
}

.ffvw-modal-dialog h3 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ffvw-ink);
    padding-right: 30px;
}

.ffvw-field {
    margin-bottom: 16px;
}

.ffvw-field-row {
    display: flex;
    gap: 16px;
}

.ffvw-field-row .ffvw-field {
    flex: 1;
}

.ffvw-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ffvw-ink);
    margin-bottom: 6px;
}

.ffvw-field input,
.ffvw-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ffvw-border);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ffvw-ink);
    background: #fff;
}

.ffvw-field input:focus,
.ffvw-field textarea:focus {
    outline: none;
    border-color: var(--ffvw-navy);
    box-shadow: 0 0 0 3px rgba(11, 42, 107, .12);
}

.ffvw-field input[type="file"] {
    padding: 9px 13px;
    background: #f7f9fc;
}

.ffvw-modal .ffvw-submit {
    width: 100%;
    margin-top: 6px;
}

.ffvw-form-msg {
    margin: 4px 0 12px;
    font-size: 14.5px;
    min-height: 1px;
}

.ffvw-form-msg.is-loading {
    color: var(--ffvw-muted);
}

.ffvw-form-msg.is-success {
    color: #1a7f4b;
}

.ffvw-form-msg.is-error {
    color: #c0392b;
}

@media (max-width: 540px) {
    .ffvw-field-row {
        flex-direction: column;
        gap: 0;
    }

    .ffvw-modal-dialog {
        padding: 24px 20px;
    }
}
