.offer__intro {
    display: block;
    margin-top: -20px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.offer__heading--campaign {
    position: relative;
    text-align: center;
}

.offer__heading--campaign .offer__intro {
    margin-bottom: 16px;
}

.bf-pill {
    position: absolute;
    top: -74px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-family: Rubik, sans-serif;
    font-size: 19px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 3px 3px 0 #fff, 4px 4px 0 #111;
}

/* Below 1200px the one-line pill collides with the offer icon, so the date wraps to a second line. */
@media screen and (max-width: 1199px) {
    .bf-pill {
        top: -76px;
        padding: 6px 14px;
        font-size: 19px;
        line-height: 1.2;
    }

    .bf-pill__dash {
        display: none;
    }

    .bf-pill__date {
        display: block;
        font-size: 15px;
    }
}

/* The offer icon is centered below 992px, so the pill moves into the flow below it. */
@media screen and (max-width: 991px) {
    .bf-pill {
        position: relative;
        top: auto;
        left: auto;
        transform: rotate(-3deg);
        margin-bottom: 40px;
        font-size: 22px;
    }

    .offer__heading {
        width: 98%;
        margin: 0 auto;
    }

    /* Scales down on narrow phones so "CASHBACK" never gets clipped. */
    .offer__title--highlight {
        font-size: min(40px, 11vw);
        white-space: nowrap;
    }

    .bf-pill__date {
        font-size: 13px;
    }
}

.offer__title--highlight {
    position: relative;
    display: inline-block;
    width: auto;
    margin-top: 4px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 6px 12px;
    border-radius: 6px;
    background: #ffdc4f;
    text-align: center;
}

.offer__title__underline {
    position: absolute;
    bottom: -14%;
    left: 50%;
    width: 30%;
    transform: translateX(-50%);
    user-select: none;
    pointer-events: none;
}

/* Beats the global white a:link rule. */
.offer__terms-link:link,
.offer__terms-link:visited {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

.offer__terms-link:hover {
    color: #ec227b;
}

.offer__terms-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .offer__content {
        width: 80%;
        margin: 0 auto;
    }

    .gform_wrapper--home {
        width: 100%;
        margin-left: 0;
    }

    /* single-plaats.php renders an empty actie_content paragraph whose margin pushes the form down. */
    .offer__content > p:first-child {
        margin: 0;
    }

    /* Fixed px field widths (151 + 10 + 112 + 130) as fractions so they fit the narrower form. */
    .gform_wrapper--home #gfield_postal_code {
        width: 37.5%;
    }

    .gform_wrapper--home #gfield_number {
        width: calc(62.5% - 10px);
    }

    .gform_wrapper--home #gfield_number .ginput_container {
        width: 46%;
    }

    .gform_wrapper--home #gfield_number .ginput_container--addition {
        width: 54%;
    }
}

/* Matches the specificity of .kb__content p:last-of-type, which would reset the margin. */
.kb__cta p.offer__cta-text {
    margin-bottom: 16px;
    font-size: 16px;
}


/* Slightly wider than the form so the campaign disclaimer fits on two lines. */
@media screen and (min-width: 992px) {
    .gfield_description small.offer__disclaimer {
        width: calc(100% + 30px);
    }
}
