.graduate-jobs-page {
    min-height: 650px;
    padding: 17px 30px 70px;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}

.graduate-jobs-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}

.graduate-jobs-title-row h1 {
    margin: 0;
    color: #002d5b;
    font: 400 32px/1.3 Georgia, "Times New Roman", serif;
}

.job-offer-open {
    padding: 9px 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: #204778;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.graduate-jobs-page > p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.35;
}

.graduate-job-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 350px));
    gap: 18px;
    margin-top: 45px;
}

.graduate-job-card {
    position: relative;
    display: flex;
    min-height: 520px;
    padding: 18px;
    flex-direction: column;
    color: #000;
    background: #fff;
    border: 1px solid #d3deea;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.job-card-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.job-card-delete {
    display: grid;
    width: 29px;
    height: 29px;
    padding: 5px;
    place-items: center;
    color: #fff;
    background: #b4232f;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.job-card-delete:hover,
.job-card-delete:focus-visible {
    background: #861823;
    transform: scale(1.08);
}

.job-card-delete svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.job-card-delete-form + h2 {
    padding-right: 25px;
}

.graduate-job-card h2 {
    margin: 0 0 13px;
    color: #073a76;
    font-size: 15px;
    line-height: 1.25;
}

.graduate-job-card p {
    margin: 0 0 13px;
    font-size: 14px;
    line-height: 1.35;
}

.graduate-job-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 14px;
}

.graduate-job-card-actions a {
    padding: 12px 8px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: #214778;
}

.graduate-job-card-actions a.apply {
    background: #3ba547;
}

.graduate-job-card a {
    overflow-wrap: anywhere;
}

.graduate-job-contact {
    margin-bottom: 0 !important;
}

.graduate-jobs-empty {
    grid-column: 1 / -1;
    color: #555;
}

body.job-modal-open {
    overflow: hidden;
}

.job-modal {
    display: none;
    position: fixed;
    z-index: 12000;
    inset: 0;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.job-modal.is-open {
    display: flex;
}

.job-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.job-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    color: #000;
    background: #fff;
    border: 1px solid #cdd9e6;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    font-family: Arial, Helvetica, sans-serif;
}

.job-offer-dialog {
    max-width: 1200px;
    max-height: calc(100vh - 40px);
    padding: 10px 18px 8px;
    overflow-y: auto;
}

.job-modal-dialog > h2 {
    margin: 0 38px 4px;
    color: #073a76;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
}

.job-modal-close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 55px;
    padding: 0;
    color: #b21e35;
    font-size: 22px;
    font-weight: 900;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.job-modal-intro {
    max-width: 1100px;
    margin: 0 auto 8px;
    font-size: 13px;
    line-height: 1.25;
}

.job-offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 16px;
}

.job-offer-dialog label,
.job-schedule-builder legend {
    display: block;
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
}

.job-offer-dialog input:not([type="checkbox"]):not([type="file"]),
.job-offer-dialog select,
.job-offer-dialog textarea {
    width: 100%;
    min-width: 0;
    padding: 4px 7px;
    color: #222;
    font: 13px Arial, Helvetica, sans-serif;
    background: #e9e9e9;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    box-sizing: border-box;
}

.job-offer-dialog input:not([type="checkbox"]):not([type="file"]),
.job-offer-dialog select {
    height: 25px;
}

.job-offer-dialog textarea {
    display: block;
    height: 28px;
    min-height: 28px;
    margin-bottom: 6px;
    resize: vertical;
}

.job-other-position {
    display: none;
    margin-top: 4px;
}

.job-other-position.is-visible {
    display: block;
}

.job-schedule-builder {
    margin: 8px 0 5px;
    padding: 6px;
    border: 1px solid #d9dfe6;
}

.job-schedule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedule-toggle {
    padding: 4px 11px;
    color: #214778;
    background: #fff;
    border: 1px solid #214778;
    cursor: pointer;
}

.schedule-toggle + .schedule-toggle {
    margin-left: 5px;
}

.schedule-toggle.is-active {
    color: #fff;
    background: #214778;
}

.schedule-tool-panel {
    display: none;
    padding-top: 4px;
    border-top: 1px solid #ddd;
}

.schedule-tool-panel.is-visible {
    display: block;
}

.schedule-days {
    display: flex;
    gap: 7px;
    margin: 4px 0 6px;
    flex-wrap: wrap;
}

.schedule-days label {
    font-weight: 400;
}

.schedule-tool-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.job-flyer-upload {
    display: flex;
    min-height: 36px;
    padding: 5px;
    align-items: center;
    gap: 8px;
    border: 1px dashed #b9cce0;
}

.job-flyer-upload label {
    margin: 0;
}

.job-flyer-upload small {
    color: #555;
}

.job-continue-button {
    display: block;
    min-width: 228px;
    margin: 5px auto 0;
    padding: 10px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #3cab49;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.job-form-errors {
    margin: 7px 0;
    padding: 7px 10px;
    color: #851515;
    background: #fff0f0;
    border-left: 4px solid #b21e35;
}

.job-form-errors p {
    margin: 2px 0;
}

.job-terms-dialog {
    max-width: 1090px;
    padding: 14px 18px 8px;
    border-radius: 7px;
}

.job-terms-dialog .job-modal-close {
    right: 29px;
}

.job-terms-intro {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #444;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.job-terms-scroll {
    height: min(474px, calc(100vh - 250px));
    padding: 12px 16px;
    overflow-y: auto;
    border: 1px solid #d2dce7;
}

.job-terms-scroll h2 {
    margin: 2px 0 4px;
    color: #214778;
    text-align: center;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 400;
}

.job-terms-scroll h3 {
    margin: 11px 0 4px;
    color: #214778;
    font-size: 15px;
    font-weight: 400;
}

.job-terms-scroll p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
}

.job-terms-accept {
    display: block;
    margin: 12px 0;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    background: #fff9e3;
    border: 1px solid #e9d57e;
}

.job-terms-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.job-terms-actions button {
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    background: #777;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.job-terms-actions #job-final-submit {
    background: #3cab49;
}

.job-terms-actions #job-final-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.job-submitted-notice {
    display: none;
    position: fixed;
    z-index: 13000;
    top: 22px;
    left: 50%;
    width: min(700px, calc(100% - 32px));
    padding: 18px 24px;
    color: #286132;
    background: #fff;
    border-left: 6px solid #3cab49;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transform: translateX(-50%);
}

.job-submitted-notice.is-open {
    display: block;
}

.job-submitted-notice > strong {
    display: block;
    margin-bottom: 3px;
}

.job-submitted-notice p {
    margin: 0 0 16px;
    line-height: 1.4;
}

.job-submitted-notice p:last-child {
    margin-bottom: 0;
}

.job-submitted-notice > button {
    position: absolute;
    top: 15px;
    right: 28px;
    color: #b21e35;
    font-size: 20px;
    font-weight: 900;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.job-approval-page {
    width: calc(100% - 40px);
    max-width: 1050px;
    min-height: 360px;
    margin: 20px auto 60px;
    padding: 28px;
    color: #111;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 45, 91, 0.1);
    box-sizing: border-box;
}

.job-approval-page h1 {
    margin: 0 0 10px;
    color: #073a76;
    font: 400 32px Georgia, "Times New Roman", serif;
}

.job-approval-details {
    margin: 20px 0;
    border: 1px solid #d7e0e8;
}

.job-approval-details div {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-bottom: 1px solid #d7e0e8;
}

.job-approval-details div:last-child {
    border-bottom: 0;
}

.job-approval-details dt,
.job-approval-details dd {
    margin: 0;
    padding: 9px 11px;
}

.job-approval-details dt {
    font-weight: 700;
    background: #f1f5f9;
}

.job-approval-confirm {
    display: block;
    margin: 14px 0;
    font-weight: 700;
}

.job-approval-publish,
.job-approval-view {
    display: inline-block;
    padding: 12px 19px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: #3cab49;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .graduate-job-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .job-offer-grid,
    .schedule-tool-fields {
        grid-template-columns: 1fr;
    }
    .job-offer-dialog {
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 600px) {
    .graduate-jobs-page {
        padding: 15px 16px 50px;
    }
    .graduate-jobs-title-row {
        align-items: stretch;
        flex-direction: column;
    }
    .graduate-job-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }
    .job-modal {
        padding: 8px;
    }
    .job-offer-dialog,
    .job-terms-dialog {
        padding-right: 12px;
        padding-left: 12px;
    }
    .job-modal-close,
    .job-terms-dialog .job-modal-close {
        right: 12px;
    }
    .job-modal-dialog > h2 {
        margin-right: 25px;
        margin-left: 25px;
        font-size: 21px;
    }
    .job-terms-scroll {
        height: calc(100vh - 300px);
    }
    .job-terms-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .job-approval-details div {
        grid-template-columns: 1fr;
    }
}
