/* OurJobs Pro — Public Styles v3.1.0 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --oj-primary:   #4f46e5;
    --oj-primary-h: #4338ca;
    --oj-success:   #16a34a;
    --oj-warn:      #d97706;
    --oj-error:     #dc2626;
    --oj-border:    #e2e8f0;
    --oj-muted:     #64748b;
    --oj-surface:   #f8fafc;
    --oj-radius:    10px;
    --oj-shadow:    0 4px 20px rgba(0,0,0,.08);
}

/* ══════════════════════════════════════════
   JOB BOARD
══════════════════════════════════════════ */
.ourjobs-public {
    font-family: 'Inter', system-ui, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    line-height: 1.6;
    color: #1e293b;
}

.ourjobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.ourjobs-filter-btn {
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--oj-muted);
    border: 1.5px solid var(--oj-border);
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}
.ourjobs-filter-btn:hover,
.ourjobs-filter-btn.active {
    background: var(--oj-primary);
    color: #fff;
    border-color: var(--oj-primary);
}

.ourjobs-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ourjobs-job-card {
    background: #fff;
    border: 1px solid var(--oj-border);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--oj-shadow);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.ourjobs-job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--oj-primary);
    opacity: 0;
    transition: opacity .2s;
}
.ourjobs-job-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(79,70,229,.14); border-color: #c7d2fe; }
.ourjobs-job-card:hover::before { opacity: 1; }
.ourjobs-job-card h3 { font-size: 1.1rem; font-weight: 700; margin: 8px 0; color: #1e293b; }
.ourjobs-cat-badge { display: inline-block; padding: 2px 10px; background: #eef2ff; color: var(--oj-primary); border-radius: 9999px; font-size: .73rem; font-weight: 600; }
.ourjobs-location, .ourjobs-closes { color: var(--oj-muted); font-size: .85rem; margin: 3px 0; }
.ourjobs-salary { color: var(--oj-primary); font-weight: 600; font-size: .875rem; margin: 3px 0; }
.ourjobs-excerpt { font-size: .875rem; color: #475569; margin: 10px 0 0; flex: 1; }
.ourjobs-apply-link { display: inline-block; margin-top: 16px; color: var(--oj-primary); font-weight: 600; font-size: .875rem; }
.ourjobs-share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .875rem; color: var(--oj-muted); margin-top: 8px; }
.ourjobs-share-btn { padding: 6px 13px; border-radius: 7px; font-size: .8rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; background: #e2e8f0; color: #334155; transition: all .15s; }
.ourjobs-share-btn:hover { background: #cbd5e1; }
.ourjobs-share-wa { background: #dcfce7; color: #166534; }
.ourjobs-share-wa:hover { background: #bbf7d0; }
.ourjobs-share-copy { background: #eef2ff; color: var(--oj-primary); }

/* ══════════════════════════════════════════
   APPLY WIZARD SHELL
══════════════════════════════════════════ */
.ourjobs-apply-wizard {
    max-width: 680px;
    margin: 32px auto;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
}

/* ── Progress bar ── */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--oj-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow-x: auto;
    gap: 0;
}

.wizard-prog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    min-width: 52px;
}

.wizard-prog-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid var(--oj-border);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    transition: all .25s;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.wizard-prog-label {
    font-size: .68rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    line-height: 1.3;
    max-width: 72px;
    transition: color .25s;
}

.wizard-prog-line {
    flex: 1;
    height: 2px;
    background: var(--oj-border);
    margin-top: 17px;
    transition: background .25s;
    min-width: 8px;
}

/* Active step */
.wizard-prog-dot.active {
    background: var(--oj-primary);
    border-color: var(--oj-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79,70,229,.18);
}
.wizard-prog-item:has(.wizard-prog-dot.active) .wizard-prog-label {
    color: var(--oj-primary);
    font-weight: 700;
}

/* Done step */
.wizard-prog-dot.done {
    background: #c7d2fe;
    border-color: var(--oj-primary);
    color: var(--oj-primary);
}
.wizard-prog-item:has(.wizard-prog-dot.done) .wizard-prog-label {
    color: var(--oj-primary);
}
.wizard-prog-line.done {
    background: var(--oj-primary);
}

/* ── Step card ── */
.wizard-step {
    display: none;
    background: #fff;
    border: 1px solid var(--oj-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.wizard-step.active { display: block; }

.wizard-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
    padding: 24px 28px 0;
}

.wizard-step-desc {
    color: var(--oj-muted);
    font-size: .875rem;
    margin: 4px 0 20px;
    padding: 0 28px;
}

.wizard-fields {
    padding: 0 28px 4px;
}

/* ── Fields ── */
.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.wizard-field label {
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
}

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

.wizard-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--oj-border);
    border-radius: 8px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.wizard-input:focus {
    outline: none;
    border-color: var(--oj-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.wizard-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--oj-border);
    border-radius: 8px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    resize: vertical;
    min-height: 90px;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.wizard-textarea:focus {
    outline: none;
    border-color: var(--oj-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.wizard-file-input {
    width: 100%;
    padding: 9px 12px;
    font-size: .875rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    background: var(--oj-surface);
    box-sizing: border-box;
    transition: border-color .15s;
}
.wizard-file-input:hover { border-color: var(--oj-primary); }

.wizard-optional { font-size: .75rem; font-weight: 400; color: #94a3b8; margin-left: 4px; }
.wizard-file-preview { margin-top: 5px; font-size: .8rem; color: var(--oj-success); font-weight: 600; }
.oj-required { color: var(--oj-error); }

/* ── Nav buttons ── */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--oj-border);
    margin-top: 8px;
}

.wizard-btn-next {
    background: var(--oj-primary);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9375rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.wizard-btn-next:hover:not(:disabled) { background: var(--oj-primary-h); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.wizard-btn-next:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

.wizard-btn-prev {
    background: var(--oj-surface);
    color: #475569;
    border: 1.5px solid var(--oj-border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.wizard-btn-prev:hover { background: #f1f5f9; color: #1e293b; }

.wizard-btn-primary-lg {
    background: var(--oj-success);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.wizard-btn-primary-lg:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,163,74,.3); }

.wizard-btn-secondary {
    background: var(--oj-surface);
    color: #475569;
    border: 1.5px solid var(--oj-border);
    padding: 7px 16px;
    border-radius: 7px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    margin-top: 8px;
}
.wizard-btn-secondary:hover { background: #f1f5f9; }

/* ── Camera steps ── */
.camera-stamp-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 28px 16px;
    font-size: .825rem;
    color: #1e40af;
    font-weight: 500;
}

.camera-section { text-align: center; padding: 0 28px; }
.camera-feed { width: 100%; max-width: 480px; border-radius: 10px; background: #0f172a; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
.camera-preview { width: 100%; max-width: 480px; border-radius: 10px; border: 2.5px solid #22c55e; margin: 8px auto 10px; display: block; }
.wizard-camera-btn {
    background: var(--oj-primary);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: .9375rem;
    margin-bottom: 8px;
    font-family: inherit;
    transition: all .15s;
}
.wizard-camera-btn:hover { background: var(--oj-primary-h); transform: translateY(-1px); }

.camera-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin: 0 28px 16px;
    font-size: .875rem;
    font-weight: 700;
    color: #78350f;
}
.timer-bar-track { flex: 1; height: 6px; background: #fde68a; border-radius: 9999px; overflow: hidden; }
.timer-bar-fill { height: 6px; background: #f59e0b; border-radius: 9999px; width: 100%; transition: width 1s linear; }

/* ── Review step ── */
.wizard-review { padding: 0 28px; }

.wizard-review-section {
    background: var(--oj-surface);
    border: 1px solid var(--oj-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.wizard-review-section h3 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--oj-muted);
    background: #f1f5f9;
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid var(--oj-border);
}
.wizard-review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 14px;
    border-bottom: 1px solid #f8fafc;
    font-size: .875rem;
    gap: 12px;
}
.wizard-review-row:last-child { border-bottom: none; }
.wizard-review-row span:first-child { color: var(--oj-muted); min-width: 110px; flex-shrink: 0; }
.wizard-review-row strong { color: #1e293b; text-align: right; word-break: break-word; }

/* ── Consent ── */
.wizard-consent {
    padding: 14px 28px;
    background: #f8fafc;
    border-top: 1px solid var(--oj-border);
}
.wizard-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .875rem;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
}
.wizard-consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--oj-primary);
}

/* ── Confirmation screen ── */
.ourjobs-apply-confirmed {
    background: #fff;
    border: 1px solid var(--oj-border);
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--oj-shadow);
}
.ourjobs-confirmed-icon { font-size: 3rem; margin-bottom: 16px; }
.ourjobs-apply-confirmed h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 10px; color: #1e293b; }
.ourjobs-apply-confirmed p { color: var(--oj-muted); margin-bottom: 16px; }
.ourjobs-ref-box {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    color: #3730a3;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}
.ourjobs-btn-primary {
    display: inline-block;
    background: var(--oj-primary);
    color: #fff;
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: .9375rem;
    transition: all .15s;
}
.ourjobs-btn-primary:hover { background: var(--oj-primary-h); transform: translateY(-1px); }

/* ── Error / success notices ── */
.ourjobs-notice { padding: 13px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500; margin-bottom: 18px; }
.ourjobs-error { background: #fef2f2; color: var(--oj-error); border: 1px solid #fecaca; }
.ourjobs-success { background: #f0fdf4; color: var(--oj-success); border: 1px solid #bbf7d0; }
.oj-wizard-inline-error { background: #fee2e2; border-left: 3px solid var(--oj-error); padding: 10px 16px; margin: 0 28px 12px; border-radius: 6px; font-size: .875rem; color: #991b1b; }

/* ── Track page ── */
.ourjobs-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--oj-border);
    border-radius: 8px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.ourjobs-input:focus { outline: none; border-color: var(--oj-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

/* ── Saved jobs button ── */
.ourjobs-save-btn {
    background: none;
    border: 1.5px solid var(--oj-border);
    border-radius: 7px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--oj-muted);
    margin-top: 10px;
    transition: all .15s;
}
.ourjobs-save-btn:hover { border-color: var(--oj-primary); color: var(--oj-primary); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .wizard-field-row { grid-template-columns: 1fr; }
    .wizard-step-title { padding: 20px 18px 0; }
    .wizard-step-desc { padding: 0 18px; }
    .wizard-fields { padding: 0 18px; }
    .wizard-nav { padding: 14px 18px 20px; }
    .camera-stamp-notice { margin: 0 18px 14px; }
    .camera-section { padding: 0 18px; }
    .camera-timer { margin: 0 18px 14px; }
    .wizard-review { padding: 0 18px; }
    .wizard-consent { padding: 12px 18px; }
    .oj-wizard-inline-error { margin: 0 18px 12px; }
    .wizard-progress { padding: 14px 16px; }
    .wizard-prog-label { display: none; }
    .wizard-btn-next, .wizard-btn-prev, .wizard-btn-primary-lg { width: 100%; justify-content: center; }
    .ourjobs-apply-wizard { margin: 16px 0; }
}
