/* Stageaid Jobs - global frontend/admin styles */

:root {
    --stageaid-bg: #f5f7fb;
    --stageaid-surface: #ffffff;
    --stageaid-text: #1a2433;
    --stageaid-muted: #5a6b82;
    --stageaid-border: #d9e1ed;
    --stageaid-primary: #8d0216;
    --stageaid-primary-hover: #6b0110;
    --stageaid-success-bg: #e9f8ef;
    --stageaid-success-text: #1f6b3a;
    --stageaid-error-bg: #fdecec;
    --stageaid-error-text: #8a2020;
    --stageaid-shadow: 0 10px 28px rgba(9, 30, 66, 0.08);
}
.stageaid-jobs-form button {background:#b8b8b8!important;}

.dashboardlink {
    display: none !important;
}

body.stageaid-customer-user .dashboardlink {
    display: initial !important;
}

.stageaid-jobs-form {
    background: var(--stageaid-surface);
    border: 1px solid var(--stageaid-border);
    border-radius: 50%;
    box-shadow: var(--stageaid-shadow);
    padding: 18px;
    margin: 20px 0;
    color: var(--stageaid-text);
}


.stageaid-jobs-dashboard,
.stageaid-jobs-checkout {
    background: var(--stageaid-surface);
    border: 1px solid var(--stageaid-border);
    border-radius: 14px;
    box-shadow: var(--stageaid-shadow);
    padding: 0;
    margin: 20px 0;
    color: var(--stageaid-text);
}

.stageaid-jobs-back {
    margin: 10px 0;
}

.stageaid-jobs-back--top {
    margin-top: 0;
}

.stageaid-jobs-back--bottom {
    margin-bottom: 0;
}

.login .stageaid-jobs-back {
    text-align: center;
}

.stageaid-jobs-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
    align-items: start;
}

.stageaid-jobs-form > p,
.stageaid-jobs-form > fieldset {
    margin: 0;
    min-width: 0;
}

.stageaid-jobs-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.86rem;
    color: #727f93;
}

label[for="company_name"]::after,
label[for="company_email"]::after,
label[for="company_phone"]::after,
label[for="company_street"]::after,
label[for="company_zip"]::after,
label[for="company_city"]::after,
label[for="company_website"]::after,
label[for="company_logo_file"]::after,
label[for="company_cover_image_file"]::after {
    content: " *";
    color: #b42318;
    font-weight: 800;
    font-size: 1.18em;
}

.stageaid-jobs-form input[type="text"],
.stageaid-jobs-form input[type="email"],
.stageaid-jobs-form input[type="password"],
.stageaid-jobs-form input[type="url"],
.stageaid-jobs-form input[type="tel"],
.stageaid-jobs-form input[type="number"],
.stageaid-jobs-form input[type="date"],
.stageaid-jobs-form select,
.stageaid-jobs-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #cdd4df;
    border-radius: 0;
    background: #eef1f4;
    color: var(--stageaid-text);
   padding: 10px 15px 3px 15px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.stageaid-jobs-form input::placeholder,
.stageaid-jobs-form textarea::placeholder {
    color: #a0a9b8;
}

.stageaid-jobs-form input[type="file"] {
    width: 100%;
    border: 1px solid var(--stageaid-border);
    border-radius: 10px;
    background: #f9fbff;
    color: var(--stageaid-text);
    padding: 9px 11px;
    line-height: 1.4;
    box-sizing: border-box;
}

.stageaid-jobs-form textarea {
    min-height: 150px;
    resize: vertical;
}

.stageaid-jobs-form #company_short_info {
    min-height: 0;
}

.stageaid-jobs-form .wp-editor-wrap {
    width: 100%;
}

.stageaid-jobs-form .wp-editor-wrap .wp-editor-tabs .wp-switch-editor {
    background: #eceff3;
    border: 1px solid #d3d8e0;
    color: #2f3a4f;
}

.stageaid-jobs-form .wp-editor-wrap.tmce-active .wp-editor-tabs .switch-tmce,
.stageaid-jobs-form .wp-editor-wrap.html-active .wp-editor-tabs .switch-html {
    background: var(--stageaid-primary);
    border-color: var(--stageaid-primary);
    color: #ffffff;
}

.stageaid-jobs-form .wp-editor-container {
    border: 1px solid #d9e1ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.mce-toolbar .mce-ico {
  color: #ffffff !important;
}

.stageaid-jobs-form .mce-toolbar-grp,
.stageaid-jobs-form .quicktags-toolbar {
    border-bottom: 1px solid #e1e6ee;
}

.stageaid-jobs-form .wp-editor-area {
    min-height: 10em;
}

.stageaid-jobs-form .mce-edit-area iframe {
    min-height: 10em !important;
}

.stageaid-jobs-form input.stageaid-readonly-coordinate {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.88);
    color: #334155;
    cursor: not-allowed;
    width: 150px;
    min-width: 150px;
    padding: 7px 10px 4px;
}

.stageaid-jobs-form input.stageaid-geo-invalid {
    background: rgba(211, 47, 47, 0.10);
}

.stageaid-jobs-form .stageaid-form-grid__full,
.stageaid-jobs-form .stageaid-jobs-form__actions,
.stageaid-jobs-form .stageaid-jobs-taxonomy,
.stageaid-jobs-form .stageaid-package-grid,
.stageaid-jobs-form .stageaid-jobs-notice,
.stageaid-jobs-form .stageaid-jobs-error {
    grid-column: 1 / -1;
}

.stageaid-company-short-info-field > label {
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #5f6f86;
}

.stageaid-company-section-title {
    height: 50px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #d7deea;
    color: #5f6f86;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.stageaid-job-section-title {
    height: 50px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #d7deea;
    color: #5f6f86;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.stageaid-job-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.08fr);
    gap: 18px 24px;
    align-items: start;
}

.stageaid-job-top-grid__left,
.stageaid-job-top-grid__right {
    display: grid;
    gap: 14px;
}

.stageaid-job-top-grid__left > p,
.stageaid-job-top-grid__right > p {
    margin: 0;
}

.stageaid-job-location-map {
    min-height: 170px;
    border-radius: 8px;
    overflow: hidden;
}

.stageaid-job-tags-extra--compact {
    max-width: 360px;
}

.stageaid-job-publish-group {
    display: grid;
    gap: 8px;
}

.stageaid-job-publish-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--stageaid-text);
}

.stageaid-job-publish-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1f7a1f;
}

.stageaid-job-publish-group small {
    color: var(--stageaid-muted);
}

.stageaid-job-media-box {
    margin-top: 0;
}

.stageaid-job-form-actions {
    display: flex;
    justify-content: flex-end;
}

.stageaid-job-form-actions button[type="submit"] {
    min-width: 180px;
}

.stageaid-company-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 14px 24px;
    align-items: start;
}

.stageaid-company-location-grid__main,
.stageaid-company-location-grid__coords {
    display: grid;
    gap: 12px;
}

.stageaid-company-location-grid__coords {
    position: relative;
    padding: 14px;
    border-radius: 12px;
    min-height: 240px;
    background: linear-gradient(180deg, #eef2f7 0%, #dde5ee 100%);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.stageaid-company-location-grid__coords--has-map::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stageaid-company-location-grid__coords--has-map::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #c81e1e;
    border: 3px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    z-index: 3;
    pointer-events: none;
}

.stageaid-company-location-grid__coords > * {
    position: relative;
    z-index: 1;
}

.stageaid-company-location-grid__coordinate-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.stageaid-company-location-grid__coordinate-row > p {
    flex: 0 0 auto;
    margin: 0;
}

.stageaid-company-location-grid__main > p,
.stageaid-company-location-grid__coords > p {
    margin: 0;
}

.stageaid-company-location-grid__hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    text-align: center;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 700;
    z-index: 9999;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.stageaid-geo-field-error {
    display: block;
    margin-top: 4px;
    color: #8a2020;
    font-size: 0.84rem;
    font-weight: 600;
}

.stageaid-job-salary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stageaid-job-salary-row > p {
    margin: 0;
}

.stageaid-job-media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 12px 18px;
    align-items: start;
}

.stageaid-job-media-row > p,
.stageaid-job-media-row__side > p {
    margin: 0;
}

.stageaid-job-media-row__side {
    display: grid;
    gap: 12px;
}

.stageaid-company-upload-box {
    border: 1px solid #d9e1ed;
    border-radius: 10px;
    background: #f1f3f6;
    padding: 12px;
}

.stageaid-company-upload-box__layout {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.stageaid-company-upload-box__content > p {
    margin: 0 0 10px;
}

.stageaid-company-upload-box__content > p:last-child {
    margin-bottom: 0;
}

.stageaid-company-upload-preview {
    min-height: 96px;
    border-radius: 10px;
    background: #dde4ec;
    border: 1px solid #c8d2de;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.stageaid-company-upload-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.stageaid-company-upload-preview--logo {
    width: 120px;
    height: 120px;
}

.stageaid-company-upload-preview--logo img {
    object-fit: contain;
    background: #fff;
}

.stageaid-company-upload-preview--cover {
    width: 120px;
    height: 80px;
}

.stageaid-company-upload-preview__placeholder {
    color: #526071;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
}

.stageaid-company-upload-box--logo {
    margin-top: 50px;
}

.stageaid-company-upload-box--cover {
    margin-top: 20px;
}

.stageaid-company-upload-box > p {
    margin: 0 0 10px;
}

.stageaid-company-upload-box > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .stageaid-jobs-form--listing {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stageaid-company-upload-box__layout {
        grid-template-columns: 1fr;
    }

    .stageaid-company-upload-preview--logo,
    .stageaid-company-upload-preview--cover {
        width: 100%;
        max-width: 220px;
    }

    .stageaid-company-location-grid__coordinate-row {
        flex-wrap: wrap;
    }

    .stageaid-job-salary-row {
        grid-template-columns: 1fr;
    }

    .stageaid-job-content-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stageaid-job-media-row {
        grid-template-columns: 1fr;
    }

    .stageaid-job-top-grid {
        grid-template-columns: 1fr;
    }

    .stageaid-job-form-actions {
        justify-content: stretch;
    }

    .stageaid-job-form-actions button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}

.stageaid-jobs-form h2,
.stageaid-jobs-form h3,
.stageaid-jobs-checkout h2,
.stageaid-jobs-checkout h3 {
    grid-column: 1 / -1;
    margin: 4px 0 8px;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #202938;
}

.stageaid-jobs-form h2,
.stageaid-jobs-checkout h2 {
    font-size: clamp(1.18rem, 1.7vw, 1.38rem);
    font-weight: 700;
}

.stageaid-jobs-form h3,
.stageaid-jobs-checkout h3 {
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    font-weight: 700;
}

.stageaid-jobs-form small {
    display: block;
    margin-top: 5px;
    color: var(--stageaid-muted);
    font-size: 0.82rem;
}

.stageaid-jobs-form input[type="checkbox"] {
    accent-color: var(--stageaid-primary);
}

.stageaid-package-grid {
    border: 1px solid var(--stageaid-border);
    border-radius: 12px;
    margin: 4px 0 0;
    padding: 12px;
    background: #f9fbff;
}

.stageaid-package-grid legend {
    font-weight: 700;
    padding: 0 6px;
}

.stageaid-package-grid__items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.stageaid-package-tile {
    display: block;
    border: 1px solid var(--stageaid-border);
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.stageaid-package-tile input[type="radio"] {
    margin: 0 0 8px;
}

.stageaid-package-tile__title {
    display: block;
    font-weight: 700;
    color: var(--stageaid-text);
    margin-bottom: 2px;
}

.stageaid-package-tile__count {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--stageaid-text);
}

.stageaid-package-tile__meta {
    display: block;
    margin-top: 4px;
    font-size: 0.83rem;
    color: var(--stageaid-muted);
}

.stageaid-package-tile__cta {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--stageaid-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stageaid-package-tile--free {
    border-color: #c7d7ee;
    background: #f5f9ff;
}

.stageaid-package-tile--placeholder {
    pointer-events: none;
    cursor: default;
    background: transparent;
    border: 1px dashed #d8dfeb;
    min-height: 132px;
}

.stageaid-package-tile:has(input[type="radio"]:checked) {
    border-color: var(--stageaid-primary);
    box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.16);
    transform: translateY(-1px);
}

.stageaid-jobs-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.stageaid-jobs-form input:focus,
.stageaid-jobs-form select:focus,
.stageaid-jobs-form textarea:focus {
    outline: none;
    border-color: var(--stageaid-primary);
    box-shadow: none;
}

.stageaid-jobs-form button,
.stageaid-jobs-dashboard .button,
.stageaid-jobs-checkout button,
.stageaid-jobs-invoice-box button {
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: var(--stageaid-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.stageaid-jobs-form button:hover,
.stageaid-jobs-dashboard .button:hover,
.stageaid-jobs-checkout button:hover,
.stageaid-jobs-invoice-box button:hover {
    background: var(--stageaid-primary-hover);
    /*transform: translateY(-1px);*/
}

.stageaid-jobs-form button[data-stageaid-suggestion] {
    color: var(--stageaid-text);
    font-weight: 500;
    transform: none;
}

.stageaid-jobs-form button[data-stageaid-suggestion]:hover {
    background: #eef3f8 !important;
    color: var(--stageaid-text);
    transform: none;
}

.stageaid-jobs-taxonomy {
    border: 1px solid var(--stageaid-border);
    border-radius: 10px;
    padding: 10px;
    margin: 0;
    background: #f9fbff;
}

.stageaid-jobs-taxonomy legend {
    font-weight: 700;
    padding: 0 4px;
}

.stageaid-job-description-field {
    margin-top: 2px;
}

.stageaid-job-content-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 14px;
}

.stageaid-job-content-split > p,
.stageaid-job-content-split > div {
    margin: 0;
}

.stageaid-job-content-split .stageaid-job-description-field,
.stageaid-job-content-split .stageaid-job-tags-block {
    margin-top: 0;
}

.stageaid-job-content-main {
    display: grid;
    gap: 18px;
}

.stageaid-job-media-stack {
    display: grid;
    gap: 12px;
}

.stageaid-job-media-stack__title {
    margin: 0;
    font-size: 1.05rem;
    color: #5f6f86;
    font-weight: 700;
}

.stageaid-job-media-stack > p {
    margin: 0;
}

.stageaid-job-content-main .stageaid-job-image-upload-box {
    margin: 0;
}

@media (max-width: 640px) {
    .stageaid-job-content-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.stageaid-job-map-view-field {
    margin-top: 0;
}

.stageaid-job-map-view-field > label {
    margin-bottom: 6px;
}

.stageaid-job-tags-block {
    margin-top: 30px;
}

.stageaid-job-tags-extra {
    margin-top: 0;
}

.stageaid-job-hours-field {
    margin-top: 30px;
}

.stageaid-job-hours-field input[type="text"] {
    max-width: 120px;
    min-width: 96px;
    text-align: center;
}

.stageaid-job-section-title--payment {
    margin-top: 26px;
}

.stageaid-job-image-upload-box {
    border: 1px solid #d9e1ed;
    border-radius: 10px;
    background: #f1f3f6;
    padding: 12px;
    margin: 30px 0;
}

.stageaid-job-image-upload-box > p {
    margin: 0 0 10px;
}

.stageaid-job-image-upload-box > p:last-child {
    margin-bottom: 0;
}

.stageaid-jobs-notice {
    background: var(--stageaid-success-bg);
    color: var(--stageaid-success-text);
    border-left: 4px solid var(--stageaid-success-text);
    padding: 12px;
    margin: 0 0 24px;
    border-radius: 6px;
    position: relative;
    z-index: 99999;
}

.stageaid-jobs-notice--warning {
    background: var(--stageaid-error-bg);
    color: var(--stageaid-error-text);
    border-left-color: var(--stageaid-error-text);
}

.stageaid-jobs-error {
    background: var(--stageaid-error-bg);
    color: var(--stageaid-error-text);
    border-left: 4px solid var(--stageaid-error-text);
    padding: 12px;
    margin: 0 0 24px;
    border-radius: 6px;
    position: relative;
    z-index: 99999;
}

.stageaid-jobs-notice + .stageaid-jobs-nav,
.stageaid-jobs-error + .stageaid-jobs-nav {
    margin-top: 10px;
}

.stageaid-jobs-dashboard ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.stageaid-jobs-dashboard li {
    margin: 4px 0;
    color: var(--stageaid-muted);
}

.stageaid-jobs-dashboard__header {
    position: relative;
    overflow: hidden;
    background: #eef1f4;
    padding: 24px 20px 20px;
    border-radius: 12px 12px 0 0;
}

.stageaid-jobs-dashboard__title {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.stageaid-jobs-subpage-header {
    position: relative;
    overflow: hidden;
    background: #eef1f4;
    padding: 18px 16px;
    border: 1px solid #d9e1ed;
    border-radius: 12px;
    margin: 0 0 12px;
}

.stageaid-jobs-subpage-header__title {
    margin: 0;
    font-size: 1.2rem;
}

.stageaid-jobs-subpage-header__company {
    margin: 6px 0 0;
    font-weight: 700;
    color: #2f3a4f;
}

.stageaid-company-carousel {
    margin: 20px 0;
}

.stageaid-company-carousel__viewport {
    overflow: hidden;
}

.stageaid-company-carousel__track {
    display: flex;
    gap: 16px;
    transition: transform 480ms ease;
    will-change: transform;
}

.stageaid-company-carousel__card {
    flex: 0 0 calc((100% - 32px) / 3);
    border: 1px solid #d9e1ed;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f1f3;
}

.stageaid-company-carousel__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stageaid-company-carousel__link:hover .stageaid-company-carousel__body h3 {
    text-decoration: underline;
}

.stageaid-company-carousel__cover {
    height: 170px;
    background: #d9dde3;
    background-size: cover;
    background-position: center;
}

.stageaid-company-carousel__body {
    padding: 14px 14px 16px;
    text-align: center;
}

.stageaid-company-carousel__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
        object-fit: contain;
    display: block;
    margin: -50px auto 10px;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stageaid-company-carousel__logo--fallback {
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2f3a4f;
    display: inline-flex;
}

.stageaid-company-carousel__body h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.stageaid-company-carousel__body p {
    margin: 0;
    color: #5a6b82;
}

@media (max-width: 1100px) {
    .stageaid-company-carousel__card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 760px) {
    .stageaid-company-carousel__card {
        flex-basis: 100%;
    }
}

.stageaid-latest-jobs {
    margin: 22px 0;
}

.stageaid-latest-jobs__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stageaid-latest-jobs__item {
    border: 1px solid #d9e1ed;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
}

.stageaid-latest-jobs__title {
    margin: 0 0 5px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.stageaid-latest-jobs__title a {
    color: var(--stageaid-text);
    text-decoration: none;
}

.stageaid-latest-jobs__title a:hover {
    color: var(--stageaid-primary);
    text-decoration: underline;
}

.stageaid-latest-jobs__meta {
    margin: 0 0 8px;
    color: #4b5b73;
    font-size: 0.92rem;
}

.stageaid-latest-jobs__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stageaid-latest-jobs__tag {
    display: inline-block;
    border: 1px solid #d7dee9;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.76rem;
    color: #5a6b82;
    background: #f7f9fc;
}

.stageaid-jobs-dashboard__meta {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 0.9rem;
}

.stageaid-jobs-dashboard__listings {
    margin-top: 0;
    padding: 20px;
    background: #eef1f4;
    border: 1px solid #d9e1ed;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.stageaid-jobs-dashboard__listings--company {
    background: #eef1f4;
}

.stageaid-jobs-dashboard__listings--company .stageaid-jobs-form--company {
    background: #ffffff;
    border-color: #c7ced9;
    box-shadow: none;
    margin: 8px 0 0;
}

.stageaid-jobs-dashboard__listings h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.stageaid-jobs-dashboard__listing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stageaid-jobs-dashboard__listing-table th,
.stageaid-jobs-dashboard__listing-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 2px solid #ffffff;
}

.stageaid-jobs-dashboard__listing-table thead th {
    background: #f5f7fadb;
    font-weight: 700;
    color: #2f3a4f;
}

.stageaid-jobs-dashboard__slot--free td {
    color: #9aa5b4;
    font-style: italic;
}

.stageaid-jobs-dashboard__clicks {
    color: #9aa5b4;
}

.stageaid-jobs-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef1f4;
    color: #5a6b82;
}

.stageaid-jobs-status--publish { background: #e9f8ef; color: #1f6b3a; }
.stageaid-jobs-status--draft   { background: #f5f0e8; color: #7a5a20; }
.stageaid-jobs-status--pending { background: #eaf0fb; color: #2a5a9e; }
.stageaid-jobs-status--future  { background: #f0eaf8; color: #6a3a9e; }

.stageaid-jobs-dashboard__company {
    margin: 0 0 8px;
    font-weight: 700;
    color: #2f3a4f;
}


.stageaid-jobs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d8dde6;
    border-radius: 12px;
    background: #f1f3f6;
}

.stageaid-jobs-nav--elevated {
    margin: -36px 0 14px;
    position: relative;
    z-index: 6;
    box-shadow: 0 8px 20px rgba(22, 30, 46, 0.08);
}

.stageaid-jobs-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d3d8e0;
    border-radius: 8px;
    background: #eceff3;
    color: #2f3a4f;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.stageaid-jobs-nav__link:hover {
    background: #e2e6ec;
}

.stageaid-jobs-nav__link.is-active {
    background: var(--stageaid-primary);
    border-color: var(--stageaid-primary);
    color: #ffffff;
}

.stageaid-listing-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 24px;
}

.stageaid-listing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.stageaid-listing-modal__dialog {
    position: relative;
    width: min(1200px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #f7f9fc;
    border: 1px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 24px 44px rgba(13, 23, 38, 0.35);
    padding: 20px;
}

.stageaid-listing-modal__close {
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
    border: 1px solid #c3ccda;
    background: #ffffff;
    color: #243043;
    z-index: 3;
}

.stageaid-listing-modal__content {
    margin-top: 8px;
}

.stageaid-listing-close-confirm {
    position: sticky;
    bottom: 12px;
    margin-top: 12px;
    margin-left: auto;
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #d7deea;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(13, 23, 38, 0.18);
}

.stageaid-listing-close-confirm p {
    margin: 0 0 10px;
    font-weight: 600;
}

.stageaid-listing-close-confirm__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.stageaid-jobs-step--panel {
    margin-top: 0;
}

@media (max-width: 768px) {
    .stageaid-jobs-form,
    .stageaid-jobs-dashboard,
    .stageaid-jobs-checkout {
        padding: 14px;
        border-radius: 12px;
    }

    .stageaid-jobs-form {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .stageaid-company-location-grid {
        grid-template-columns: 1fr;
    }

    .stageaid-jobs-form h2,
    .stageaid-jobs-checkout h2 {
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .stageaid-jobs-form h3,
    .stageaid-jobs-checkout h3 {
        margin-top: 0;
        margin-bottom: 6px;
    }

    .stageaid-jobs-nav {
        gap: 8px;
        padding: 10px;
    }

    .stageaid-jobs-nav--elevated {
        margin-top: -20px;
    }

    .stageaid-jobs-nav__link {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }

    .stageaid-listing-modal {
        padding: 10px;
    }

    .stageaid-listing-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 14px;
    }

    .stageaid-listing-modal__close {
        width: 48px;
        height: 48px;
        font-size: 1.7rem;
    }

    .stageaid-package-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stageaid-jobs-frontend {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.stageaid-jobs-frontend__header {
    background: linear-gradient(135deg, var(--stageaid-primary) 0%, var(--stageaid-primary-hover) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
}

.stageaid-jobs-frontend__header h2 {
    margin: 0 0 6px;
    color: #fff;
}

.stageaid-jobs-frontend__header p {
    margin: 0;
    opacity: 0.95;
}

.stageaid-jobs-step {
    border: 1px solid var(--stageaid-border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.stageaid-jobs-step h3 {
    margin: 0 0 10px;
    color: var(--stageaid-text);
}

.stageaid-job-search {
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.stageaid-job-search__form {
    display: grid;
    gap: 14px;
}

.stageaid-job-search__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.stageaid-job-search__row--category {
    grid-template-columns: 1fr;
}

.stageaid-job-search__field--full {
    grid-column: 1 / -1;
}

.stageaid-job-search__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.stageaid-job-search__field input[type="text"],
.stageaid-job-search__field select {
    width: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f9fbff;
}

.stageaid-job-search__actions button {
    border: 0;
    border-radius: 6px;
    background: var(--stageaid-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
}

.stageaid-job-search__actions button:hover {
    background: var(--stageaid-primary-hover);
}

.stageaid-job-search__types {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stageaid-job-search__types label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stageaid-job-search__results {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.stageaid-job-result {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f2;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.stageaid-job-result__media {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f7fb 0%, #edf2f8 100%);
    border: 1px solid #e3eaf4;
    text-decoration: none;
    position: relative;
}

.stageaid-job-result__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #fff;
}

.stageaid-job-result__media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--stageaid-primary);
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%);
}

.stageaid-job-result__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.stageaid-job-result__body h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.25;
}

.stageaid-job-result__title-link {
    color: var(--stageaid-text);
    text-decoration: none;
}

.stageaid-job-result__title-link:hover {
    color: var(--stageaid-primary);
}

.stageaid-job-result__meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stageaid-job-result__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.stageaid-job-result__pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--stageaid-primary);
    color: #fff;
    font-size: 0.78rem;
    flex: 0 0 24px;
    line-height: 1;
}

.stageaid-job-result__excerpt {
    margin: 0;
    color: #4b5568;
    line-height: 1.7;
}

.stageaid-job-result__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 2px;
    font-weight: 700;
    color: var(--stageaid-primary);
    text-decoration: none;
}

.stageaid-job-result__link::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
}

.stageaid-job-result__link:hover {
    text-decoration: underline;
}

.stageaid-job-result h3 {
    margin: 0 0 8px;
}

.stageaid-job-result__meta {
    margin: 0 0 6px;
    color: #555;
    font-size: 0.95rem;
}

.stageaid-job-result__link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: var(--stageaid-primary);
    text-decoration: none;
}

.stageaid-job-result__link:hover {
    text-decoration: underline;
}

.stageaid-job-search__pagination {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stageaid-job-search__pagination a {
    min-width: 34px;
    height: 34px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c2c2c;
    background: #fff;
}

.stageaid-job-search__pagination a.is-active {
    border-color: var(--stageaid-primary);
    background: var(--stageaid-primary);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .stageaid-job-search__row {
        grid-template-columns: 1fr;
    }

    .stageaid-job-result {
        grid-template-columns: 1fr;
    }

    .stageaid-job-result__media {
        max-width: 220px;
        width: 100%;
        margin: 0 auto;
    }
}

.stageaid-job-detail {
    margin: 24px 0;
}

.stageaid-job-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.stageaid-job-detail__main {
    background: #fff;
    border: 1px solid var(--stageaid-border);
    border-radius: 12px;
    padding: 18px;
}

.stageaid-job-detail__company {
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
}

.stageaid-job-detail__company-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #f3f6fc;
    border: 1px solid #dce5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stageaid-job-detail__company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stageaid-job-detail__company-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--stageaid-primary);
}

.stageaid-job-detail__company-info h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.stageaid-job-detail__company-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #637188;
    font-size: 0.95rem;
}

.stageaid-job-detail__company-links a {
    color: var(--stageaid-primary);
    text-decoration: none;
}

.stageaid-job-detail__company-links a:hover {
    text-decoration: underline;
}

.stageaid-job-detail__content h1 {
    margin: 0 0 14px;
    font-size: 1.8rem;
    line-height: 1.2;
}

.stageaid-job-detail__content p {
    color: #4b5568;
    line-height: 1.7;
}

.stageaid-job-detail__content ul {
    margin: 0 0 18px 20px;
    color: #4b5568;
}

.stageaid-job-detail__share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stageaid-job-detail__share span {
    font-weight: 700;
    color: #253047;
}

.stageaid-job-detail__share a {
    padding: 8px 12px;
    border: 1px solid #ced8e8;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--stageaid-primary);
    background: #f7f9ff;
}

.stageaid-job-detail__share a:hover {
    background: #edf1ff;
}

.stageaid-job-detail__side {
    display: grid;
    gap: 14px;
}

.stageaid-job-detail__card {
    background: #fff;
    border: 1px solid var(--stageaid-border);
    border-radius: 12px;
    padding: 16px;
}

.stageaid-job-detail__card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.stageaid-job-detail__card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.stageaid-job-detail__card li {
    font-size: 0.95rem;
    color: #445066;
}

.stageaid-job-detail__apply {
    display: inline-flex;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    padding: 11px 14px;
    font-weight: 700;
    background: var(--stageaid-primary);
    color: #fff;
}

.stageaid-job-detail__apply:hover {
    background: var(--stageaid-primary-hover);
}

.stageaid-job-detail__map {
    background: #fff;
    border: 1px solid var(--stageaid-border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 230px;
}

.stageaid-job-detail__map iframe {
    width: 100%;
    min-height: 230px;
    border: 0;
}

@media (max-width: 980px) {
    .stageaid-job-detail__layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Package-Booking Popup ---------- */
.stageaid-booking-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.stageaid-booking-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.stageaid-booking-popup__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px 36px;
    max-width: 480px;
    width: calc(100% - 40px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.stageaid-booking-popup__title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: var(--stageaid-primary);
}

.stageaid-booking-popup__invoice-link {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--stageaid-primary);
    text-decoration: underline;
}

.stageaid-booking-popup__ok {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 28px;
    background: var(--stageaid-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.stageaid-booking-popup__ok:hover {
    opacity: 0.88;
}

/* ---------- Dashboard Package Booking Form ---------- */
.stageaid-package-booking__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.stageaid-package-booking__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #d8dfeb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.stageaid-package-booking__option:has(input:checked) {
    border-color: var(--stageaid-primary);
    background: #fdf6f7;
}

.stageaid-package-booking__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.stageaid-package-booking__price {
    font-weight: 600;
    color: var(--stageaid-primary);
    white-space: nowrap;
}

.stageaid-package-booking__submit {
    padding: 12px 32px;
    background: var(--stageaid-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.stageaid-package-booking__submit:hover {
    opacity: 0.88;
}
