.er-hero--partners {
    min-height: 473px;
}

.er-hero--partners .er-hero__content {
    padding-top: 24px;
}

.er-hero--partners .er-crumbs,
.er-hero--partners .er-title,
.er-hero--partners .er-text {
    margin-bottom: 24px;
}

.er-hero--partners .er-title,
.er-hero--partners .er-text {
    max-width: 504px;
}

.er-hero--partners .er-title span {
    display: block;
}

/* Categories */
.er-partners__head {
    max-width: 872px;
    margin-top: 62px;
}

.er-partners__head .er-title {
    line-height: 1.12;
}

.er-partners__lead {
    margin-top: 20px;
    color: var(--er-grey);
    font: 400 18px/1.54 "Google Sans", var(--er-font);
    letter-spacing: -0.02em;
}

.er-partners__lead span {
    display: block;
}

.er-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 48px;
}

.er-category {
    display: block;
    height: clamp(180px, 16.204vw, 280px);
    padding: 4px;
    border: 1px solid rgb(170 174 178 / 24%);
    border-radius: 8px;
    background: var(--er-semi);
    transition: border-color var(--er-ease), background-color var(--er-ease), padding var(--er-ease);
}

.er-category__frame {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    padding: 20px 36px;
    overflow: hidden;
    border-radius: 4px;
    transition: background-color var(--er-ease);
}

.er-category__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--er-ease);
}

.er-category__image--agents {
    object-position: 50% 33%;
    transform: scaleX(-1);
}

.er-category__title {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.45em;
    font-size: clamp(20px, 1.8vw, 28px);
    font-variation-settings: "ROND" 12;
    font-weight: 500;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    transition: color var(--er-ease);
}

.er-category__title--tight {
    column-gap: 0.24em;
}

.er-category__title span {
    color: var(--er-grey);
    transition: color var(--er-ease);
}

.er-category__arrow {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-bottom-left-radius: 1px;
    background: var(--er-orange);
    opacity: 0;
    transition: opacity var(--er-ease);
}

/* The active tile is whichever one is hovered or focused, otherwise the featured one. */
.er-category:is(:hover, :focus-visible),
.er-categories:not(:hover, :focus-within) .er-category.is-featured {
    padding: 6px;
    border-color: var(--er-ink);
    background: var(--er-white);
}

.er-category:is(:hover, :focus-visible) .er-category__frame,
.er-categories:not(:hover, :focus-within) .is-featured .er-category__frame {
    background: #0c1b26;
}

.er-category:is(:hover, :focus-visible) .er-category__image,
.er-categories:not(:hover, :focus-within) .is-featured .er-category__image {
    opacity: 0.3;
}

.er-category:is(:hover, :focus-visible) .er-category__arrow,
.er-categories:not(:hover, :focus-within) .is-featured .er-category__arrow {
    opacity: 1;
}

.er-category:is(:hover, :focus-visible) .er-category__title,
.er-categories:not(:hover, :focus-within) .is-featured .er-category__title {
    color: var(--er-white);
    text-shadow: 0 5px 18px #000;
}

.er-category:is(:hover, :focus-visible) .er-category__title span,
.er-categories:not(:hover, :focus-within) .is-featured .er-category__title span {
    color: var(--er-orange);
}

/* Become a partner */
.er-join {
    display: grid;
    grid-template-columns: minmax(0, 612px) minmax(0, 632px);
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 8px;
    margin-bottom: 56px;
    padding: 35px 44px 35px clamp(28px, 3.704vw, 64px);
    overflow: hidden;
    border-radius: 4px;
    background: rgb(246 248 250 / 95%);
    scroll-margin-top: calc(var(--er-header-h) + 8px);
}

.er-join__content {
    padding-top: 45px;
}

.er-join__content .er-title {
    margin-bottom: 40px;
}

.er-join__content .er-text + .er-text {
    margin-top: 23px;
}

.er-join__content .er-checks {
    margin-top: 40px;
}

.er-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 31px 23px;
    border: 1px solid var(--er-semi);
    border-radius: 4px;
    background: var(--er-white);
    box-shadow: -107px 47px 64px -79px rgb(51 71 91 / 16%);
}

.er-form__title {
    grid-column: 1 / -1;
    min-height: 44px;
    padding-bottom: 16px;
    font-size: clamp(23px, 2vw, 28px);
    font-variation-settings: "ROND" 12;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: uppercase;
}

.er-field {
    position: relative;
    min-width: 0;
}

.er-field--wide,
.er-form__submit,
.er-form__note,
.er-form__status {
    grid-column: 1 / -1;
}

.er-field input,
.er-field textarea {
    display: block;
    width: 100%;
    height: 64px;
    padding: 24px 16px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--er-semi);
    color: var(--er-ink);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.er-field textarea {
    height: 210px;
    padding-top: 30px;
    resize: none;
}

.er-field input:focus,
.er-field textarea:focus {
    border-color: var(--er-blue);
    outline: 0;
}

.er-field label {
    position: absolute;
    top: 23px;
    left: 16px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
    transition: top var(--er-ease), font-size var(--er-ease), color var(--er-ease);
}

.er-field :focus + label,
.er-field :not(:placeholder-shown) + label {
    top: 9px;
    color: var(--er-blue);
    font-size: 12px;
}

.er-field :user-invalid {
    border-color: var(--er-orange);
}

.er-form__submit.er-button {
    width: 100%;
    height: 72px;
    padding: 0 17px 0 32px;
    border-width: 2px;
}

.er-form__submit .er-button__text {
    flex: 1;
    text-align: center;
}

.er-form__note {
    margin-top: 8px;
    color: var(--er-blue);
    font: 400 14px/1.32 "Google Sans", var(--er-font);
    letter-spacing: -0.02em;
    text-align: center;
    opacity: 0.5;
}

.er-form__status {
    color: var(--er-green);
    font-size: 14px;
    text-align: center;
}

.er-form__status:empty {
    display: none;
}

@media (max-width: 1199px) {
    .er-join {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
        padding: 28px;
    }

    .er-join__content {
        padding: 0;
    }
}

@media (max-width: 1023px) {
    .er-hero--partners {
        min-height: 0;
    }

    .er-join {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .er-partners__head {
        margin-top: 40px;
    }

    .er-partners__lead {
        margin-top: 14px;
        font-size: 16px;
    }

    .er-partners__lead span {
        display: inline;
    }

    .er-categories {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 24px;
    }

    .er-category {
        height: 104px;
    }

    .er-category.is-featured {
        height: 152px;
    }

    .er-category__arrow {
        opacity: 1;
    }

    .er-join {
        margin-bottom: 24px;
        padding: 28px 8px 8px;
    }

    .er-join__content {
        padding-inline: 8px;
    }

    .er-join__content .er-title {
        margin-bottom: 20px;
    }

    .er-join__content .er-checks {
        margin-top: 28px;
    }

    .er-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 12px 20px;
    }

    .er-form__title {
        min-height: 0;
    }

    .er-field input {
        height: 58px;
    }

    .er-field label {
        top: 20px;
    }

    .er-field textarea {
        height: 150px;
    }

    .er-form__submit.er-button {
        height: 64px;
    }
}
