/* 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);
}

.dashboardlink {
    display: none !important;
}

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

.stageaid-jobs-form,
.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: 18px;
    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;
    gap: 10px;
}

.stageaid-jobs-form p {
    margin: 0;
}

.stageaid-jobs-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.93rem;
    color: var(--stageaid-text);
}

.stageaid-jobs-form input[type="text"],
.stageaid-jobs-form input[type="email"],
.stageaid-jobs-form input[type="url"],
.stageaid-jobs-form input[type="date"],
.stageaid-jobs-form input[type="file"],
.stageaid-jobs-form select,
.stageaid-jobs-form textarea {
    width: 100%;
    border: 1px solid var(--stageaid-border);
    border-radius: 10px;
    background: #fff;
    color: var(--stageaid-text);
    padding: 9px 11px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.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(4, 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: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: 0 0 0 3px rgba(15, 108, 189, 0.18);
}

.stageaid-jobs-form button,
.stageaid-jobs-dashboard .button,
.stageaid-jobs-checkout 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 {
    background: var(--stageaid-primary-hover);
    transform: translateY(-1px);
}

.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-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 14px;
    border-radius: 6px;
}

.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 14px;
    border-radius: 6px;
}

.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: #fff;
    border: 1px solid #d9e1ed;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.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: 1px solid #eef1f4;
}

.stageaid-jobs-dashboard__listing-table thead th {
    background: #f5f7fa;
    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: -44px 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 #c8ced8;
    border-radius: 8px;
    background: #e3e7ed;
    color: #2f3a4f;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

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

.stageaid-jobs-nav__link.is-active {
    background: #ffffff;
    border-color: #bfc6d1;
}

.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 {
        gap: 9px;
    }

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

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

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

    .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: #fff;
}

.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: 12px;
}

.stageaid-job-result {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 14px;
}

.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-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;
    }
}
