/* ========================================
   Job Funnel – Scoped Styles
   All classes prefixed with jf- to avoid conflicts
   ======================================== */


/* ---------- Reset & Base ---------- */
.pagelayout__jobfunnel {
    margin: 0;
}
.jf-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 16px;
}
.jf-page *, .jf-page *::before, .jf-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.jf-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Navbar ---------- */
.jf-navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
}
.jf-navbar-inner {
    max-width: var(--jf-layout-max-width, 1024px); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: 4rem;
}
.jf-logo {
    display: flex; align-items: center; gap: 0.625rem;
    text-decoration: none; color: inherit;
}
.jf-logo-icon {
    width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
    background: linear-gradient(135deg, #3478ff 0%, #1443e1 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(52,120,255,0.2);
    transition: box-shadow 0.3s;
}
.jf-logo:hover .jf-logo-icon {
    box-shadow: 0 6px 10px -1px rgba(52,120,255,0.3);
}
.jf-logo-icon svg {
    width: 1.25rem; height: 1.25rem; color: #fff;
}
.jf-logo-image {
    display: block;
}
.jf-navbar-step {
    font-size: 0.875rem; color: #9ca3af; font-weight: 500;
}

/* ---------- Main ---------- */
.jf-main {
    flex: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(52,120,255,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(52,120,255,0.04) 0%, transparent 60%);
}
.jf-container {
    max-width: var(--jf-content-max-width, 672px); margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
    .jf-container { padding: 4rem 1.5rem; }
}

/* ---------- Progress ---------- */
.jf-progress { margin-bottom: 2.5rem; }
.jf-progress-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.jf-progress-label {
    font-size: 0.75rem; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.jf-progress-text {
    font-size: 0.875rem; font-weight: 700; color: #3478ff;
}
.jf-progress-track {
    height: 0.5rem; background: #d1d5db; border-radius: 9999px; overflow: hidden;
}
.jf-progress-bar {
    height: 100%; border-radius: 9999px; width: 0%;
    background: linear-gradient(to right, #599eff, #3478ff);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.jf-step-dots {
    display: flex; justify-content: space-between; margin-top: 0.75rem;
}
.jf-step-dot {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.jf-step-dot-circle {
    width: 0.75rem; height: 0.75rem; border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.jf-step-dot-circle.jf-completed { background: #3478ff; }
.jf-step-dot-circle.jf-current {
    background: #599eff; transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(52,120,255,0.15);
}
.jf-step-dot-label {
    font-size: 10px; font-weight: 500; color: #9ca3af;
}
.jf-step-dot-label.jf-completed { color: #599eff; }
.jf-step-dot-label.jf-current { color: #3478ff; }

/* ---------- Step Container & Panels ---------- */
.jf-step-container { position: relative; }
.jf-step-panel {
    display: none;
    opacity: 0; pointer-events: none;
}
.jf-step-panel.jf-active {
    display: block; position: relative;
    opacity: 1; pointer-events: auto;
}
.jf-step-panel.jf-leaving-forward,
.jf-step-panel.jf-leaving-backward {
    display: block; position: absolute; inset: 0;
}
/* Animations */
@keyframes jf-fade-in-up {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jf-fade-out-up {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-24px) scale(0.98); }
}
@keyframes jf-fade-in-down {
    from { opacity: 0; transform: translateY(-24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jf-fade-out-down {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(24px) scale(0.98); }
}
.jf-step-panel.jf-entering-forward {
    animation: jf-fade-in-up 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.jf-step-panel.jf-leaving-forward {
    animation: jf-fade-out-up 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
.jf-step-panel.jf-entering-backward {
    animation: jf-fade-in-down 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.jf-step-panel.jf-leaving-backward {
    animation: jf-fade-out-down 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ---------- Step Header ---------- */
.jf-step-header { margin-bottom: 2rem; }
.jf-step-counter {
    font-size: 0.75rem; font-weight: 600; color: #3478ff;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.jf-step-title {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .jf-step-title { font-size: 1.875rem; }
}
.jf-step-description { color: #9ca3af; }

/* ---------- Option Cards ---------- */
.jf-options { display: flex; flex-direction: column; gap: 0.75rem; }
.jf-options-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.jf-option-card {
    width: 100%; text-align: left;
    background: #fff; border: 2px solid #e5e7eb; border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    font-family: inherit; font-size: inherit; color: inherit;
    outline: none;
}
.jf-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(52,120,255,0.15), 0 0 0 2px rgba(52,120,255,0.25);
}
.jf-option-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(52,120,255,0.3);
}
.jf-option-card.jf-selected {
    border-color: #3478ff;
    background: linear-gradient(135deg, #eef5ff 0%, #d9e8ff 100%);
    box-shadow: 0 0 0 2px #3478ff, 0 4px 15px -3px rgba(52,120,255,0.2);
}
.jf-option-label { font-weight: 500; }

/* Radio circle */
.jf-radio-circle {
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
    border: 2px solid #9ca3af; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.25s;
}
.jf-selected .jf-radio-circle { border-color: #3478ff; }
.jf-radio-dot {
    width: 0.625rem; height: 0.625rem; border-radius: 50%;
    background: #3478ff;
    transform: scale(0); transition: transform 0.25s;
}
.jf-selected .jf-radio-dot { transform: scale(1); }

/* Checkbox */
.jf-checkbox {
    width: 1.5rem; height: 1.5rem; border-radius: 0.5rem;
    border: 2px solid #9ca3af; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.jf-selected .jf-checkbox {
    background: #3478ff; border-color: #3478ff;
}
.jf-checkbox-check {
    width: 1rem; height: 1rem; color: #fff;
    transform: scale(0); transition: transform 0.25s;
}
.jf-selected .jf-checkbox-check { transform: scale(1); }

/* Icon Cards */
.jf-option-icon-card {
    flex-direction: column; align-items: center; text-align: center;
    padding: 1.5rem; gap: 0.75rem;
}
.jf-option-icon-wrapper {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.jf-option-icon-svg { width: 1.75rem; height: 1.75rem; }
.jf-option-label { font-weight: 600; font-size: 0.875rem; }
.jf-option-description { font-size: 0.75rem; color: #9ca3af; }

/* Icon colors */
.jf-icon-color-blue       { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.jf-icon-color-purple     { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: #a855f7; }
.jf-icon-color-amber      { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #f59e0b; }
.jf-icon-color-green      { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #22c55e; }
.jf-icon-color-red        { background: linear-gradient(135deg, #fef2f2, #fecaca); color: #ef4444; }
.jf-icon-color-indigo     { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #6366f1; }
.jf-icon-color-cyan       { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #06b6d4; }
.jf-icon-color-emerald    { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #10b981; }
.jf-icon-color-rose       { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #f43f5e; }
.jf-icon-color-orange     { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #f97316; }
.jf-icon-color-teal       { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: #14b8a6; }
.jf-icon-color-sky        { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); color: #0ea5e9; }
.jf-icon-color-violet     { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #8b5cf6; }
.jf-icon-color-fuchsia    { background: linear-gradient(135deg, #fdf4ff, #fae8ff); color: #d946ef; }
.jf-icon-color-yellow     { background: linear-gradient(135deg, #fefce8, #fef9c3); color: #eab308; }
.jf-icon-color-stone,
.jf-icon-color-zinc,
.jf-icon-color-neutral,
.jf-icon-color-slate,
.jf-icon-color-gray       { background: linear-gradient(135deg, #f9fafb, #d1d5db); color: #6b7280; }
.jf-icon-color-default    { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }

/* Stagger children (JS-driven) */
.jf-stagger > * {
    transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}

/* ---------- Inputs ---------- */
.jf-input {
    width: 100%; background: #fff;
    border: 2px solid #e5e7eb; border-radius: 0.75rem;
    padding: 0.75rem 1rem; font-size: 0.875rem;
    font-family: inherit; color: #111827;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.jf-input:focus {
    border-color: #3478ff;
    box-shadow: 0 0 0 3px rgba(52,120,255,0.15);
}
.jf-input::placeholder { color: #9ca3af; }
.jf-input-lg {
    border-radius: 1rem; padding: 1.25rem 1.5rem; font-size: 1rem;
}
.jf-textarea {
    resize: none; min-height: 180px;
    border-radius: 1rem; padding: 1.25rem 1.5rem; font-size: 1rem;
}
.jf-textarea-wrap { position: relative; }
.jf-char-count {
    position: absolute; bottom: 1rem; right: 1.25rem;
    font-size: 0.75rem; color: #9ca3af;
}
.jf-char-count.jf-near-limit { color: #3478ff; }
.jf-extra-input { margin-top: 1rem; }
.jf-label {
    display: block; font-size: 0.875rem; font-weight: 500;
    color: #4b5563; margin-bottom: 0.375rem;
}
.jf-required { color: #f87171; }
.jf-optional { color: #9ca3af; font-weight: 400; }

/* ---------- Buttons ---------- */
.jf-btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(to right, #3478ff, #1b57f5);
    color: #fff; font-weight: 600; font-family: inherit;
    padding: 0.75rem 1.5rem; border-radius: 0.75rem;
    border: none; cursor: pointer;
    box-shadow: 0 4px 12px -2px rgba(52,120,255,0.25);
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    font-size: 0.9375rem; outline: none;
}
.jf-btn-primary:hover:not(:disabled) {
    background: linear-gradient(to right, #1b57f5, #1443e1);
    box-shadow: 0 6px 16px -2px rgba(52,120,255,0.35);
    transform: translateY(-1px);
}
.jf-btn-primary:active:not(:disabled) { transform: translateY(0); }
.jf-btn-primary:disabled {
    opacity: 0.4; cursor: not-allowed;
}
.jf-btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(52,120,255,0.4);
}
.jf-btn-lg { padding: 1rem 2rem; border-radius: 1rem; font-size: 1rem; }
.jf-btn-back {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: none; border: none; cursor: pointer;
    font-size: 0.875rem; color: #9ca3af; font-weight: 500;
    font-family: inherit; padding: 0.5rem 0;
    transition: color 0.2s; outline: none;
}
.jf-btn-back:hover { color: #4b5563; }
.jf-btn-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.jf-btn-lg .jf-btn-icon { width: 1.25rem; height: 1.25rem; }

/* Step navigation */
.jf-step-nav {
    margin-top: 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Contact Form ---------- */
.jf-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.jf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.jf-form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.jf-radio-group { display: flex; gap: 0.75rem; }
.jf-radio-label { flex: 1; }
.jf-radio-card {
    background: #fff; border: 2px solid #e5e7eb; border-radius: 0.75rem;
    padding: 0.75rem 1rem; text-align: center;
    font-weight: 500; font-size: 0.875rem;
    cursor: pointer; transition: all 0.25s;
}
input:checked + .jf-radio-card {
    border-color: #3478ff; background: #eef5ff; color: #1443e1;
}
.jf-radio-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -3px rgba(52,120,255,0.15);
}

/* File Upload */
.jf-file-drop {
    border: 2px dashed #e5e7eb; border-radius: 1rem;
    padding: 2rem; text-align: center; cursor: pointer;
    transition: all 0.25s;
}
.jf-file-drop:hover, .jf-file-drop.jf-dragover {
    border-color: #3478ff; background: rgba(52,120,255,0.03);
}
.jf-file-icon {
    width: 3rem; height: 3rem; border-radius: 1rem;
    background: #f9fafb; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem; color: #9ca3af;
}
.jf-file-icon svg { width: 1.5rem; height: 1.5rem; }
.jf-file-text { font-size: 0.875rem; color: #9ca3af; margin-bottom: 0.25rem; }
.jf-file-formats { font-size: 0.75rem; color: #9ca3af; }
.jf-file-list {
    display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;
}
.jf-file-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem; background: #f9fafb; border-radius: 0.75rem;
}
.jf-file-success-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    background: #f0fdf4; display: flex; align-items: center; justify-content: center;
    color: #22c55e;
}
.jf-file-success-icon svg { width: 1.25rem; height: 1.25rem; }
.jf-file-info { text-align: left; }
.jf-file-name { font-size: 0.875rem; font-weight: 500; color: #374151; }
.jf-file-size { font-size: 0.75rem; color: #9ca3af; }
.jf-file-remove {
    margin-left: auto; background: none; border: none;
    color: #9ca3af; cursor: pointer; padding: 0.25rem;
    transition: color 0.2s;
}
.jf-file-remove:hover { color: #f87171; }
.jf-file-remove svg { width: 1.25rem; height: 1.25rem; }

/* Privacy */
.jf-privacy-text {
    font-size: 0.75rem; color: #9ca3af; line-height: 1.5;
    padding-top: 0.5rem;
}
.jf-privacy-text a { color: #3478ff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Intro ---------- */
.jf-intro-hero { text-align: center; margin-bottom: 2.5rem; }
.jf-intro-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 5rem; height: 5rem; border-radius: 1.5rem;
    background: linear-gradient(135deg, #3478ff 0%, #1443e1 100%);
    box-shadow: 0 20px 40px -8px rgba(52,120,255,0.25);
    margin-bottom: 1.5rem;
}
.jf-intro-icon svg { width: 2.5rem; height: 2.5rem; color: #fff; }
.jf-intro-title {
    font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 768px) {
    .jf-intro-title { font-size: 2.25rem; }
}
.jf-intro-description {
    color: #6b7280; font-size: 1.125rem; line-height: 1.6;
    max-width: 32rem; margin: 0 auto;
}
.jf-intro-steps {
    display: grid; gap: 1rem; margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
    .jf-intro-steps { grid-template-columns: repeat(3, 1fr); }
}
.jf-intro-step-card {
    background: #fff; border-radius: 1rem; border: 1px solid #d1d5db;
    padding: 1.25rem; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.jf-intro-step-number {
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    background: #eef5ff; color: #3478ff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem; font-size: 1.125rem; font-weight: 700;
}
.jf-intro-step-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.jf-intro-step-text { font-size: 0.75rem; color: #9ca3af; }
.jf-intro-cta { text-align: center; }
.jf-intro-note { font-size: 0.75rem; color: #9ca3af; margin-top: 1rem; }

/* ---------- Success ---------- */
.jf-success { text-align: center; padding: 2.5rem 0; }
.jf-success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 6rem; height: 6rem; border-radius: 50%;
    background: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
    box-shadow: 0 20px 40px -8px rgba(16,185,129,0.25);
    margin-bottom: 2rem;
}
.jf-success-icon svg { width: 3rem; height: 3rem; color: #fff; }
@keyframes jf-check-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.jf-success-check { animation: jf-check-pop 0.35s cubic-bezier(0.22,1,0.36,1) forwards; }
.jf-success-title {
    font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 768px) {
    .jf-success-title { font-size: 2.25rem; }
}
.jf-success-message {
    color: #9ca3af; font-size: 1.125rem; max-width: 28rem;
    margin: 0 auto 0.75rem;
}
.jf-success-message strong { color: #4b5563; }
.jf-success-email { font-size: 0.875rem; color: #9ca3af; }

/* ---------- Footer ---------- */
.jf-footer { background: #f9fafb; border-top: 1px solid #f3f4f6; }
.jf-footer-inner {
    max-width: var(--jf-layout-max-width, 1024px); margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; gap: 0.75rem;
}
@media (min-width: 640px) {
    .jf-footer-inner { flex-direction: row; }
}
.jf-footer-contact {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.75rem; color: #9ca3af; flex-wrap: wrap;
}
.jf-footer-contact-item + .jf-footer-contact-item::before {
    content: '|'; margin-right: 0.75rem; color: #9ca3af;
}
.jf-footer-links { display: flex; align-items: center; gap: 1.5rem; }
.jf-footer-link {
    font-size: 0.75rem; color: #9ca3af;
    text-decoration: none; transition: color 0.2s;
}
.jf-footer-link:hover { color: #4b5563; }

/* ---------- Float Animation ---------- */
@keyframes jf-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.jf-float { animation: jf-float 3s ease-in-out infinite; }

/* ---------- Spinner ---------- */
.jf-spinner { animation: jf-spin 1s linear infinite; }
@keyframes jf-spin {
    to { transform: rotate(360deg); }
}
.jf-spinner-track { opacity: 0.25; }
.jf-spinner-fill { opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
    .jf-options-grid { grid-template-columns: 1fr; }
    .jf-form-row { grid-template-columns: 1fr; }
    .jf-navbar-step { display: none; }
}
