/* JobWP job details. Scoped independently from the listing page. */
body.single-jobs {
    --jobwp-panel: #102345;
    --jobwp-field: #091a35;
    --jobwp-border: #415675;
    --jobwp-text: #f5f8ff;
    --jobwp-muted: #c0cde0;
    --jobwp-accent: #6fabff;
}

.single-jobs #smooth-content {
    padding-top: 180px;
}

.single-jobs #smooth-content .jobwp-single-body-container {
    width: calc(100% - 32px);
    max-width: 1150px;
    padding: 36px;
    margin: 0 auto;
    /* JobWP outputs an !important bottom margin in its settings CSS. */
    margin-bottom: 64px !important;
    border: 1px solid var(--jobwp-border);
    border-radius: var(--radius-base, 20px);
    background: var(--jobwp-panel);
    color: var(--jobwp-text);
    font-family: "Exo 2", sans-serif;
}

.single-jobs #smooth-content .circulr-details-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--jobwp-border);
    background: transparent;
}

.single-jobs #smooth-content .single-top-left {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.single-jobs #smooth-content .single-top-right {
    padding: 0;
}

.single-jobs #smooth-content .circulr-details-top .jobwp-job-title {
    width: 100%;
    margin: 0;
    color: var(--jobwp-text);
    font-family: "Magistral", sans-serif;
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.single-jobs #smooth-content .circulr-details-top :is(.jwb-single-comp-name, .jobwp-single-category) {
    width: 100%;
    color: var(--jobwp-muted);
    line-height: 1.6;
}

.single-jobs #smooth-content .jobwp-single-area .content-row {
    display: block;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--jobwp-border);
}

.single-jobs #smooth-content .jobwp-single-area .content-row :is(.left-cell, .right-cell) {
    float: none;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
}

.single-jobs #smooth-content .jobwp-single-area .left-cell h5.label {
    margin: 0 0 16px;
    color: var(--jobwp-accent);
    font-size: 18px;
    line-height: 1.4;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell.text,
.single-jobs #smooth-content .jobwp-single-area .right-cell.text :is(p, li, .custom-list.text) {
    color: var(--jobwp-muted);
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell > p {
    max-width: 80ch;
    margin: 0 0 16px;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell :is(h2, h3, h4) {
    margin: 28px 0 16px;
    color: var(--jobwp-text);
    font-size: 22px;
    line-height: 1.4;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell :is(ul, ol) {
    padding-left: 24px;
    margin: 16px 0 24px;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell li p {
    margin: 0;
}

.single-jobs #smooth-content .jobwp-single-area .right-cell a,
.single-jobs #smooth-content .circulr-details-bottom-email p.apply-to-email a {
    color: var(--jobwp-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-jobs #smooth-content .circulr-details-bottom-email {
    padding: 28px;
    border: 1px solid var(--jobwp-border);
    border-radius: 14px;
    background: var(--jobwp-field);
    line-height: 1.6;
}

.single-jobs #smooth-content .circulr-details-bottom-email h3.wpsd-read-before-apply {
    color: var(--jobwp-text);
    font-size: 26px;
    line-height: 1.4;
}

.single-jobs #smooth-content .circulr-details-bottom-email .wpsd-read-before-apply-border {
    width: 64px;
    margin: 12px auto;
    border-color: var(--jobwp-accent);
}

.single-jobs #smooth-content .circulr-details-bottom-email p.apply-to-email {
    max-width: 65ch;
    margin: 20px auto;
    color: var(--jobwp-muted);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.single-jobs #smooth-content .circulr-details-bottom-email .jobwp-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--jobwp-accent);
    border-radius: 10px;
    background: var(--jobwp-accent);
    color: #07172e;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.single-jobs #smooth-content .circulr-details-bottom-email .jobwp-primary-button:hover {
    background: #d9e8ff;
    border-color: #d9e8ff;
    color: #07172e;
}

.single-jobs #smooth-content .jobwp-single-body-container a:focus-visible {
    outline: 3px solid var(--jobwp-accent);
    outline-offset: 4px;
}

/* JobWP appends the application dialog outside #smooth-content. */
body.single-jobs #jobwp-apply-form-modal {
    width: calc(100% - 32px);
    padding: 28px;
    /* Override the plugin's fixed 650px height and inline corner radius. */
    height: fit-content !important;
    max-height: calc(100dvh - 40px);
    border: 1px solid var(--jobwp-border);
    border-radius: 20px !important;
    background: var(--jobwp-panel);
    color: var(--jobwp-text);
    box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
    overflow-y: auto;
    font-family: "Exo 2", sans-serif;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-apply-title {
    margin: 0 0 24px;
    padding: 0;
    color: var(--jobwp-text);
    font-family: "Magistral", sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.35;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row {
    padding: 0;
    margin: 0 0 20px;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row:last-child {
    margin-bottom: 0;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row label {
    color: var(--jobwp-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row span {
    color: var(--jobwp-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row :is(.required, .error-message),
body.single-jobs #jobwp-apply-form-modal .jobwp-application-message {
    color: #ffb4b4;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--jobwp-border);
    border-radius: 10px;
    background: var(--jobwp-field);
    color: var(--jobwp-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row textarea {
    min-height: 120px;
    resize: vertical;
}

body.single-jobs #jobwp-apply-form-modal .jobwp-field-row :is(input, textarea)::placeholder {
    color: var(--jobwp-muted);
    opacity: 1;
}

body.single-jobs #jobwp-apply-form-modal input[type="file"] {
    display: block;
    width: 100%;
    margin: 12px 0 8px;
    color: var(--jobwp-muted);
    font-family: inherit;
    font-size: 14px;
}

body.single-jobs #jobwp-apply-form-modal input[type="file"]::file-selector-button {
    min-height: 44px;
    margin-right: 12px;
    padding: 10px 16px;
    border: 1px solid var(--jobwp-border);
    border-radius: 10px;
    background: var(--jobwp-field);
    color: var(--jobwp-text);
    font-family: inherit;
    cursor: pointer;
}

body.single-jobs #jobwp-apply-form-modal #jobwp_apply_btn {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--jobwp-accent);
    border-radius: 10px;
    background: var(--jobwp-accent);
    color: #07172e;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

body.single-jobs #jobwp-apply-form-modal #jobwp_apply_btn:hover {
    border-color: #d9e8ff;
    background: #d9e8ff;
}

body.single-jobs #jobwp-apply-form-modal #jobwp_apply_btn:disabled {
    opacity: .65;
    cursor: wait;
}

body.single-jobs #jobwp-apply-form-modal :is(input, textarea, button, a):focus-visible {
    outline: 3px solid var(--jobwp-accent);
    outline-offset: 3px;
}

/* Keep the original CAPTCHA usable when its fixed width exceeds the screen. */
body.single-jobs #jobwp-apply-form-modal #jobwp-captcha-field {
    overflow-x: auto;
}

@media (max-width: 599px) {
    body.single-jobs #jobwp-apply-form-modal {
        width: calc(100% - 24px);
        padding: 20px;
        max-height: calc(100dvh - 24px);
    }

    .single-jobs #smooth-content {
        padding-top: 160px;
    }

    .single-jobs #smooth-content .jobwp-single-body-container {
        padding: 22px 20px;
    }

    .single-jobs #smooth-content .circulr-details-bottom-email {
        padding: 24px 16px;
    }

    .single-jobs #smooth-content .circulr-details-bottom-email .jobwp-primary-button {
        width: 100%;
    }
}
