:root {
    --homepage-side-gap: clamp(30px, calc((100vw - 1024px) * 0.25 + 30px), 200px);
}

.apprenticeships-full-width-image {
    width: 100%;
    min-height: 450px;
    margin-top: var(--jr-header-height);
    line-height: 0;
    position: relative;
    background-color: #101f3c;
    overflow: hidden;
}

.apprenticeships-full-width-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
}

.apprenticeships-full-width-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .45) 100%);
    z-index: 1;
}

.apprenticeships-full-width-image__content {
    position: absolute;
    left: var(--homepage-side-gap);
    bottom: 30px;
    color: #fff;
    max-width: 700px;
    line-height: normal;
}

.apprenticeships-full-width-image__content h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.apprenticeships-page-notice {
    background: #fff;
    padding: 20px 0 0;
}

.apprenticeships-page-notice__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 900px;
    margin: 0 auto;
}

.apprenticeships-intro {
    background: #fff;
    padding: 30px 0;
}

.apprenticeships-intro__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 900px;
    margin: 0 auto;
}

.apprenticeships-intro__heading {
    margin: 0 0 28px;
    color: #007161;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.apprenticeships-intro__text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
}

.apprenticeships-intro__text > :first-child {
    margin-top: 0;
}

.apprenticeships-intro__text > :last-child {
    margin-bottom: 0;
}

.apprenticeships-intro__text strong,
.apprenticeships-intro__text b {
    color: #1a1a1a;
    font-family: "brother-1816", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.apprenticeships-form-intro {
    background: #fff;
    padding: 0 0 60px;
}

.apprenticeships-form-intro__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 900px;
    margin: 0 auto;
}

.apprenticeships-form-intro__heading {
    margin: 0 0 28px;
    color: #007161;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.apprenticeships-form-intro__text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
}

.apprenticeships-form-intro__text > :first-child {
    margin-top: 0;
}

.apprenticeships-form-intro__text > :last-child {
    margin-bottom: 0;
}

.apprenticeships-form-intro__text strong,
.apprenticeships-form-intro__text b {
    color: #1a1a1a;
    font-family: "brother-1816", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.apprenticeships-apply-form {
    margin-top: 28px;
}

.apprenticeships-apply-form__row {
    margin-bottom: 18px;
}

.apprenticeships-apply-form__row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.apprenticeships-apply-form__label {
    display: block;
    margin: 0 0 8px;
    color: #6b6b6b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.apprenticeships-apply-form__input,
.apprenticeships-apply-form__textarea {
    width: 100%;
    border: 0;
    background-color: #efefef;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 14px;
    box-sizing: border-box;
}

.apprenticeships-apply-form__textarea {
    resize: vertical;
    min-height: 180px;
}

.apprenticeships-apply-form__areas {
    border: 0;
    margin: 0;
    padding: 0;
}

.apprenticeships-apply-form__areas .apprenticeships-apply-form__label {
    margin-bottom: 8px;
}

.apprenticeships-apply-form__area-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: space-between;
    align-items: center;
    background: #efefef;
    min-height: 52px;
    padding: 0 14px;
}

.apprenticeships-apply-form__area-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0;
    transform: translateY(5px);
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.apprenticeships-apply-form__area-option span {
    font-size: 14px;
    line-height: 1.2;
}

.apprenticeships-apply-form__area-option input {
    width: 26px;
    height: 26px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.apprenticeships-apply-form__area-option input::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: transform 0.12s ease;
    background: #007161;
}

.apprenticeships-apply-form__area-option input:checked::before {
    transform: scale(1);
}

.apprenticeships-apply-form__area-option input:focus-visible {
    outline: 2px solid #007161;
    outline-offset: 2px;
}

.apprenticeships-apply-form__upload-heading {
    margin: 8px 0 14px;
    color: #1a1a1a;
    font-family: "brother-1816", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

.apprenticeships-apply-form__file {
    color: #6b6b6b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.apprenticeships-apply-form__file::file-selector-button {
    color: #6b6b6b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    border: 0;
    background: #efefef;
    padding: 8px 12px;
    margin-right: 12px;
}

.apprenticeships-apply-form__submit {
    border: 0;
    background: #a1833f;
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 30px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.apprenticeships-apply-form__submit:hover,
.apprenticeships-apply-form__submit:focus {
    background: #8f7134;
}

.apprenticeships-apply-form__errors {
    margin: 16px 0 20px;
    padding: 14px 16px;
    background: #fff2f2;
    border-left: 4px solid #b00020;
    color: #7a0015;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
}

.apprenticeships-apply-form__errors:focus {
    outline: 2px solid #b00020;
    outline-offset: 2px;
}

.apprenticeships-apply-form .is-validation-error {
    outline: 2px solid #b00020;
    outline-offset: 2px;
}

.apprenticeships-apply-form__errors p {
    margin: 0 0 8px;
    font-weight: 700;
}

.apprenticeships-apply-form__errors ul {
    margin: 0;
    padding-left: 18px;
}

.apprenticeships-apply-form__errors li {
    font-family: inherit;
    font-size: inherit;
}

.apprenticeships-apply-form__success {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #ecfaf6;
    border-left: 4px solid #007161;
    color: #0d5f53;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
}

.apprenticeships-apply-form__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.apprenticeships-careers {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.apprenticeships-careers__column {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.apprenticeships-careers__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.apprenticeships-careers__column--vacancies,
.apprenticeships-careers__column--apprenticeships {
    background-color: #007161;
}

.apprenticeships-careers__column--vacancies::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.65);
}

.apprenticeships-careers__column:hover,
.apprenticeships-careers__column:focus {
    background-color: #00947F;
    text-decoration: none;
}

.apprenticeships-careers__label {
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.apprenticeships-careers__text {
    font-family: "brother-1816", sans-serif;
    font-size: 22px;
    line-height: 1.35;
    color: #fff;
}

@media (max-width: 1024px) {
    .apprenticeships-full-width-image__content {
        left: var(--homepage-side-gap);
        right: var(--homepage-side-gap);
        max-width: 700px;
    }

    .apprenticeships-full-width-image__content h1 {
        font-size: 30px;
    }

    .apprenticeships-page-notice__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 var(--homepage-side-gap);
        box-sizing: border-box;
    }

    .apprenticeships-intro {
        padding: 30px 0;
    }

    .apprenticeships-intro__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 var(--homepage-side-gap);
        box-sizing: border-box;
    }

    .apprenticeships-intro__heading {
        font-size: 24px;
    }

    .apprenticeships-intro__text {
        font-size: 17px;
    }

    .apprenticeships-form-intro {
        padding: 0 0 60px;
    }

    .apprenticeships-form-intro__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 var(--homepage-side-gap);
        box-sizing: border-box;
    }

    .apprenticeships-form-intro__heading {
        font-size: 24px;
    }

    .apprenticeships-form-intro__text {
        font-size: 17px;
    }

    .apprenticeships-apply-form__row--split {
        grid-template-columns: 1fr;
    }

    .apprenticeships-apply-form__input,
    .apprenticeships-apply-form__textarea {
        font-size: 17px;
    }

    .apprenticeships-apply-form__area-option,
    .apprenticeships-apply-form__area-option span {
        font-size: 14px;
    }

    .apprenticeships-apply-form__label {
        font-size: 14px;
    }

    .apprenticeships-apply-form__upload-heading {
        font-size: 18px;
    }

    .apprenticeships-careers__column--vacancies::after {
        right: auto;
        top: auto;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 1px;
    }
}

@media (max-width: 800px) {
    .apprenticeships-intro__heading {
        font-size: 24px;
    }

    .apprenticeships-intro__text {
        font-size: 17px;
    }

    .apprenticeships-form-intro__heading {
        font-size: 24px;
    }

    .apprenticeships-form-intro__text {
        font-size: 17px;
    }

    .apprenticeships-careers__label {
        font-size: 24px;
    }

    .apprenticeships-careers__text {
        font-size: 18px;
    }
}

@media (max-width: 700px) {
    .apprenticeships-careers__label {
        font-size: 24px;
    }

    .apprenticeships-careers__text {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .apprenticeships-careers {
        grid-template-columns: 1fr;
    }

    .apprenticeships-careers__column {
        min-height: auto;
        padding: 24px 0;
    }

    .apprenticeships-careers__column--vacancies::after {
        right: auto;
        top: auto;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 1px;
    }
}
