/* =========================================================
   MOBILE-FIXES.CSS — Precision Real Mobile Device Optimizations
   Engineered for Real Touchscreens: iPhone SE (375px), iPhone 14/15 (390-393px), 
   Android (360-412px), Phablets & iPads (768-868px)
   ========================================================= */

/* ===== 1. GLOBAL MOBILE FOUNDATION ===== */

/* Prevent iOS auto-zoom on input focus */
@media (max-width: 868px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
}

/* Touch tap highlight */
a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: rgba(26, 86, 219, 0.12);
}

/* Safe area padding for modern notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .floating-contact-widget {
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        right: calc(12px + env(safe-area-inset-right)) !important;
    }
}

/* Disable hover transforms on touch devices to avoid stuck states */
@media (hover: none) and (pointer: coarse) {
    a:hover, button:hover, .v2-btn-apply:hover, 
    .v2-call-btn:hover, .v2-wa-btn:hover,
    .v2-job-row:hover, .v2-category-card:hover,
    .v2-step-card:hover, .v2-company-brand-card:hover,
    .v2-hero-stat-card:hover, .stat-card:hover,
    .v2-nav-link:hover, .nav-link:hover,
    .btn-search:hover, .v2-search-btn:hover,
    .v2-btn-login:hover, .v2-btn-register:hover,
    .btn-slider-primary:hover, .btn-slider-secondary:hover,
    .floating-contact-btn:hover, .slider-arrow:hover,
    .v2-dropdown-item:hover, .nav-dropdown-item:hover,
    .v2-footer-link:hover, .popular-tag:hover,
    .v2-popular-tag:hover, .section-head-link:hover,
    .v2-btn-map-directions:hover, .v2-btn-map-call:hover,
    .v2-btn-map-wa:hover {
        transform: none !important;
    }
}

/* =========================================================
   2. FLOATING CONTACT BUTTONS (WHATSAPP & CALL)
   ========================================================= */
.floating-contact-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 990 !important;
    pointer-events: auto !important;
}

.floating-contact-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 12px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    .floating-contact-btn {
        width: 42px !important;
        height: 42px !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
    }
    .floating-whatsapp-btn {
        font-size: 21px !important;
    }
    .floating-call-btn {
        font-size: 16px !important;
    }
}

/* =========================================================
   3. TOP ANNOUNCEMENT & HELPLINE BAR
   ========================================================= */
@media (max-width: 768px) {
    .top-helpline-bar {
        padding: 8px 12px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .top-helpline-bar > div {
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
}

/* =========================================================
   4. COUNTRY FLAGS BAR (LIVE OVERSEAS VACANCIES)
   ========================================================= */
@media (max-width: 768px) {
    .country-flags-bar {
        padding: 8px 0 !important;
        position: relative !important;
    }
    .country-flags-inner {
        gap: 10px !important;
        padding: 0 12px !important;
    }
    .country-flags-label {
        font-size: 11px !important;
        letter-spacing: 0.3px !important;
        gap: 6px !important;
    }
    .country-flags-scroll {
        padding: 4px 32px 4px 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .country-flag-chip {
        padding: 5px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .country-flag-count {
        font-size: 10.5px !important;
        padding: 1px 6px !important;
    }
}

/* =========================================================
   5. HEADER & NAVIGATION (MOBILE)
   ========================================================= */
@media (max-width: 868px) {
    .container,
    .container-v2 {
        padding: 0 14px !important;
    }

    .v2-header {
        height: 60px !important;
    }

    .v2-logo-brand-img,
    .header-brand-logo-img {
        max-height: 38px !important;
        max-width: 160px !important;
    }

    .v2-mobile-toggle {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        color: #0f172a !important;
        cursor: pointer !important;
        border-radius: 8px !important;
    }

    .v2-nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 12px 16px 24px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
        border-top: 1px solid #f1f5f9 !important;
        border-radius: 0 0 16px 16px !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        gap: 0 !important;
    }

    .v2-nav-menu.mobile-open {
        display: flex !important;
        animation: mobileMenuSlide 0.25s ease-out forwards !important;
    }

    .v2-nav-item,
    .v2-nav-dropdown {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .v2-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 8px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        width: 100% !important;
        min-height: 48px !important;
    }

    .v2-header-actions {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
        padding-top: 14px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .v2-header-actions.mobile-open {
        display: flex !important;
    }

    .v2-btn-login,
    .v2-btn-register {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 14.5px !important;
        border-radius: 10px !important;
        min-height: 46px !important;
    }

    .v2-dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 4px 0 10px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin: 6px 0 10px !important;
    }

    .v2-dropdown-item {
        min-height: 42px !important;
        padding: 8px 12px !important;
    }
}

/* =========================================================
   6. HERO SECTION & SEARCH (HOMEPAGE)
   ========================================================= */
@media (max-width: 868px) {
    .v2-hero {
        padding: 16px 0 24px !important;
    }

    .v2-hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .v2-hero-title {
        font-size: 24px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .v2-hero-subtitle {
        font-size: 13px !important;
        margin: 0 auto 12px !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
    }

    .v2-search-container {
        flex-direction: column !important;
        padding: 10px !important;
        gap: 8px !important;
        margin: 0 auto 18px !important;
        max-width: 100% !important;
        border-radius: 14px !important;
    }

    .v2-search-input-wrap,
    .v2-search-select-wrap {
        width: 100% !important;
        padding: 0 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        height: 46px !important;
    }

    .v2-search-input,
    .v2-search-select {
        height: 46px !important;
        font-size: 15px !important;
    }

    .v2-search-divider {
        display: none !important;
    }

    .v2-search-btn {
        width: 100% !important;
        height: 46px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .v2-popular-row {
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        margin-bottom: 8px !important;
    }

    .v2-popular-tag {
        min-height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 4px 10px !important;
        font-size: 11.5px !important;
        border-radius: 20px !important;
    }

    .v2-hero-visual {
        display: none !important;
    }

    /* Hero stats cards in 2-column grid */
    .hero-right {
        width: 100% !important;
        flex: auto !important;
        max-width: 100% !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
    }

    .stat-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .stat-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .stat-info {
        min-width: 0 !important;
        text-align: left !important;
    }

    .stat-number {
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
    }

    .stat-label {
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Slider search box variant */
    .hero,
    .hero-single-banner {
        min-height: auto !important;
        padding: 24px 0 32px !important;
    }

    .hero-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle {
        font-size: 13.5px !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
    }

    .search-box {
        flex-direction: column !important;
        padding: 10px !important;
        gap: 8px !important;
        max-width: 100% !important;
        border-radius: 14px !important;
    }

    .search-field {
        width: 100% !important;
        height: 46px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 0 12px !important;
    }

    .search-divider {
        display: none !important;
    }

    .btn-search {
        width: 100% !important;
        height: 46px !important;
        border-radius: 10px !important;
    }
}

/* =========================================================
   7. CATEGORIES SECTION (HOMEPAGE)
   ========================================================= */
@media (max-width: 868px) {
    .v2-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .v2-category-card {
        padding: 10px 8px !important;
        gap: 8px !important;
        border-radius: 12px !important;
        min-height: 58px !important;
        align-items: center !important;
    }

    .v2-cat-img-box {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .v2-category-3d-img {
        width: 40px !important;
        height: 40px !important;
    }

    .v2-cat-title {
        font-size: 12.5px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .v2-cat-count {
        font-size: 10.5px !important;
        color: #64748b !important;
    }

    .v2-cat-arrow {
        display: none !important;
    }

    /* 15th odd item spans full width centered to prevent empty hole */
    .cat-card-other {
        grid-column: 1 / -1 !important;
        justify-content: center !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

/* =========================================================
   8. HOW IT WORKS & CTA CHECKLIST (HOMEPAGE)
   ========================================================= */
@media (max-width: 640px) {
    .v2-how-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .v2-step-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }

    .v2-step-card::after {
        display: none !important;
    }

    .v2-step-icon-outer {
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .v2-step-icon-box {
        width: 52px !important;
        height: 52px !important;
    }

    .v2-step-3d-img {
        width: 46px !important;
        height: 46px !important;
    }

    .v2-step-number-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }

    .v2-step-title {
        font-size: 14.5px !important;
        margin: 0 0 2px !important;
    }

    .v2-step-desc {
        font-size: 12px !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }

    .v2-cta-checklist {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin: 14px auto !important;
        max-width: 270px !important;
    }

    .v2-cta-card {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 24px 16px !important;
    }

    .v2-companies-row {
        grid-template-columns: 1fr !important;
    }

    .v2-testimonials-grid,
    .v2-blog-grid {
        grid-template-columns: 1fr !important;
    }

    .v2-app-banner-card {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .v2-app-buttons-row {
        justify-content: center !important;
    }

    .v2-footer-top {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .v2-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .v2-office-grid {
        grid-template-columns: 1fr !important;
    }

    .v2-office-card {
        padding: 18px 14px !important;
    }

    .v2-office-actions {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .v2-btn-map-directions {
        grid-column: auto !important;
    }

    .v2-map-frame-wrapper iframe {
        min-height: 240px !important;
    }
}

/* =========================================================
   9. JOBS LISTING PAGE (jobs.html)
   ========================================================= */
@media (max-width: 860px) {
    .jobs-layout {
        grid-template-columns: 1fr !important;
    }

    .jobs-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 340px !important;
        height: 100vh !important;
        z-index: 1500 !important;
        border-radius: 0 16px 16px 0 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
    }

    .jobs-sidebar.active {
        left: 0 !important;
    }

    .jobs-search-bar {
        flex-direction: column !important;
        padding: 10px !important;
        gap: 8px !important;
    }

    .jobs-search-divider {
        display: none !important;
    }

    .jobs-search-field {
        width: 100% !important;
        height: 46px !important;
    }

    .jobs-search-field input,
    .jobs-search-field select {
        font-size: 16px !important;
    }

    .btn-jobs-search {
        width: 100% !important;
        height: 46px !important;
        min-height: 44px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    /* Results Header Bar: stacked count above controls */
    .results-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .results-count {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        width: 100% !important;
    }

    .results-controls {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .mobile-filter-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        min-height: 42px !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }

    .sort-by-wrapper {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        font-size: 13px !important;
    }

    .sort-select {
        min-height: 42px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        flex: 1 !important;
        max-width: 160px !important;
    }

    /* Job Card Item Mobile Layout */
    .job-card-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px 14px !important;
        gap: 12px !important;
        border-radius: 14px !important;
    }

    .job-company-logo {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 10px !important;
    }

    .job-role-title {
        font-size: 16px !important;
    }

    .job-actions-col {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
        margin-top: 8px !important;
    }

    .job-meta-top-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .job-posted-time {
        font-size: 12px !important;
        color: #64748b !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .job-action-buttons-row {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .btn-apply-job {
        flex: 2 !important;
        min-height: 42px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 14px !important;
    }

    .btn-whatsapp-recruiter {
        flex: 1 !important;
        min-height: 42px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        background: #25D366 !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .btn-call-recruiter {
        flex: 1 !important;
        min-height: 42px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        color: #1d4ed8 !important;
        text-decoration: none !important;
    }
}

/* =========================================================
   10. JOB DETAILS PAGE (job-details.html)
   ========================================================= */
@media (max-width: 960px) {
    .job-content-grid {
        grid-template-columns: 1fr !important;
    }

    .job-hero-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 18px 14px !important;
        gap: 14px !important;
    }

    .job-hero-left {
        width: 100% !important;
    }

    .job-hero-right {
        width: 100% !important;
        align-items: stretch !important;
    }

    .job-hero-logo {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .company-profile-logo {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .job-hero-title {
        font-size: 21px !important;
        line-height: 1.25 !important;
    }

    .job-hero-btn-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .btn-hero-apply {
        width: 100% !important;
        min-height: 46px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .job-hero-btn-subgroup {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #btnHeroWhatsapp,
    #btnHeroCall,
    .btn-hero-wa,
    .btn-hero-call {
        flex: 1 !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .btn-hero-wa, #btnHeroWhatsapp {
        background: #25D366 !important;
        color: #ffffff !important;
    }

    .btn-hero-call, #btnHeroCall {
        background: #0284c7 !important;
        color: #ffffff !important;
    }

    /* Sub-nav Tab Bar */
    .job-tabs-header {
        padding: 0 14px !important;
        padding-right: 32px !important;
        gap: 16px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .job-tab-btn {
        padding: 13px 4px !important;
        font-size: 13.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .job-tab-pane {
        padding: 18px 14px !important;
    }

    /* Bottom Apply Callout — prevents vertical word-by-word button wrapping */
    .details-apply-callout {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 16px 14px !important;
    }

    .details-apply-callout p {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }

    .details-apply-callout .btn-hero-apply {
        width: 100% !important;
        white-space: nowrap !important;
        min-height: 46px !important;
    }
}

/* =========================================================
   11. APPLY JOB PAGE (apply-job.html)
   ========================================================= */
@media (max-width: 992px) {
    .apply-layout-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Put form first so candidate can immediately register without scrolling past sidebar */
    .apply-form-card {
        order: 1 !important;
        width: 100% !important;
        padding: 20px 14px 24px !important;
        border-radius: 14px !important;
    }

    .apply-job-sidebar {
        order: 2 !important;
        width: 100% !important;
        margin-top: 20px !important;
        position: static !important;
    }

    .form-content-area {
        grid-template-columns: 1fr !important;
    }

    .apply-side-widget {
        display: none !important;
    }

    .apply-main-heading {
        font-size: 19px !important;
    }

    .apply-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .apply-field-col-2 {
        grid-column: span 1 !important;
    }

    .apply-stepper-bar {
        padding: 0 0 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .step-title {
        font-size: 10px !important;
    }

    .step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    .form-actions-row {
        flex-direction: column-reverse !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .btn-step-save,
    .btn-step-next,
    .btn-step-prev,
    .btn-step-submit {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 15px !important;
    }

    .apply-input,
    .apply-select,
    .apply-textarea {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
}

/* =========================================================
   12. POST JOB PAGE (post-job.html)
   ========================================================= */
@media (max-width: 868px) {
    .form-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .form-main {
        order: 1 !important;
        width: 100% !important;
    }

    .form-sidebar {
        order: 2 !important;
        width: 100% !important;
        margin-top: 20px !important;
        position: static !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .page-hero-title {
        font-size: 24px !important;
    }

    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn-submit,
    .btn-reset {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: center !important;
    }

    .form-card {
        padding: 18px 14px !important;
    }

    .salary-range {
        flex-direction: column !important;
    }

    .salary-to {
        display: none !important;
    }
}

/* =========================================================
   13. ADMIN PORTAL (admin/ & asia-control-portal-2026/)
   ========================================================= */
@media (max-width: 900px) {
    .admin-sidebar {
        position: fixed !important;
        left: -100% !important;
        height: calc(100vh - var(--header-height, 60px)) !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        z-index: 1100 !important;
        overflow-y: auto !important;
    }

    .admin-sidebar.mobile-open {
        left: 0 !important;
    }

    .header-center {
        display: none !important;
    }

    .admin-main {
        padding: 14px 10px 40px !important;
    }

    .admin-table-wrap,
    .data-table-container,
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-table-wrap table,
    .data-table-container table {
        min-width: 600px !important;
    }

    .sidebar-nav-item {
        min-height: 44px !important;
    }
}

@media (max-width: 600px) {
    .dash-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .admin-form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-group-item.full-span {
        grid-column: span 1 !important;
    }

    .profile-info {
        display: none !important;
    }

    .profile-avatar {
        width: 34px !important;
        height: 34px !important;
    }
    
    .header-logout-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   14. UNIVERSAL TOUCH INPUTS
   ========================================================= */
@media (max-width: 868px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    select,
    textarea {
        min-height: 48px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    input[type="file"] {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    button,
    .btn,
    [role="button"],
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px !important;
    }
}

/* =========================================================
   15. ANIMATIONS & REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes mobileMenuSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   SMART RESUME AUTO-FILL PARSER (Client-Side Free Parser)
   ========================================================== */
.smart-autofill-box {
    border: 1.5px solid #c7d2fe !important;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%) !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.smart-autofill-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
}

.smart-autofill-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
}

.smart-free-tag {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.smart-autofill-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    margin: 0 0 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.smart-autofill-title i {
    color: #6366f1 !important;
}

.smart-autofill-sub {
    font-size: 13px !important;
    color: #475569 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.5 !important;
}

.smart-upload-zone {
    border: 2px dashed #a5b4fc !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.smart-upload-zone:hover,
.smart-upload-zone.dragover {
    border-color: #4f46e5 !important;
    background: #eef2ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12) !important;
}

.smart-upload-inner {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.smart-upload-icon-circle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 12px !important;
    background: #e0e7ff !important;
    color: #4338ca !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
}

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

.smart-upload-action {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.smart-btn-action {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #4338ca !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.smart-drag-hint {
    font-size: 12.5px !important;
    color: #64748b !important;
}

.smart-supported-types {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 2px !important;
    flex-wrap: wrap !important;
}

.type-pill {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #f1f5f9 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.type-size {
    font-size: 11px !important;
    color: #94a3b8 !important;
}

.smart-parsing-indicator {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    display: flex;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

.smart-parsing-indicator[style*="display:none"],
.smart-parsing-indicator[style*="display: none"] {
    display: none !important;
}

.parsing-spinner {
    font-size: 24px !important;
    color: #4f46e5 !important;
}

.parsing-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    display: block !important;
}

.parsing-sub {
    font-size: 12px !important;
    color: #4338ca !important;
    margin: 2px 0 0 0 !important;
}

.smart-success-box {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    margin-top: 14px !important;
}

.smart-success-box[style*="display:none"],
.smart-success-box[style*="display: none"] {
    display: none !important;
}

.success-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.success-badge-title {
    color: #15803d !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-reupload-cv {
    background: #ffffff !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.success-extracted-preview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.extracted-chip {
    background: #ffffff !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: #166534 !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.extracted-chip .chip-label {
    color: #64748b !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 10.5px !important;
}

.extracted-chip .chip-val {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.success-footer-note {
    font-size: 12px !important;
    color: #166534 !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.step-divider-or {
    position: relative !important;
    text-align: center !important;
    margin: 24px 0 22px !important;
}

.step-divider-or::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 100% !important;
    height: 1px !important;
    background: #e2e8f0 !important;
    z-index: 1 !important;
}

.step-divider-or span {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    padding: 3px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.apply-input.is-autofilled,
.apply-select.is-autofilled,
.phone-number-field.is-autofilled,
.apply-textarea.is-autofilled {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.autofill-field-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
}

.resume-sync-alert {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    color: #166534 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

/* ==========================================================
   UNIFIED 1-PAGE FORM STYLES
   ========================================================== */
.single-page-feature-strip {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    margin-bottom: 22px !important;
    flex-wrap: wrap !important;
}

.feature-strip-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.form-section-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

.section-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.section-num-badge {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

.section-card-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.section-card-sub {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin: 2px 0 0 0 !important;
}

.single-page-submit-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.btn-single-submit {
    width: 100% !important;
    max-width: 440px !important;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
    color: #ffffff !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-single-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4) !important;
}

.submit-reassurance-text {
    margin-top: 12px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

@media (max-width: 640px) {
    .form-section-card {
        padding: 18px 16px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
    }
    .section-card-title {
        font-size: 15px !important;
    }
    .single-page-feature-strip {
        padding: 10px 12px !important;
        justify-content: center !important;
        gap: 8px 14px !important;
    }
    .btn-single-submit {
        font-size: 15.5px !important;
        padding: 14px 20px !important;
    }
}

/* ==========================================================
   SMART MISSING FIELDS ALERT & CUSTOM RESUME HIGHLIGHTS
   ========================================================== */
.smart-missing-fields-box {
    margin-top: 14px !important;
    padding: 12px 14px !important;
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.missing-fields-header {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #92400e !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.missing-fields-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.btn-jump-missing {
    background: #ffffff !important;
    border: 1px solid #f59e0b !important;
    color: #b45309 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
}

.btn-jump-missing:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
}

.custom-highlights-section {
    border: 1.5px solid #fde047 !important;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%) !important;
    position: relative !important;
}

.badge-sparkle {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

.custom-card-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.custom-badge-auto {
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    color: #b45309 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.custom-fields-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

.custom-highlight-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3.5px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s ease !important;
}

.custom-highlight-card:hover {
    border-color: #cbd5e1 !important;
    border-left-color: #d97706 !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.custom-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    overflow: hidden !important;
}

.custom-chip-key {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
}

.custom-chip-val {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

.btn-remove-custom-chip {
    background: #f1f5f9 !important;
    border: none !important;
    color: #94a3b8 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 11px !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

.btn-remove-custom-chip:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.add-custom-field-action {
    margin-top: 10px !important;
}

.btn-add-custom-field {
    background: #ffffff !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-add-custom-field:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.inline-add-custom-row {
    margin-top: 14px !important;
    padding: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.inline-add-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.custom-inline-input {
    font-size: 13px !important;
    padding: 8px 12px !important;
}

.inline-add-buttons {
    display: flex !important;
    gap: 8px !important;
}

.btn-save-custom-field {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.btn-save-custom-field:hover {
    background: #059669 !important;
}

.btn-cancel-custom-field {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.btn-cancel-custom-field:hover {
    background: #cbd5e1 !important;
}

@keyframes pulseMissingField {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); border-color: #f59e0b !important; }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.25); border-color: #d97706 !important; }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-missing-highlight {
    animation: pulseMissingField 1.2s ease-in-out 2 !important;
    border-color: #f59e0b !important;
}

@media (max-width: 640px) {
    .inline-add-grid {
        grid-template-columns: 1fr !important;
    }
    .custom-fields-container {
        grid-template-columns: 1fr !important;
    }
}


