/**
    * Raktch Job Application Handler Public CSS
    * 
    * This file contains the public-facing styles for the Raktch Job Application Handler plugin.
    * It includes styles for job application forms, single job views, and job listing widgets.
    */

/* ================================================================== */
/* General Form & Layout Styles                                       */
/* ================================================================== */
#job-application-form .form-group {
    margin-bottom: 20px;
    clear: both;
}

#job-application-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

#job-application-form .required-asterisk {
    color: #c92f29;
}

.rjah-form-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

#job-application-form input[type="text"],
#job-application-form input[type="email"],
#job-application-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}


#job-application-form .nice-select {
    width: 100% !important;     
    float: none !important;     
    
    height: 50px;
    line-height: 48px;
    border-color: #ccc;
    text-align: center;
}


#job-application-form .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




.rjah-single-job-view .nice-select {
    width: 100% !important;    
    box-sizing: border-box;    
    display: block;
    float: none;
    height: 50px;
    border-radius: 5px;
    border-color: #ccc;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;     
}

.rjah-single-job-view .nice-select .current {
    display: block;            
    overflow: hidden;          
    text-overflow: ellipsis;    
}


.nice-select .nice-select-dropdown {
    width: 100% !important;
    box-sizing: border-box;
}

.nice-select .nice-select-dropdown .option:hover,
.nice-select .nice-select-dropdown .option.focus {
    background-color: #d9534f !important;
    color: #cbc8c8 !important;
}

.nice-select .nice-select-dropdown .option.selected {
    background-color: #c9302c !important;
    color: #000000 !important;
    font-weight: bold;
    width: 100%;
}

.rjah-file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    padding: 5px 5px;
    box-sizing: border-box;
}

.rjah-file-upload-wrapper .rjah-file-upload-button {
    background-color: #c32222;
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.rjah-file-upload-wrapper .rjah-file-name {
    margin-left: 10px;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: #090cab;
}

#job-application-form input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    /* margin-top: 15px; */
}


#job-application-form button[type="submit"] {
    background-color: #c9252c;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
}

@media (max-width: 1200px) {
    #job-application-form button[type="submit"] {
        width: 100%;
        font-size: 18px;
        padding: 7px 7px;
    }
}


@media (max-width: 1050px) {
    #job-application-form button[type="submit"] {
        width: 100%;
        font-size: 17px;
        padding: 6px 6px;
    }
}

@media (max-width: 850px) {
    #job-application-form button[type="submit"] {
        width: 100%;
        font-size: 18px;
        padding: 7px 7px;
    }
}

@media (max-width: 600px) {
    #job-application-form button[type="submit"] {
        width: 100%;
        font-size: 17px;
        padding: 6px 6px;
    }
}

@media (max-width: 375px) {
    #job-application-form button[type="submit"] {
        width: 100%;
        font-size: 16px;
        padding: 5px 5px;
    }
}

#job-application-form button[type="submit"]:hover {
    background-color: #e01212;
}

/* ================================================================== */
/* Styles for Single Job View Page                                  */
/* ================================================================== */
.rjah-single-job-view {
    max-width: 1400px;
    /* border: 1.5px solid #000000; */
    /* padding: 25px; */
    border-radius: 5px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 6px 24px rgba(50, 1, 1, 0.12);
    justify-content: center;
}



.rjah-single-job-column-1 {
    display: flex;          
    flex-direction: column; 
    
    /* These styles are from your existing code */
    border-radius: 5px 0px 0px 5px;
    background-color: #ffffff;
    color: rgb(38, 7, 8);
    padding: 25px 20px 35px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    /*border-right: 3px dashed #ffffff;*/
}

.rjah-single-job-column-2{
    padding: 25px 20px 35px 20px;
}

.rjah-single-job-column-2 > div{
    position: sticky;
    top: 100px;
}




.rjah-single-job-title {
    font-size: 30px;
    margin: 0 0 25px 0;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    font-weight: 700;
    hyphens:auto;
    word-break:break-all;
    /* font-family: ''; */
}

.rjah-single-job-location {
    font-size: 1.1em;
    margin-bottom: 25px;
    
    /* border-bottom: 2px solid #ffffff; */
}

.rjah-single-job-location strong {
    /* text-decoration: underline; */
    border-bottom: 1.5px solid #000000;
}

.rjah-single-job-title,
.rjah-single-job-location {
    flex-shrink: 0; 
}

.rjah-single-job-description {
    flex-grow: 1;
    overflow-y: auto;
    /* padding: 10px; */
    /* border-radius: 5px; */
    font-weight: 400;
}

.rjah-single-job-description strong {
    font-weight: 700;
    color: rgb(38, 7, 8);
    font-size: 1.1em;
    /* text-decoration: underline; */
    border-bottom: 1.5px solid #000000;
}

.rjah-single-job-description h1,
.rjah-single-job-description h2,
.rjah-single-job-description h3,
.rjah-single-job-description h4,
.rjah-single-job-description h5,
.rjah-single-job-description h6 {
    /* Force a single, consistent size. You can change this value. */
    font-size: 1.25em !important; 

    /* Make them all bold */
    font-weight: 700 !important;

    /* Ensure a consistent font and color */
    font-family: 'Arial', sans-serif;
    color: rgb(38, 7, 8);

    /* Add some consistent spacing */
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.rjah-single-job-description p {
    margin: 0;
}

/* .rjah-single-job-description p:first-child {
    text-indent: 40px;
} */

.rjah-apply-heading {
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 1.5px solid;
    font-size: 30px;
    font-weight: 700;
    color: rgb(38, 7, 8);
}

.rjah-single-job-department strong{
    border-bottom: 1.5px solid #000000;
}

/* ================================================================== */
/* Card Design for "Latest Jobs" Widget                               */
/* ================================================================== */
.rjah-job-widget-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    word-break: break-all;
    hyphens: auto;
    text-align:left;
}

.rjah-job-listing { 
    font-family: sans-serif;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.rjah-job-widget-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 07px 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #495057;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
    width: 100%;
    box-sizing: border-box;
    text-align:left;
}


.rjah-job-widget-item:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rjah-job-widget-item .job-widget-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.rjah-job-widget-item .job-widget-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.rjah-job-widget-item .job-widget-title {
    font-size: 1em;
    font-weight: 600;
}

/* ================================================================== */
/* Miscellaneous & Global Styles                                      */
/* ================================================================== */
#application-success-message {
    display: none; 
    color: #155724; 
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px; 
    margin-bottom: 20px;
    border-radius: 4px;
}

.datepicker .datepicker-cell.selected,
.datepicker .datepicker-cell.selected:hover {
    background-color: #d9534f !important;
    color: #fff !important;
    font-weight: bold;
}

.datepicker .datepicker-cell:not(.disabled):not(.selected):hover {
    background-color: #cb0808;
    color: #fff;
    font-weight: 600;
}

/* ================================================================== */
/* Responsive Design Media Queries                                    */
/* ================================================================== */
@media (max-width: 992px) {
    .rjah-single-job-view {
        /* Change the grid to a single column */
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rjah-single-job-column-1 {
        /* Remove the dividing border and padding on smaller screens */
        border-right: none;
        padding-right: 20px;
    }
}

@media (max-width: 375px) {
    .rjah-single-job-view {
        padding: 15px;
        margin: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .rjah-single-job-title {
        font-size: 30px;
    }

    .rjah-single-job-location {
        font-size: 1em;
    }

    .rjah-single-job-description {
        padding: 8px;
    }

    .rjah-single-job-column-1 {
        padding-right: 0;
        border-right: none;
        width: 100%;
    }

    .rjah-single-job-column-2 {
        width: 100%;
        /* display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; */
    }

    #job-application-form input[type="text"],
    #job-application-form input[type="email"],
    #job-application-form input[type="date"] {
            width: 100%;
    }

#job-application-form .form-group{
    width: 100%;
}
}