/* BM Careers Plugin Styles */

/* Reset Theme Interference */
body, body.single-job, body.page-template, body.page, body.post-type-job {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.single-job .site-main, body.single-job .entry-content, body.single-job .page-content,
body.page .site-main, body.page .entry-content, body.page .page-content,
body.post-type-job .site-main, body.post-type-job .entry-content, body.post-type-job .page-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Neutralize Elementor and Finovate Overrides */
body.single-job .elementor, body.single-job .elementor-section, body.single-job .elementor-column,
body.single-job .site-main .elementor, body.single-job .entry-content .elementor,
body.post-type-job .elementor, body.post-type-job .elementor-section, body.post-type-job .elementor-column,
body.post-type-job .site-main .elementor, body.post-type-job .entry-content .elementor {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Job Listings */
.bmc-job-listings {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bmc-job-listing-item {
    padding: 12px 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: -1px !important;
}

.bmc-job-details {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    padding: 0 15px !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.bmc-job-title {
    color: #02B1FF !important;
    font-size: 0.95em !important;
    text-decoration: none !important;
    margin-right: 15px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    max-width: 30% !important;
}

.bmc-job-title:hover {
    color: #0198d9 !important;
    text-decoration: underline !important;
}

.bmc-job-meta {
    color: #666 !important;
    font-size: 0.95em !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    max-width: 65% !important;
}

.bmc-job-location, .bmc-job-meta span:not(.bmc-separator) {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.bmc-separator {
    color: #666 !important;
    font-size: 0.95em !important;
    margin: 0 6px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Filters */
.bmc-job-filters {
    margin-bottom: 20px !important;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.bmc-job-filters form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: flex-end !important;
}

.bmc-filter-group {
    flex: 1 !important;
    min-width: 180px !important;
}

.bmc-filter-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 0.95em !important;
}

.bmc-filter-group input,
.bmc-filter-group select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    background: #f9f9f9 !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.bmc-filter-group input:focus,
.bmc-filter-group select:focus {
    border-color: #02B1FF !important;
    box-shadow: 0 0 0 2px rgba(2, 177, 255, 0.2) !important;
    outline: none !important;
}

.bmc-filter-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.bmc-filter-actions button {
    padding: 10px 24px !important;
    background: #02B1FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    transition: background 0.3s !important;
}

.bmc-filter-actions button:hover {
    background: #0198d9 !important;
}

.bmc-reset-filters {
    color: #02B1FF !important;
    text-decoration: none !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    transition: color 0.3s !important;
}

.bmc-reset-filters:hover {
    color: #0198d9 !important;
    text-decoration: underline !important;
}

/* Pagination */
.bmc-pagination {
    margin-top: 20px !important;
    text-align: center !important;
}

.bmc-pagination .page-numbers {
    padding: 8px 12px !important;
    margin: 0 5px !important;
    color: #02B1FF !important;
    text-decoration: none !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
}

.bmc-pagination .page-numbers.current {
    background: #02B1FF !important;
    color: #fff !important;
    border-color: #02B1FF !important;
}

.bmc-pagination .page-numbers:hover {
    background: #f5f5f5 !important;
}

/* No Jobs Message */
.bmc-no-jobs {
    font-size: 1.2em !important;
    color: #666 !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

/* Application Form */
#cm-job-application {
    background: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#cm-job-application p {
    margin: 15px 0 !important;
}

#cm-job-application label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

#cm-job-application input[type="text"],
#cm-job-application input[type="tel"],
#cm-job-application input[type="email"],
#cm-job-application input[type="file"],
#cm-job-application textarea {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

#cm-job-application input[type="submit"] {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #02B1FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background 0.3s !important;
}

#cm-job-application input[type="submit"]:hover {
    background: #0198d9 !important;
}

#cm-job-application .iti {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

#cm-job-application .iti__country-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 300px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    margin-top: 2px !important;
}

#cm-job-application .iti__country {
    padding: 8px 10px !important;
    font-size: 0.9em !important;
    cursor: pointer !important;
}

#cm-job-application .iti__country:hover {
    background-color: #f5f5f5 !important;
}

#cm-job-application input::placeholder {
    color: #cccccc !important;
    opacity: 0.6 !important;
}

#cm-job-application .iti__flag-container {
    flex-shrink: 0 !important;
    width: 80px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    margin-right: 20px !important;
    border-right: 1px solid #ddd !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    background-color: #fff !important;
}

#cm-job-application .iti__selected-flag {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
}

#cm-job-application input[type="tel"] {
    flex-grow: 1 !important;
    margin-left: 0 !important;
    padding: 10px 10px 10px 5px !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    height: 40px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

#cm-job-application .error-message {
    color: #d32f2f !important;
    font-size: 0.9em !important;
    margin-top: 5px !important;
}

/* Single Job Page */
body.single-job .bmc-job-container,
body.post-type-job .bmc-job-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 20px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

body.single-job .bmc-job-wrapper,
body.post-type-job .bmc-job-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 25px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    max-width: 100% !important;
    flex-direction: row !important;
}

body.single-job .bmc-job-content,
body.post-type-job .bmc-job-content {
    flex: 2 !important;
    min-width: 0 !important;
    max-width: 800px !important;
    text-align: left !important;
    margin-left: 50px !important;
}

body.single-job .bmc-job-form,
body.post-type-job .bmc-job-form {
    flex: 1 !important;
    min-width: 250px !important;
    max-width: 350px !important;
    position: sticky !important;
    top: 20px !important;
    text-align: left !important;
}

body.single-job .bmc-job-container .bmc-job-title,
body.post-type-job .bmc-job-container .bmc-job-title {
    font-size: 22px !important;
    margin: 0 0 15px 50px !important;
    line-height: 1.4 !important;
    color: #02B1FF !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    padding: 0 !important;
    height: auto !important;
}

body.single-job .bmc-job-container .bmc-job-meta,
body.post-type-job .bmc-job-container .bmc-job-meta {
    margin: 10px 0 10px 50px !important;
    font-size: 1.1em !important;
    color: #666 !important;
    text-align: left !important;
    display: block !important;
}

body.single-job .bmc-job-meta span,
body.post-type-job .bmc-job-meta span {
    display: block !important;
    margin-bottom: 8px !important;
}

body.single-job .bmc-job-container .bmc-section-title,
body.post-type-job .bmc-job-container .bmc-section-title {
    font-size: 18px !important;
    margin: 20px 0 10px 50px !important;
    line-height: 1.4 !important;
    color: #02B1FF !important;
    text-align: left !important;
    display: block !important;
}

body.single-job .bmc-job-description h1,
body.single-job .bmc-job-description h2,
body.single-job .bmc-job-description h3,
body.single-job .bmc-job-description h4,
body.single-job .bmc-job-description h5,
body.single-job .bmc-job-description h6,
body.post-type-job .bmc-job-description h1,
body.post-type-job .bmc-job-description h2,
body.post-type-job .bmc-job-description h3,
body.post-type-job .bmc-job-description h4,
body.post-type-job .bmc-job-description h5,
body.post-type-job .bmc-job-description h6 {
    font-size: 22px !important;
    margin: 20px 0 10px 50px !important;
    line-height: 1.4 !important;
    color: #02B1FF !important;
}

body.single-job .bmc-job-content p,
body.single-job .bmc-job-content ul,
body.single-job .bmc-job-content ol,
body.single-job .bmc-job-benefits p,
body.single-job .bmc-job-benefits ul,
body.single-job .bmc-job-benefits ol,
body.post-type-job .bmc-job-content p,
body.post-type-job .bmc-job-content ul,
body.post-type-job .bmc-job-content ol,
body.post-type-job .bmc-job-benefits p,
body.post-type-job .bmc-job-benefits ul,
body.post-type-job .bmc-job-benefits ol {
    margin: 0 0 15px 50px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

body.single-job .bmc-job-content strong,
body.single-job .bmc-job-benefits strong,
body.post-type-job .bmc-job-content strong,
body.post-type-job .bmc-job-benefits strong {
    font-weight: 600 !important;
}

/* Similar Roles */
body.single-job .bmc-similar-jobs,
body.post-type-job .bmc-similar-jobs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 50px !important;
    text-align: left !important;
}

body.single-job .bmc-similar-job-item,
body.post-type-job .bmc-similar-job-item {
    padding: 10px 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: -1px !important;
}

body.single-job .bmc-similar-job-title,
body.post-type-job .bmc-similar-job-title {
    color: #02B1FF !important;
    text-decoration: none !important;
    font-size: 1.2em !important;
}

body.single-job .bmc-similar-job-title:hover,
body.post-type-job .bmc-similar-job-title:hover {
    color: #0198d9 !important;
    text-decoration: underline !important;
}

body.single-job .bmc-similar-job-meta,
body.post-type-job .bmc-similar-job-meta {
    color: #666 !important;
    font-size: 1em !important;
    display: block !important;
}

/* Footer Styles */
body.single-job .bmc-job-footer,
body.post-type-job .bmc-job-footer {
    background: #f5f5f5 !important;
    padding: 20px 0 !important;
    margin-top: 40px !important;
    text-align: left !important;
}

body.single-job .bmc-job-footer .bmc-job-container,
body.post-type-job .bmc-job-footer .bmc-job-container {
    padding: 20px !important;
    text-align: left !important;
}

body.single-job .bmc-job-footer h3.bmc-section-title,
body.post-type-job .bmc-job-footer h3.bmc-section-title {
    margin: 0 0 10px 50px !important;
}

body.single-job .bmc-back-link,
body.post-type-job .bmc-back-link {
    margin: 20px 0 0 50px !important;
    text-align: left !important;
}

body.single-job .bmc-back-link a,
body.post-type-job .bmc-back-link a {
    color: #02B1FF !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.single-job .bmc-back-link a:hover,
body.post-type-job .bmc-back-link a:hover {
    color: #0198d9 !important;
    text-decoration: underline !important;
}

/* No Jobs Message (Similar Roles) */
body.single-job .bmc-no-similar-jobs,
body.post-type-job .bmc-no-similar-jobs {
    font-size: 1.1em !important;
    color: #666 !important;
    margin: 10px 0 0 50px !important;
}

/* Finovate and Elementor Overrides */
body.single-job .page-title,
body.single-job .entry-title,
body.single-job .finovate-page-title,
body.single-job .title,
body.single-job .post-title,
body.single-job .site-main .page-title,
body.single-job .site-main .entry-title,
body.single-job .site-main .finovate-page-title,
body.single-job .site-main h1:not(.bmc-job-title),
body.single-job .site-main h2:not(.bmc-section-title),
body.single-job .site-main h3:not(.bmc-section-title),
body.single-job .site-main h4,
body.single-job .bmc-job-container h1:not(.bmc-job-title),
body.single-job .bmc-job-container h2:not(.bmc-section-title):not(.bmc-job-description h2),
body.single-job .bmc-job-container h3:not(.bmc-section-title):not(.bmc-job-description h3),
body.single-job .bmc-job-container h4:not(.bmc-job-description h4),
body.post-type-job .page-title,
body.post-type-job .entry-title,
body.post-type-job .finovate-page-title,
body.post-type-job .title,
body.post-type-job .post-title,
body.post-type-job .site-main .page-title,
body.post-type-job .site-main .entry-title,
body.post-type-job .site-main .finovate-page-title,
body.post-type-job .site-main h1:not(.bmc-job-title),
body.post-type-job .site-main h2:not(.bmc-section-title),
body.post-type-job .site-main h3:not(.bmc-section-title),
body.post-type-job .site-main h4,
body.post-type-job .bmc-job-container h1:not(.bmc-job-title),
body.post-type-job .bmc-job-container h2:not(.bmc-section-title):not(.bmc-job-description h2),
body.post-type-job .bmc-job-container h3:not(.bmc-section-title):not(.bmc-job-description h3),
body.post-type-job .bmc-job-container h4:not(.bmc-job-description h4) {
    display: none !important;
}

body.single-job .bmc-job-container h3.bmc-section-title,
body.post-type-job .bmc-job-container h3.bmc-section-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 20px 0 10px 50px !important;
    color: #02B1FF !important;
    text-align: left !important;
    display: block !important;
}

/* Elementor Compatibility */
body.single-job .elementor-widget-html .bmc-job-container,
body.single-job .elementor-widget-shortcode .bmc-job-container,
body.single-job .elementor-widget-html .bmc-job-listings,
body.single-job .elementor-widget-shortcode .bmc-job-listings,
body.post-type-job .elementor-widget-html .bmc-job-container,
body.post-type-job .elementor-widget-shortcode .bmc-job-container,
body.post-type-job .elementor-widget-html .bmc-job-listings,
body.post-type-job .elementor-widget-shortcode .bmc-job-listings {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body.single-job .bmc-job-wrapper,
    body.post-type-job .bmc-job-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
        flex-wrap: wrap !important;
    }
    body.single-job .bmc-job-content,
    body.single-job .bmc-job-form,
    body.post-type-job .bmc-job-content,
    body.post-type-job .bmc-job-form {
        max-width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
    body.single-job .bmc-job-title,
    body.single-job .bmc-job-meta,
    body.single-job .bmc-section-title,
    body.single-job .bmc-similar-jobs,
    body.single-job .bmc-back-link,
    body.single-job .bmc-no-similar-jobs,
    body.single-job .bmc-job-footer h3.bmc-section-title,
    body.single-job .bmc-job-content p,
    body.single-job .bmc-job-content ul,
    body.single-job .bmc-job-content ol,
    body.single-job .bmc-job-description h1,
    body.single-job .bmc-job-description h2,
    body.single-job .bmc-job-description h3,
    body.single-job .bmc-job-description h4,
    body.single-job .bmc-job-description h5,
    body.single-job .bmc-job-description h6,
    body.post-type-job .bmc-job-title,
    body.post-type-job .bmc-job-meta,
    body.post-type-job .bmc-section-title,
    body.post-type-job .bmc-similar-jobs,
    body.post-type-job .bmc-back-link,
    body.post-type-job .bmc-no-similar-jobs,
    body.post-type-job .bmc-job-footer h3.bmc-section-title,
    body.post-type-job .bmc-job-content p,
    body.post-type-job .bmc-job-content ul,
    body.post-type-job .bmc-job-content ol,
    body.post-type-job .bmc-job-description h1,
    body.post-type-job .bmc-job-description h2,
    body.post-type-job .bmc-job-description h3,
    body.post-type-job .bmc-job-description h4,
    body.post-type-job .bmc-job-description h5,
    body.post-type-job .bmc-job-description h6 {
        margin-left: 0 !important;
    }
    body.single-job .bmc-job-form,
    body.post-type-job .bmc-job-form {
        position: static !important;
    }
    body.single-job .bmc-job-details,
    body.post-type-job .bmc-job-details {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        white-space: normal !important;
        padding: 0 10px !important;
    }
    body.single-job .bmc-job-title,
    body.single-job .bmc-job-meta,
    body.single-job .bmc-job-location,
    body.post-type-job .bmc-job-title,
    body.post-type-job .bmc-job-meta,
    body.post-type-job .bmc-job-location {
        white-space: normal !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    body.single-job .bmc-job-meta,
    body.post-type-job .bmc-job-meta {
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }
    body.single-job .bmc-job-location,
    body.post-type-job .bmc-job-location {
        margin-left: 0 !important;
    }
    body.single-job .bmc-filter-group,
    body.post-type-job .bmc-filter-group {
        min-width: 100% !important;
    }
}