/* ===============================================================
   ZILFOX — CAREERS PAGE STYLES (PREMIUM REDESIGN)
   Futuristic, ultra-clean dark theme with ambient orange glows
   =============================================================== */

/* --- MAIN CONTAINER & HERO ATMOSPHERE --- */
main .careers-main-section:first-child { 
    padding-top: 175px; 
    padding-bottom: 80px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ambient hero glow */
.careers-main-section::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, rgba(255, 106, 0, 0.02) 55%, transparent 75%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.careers-hero {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 1;
}

/* Eyebrow badge matching index.php */
.careers-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    color: #e4e4e7;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.careers-hero .hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.6);
    flex-shrink: 0;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.careers-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.12;
    margin-bottom: 22px;
    color: #ffffff;
}

.careers-hero-desc {
    color: #a1a1aa;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 38px auto;
}

/* Hero Action CTAs */
.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #000000 !important;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 106, 0, 0.5);
    background: #ff781a;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #ffffff !important;
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 22px 35px;
    background: rgba(18, 18, 24, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stat-num i {
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- SECTION HEADINGS --- */
.section-head {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-head .tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #ffffff;
    line-height: 1.15;
}

.section-head p {
    color: #a1a1aa;
    font-size: 1.05rem;
    max-width: 680px;
    margin: 14px auto 0 auto;
    line-height: 1.65;
}

/* --- BENTO CULTURE & PERKS GRID --- */
.perks-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 110px auto;
    position: relative;
    z-index: 1;
}

.bento-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.perk-card {
    background: rgba(16, 16, 22, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 38px 32px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.perk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.perk-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 106, 0, 0.4);
    background: rgba(22, 22, 30, 0.75);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 106, 0, 0.08);
}

.perk-card:hover::before {
    opacity: 1;
}

.perk-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.16), rgba(255, 106, 0, 0.04));
    border: 1px solid rgba(255, 106, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.perk-card:hover .perk-icon-wrap {
    transform: scale(1.08) rotate(3deg);
}

.perk-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.perk-card p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* --- JOB OPENINGS SECTION --- */
.openings-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 110px auto;
    position: relative;
    z-index: 1;
}

/* Modern segmented filter pill */
.openings-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: rgba(18, 18, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    padding: 6px;
    border-radius: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    background: transparent;
    color: #a1a1aa;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--primary);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(255, 106, 0, 0.4);
}

.filter-btn .count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
}

.filter-btn.active .count {
    background: rgba(0, 0, 0, 0.22);
    color: #000000;
    font-weight: 800;
}

/* Job Cards Container */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.job-card {
    background: rgba(14, 14, 18, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 32px;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: var(--primary);
    border-color: rgba(255, 106, 0, 0.35);
    background: rgba(20, 20, 26, 0.85);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.job-title-group {
    flex: 1;
    min-width: 280px;
}

.job-id-pill {
    color: #71717a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.job-id-pill i {
    font-size: 0.75rem;
}

.job-title-group h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    letter-spacing: -0.4px;
}

/* Priority badge with pulsating dot */
.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 106, 0, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 106, 0, 0.35);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ping-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: livePulse 1.8s infinite;
}

.job-meta-row {
    display: flex;
    align-items: center;
    gap: 8px 20px;
    flex-wrap: wrap;
    color: #a1a1aa;
    font-size: 0.88rem;
}

.job-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.job-meta-row span i {
    color: var(--primary);
    font-size: 0.85rem;
}

.job-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-details-toggle {
    background: transparent;
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-details-toggle:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.btn-apply-role {
    background: var(--primary);
    color: #000000 !important;
    font-weight: 800;
    padding: 11px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 106, 0, 0.3);
}

.btn-apply-role:hover {
    background: #ff7b1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.5);
}

.job-brief {
    color: #b4b4bc;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 820px;
    margin: 0;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.045);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Expandable Details Container */
.job-full-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin 0.35s ease;
    border-top: 1px solid transparent;
}

.job-full-details.open {
    max-height: 1800px;
    opacity: 1;
    margin-top: 25px;
    padding-top: 25px;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.details-col h4 {
    font-size: 1.08rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-col h4 i {
    color: var(--primary);
    font-size: 0.95rem;
}

.details-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-col ul li {
    position: relative;
    padding-left: 22px;
    color: #a1a1aa;
    font-size: 0.93rem;
    line-height: 1.68;
    margin-bottom: 12px;
}

.details-col ul li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* Direct apply banner inside drawer */
.details-apply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.22);
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.details-apply-text strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 3px;
}

.details-apply-text span {
    color: #a1a1aa;
    font-size: 0.88rem;
}

/* --- HIRING PROCESS ROADMAP --- */
.process-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 110px auto;
    position: relative;
    z-index: 1;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.step-card {
    background: rgba(16, 16, 22, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 32px 22px;
    text-align: center;
    position: relative;
    transition: all 0.35s ease;
}

.step-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
    background: rgba(22, 22, 30, 0.8);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0.05));
    border: 1px solid rgba(255, 106, 0, 0.35);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.step-card h3 {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* --- APPLICATION FORM PORTAL --- */
.apply-section {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto 90px auto;
    position: relative;
    z-index: 1;
}

.apply-container {
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.85) 0%, rgba(11, 11, 15, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 65px 70px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 106, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.apply-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.apply-head {
    text-align: center;
    margin-bottom: 48px;
}

.apply-head h2 {
    font-size: 2.4rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.apply-head p {
    color: #a1a1aa;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group-full {
    margin-bottom: 24px;
}

.careers-form label {
    display: block;
    color: #e4e4e7;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    padding-left: 2px;
}

.careers-form label span.req {
    color: var(--primary);
    font-size: 1rem;
}

.careers-form .form-input,
.careers-form .phone-wrapper {
    min-height: 56px;
    box-sizing: border-box;
}

.careers-form .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.98rem;
    transition: all 0.3s ease;
    outline: none;
}

.careers-form .form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.15);
}

.careers-form .form-input::placeholder {
    color: #555560;
}

.careers-form select.form-input {
    cursor: pointer;
}

.careers-form select.form-input option {
    background-color: #0c0d14;
    color: #ffffff;
    padding: 12px;
}

.careers-form textarea.form-input {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.careers-form .phone-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    transition: 0.3s;
    overflow: hidden;
}

.careers-form .phone-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.15);
}

.careers-form .country-select {
    align-self: stretch;
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 0 10px 0 16px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.careers-form .country-select option {
    background-color: #0c0d14;
    color: #ffffff;
}

.careers-form .phone-input {
    width: 100%;
    align-self: stretch;
    background: transparent;
    border: none;
    padding: 0 16px;
    color: #ffffff;
    font-size: 0.98rem;
    outline: none;
}

.careers-form .phone-input::placeholder {
    color: #555560;
}

/* --- CUSTOM FILE UPLOAD ZONE --- */
.file-upload-box {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 22px;
    transition: all 0.35s ease;
    cursor: pointer;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.04);
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.1);
}

.file-upload-box.has-file {
    border-style: solid;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0 !important;
}

.upload-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.file-upload-box:hover .upload-icon-circle {
    transform: scale(1.08) translateY(-2px);
}

.file-upload-box.has-file .upload-icon-circle {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.upload-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.upload-main-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none !important;
}

.upload-sub-text {
    color: #71717a;
    font-size: 0.82rem;
    text-transform: none !important;
    letter-spacing: 0;
}

.upload-browse-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.file-upload-box:hover .upload-browse-btn {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
}

.btn-career-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff6a00 0%, #ff7d1a 100%);
    color: #000000;
    padding: 19px 30px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

.btn-career-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(255, 106, 0, 0.55);
}

.form-privacy-note {
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-privacy-note i {
    color: var(--primary);
}

/* --- TALENT POOL BANNER --- */
.talent-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 90px auto;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(16, 16, 22, 0.85));
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 28px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.talent-content h3 {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.talent-content p {
    color: #c4c4cc;
    font-size: 1rem;
    max-width: 660px;
    line-height: 1.65;
    margin: 0;
}

.talent-btn {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.talent-btn:hover {
    background: var(--primary);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.4);
}

/* --- CANDIDATE FAQ ACCORDION --- */
.faq-careers-section {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 90px auto;
    position: relative;
    z-index: 1;
}

.career-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 35px;
}

.career-faq-item {
    background: rgba(16, 16, 22, 0.6);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.career-faq-item:hover {
    border-color: rgba(255, 106, 0, 0.35);
    background: rgba(20, 20, 28, 0.7);
}

.career-faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.08rem;
    gap: 15px;
    letter-spacing: -0.2px;
}

.career-faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.career-faq-item.active .career-faq-question i {
    transform: rotate(180deg);
}

.career-faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: #a1a1aa;
    font-size: 0.96rem;
    line-height: 1.7;
}

.career-faq-item.active .career-faq-answer {
    padding: 0 30px 26px 30px;
    max-height: 350px;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 1024px) {
    .bento-perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    main .careers-main-section:first-child { 
        padding-top: 135px; 
    }
    
    .careers-hero-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }
    
    .hero-stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 24px 20px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .bento-perks-grid {
        grid-template-columns: 1fr;
    }
    
    .openings-filters {
        width: 100%;
        border-radius: 20px;
        justify-content: center;
    }
    
    .job-card {
        padding: 22px 18px;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .job-action-group {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn-details-toggle,
    .btn-apply-role {
        flex: 1;
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .details-apply-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .details-apply-banner .btn-apply-role {
        width: 100%;
        justify-content: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .apply-container {
        padding: 38px 22px;
        border-radius: 24px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .file-upload-label {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .upload-browse-btn {
        width: 100%;
        justify-content: center;
    }
    
    .talent-banner {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .talent-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- TALENT BANNER FIXES --- */
.talent-content { text-align: left; flex: 1; min-width: 260px; }
.talent-btn,
.talent-btn:hover {
    background: #0c0c10;
    color: #ffffff;
    border: 1px solid rgba(255, 106, 0, 0.5);
}
.talent-btn i { color: var(--primary); }
.talent-btn .brand-zil { color: #ffffff; }
.talent-btn .brand-fox { color: var(--primary); }
.talent-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.35);
}
.talent-btn-text { display: inline; white-space: nowrap; }

/* --- ALIGNMENT & STRUCTURE CLEANUP --- */
/* Global .section centers everything; keep only headings centered, content left */
.perk-card,
.job-card,
.details-grid,
.details-apply-banner,
.career-faq-item,
.careers-form,
.talent-content {
    text-align: left;
}

.apply-head .tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* Global .step-number is absolutely positioned; make it a normal in-flow badge */
.process-steps .step-number {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    box-shadow: none;
}

.step-card h3 { margin-top: 0; }

/* Calmer cards: no jumping on hover */
.perk-card:hover,
.step-card:hover {
    transform: none;
}

/* Perk cards: icon and title on one row, text below */
.perk-card {
    padding: 30px 28px;
}
.perk-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.perk-card h3 { font-size: 1.15rem; }

/* Tighter vertical rhythm between sections */
.perks-section,
.openings-section,
.process-section { margin-bottom: 90px; }

/* --- FORM FIXES --- */
/* Equal label height so inputs in the same row line up (even with "Optional" hint) */
.careers-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    line-height: 1.2;
}
.careers-form label span.req { font-size: 0.82rem; line-height: 1; }
.careers-form label .optional-hint {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* Upload zone: one row (icon | text | button); .careers-form label rule was forcing it to block */
.careers-form .file-upload-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    min-height: 0;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}
.careers-form .file-upload-box { padding: 20px 22px; }
.careers-form .upload-text-group { text-align: left; }
.careers-form .upload-main-text { font-size: 0.98rem; }
.careers-form .upload-sub-text { color: #8b8b95; font-size: 0.8rem; font-weight: 500; }

@media (max-width: 768px) {
    .careers-form .file-upload-label { flex-direction: column; text-align: center; }
    .careers-form .upload-text-group { text-align: center; }
}

/* Labels: block + fixed line-height (flex+gap split the brand-name spans, e.g. "ZIL FOX") */
.careers-form label {
    display: block;
    min-height: 0;
    line-height: 20px;
}
.careers-form label .optional-hint { margin-left: 6px; line-height: 20px; }

/* --- CUSTOM DROPDOWNS (replace native <select> popups) --- */
.cselect { position: relative; }
.cselect-native {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}
.cselect-btn {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #6b6b76;
    font-size: 0.98rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.cselect-btn.has-value { color: #ffffff; }
.cselect-btn:hover { border-color: rgba(255, 255, 255, 0.25); }
.cselect.open .cselect-btn,
.cselect-btn:focus-visible {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 106, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.15);
}
.cselect-btn.invalid { border-color: #ef4444; }
.cselect-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-arrow { color: var(--primary); font-size: 0.8rem; transition: transform 0.25s ease; flex-shrink: 0; }
.cselect.open .cselect-arrow { transform: rotate(180deg); }

.cselect-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 290px;
    overflow-y: auto;
    padding: 6px;
    background: #121218;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.cselect.open .cselect-list { opacity: 1; visibility: visible; transform: none; }
.cselect-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #d4d4d8;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.cselect-item small { color: #71717a; font-size: 0.72rem; letter-spacing: 1px; font-weight: 700; flex-shrink: 0; }
.cselect-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.cselect-item.selected { background: rgba(255, 106, 0, 0.14); color: var(--primary); font-weight: 700; }
.cselect-item.selected small { color: rgba(255, 106, 0, 0.8); }
.cselect-list::-webkit-scrollbar { width: 6px; }
.cselect-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 6px; }

/* Country code select (inside phone field): custom arrow, dark list */
.careers-form .country-select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ff6a00' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
