/* Only the three footer actions: the logo, blue surface and callback form stay in place. */
.contact-top-wrapper .middle-cont.ks-footer-cta {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
}

.ks-footer-cta.ks-masthead .ks-masthead__actions {
    grid-column: auto;
    max-width: none;
}

/* The shared header focus color needs a contrasting replacement on the blue footer. */
.ks-footer-cta.ks-masthead a:focus-visible {
    outline-color: var(--ks-masthead-yellow) !important;
}

/* Share the header's iconless middle step; keep stacked footer cards centered. */
@media (max-width: 79.99rem) {
    .ks-footer-cta.ks-masthead .ks-masthead__cta { justify-self: center; max-width: 250px; }
}

/* The classic desktop design retains three equal columns without the compact cap. */
@media (min-width: 80rem) {
    .ks-footer-cta.ks-masthead .ks-masthead__actions:not(.ks-masthead__actions--single) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (forced-colors: active) {
    .ks-footer-cta.ks-masthead a:focus-visible { outline-color: Highlight !important; }
}
