/* 
  Tomaselli Jobs Integration CSS 
  Reconstructs the Exact Design Specifications
*/

.tomaselli-jobs-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- List View (Dark Mode) --- */
.dark-mode {
    background-color: #111111;
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
}

.tj-flex-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.tj-sidebar {
    width: 250px;
    flex-shrink: 0;
}

#tj-company-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tj-company-item {
    padding: 12px 0 12px 30px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #555555;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 8px;
    display: block; /* changed from flex so text and after-element flow naturally */
}

.tj-company-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tj-company-item.active {
    color: #ffffff;
}
.tj-company-item.active::before {
    background-color: #209008;
}
.tj-company-item.active::after {
    content: '→';
    margin-left: 12px;
    font-size: 22px;
    font-weight: 400;
    vertical-align: middle;
}

.tj-company-item:hover {
    color: #dddddd;
}

.tj-main-table {
    flex-grow: 1;
    overflow-x: auto;
}

.tj-table {
    width: 100%;
    border-collapse: collapse;
    color: #cccccc;
    font-size: 14px;
}

.tj-th-green {
    background-color: #209008;
    color: #ffffff;
    text-transform: uppercase;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.tj-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #222222;
    border-right: 1px solid #222222;
    vertical-align: middle;
}

.tj-table tr:hover td {
    background-color: #1a1a1a;
}

.tj-job-title-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.tj-job-title-link:hover {
    color: #209008;
    text-decoration: underline;
}

.tj-pdf-table-link {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid #444;
}

.tj-pdf-table-link:hover {
    background: #209008;
    border-color: #209008;
    color: #ffffff;
    text-decoration: none;
}

.tj-detail-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
.tj-detail-link:hover {
    text-decoration: underline;
}

/* --- Single View --- */
.tomaselli-single-container {
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    padding-bottom: 50px;
}

.tj-hero-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    margin-bottom: 40px;
}

.tj-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('https://via.placeholder.com/1200x400/00a651/fff?text=Tomaselli+Jobs');
}

.tj-slider-arrows {
    position: absolute;
    bottom: 20px;
    left: 40%; /* roughly matching screenshot */
    display: flex;
    gap: 2px;
}

.tj-arrow-btn {
    background: #209008;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}
.tj-arrow-btn:hover { background: #1a7306; }

.tj-split-layout {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tj-left-column {
    flex: 2;
}

.tj-right-column {
    flex: 1;
}

.tj-back-btn {
    display: table; /* forces it to a block without full width */
    clear: both;
    color: #209008;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 15px;
    transition: transform 0.2s;
}

.tj-back-btn:hover {
    transform: translateX(-5px);
}

.tj-job-header {
    margin-bottom: 30px;
    display: block;
    clear: both;
}

.sj-job-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111111;
    position: relative;
    padding-bottom: 12px;
    display: block;
}

.sj-job-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background-color: #209008;
    z-index: 1;
}

.sj-job-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 300px;
    max-width: 100vw;
    height: 1px;
    background-color: #dcdcdc;
}

.sj-intro-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #444;
}

.sj-section-headline {
    font-size: 30px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #111111;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.sj-section-headline::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #209008;
    z-index: 1;
}

.sj-section-headline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 250px;
    max-width: 100vw;
    height: 1px;
    background-color: #dcdcdc;
}

.sj-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.sj-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #111;
    font-size: 15px;
}

.tj-list-square {
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: #209008;
}

/* Bottom Full Width Area */
.tj-bottom-row {
    display: flex;
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 20px;
    gap: 0;
    align-items: stretch;
    min-height: 220px;
}

.tj-bottom-title-area {
    flex: 1.2;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 40px 50px;
    display: flex;
    align-items: center;
}

.sj-title-huge {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin: 0;
}

.tj-action-blocks {
    flex: 1;
    display: flex;
    height: auto;
}

.tj-block-dark {
    background: #111111;
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
    text-decoration: none;
    justify-content: flex-start;
}

.tj-block-green {
    background: #209008;
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
    text-decoration: none;
    justify-content: flex-start;
}

.tj-block-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tj-block-icon-svg {
    width: 28px;
    height: 28px;
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* Sidebar Boxes */
.tj-sidebar-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tj-docs-box {
    border: none;
}

.tj-box-header {
    background-color: #209008;
    font-size: 23px;
    color: #fff;
    line-height: 1.2;
    padding: 19px 20px 22px 27px;
    margin-bottom: 14px;
    clip-path: polygon(96% 0, 100% 22%, 100% 100%, 0 100%, 0 0);
    font-weight: 700;
    
    /* Pulling it out of the padded container to sit flush */
    margin-top: -25px;
    margin-left: -25px;
    margin-right: -25px;
}

.tj-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 10px;
}

.tj-benefit-item {
    text-align: center;
}

.tj-benefit-icon-ph {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #209008;
    font-weight: bold;
}

.tj-benefit-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.tj-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tj-related-list li {
    border-bottom: 1px solid #f0f0f0;
}

.tj-related-list li a {
    display: block;
    padding: 15px 20px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.tj-related-list li a:hover {
    background: #f9f9f9;
    color: #209008;
}

.tj-doc-p {
    font-size: 13px;
    color: #666;
    margin: 15px 0;
}

.tj-doc-button {
    display: block;
    background: #111;
    color: white;
    padding: 15px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tj-doc-button:hover { background: #333; }

/* Responsive */
@media(max-width: 768px) {
    .tj-bottom-row { flex-direction: column; }
    .tj-bottom-title-area { border-right: 1px solid #e0e0e0; }
    .tj-split-layout { flex-direction: column; }
    .tj-action-blocks { flex-direction: column; height: auto; }
    .tj-block-dark, .tj-block-green { min-height: 100px; }
    .tj-flex-layout { flex-direction: column; }
    .tj-sidebar { width: 100%; margin-bottom: 30px; }
    
    .tj-table, .tj-table tbody, .tj-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .tj-table thead {
        display: none; /* Hide standard headers on mobile */
    }
    .tj-table tr {
        margin-bottom: 15px;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 6px;
    }
    .tj-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px;
        border: none !important;
        text-align: left;
    }
    .tj-table td:nth-child(1) {
        font-size: 16px;
        font-weight: bold;
        padding-bottom: 5px;
    }
    .tj-table td:nth-child(2),
    .tj-table td:nth-child(3) {
        display: inline-block;
        width: auto;
        padding-top: 5px;
        padding-bottom: 15px;
    }
}

/* Modal Styles */
.tj-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tj-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.tj-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #777;
}

.tj-modal-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.tj-form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tj-form-group > input,
.tj-form-group > textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}

.tj-file-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}

.tj-btn-submit {
    display: block;
    width: 100%;
    background: #209008;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.tj-btn-submit:hover {
    background: #1a7306;
}

.tj-btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .tj-form-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Unsolicited Application Form */
.tj-unsolicited-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.tj-u-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #111;
    letter-spacing: -0.5px;
}

.tj-u-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

#tj-unsolicited-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tj-u-row {
    display: flex;
    gap: 40px;
}

.tj-u-field {
    flex: 1;
}

.tj-u-field-full {
    width: 100%;
}

.tj-u-field input[type="text"],
.tj-u-field input[type="email"],
.tj-u-field textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    background: transparent;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
}

.tj-u-field input::placeholder,
.tj-u-field textarea::placeholder {
    color: #888;
}

.tj-u-field input:focus,
.tj-u-field textarea:focus {
    border-bottom: 2px solid #209008;
}

.tj-u-file-drop {
    width: 100%;
    border: 2px dashed #209008;
    background-color: #f7fcf9;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.tj-u-file-label {
    color: #209008;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tj-u-file-drop input[type="file"] {
    font-size: 15px;
}

.tj-u-checkbox {
    margin-top: 10px;
}

.tj-u-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.tj-u-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #209008;
}

.tj-u-checkbox a {
    color: #666;
    text-decoration: underline;
}

.tj-u-submit-btn {
    background-color: #209008;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0);
    transition: background 0.3s;
    margin-top: 10px;
    position: relative;
}

.tj-u-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-top: 15px solid transparent;
    border-right: 15px solid #fff; /* to create the angled cut effect on top right */
}

/* Looking at the image, the top right corner is cut. */
.tj-u-submit-btn {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.tj-u-submit-btn::after {
    display: none;
}

.tj-u-submit-btn:hover {
    background-color: #1a7306;
}

.tj-u-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .tj-u-row {
        flex-direction: column;
        gap: 30px;
    }
}
