/* ===== SYNEZ CAREERS — FRONTEND STYLES ===== */

.careers-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
    font-family: inherit;
}

/* Header */
.careers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.careers-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c1810;
    margin: 0;
}

.careers-header-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 25px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8b4f42;
    border-color: #8b4f42;
    color: #fff;
}

.filter-dropdown select {
    padding: 8px 14px;
    border-radius: 25px;
    border: 1.5px solid #ddd;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-jobs-msg {
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 16px;
    background: #fdf8f7;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

/* Job Card */
.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.job-card:hover {
    border-color: #8b4f42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 79, 66, 0.12);
}

.job-card-left {}

.job-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 4px;
}

.job-dept {
    font-size: 13px;
    color: #888;
}

.job-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.job-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-type { background: #fdf0ee; color: #8b4f42; }
.badge-mode { background: #e8f0fe; color: #1a56db; }

.job-location {
    font-size: 13px;
    color: #666;
}

/* ===== MODAL ===== */
.synez-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 5, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.synez-modal-overlay.active {
    display: flex;
}

.synez-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: synezModalIn 0.3s ease;
}

@keyframes synezModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.synez-modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    background: #f5f0ee;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    z-index: 10;
}

.synez-modal-close:hover { background: #8b4f42; color: #fff; }

.synez-modal-body {
    padding: 28px 32px 32px;
}

.synez-modal-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Modal Job Header */
.modal-job-header {
    margin-bottom: 24px;
}

.modal-job-header h3 {
    font-size: 24px;
    color: #2c1810;
    margin: 0 0 10px;
}

.modal-job-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-job-meta span {
    font-size: 13px;
    color: #666;
}

/* Modal Job Description */
.modal-job-description h4 {
    font-size: 15px;
    color: #2c1810;
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0ebe9;
}

.modal-job-description p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 12px;
}

.modal-job-description ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.modal-job-description ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* Application Form */
.synez-application-form {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid #f0ebe9;
}

.synez-application-form h4 {
    font-size: 18px;
    color: #2c1810;
    margin: 0 0 4px;
}

.synez-application-form > p {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px;
}

.synez-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 560px) {
    .synez-form-grid { grid-template-columns: 1fr; }
    .synez-modal-body { padding: 20px; }
    .careers-header { flex-direction: column; align-items: flex-start; }
}

.synez-application-form input,
.synez-application-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0d5d2;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    transition: border 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.synez-application-form input:focus,
.synez-application-form textarea:focus {
    border-color: #8b4f42;
    outline: none;
    background: #fff;
}

.synez-form-full { margin-bottom: 12px; }
.synez-form-full textarea { resize: vertical; min-height: 90px; }

/* File Upload */
.synez-file-upload-wrapper {
    position: relative;
}

.synez-file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.synez-file-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px dashed #c4a8a3;
    border-radius: 8px;
    background: #fdf8f7;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.synez-file-upload-btn:hover { border-color: #8b4f42; background: #fdf0ee; }

/* Submit Button */
.synez-submit-btn {
    width: 100%;
    padding: 13px;
    background: #8b4f42;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.synez-submit-btn:hover { background: #7a4438; }
.synez-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Success / Error */
.synez-form-msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.synez-form-msg.success { background: #e6f4ea; color: #2e7d32; border: 1px solid #a8d5b0; }
.synez-form-msg.error   { background: #fce8e6; color: #c62828; border: 1px solid #f5a8a3; }
