/*
 * Purpose:
 * This CSS ensures consistency in the design and layout of the "Employer Login", "Forgot Password",
 * "Post a Job", and "Employer Dashboard" pages across the HVAC Technical Academy (HVACTA) website.
 * Styles are scoped to front-end careers forms only so backend/admin screens are not affected.
 *
 * Updated: 2026-03-16
 */

/* Employer Login */

.employer-login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.employer-login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.employer-login-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.employer-login-form input[type="text"],
.employer-login-form input[type="email"],
.employer-login-form input[type="password"],
.employer-login-form input[type="url"],
.employer-login-form input[type="search"],
.employer-login-form input[type="tel"],
.employer-login-form textarea,
.employer-login-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.employer-login-form button {
    width: 100%;
    min-height: 48px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.employer-login-form button:hover {
    background-color: #45a049;
}

.employer-login-form input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
    margin-bottom: 0;
    padding: 0;
}

.employer-login-form .show-password {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.employer-login-form .show-password label {
    margin: 0;
    font-weight: 400;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Forgot Password */

.forgot-password-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forgot-password-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-password-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.forgot-password-form input[type="text"],
.forgot-password-form input[type="email"],
.forgot-password-form input[type="password"],
.forgot-password-form input[type="url"],
.forgot-password-form input[type="search"],
.forgot-password-form input[type="tel"],
.forgot-password-form textarea,
.forgot-password-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.forgot-password-form button {
    width: 100%;
    min-height: 48px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.forgot-password-form button:hover {
    background-color: #0056b3;
}

.forgot-password-form input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
    margin-bottom: 0;
    padding: 0;
}

.forgot-password-form .show-password {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.forgot-password-form .show-password label {
    margin: 0;
    font-weight: 400;
}

/* Post a Job */

.post-a-job-form {
    max-width: 800px;
    margin: 20px auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-a-job-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.post-a-job-form label,
.post-a-job-form .job-manager-form label,
.job-manager-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.post-a-job-form input[type="text"],
.post-a-job-form input[type="email"],
.post-a-job-form input[type="url"],
.post-a-job-form input[type="number"],
.post-a-job-form input[type="password"],
.post-a-job-form input[type="search"],
.post-a-job-form input[type="tel"],
.post-a-job-form textarea,
.post-a-job-form select,
.post-a-job-form .select2-container .select2-selection--single,
.post-a-job-form .select2-container .select2-selection--multiple,
.post-a-job-form .job-manager-form input[type="text"],
.post-a-job-form .job-manager-form input[type="email"],
.post-a-job-form .job-manager-form input[type="url"],
.post-a-job-form .job-manager-form input[type="number"],
.post-a-job-form .job-manager-form input[type="password"],
.post-a-job-form .job-manager-form input[type="search"],
.post-a-job-form .job-manager-form input[type="tel"],
.post-a-job-form .job-manager-form textarea,
.post-a-job-form .job-manager-form select,
.post-a-job-form .job-manager-form .select2-container .select2-selection--single,
.post-a-job-form .job-manager-form .select2-container .select2-selection--multiple,
.job-manager-form input[type="text"],
.job-manager-form input[type="email"],
.job-manager-form input[type="url"],
.job-manager-form input[type="number"],
.job-manager-form input[type="password"],
.job-manager-form input[type="search"],
.job-manager-form input[type="tel"],
.job-manager-form textarea,
.job-manager-form select,
.job-manager-form .select2-container .select2-selection--single,
.job-manager-form .select2-container .select2-selection--multiple,
.post-a-job-form input[type="file"],
.post-a-job-form .job-manager-form input[type="file"],
.job-manager-form input[type="file"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.post-a-job-form textarea,
.post-a-job-form .job-manager-form textarea,
.job-manager-form textarea {
    min-height: 180px;
    resize: vertical;
}

.post-a-job-form .fieldset,
.post-a-job-form .job-manager-form fieldset,
.job-manager-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 18px 0;
}

.post-a-job-form .select2-container .select2-selection--single,
.post-a-job-form .job-manager-form .select2-container .select2-selection--single,
.job-manager-form .select2-container .select2-selection--single {
    height: 48px;
}

.post-a-job-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.post-a-job-form .job-manager-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.job-manager-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 22px;
    padding-left: 0;
    padding-right: 20px;
}

.post-a-job-form .select2-container--default .select2-selection--single .select2-selection__arrow,
.post-a-job-form .job-manager-form .select2-container--default .select2-selection--single .select2-selection__arrow,
.job-manager-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.post-a-job-form input[type="file"]::file-selector-button,
.post-a-job-form .job-manager-form input[type="file"]::file-selector-button,
.job-manager-form input[type="file"]::file-selector-button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 16px;
    margin-right: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.post-a-job-form input[type="file"]::file-selector-button:hover,
.post-a-job-form .job-manager-form input[type="file"]::file-selector-button:hover,
.job-manager-form input[type="file"]::file-selector-button:hover {
    background: #45a049;
}

.post-a-job-form input[type="checkbox"],
.post-a-job-form input[type="radio"],
.post-a-job-form .job-manager-form input[type="checkbox"],
.post-a-job-form .job-manager-form input[type="radio"],
.job-manager-form input[type="checkbox"],
.job-manager-form input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
    margin-bottom: 0;
    padding: 0;
}

.post-a-job-form input[type="submit"],
.post-a-job-form button,
.post-a-job-form .job-manager-form input[type="submit"],
.post-a-job-form .job-manager-form button,
.job-manager-form input[type="submit"],
.job-manager-form button,
.post-a-job-form button[type="submit"] {
    width: 100%;
    min-height: 48px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.post-a-job-form input[type="submit"]:hover,
.post-a-job-form button:hover,
.post-a-job-form .job-manager-form input[type="submit"]:hover,
.post-a-job-form .job-manager-form button:hover,
.job-manager-form input[type="submit"]:hover,
.job-manager-form button:hover,
.post-a-job-form button[type="submit"]:hover {
    background-color: #45a049;
}

/* Employer Dashboard */

.employer-dashboard-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.employer-dashboard-container h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.employer-dashboard-container .search-bar input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    box-sizing: border-box;
}

.employer-dashboard-container .no-listings {
    background-color: #fff;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #999;
    text-align: center;
}

.employer-dashboard-container .add-job-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.employer-dashboard-container .add-job-btn:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    body .et_pb_module .forgot-password-form,
    body .et_pb_module .post-a-job-form,
    body .et_pb_module .employer-dashboard-container,
    body .et_pb_module .employer-login-form {
        padding: 15px;
    }

    body .et_pb_module .forgot-password-form label,
    body .et_pb_module .post-a-job-form label,
    body .et_pb_module .employer-login-form label,
    body .et_pb_module .job-manager-form label {
        font-size: 13px;
    }

    body .et_pb_module .forgot-password-form input[type="text"],
    body .et_pb_module .forgot-password-form input[type="password"],
    body .et_pb_module .post-a-job-form input[type="text"],
    body .et_pb_module .post-a-job-form input[type="password"],
    body .et_pb_module .post-a-job-form textarea,
    body .et_pb_module .post-a-job-form select,
    body .et_pb_module .post-a-job-form input[type="file"],
    body .et_pb_module .employer-login-form input[type="text"],
    body .et_pb_module .employer-login-form input[type="password"],
    body .et_pb_module .job-manager-form input[type="text"],
    body .et_pb_module .job-manager-form input[type="email"],
    body .et_pb_module .job-manager-form input[type="url"],
    body .et_pb_module .job-manager-form input[type="number"],
    body .et_pb_module .job-manager-form textarea,
    body .et_pb_module .job-manager-form select,
    body .et_pb_module .job-manager-form input[type="file"] {
        padding: 10px;
    }

    body .et_pb_module .forgot-password-form button,
    body .et_pb_module .post-a-job-form button[type="submit"],
    body .et_pb_module .employer-dashboard-container .add-job-btn,
    body .et_pb_module .employer-login-form button,
    body .et_pb_module .job-manager-form input[type="submit"],
    body .et_pb_module .job-manager-form button {
        padding: 10px;
    }
}

/**
 * HVACTA Careers System - Employer Dashboard Listing Readability
 *
 * Description:
 * Increases the size and readability of the job listing content inside the
 * Employer Dashboard so listings feel clearer and stronger visually.
 *
 * Applies to:
 * - Employer Dashboard page only
 *
 * Created: 2026-03-20
 * Updated: 2026-03-20
 */

/* Employer Dashboard table base text */
.page-id-245575 .job-manager-jobs table,
.page-id-245575 .job-manager-jobs tbody,
.page-id-245575 .job-manager-jobs tr,
.page-id-245575 .job-manager-jobs td,
.page-id-245575 .job-manager-jobs th {
	font-size: 14px !important;
	line-height: 1.4 !important;
}

/* Column headings */
.page-id-245575 .job-manager-jobs th {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Job title link */
.page-id-245575 .job-manager-jobs td.job_title a,
.page-id-245575 .job-manager-jobs td.job_title strong,
.page-id-245575 .job-manager-jobs td:first-child a {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

/* Secondary text under title, dates, views, impressions */
.page-id-245575 .job-manager-jobs small,
.page-id-245575 .job-manager-jobs .job-dashboard-job_type,
.page-id-245575 .job-manager-jobs .dashboard-job-expiry,
.page-id-245575 .job-manager-jobs .dashboard-job-status,
.page-id-245575 .job-manager-jobs td .meta,
.page-id-245575 .job-manager-jobs td .listing-meta {
	font-size: 12px !important;
	line-height: 1.4 !important;
}

/* Table cell spacing */
.page-id-245575 .job-manager-jobs td,
.page-id-245575 .job-manager-jobs th {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	vertical-align: top;
}

/* Action buttons inside listings */
.page-id-245575 .job-manager-jobs .button,
.page-id-245575 .job-manager-jobs a.button,
.page-id-245575 .job-manager-jobs input.button {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	padding: 6px 10px !important;
}

/* Search field readability */
.page-id-245575 .job-manager-jobs input[type="search"],
.page-id-245575 .job-manager-jobs .search_jobs input,
.page-id-245575 .job-manager-jobs-wrapper input[type="search"] {
	font-size: 13px !important;
	line-height: 1.3 !important;
}


/**
 * HVACTA Careers - Single Column Layout for Job Listings
 *
 * Purpose: Adjusts the job listings page to display in a single column, with one job per row.
 *
 * Created: 2026-03-20
 * Updated: 2026-03-20
 */

/* =========================================================
   JOB LISTINGS PAGE - SINGLE COLUMN LAYOUT
   ========================================================= */

/* Ensure job listings container is properly spaced */
.page-id-245560 .job_listings {
    margin-top: 20px !important;
    padding: 20px !important;
    display: block !important;  /* Switch to block to force single column */
}

/* Each individual job listing now takes full width */
.page-id-245560 .job_listings li.job_listing {
    width: 100% !important;  /* Ensure full width for each job listing */
    margin-bottom: 20px !important;
    padding: 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    font-size: 16px !important;
    color: #333 !important;
}

/* Job title styling */
.page-id-245560 .job_listings li.job_listing h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #333 !important;
}

/* Company and location styling */
.page-id-245560 .job_listings li.job_listing .company,
.page-id-245560 .job_listings li.job_listing .location {
    font-size: 14px !important;
    color: #777 !important;
    margin-bottom: 8px !important;
}

/* Job type and date styling */
.page-id-245560 .job_listings li.job_listing .job-type,
.page-id-245560 .job_listings li.job_listing .date {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
}

/* =========================================================
   RESPONSIVE DESIGN (MOBILE AND TABLET)
   ========================================================= */

/* Adjust job listings for smaller screens (below 981px) */
@media (max-width: 981px) {
    .page-id-245560 .job_listings li.job_listing {
        width: 100% !important;  /* Full width on mobile/tablet */
        margin-bottom: 15px !important;
    }

    .page-id-245560 .job_filters {
        display: block !important;
    }
}


/**
 * HVACTA Careers - Remove Sidebar and Horizontal Line (Single Job Page)
 *
 * Purpose: Ensures sidebar and horizontal line are removed from the individual job listing pages,
 * leaving the content full-width.
 *
 * Created: 2026-03-20
 * Updated: 2026-03-20
 */

/* =========================================================
   REMOVE SIDEBAR AND SEPARATION LINE ON INDIVIDUAL JOB PAGES
   ========================================================= */

/* Hide Sidebar on Individual Job Pages */
.single-job_listing #sidebar {
    display: none !important;
}

/* Ensure content takes full width on Individual Job Pages */
.single-job_listing #left-area {
    width: 100% !important;  /* Full width for content */
    padding: 0 !important;
    float: none !important;
}

/* Remove background separation line on Individual Job Pages */
.single-job_listing #main-content .container:before {
    background: none !important;  /* No background line */
}

/* Optional: Make sure the page content looks centered and clean */
.single-job_listing .single_job_listing {
    margin: 0 auto !important;    /* Center content */
    padding: 20px !important;     /* Padding for separation */
    max-width: 100% !important;   /* Ensure no width constraints */
}




/*
   HVACTA Job Listing Content Box

   Purpose:
   - Improve readability (reduce eye strain)
   - Provide contrast against page background
   - Maintain centered layout

   Date: 2026-03-25
*/

body.single-job_listing .hvacta-job-content {
    max-width: 920px !important;
    margin: 40px auto !important;
    padding: 36px !important;
    background: #f4f4f4 !important; /* soft gray instead of white */
    box-sizing: border-box !important;
    border: 1px solid #d0d0d0 !important;
}

/*
   HVACTA Job Listing Content Styling

   Purpose:
   - Provide a clean, readable container for job listing content
   - Improve typography and section readability
   - Tighten paragraph spacing created by Divi defaults
   - Support properly formatted lists without over-controlling editor content

   Notes:
   - This styling is tied to the Divi Post Content module class:
     .hvacta-job-content
   - Content formatting such as bullets, bold text, and section structure
     should be handled in the job editor when needed

   Date: 2026-03-25
*/

body.single-job_listing .hvacta-job-content {
    max-width: 920px !important;
    margin: 40px auto !important;
    padding: 36px !important;
    background: #f4f4f4 !important;
    border: 1px solid #d0d0d0 !important;
    box-sizing: border-box !important;
}

/* General text */
body.single-job_listing .hvacta-job-content p,
body.single-job_listing .hvacta-job-content li {
    font-size: 19px !important;
    line-height: 1.5 !important;
    color: #111111 !important;
}

/* Paragraph spacing */
body.single-job_listing .hvacta-job-content p {
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
}

/* Headings and emphasized labels */
body.single-job_listing .hvacta-job-content strong,
body.single-job_listing .hvacta-job-content h1,
body.single-job_listing .hvacta-job-content h2,
body.single-job_listing .hvacta-job-content h3 {
    color: #111111 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.single-job_listing .hvacta-job-content h1,
body.single-job_listing .hvacta-job-content h2,
body.single-job_listing .hvacta-job-content h3 {
    font-size: 22px !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

/* Lists */
body.single-job_listing .hvacta-job-content ul,
body.single-job_listing .hvacta-job-content ol {
    margin: 0 0 18px 24px !important;
    padding: 0 !important;
}

body.single-job_listing .hvacta-job-content ul li,
body.single-job_listing .hvacta-job-content ol li {
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
}

/* Remove extra spacing if paragraphs exist inside list items */
body.single-job_listing .hvacta-job-content ul li p,
body.single-job_listing .hvacta-job-content ol li p {
    margin: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* Mobile */
@media (max-width: 767px) {
    body.single-job_listing .hvacta-job-content {
        margin: 20px auto !important;
        padding: 22px !important;
    }

    body.single-job_listing .hvacta-job-content p,
    body.single-job_listing .hvacta-job-content li {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    body.single-job_listing .hvacta-job-content h1,
    body.single-job_listing .hvacta-job-content h2,
    body.single-job_listing .hvacta-job-content h3 {
        font-size: 20px !important;
    }
}



/*
   HVACTA Job Listing Meta Header Refinement

   Purpose:
   - Improve visual hierarchy under job title
   - Subtle styling for company and location
   - Keep clean professional look

   Date: 2026-03-25
*/

body.single-job_listing .hvacta-job-meta {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    margin: 6px 0 18px 0 !important;
}

body.single-job_listing .hvacta-job-company-name {
    font-weight: 600 !important;
    color: #222222 !important;
}

body.single-job_listing .hvacta-job-meta-separator {
    margin: 0 6px;
    color: #999999;
}

body.single-job_listing .hvacta-job-location {
    color: #777777 !important;
}


/*
   HVACTA Job Listing Header with Logo

   Purpose:
   - Display company logo alongside company name and location
   - Keep layout compact and professional
   - Prevent oversized logos

   Date: 2026-03-25
*/

body.single-job_listing .hvacta-job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 20px 0;
}

body.single-job_listing .hvacta-job-logo img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

body.single-job_listing .hvacta-job-meta-text {
    display: flex;
    flex-direction: column;
}

body.single-job_listing .hvacta-job-company-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

body.single-job_listing .hvacta-job-location {
    font-size: 14px;
    color: #666;
}


/*
   HVACTA Job Search Field Height Fix

   Purpose:
   - Increase the visible height of the Keywords and Location fields
   - Override WP Job Manager / theme input styling more specifically
   - Improve usability on the HVAC Jobs listing page

   Date: 2026-03-26
*/

body .job_filters .search_jobs input[type="text"],
body .job_filters .search_jobs input[type="search"],
body .job_filters .search_jobs input.text,
body .job_filters .search_jobs select {
    min-height: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

body .job_filters .search_jobs input[type="text"]::placeholder,
body .job_filters .search_jobs input[type="search"]::placeholder {
    line-height: normal !important;
}


/* HVACTA Terms Checkbox Inline Fix */
/* Date: 2026-04-28
   Purpose: Force checkbox + agreement text onto one line */

.job-manager-form fieldset.fieldset-terms_agreement {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-manager-form fieldset.fieldset-terms_agreement label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.job-manager-form fieldset.fieldset-terms_agreement .description {
    margin: 0;
}

