/* PrepMed Jobs v2 – Frontend */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --pj-primary:    #1a7a70;
    --pj-mid:        #2a9d8f;
    --pj-accent:     #29b6d4;
    --pj-hero-bg:    #d6eeeb;
    --pj-about-bg:   #dff0ee;
    --pj-border:     #a8d8e8;
    --pj-white:      #ffffff;
    --pj-text:       #111827;
    --pj-muted:      #6b7c80;
    --pj-radius:     20px;
    --pj-radius-sm:  10px;
    --pj-shadow:     0 2px 20px rgba(26,122,112,.08);
    font-family: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════════════════════════════
   ALL JOBS LISTING PAGE
══════════════════════════════════════════════════════════════════ */
.pmjl-listing-wrap { max-width: 920px; margin: 0 auto; padding: 0 0 60px; }

.pmjl-listing-header { margin-bottom: 24px; }
.pmjl-listing-count {
    font-size: 32px; font-weight: 700; color: var(--pj-text);
    margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.2;
}
.pmjl-listing-tagline { font-size: 15px; color: var(--pj-muted); margin: 0; }

/* Search + Filter bar */
.pmjl-search-filter-bar { margin-bottom: 24px; }
.pmjl-search-wrap {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff;
    border: 1.5px solid var(--pj-border);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 1px 8px rgba(26,122,112,.06);
}
.pmjl-search-icon { color: var(--pj-muted); flex-shrink: 0; }
.pmjl-search-input {
    flex: 1; min-width: 160px;
    border: none; outline: none;
    font-family: inherit; font-size: 14.5px; color: var(--pj-text);
    background: transparent;
}
.pmjl-search-input::placeholder { color: #b0bec5; }
.pmjl-filter-select {
    border: 1.5px solid #e0ecf0; border-radius: 8px;
    padding: 7px 28px 7px 10px; font-family: inherit; font-size: 13.5px;
    color: var(--pj-text); background: #f7fbfc;
    cursor: pointer; outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c80' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color .2s;
}
.pmjl-filter-select:focus { border-color: var(--pj-accent); }
.pmjl-clear-btn {
    border: 1.5px solid #e0ecf0; border-radius: 8px;
    padding: 7px 12px; font-family: inherit; font-size: 13px;
    color: var(--pj-muted); background: #fff; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.pmjl-clear-btn:hover { border-color: var(--pj-accent); color: var(--pj-accent); }
.pmjl-results-count { font-size: 13px; color: var(--pj-muted); margin: 8px 0 0; }

/* Job row cards */
.pmjl-jobs-list { display: flex; flex-direction: column; gap: 16px; }

.pmjl-job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--pj-white);
    border: 1.5px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 30px 30px 30px 36px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, border-color .25s, transform .22s;
    box-shadow: var(--pj-shadow);
    position: relative;
    overflow: hidden;
}
.pmjl-job-row::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(180deg, var(--pj-accent) 0%, var(--pj-primary) 100%);
    border-radius: var(--pj-radius) 0 0 var(--pj-radius);
    transition: width .22s;
}
.pmjl-job-row:hover {
    border-color: var(--pj-accent);
    box-shadow: 0 8px 36px rgba(26,154,176,.16);
    transform: translateY(-3px);
    text-decoration: none; color: inherit;
}
.pmjl-job-row:hover::before { width: 4px; }

.pmjl-job-row-body { flex: 1; min-width: 0; }
.pmjl-job-row-title {
    font-size: 20px; font-weight: 700; color: var(--pj-text);
    margin: 0 0 10px; line-height: 1.3;
    transition: color .2s;
}
.pmjl-job-row:hover .pmjl-job-row-title { color: var(--pj-primary); }
.pmjl-job-row-loc { font-size: 14px; color: #444; margin: 0 0 5px; }
.pmjl-job-row-meta { font-size: 14px; color: var(--pj-muted); margin: 0; }
.pmjl-dot { font-size: 18px; color: #ccc; vertical-align: middle; line-height: 0; }

/* Arrow circle */
.pmjl-job-row-arrow {
    width: 54px; height: 54px; min-width: 54px;
    background: var(--pj-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(41,182,212,.35);
    transition: background .22s, transform .22s, box-shadow .22s;
}
.pmjl-job-row:hover .pmjl-job-row-arrow {
    background: var(--pj-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(26,122,112,.35);
}

/* No results */
.pmjl-no-results {
    text-align: center; padding: 48px 24px;
    color: var(--pj-muted); font-size: 15px;
    border: 1.5px dashed #d0e8ed; border-radius: var(--pj-radius);
    margin-top: 8px;
}
.pmjl-no-results svg { display: block; margin: 0 auto 14px; }
.pmjl-inline-link {
    background: none; border: none; color: var(--pj-accent);
    cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0;
}
.pmjl-no-jobs { text-align: center; padding: 48px; color: var(--pj-muted); }

/* ══════════════════════════════════════════════════════════════════
   SINGLE JOB PAGE
══════════════════════════════════════════════════════════════════ */
.pmjl-wrap { max-width: 860px; margin: 0 auto; padding: 0 0 60px; }

/* Hero */
.pmjl-hero-area {
    background: var(--pj-hero-bg);
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
}
.pmjl-hero-inner {
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pmjl-hero-title {
    font-size: 28px; font-weight: 700; color: var(--pj-text);
    margin: 0 0 14px; line-height: 1.2;
}
.pmjl-hero-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.pmjl-hero-meta-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: #333; font-weight: 500;
}
.pmjl-hero-meta-item svg { color: var(--pj-primary); }
.pmjl-btn-apply-hero {
    display: inline-block;
    background: var(--pj-primary);
    color: #fff;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(26,122,112,.3);
}
.pmjl-btn-apply-hero:hover { background: #155f57; transform: translateY(-1px); color: #fff; }

/* Info Badges */
.pmjl-badges-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pmjl-info-badge {
    background: #f7fbfc;
    border: 1.5px solid #d8ecf0;
    border-radius: var(--pj-radius-sm);
    padding: 14px 18px;
    flex: 1; min-width: 130px;
}
.pmjl-info-badge-wide { flex: 2; }
.pmjl-info-label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--pj-muted); text-transform: uppercase;
    letter-spacing: .07em; margin-bottom: 5px;
}
.pmjl-info-val { font-size: 14px; font-weight: 600; color: var(--pj-text); line-height: 1.4; }

/* Form Card */
.pmjl-form-card {
    background: var(--pj-white);
    border: 1.5px solid #dceef2;
    border-radius: 14px;
    padding: 28px 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--pj-shadow);
}

.pmjl-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pmjl-row-3 > .pmjl-field { flex: 1; min-width: 170px; }
.pmjl-row-salary > .pmjl-field:first-child { flex: 1; min-width: 190px; }
.pmjl-row-salary > .pmjl-field-check { flex: 1; min-width: 180px; }

.pmjl-inp {
    width: 100%; box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid #dce8ec;
    border-radius: 8px;
    font-family: inherit; font-size: 14px; color: var(--pj-text);
    background: #fff; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.pmjl-inp:focus {
    border-color: var(--pj-accent);
    box-shadow: 0 0 0 3px rgba(41,182,212,.12);
}
.pmjl-inp::placeholder { color: #b5c5ca; }

/* Phone field */
.pmjl-field-phone { display: flex; align-items: stretch; }
.pmjl-phone-flag {
    display: flex; align-items: center;
    padding: 0 10px;
    background: #f0f8fa;
    border: 1.5px solid #dce8ec;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px; white-space: nowrap;
    color: #555;
}
.pmjl-inp-phone { border-radius: 0 8px 8px 0; }

/* Checkboxes */
.pmjl-field-check { display: flex; align-items: center; }
.pmjl-chk-label {
    display: flex; align-items: flex-start; gap: 9px;
    cursor: pointer; user-select: none;
}
.pmjl-chk-label input[type=checkbox] { display: none; }
.pmjl-chkmark {
    width: 18px; height: 18px; min-width: 18px;
    border: 2px solid #c8dde4; border-radius: 4px;
    background: #fff; position: relative; margin-top: 1px;
    transition: all .15s;
}
.pmjl-chk-label input:checked ~ .pmjl-chkmark {
    background: var(--pj-accent); border-color: var(--pj-accent);
}
.pmjl-chk-label input:checked ~ .pmjl-chkmark::after {
    content: ''; position: absolute;
    left: 4px; top: 1px; width: 6px; height: 10px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg);
}
.pmjl-chk-text { font-size: 13px; color: var(--pj-text); line-height: 1.45; }

/* File upload */
.pmjl-field-upload { display: flex; align-items: center; gap: 12px; flex: 1; }
.pmjl-file-label { cursor: pointer; }
.pmjl-file-label input[type=file] { display: none; }
.pmjl-file-btn {
    display: inline-block;
    padding: 9px 16px;
    background: #f4f4f4;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px; color: #333;
    transition: all .15s;
}
.pmjl-file-label:hover .pmjl-file-btn { background: #e8e8e8; }
.pmjl-file-name-txt { font-size: 13px; color: var(--pj-muted); }

/* Submit */
.pmjl-submit-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, var(--pj-primary) 0%, var(--pj-mid) 100%);
    color: #fff; border: none; border-radius: 8px;
    font-family: inherit; font-size: 16px; font-weight: 700;
    cursor: pointer; margin-top: 10px;
    transition: all .2s;
    box-shadow: 0 4px 18px rgba(26,122,112,.28);
    letter-spacing: .01em;
}
.pmjl-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(26,122,112,.38); }
.pmjl-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Messages */
.pmjl-err-msg {
    background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c;
    padding: 10px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 10px;
}
.pmjl-success-msg {
    background: #f0fdf9; border: 1.5px solid #a7f3d0;
    border-radius: 10px; padding: 44px 24px; text-align: center; margin-bottom: 16px;
}
.pmjl-success-inner svg { display: block; margin: 0 auto 14px; }
.pmjl-success-inner h3 { color: var(--pj-primary); font-size: 22px; margin: 0 0 8px; }
.pmjl-success-inner p  { color: var(--pj-muted); margin: 0; font-size: 15px; }

/* ── Section headings (About / Email) ── */
.pmjl-about-wrap,
.pmjl-email-wrap { margin-top: 24px; }

.pmjl-section-heading {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.pmjl-section-icon {
    width: 38px; height: 38px; min-width: 38px;
    background: var(--pj-primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.pmjl-section-title {
    font-size: 20px; font-weight: 700; color: var(--pj-text); margin: 0;
}

/* About card */
.pmjl-about-card {
    background: var(--pj-about-bg);
    border-radius: 14px;
    padding: 28px 32px 32px;
}
.pmjl-about-content {
    color: #1a2a28; font-size: 14.5px; line-height: 1.82;
}
.pmjl-about-content p  { margin: 0 0 10px; }
.pmjl-about-content strong, .pmjl-about-content b { font-weight: 700; color: #111; }
.pmjl-about-content ul, .pmjl-about-content ol { margin: 6px 0 14px; padding-left: 22px; }
.pmjl-about-content li { margin-bottom: 6px; }
.pmjl-about-content h3, .pmjl-about-content h4 { font-size: 14.5px; font-weight: 700; color: #111; margin: 18px 0 6px; }

/* Email section */
.pmjl-contact-email { margin: 0 0 0 50px; font-size: 14.5px; }
.pmjl-contact-email a { color: var(--pj-primary); text-decoration: none; }
.pmjl-contact-email a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .pmjl-hero-inner { flex-direction: column; }
    .pmjl-hero-title { font-size: 22px; }
    .pmjl-row { flex-direction: column; }
    .pmjl-row-3 > .pmjl-field { min-width: 100%; }
    .pmjl-badges-row { flex-direction: column; }
    .pmjl-listing-count { font-size: 24px; }
    .pmjl-job-row { padding: 20px 20px; }
    .pmjl-job-row-title { font-size: 17px; }
    .pmjl-search-wrap { flex-direction: column; align-items: stretch; }
    .pmjl-filter-select { width: 100%; }
}

/* ── Full page template wrapper ── */
.pmjl-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.pmjl-page-wrap .pmjl-wrap {
    max-width: 100%;
    padding: 0;
}

/* ── Search bar (listing page) ── */
.pmjl-search-bar-wrap { margin-bottom: 24px; }
.pmjl-search-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff;
    border: 1.5px solid var(--pj-border, #a8d8e8);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 1px 8px rgba(26,122,112,.06);
}
.pmjl-search-field-wrap {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 180px;
}
.pmjl-search-svg { color: #9eb8be; flex-shrink: 0; }
.pmjl-search-input {
    flex: 1; border: none; outline: none;
    font-family: inherit; font-size: 14.5px; color: #111;
    background: transparent;
}
.pmjl-search-input::placeholder { color: #b5c5ca; }
.pmjl-filter-select {
    border: 1.5px solid #dde8ec; border-radius: 8px;
    padding: 7px 28px 7px 10px; font-family: inherit; font-size: 13.5px;
    color: #333; background: #f7fbfc; cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8884' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
    transition: border-color .2s;
}
.pmjl-filter-select:focus { border-color: var(--pj-accent, #29b6d4); }
.pmjl-clear-btn {
    border: 1.5px solid #e0ecf0; border-radius: 8px;
    padding: 7px 12px; font-family: inherit; font-size: 13px;
    color: #6b7c80; background: #fff; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.pmjl-clear-btn:hover { border-color: var(--pj-accent,#29b6d4); color: var(--pj-accent,#29b6d4); }
.pmjl-result-count { font-size: 13px; color: #6b8884; margin: 8px 0 0; }
.pmjl-meta-dot { font-size: 16px; color: #bbb; }

/* No results state */
.pmjl-no-results {
    text-align: center; padding: 48px 24px;
    border: 1.5px dashed #d0e8ed; border-radius: 20px;
    color: #6b8884; font-size: 15px;
}
.pmjl-no-results svg { display: block; margin: 0 auto 14px; }
.pmjl-link-btn {
    background: none; border: none; color: var(--pj-accent,#29b6d4);
    font-size: inherit; cursor: pointer; text-decoration: underline; padding: 0;
}
