/* Shared contact call to action */
.p-cta-contact {
    min-height: 36rem;
    padding: 6.3rem 0 5rem;
    background-color: #0f7dd3;
    background-image: url('../img/common/cta-contact-bg.jpg');
    background-image: image-set(url('../img/common/cta-contact-bg.jpg') 1x, url('../img/common/cta-contact-bg@2x.jpg') 2x);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.p-cta-contact__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    /* min-height: 26rem; */
    text-align: center;
}

.p-cta-contact__header {
    margin-bottom: 4.5rem;
}

.p-cta-contact__label {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0px auto 1.7rem;
}

.p-cta-contact__header h2 {
    margin: 0;
}

.p-cta-contact__header h2 img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.p-cta-contact__header p {
    margin: 1.6rem 0 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.6;
}

.p-cta-contact__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 24.7rem));
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

.p-cta-contact__phone,
.p-cta-contact__mail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.7rem;
    border-radius: 50rem;
    text-decoration: none;
}

.p-cta-contact__phone {
    background: #fff;
    color: #162187;
}

.p-cta-contact__phone-number-row {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.3rem;
    align-items: center;
    width: max-content;
}

.p-cta-contact__phone-number-row img {
    grid-column: 1;
    grid-row: 1;
    /* Fixed to the 1x size so the retina (@2x) image is shown at the same size. */
    width: 1.8rem;
    height: 1.8rem;
    max-width: 100%;
    object-fit: contain;
    flex: 0 0 auto;
}

.p-cta-contact__phone-number {
    grid-column: 2;
    grid-row: 1;
    color: #162187;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 500;
}

.p-cta-contact__phone small {
    grid-column: 2;
    grid-row: 2;
    color: #162187;
    font-size: 1rem;
    line-height: 1;
    font-feature-settings: "palt";

}

.p-cta-contact__phone--mobile {
    display: none;
}

.p-cta-contact__mail {
    gap: 0.7rem;
    background: #ddc31b;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

@media (hover: hover) {
    .p-cta-contact__mail:hover {
        background: #ddc31b;
    }
}

.p-cta-contact__mail img {
    /* Fixed to the 1x size so the retina (@2x) image is shown at the same size. */
    width: 2.2rem;
    height: 1.6rem;
    max-width: 100%;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .p-cta-contact {
        min-height: 0;
        padding: 5rem 0;
    }

    .p-cta-contact__actions {
        grid-template-columns: minmax(0, 24.7rem);
        width: min(100%, 24.7rem);
    }

    .p-cta-contact__phone--desktop {
        display: none;
    }

    .p-cta-contact__phone--mobile {
        display: flex;
    }
}

@media screen and (max-width: 480px) {
    .p-cta-contact {
        padding: 4rem 0;
    }

    .p-cta-contact__header {
        margin-bottom: 2.4rem;
    }

    .p-cta-contact__header p {
        margin-top: 1.2rem;
        font-size: 1.3rem;
    }

    .p-cta-contact__actions {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
    }

    .p-cta-contact__phone,
    .p-cta-contact__mail {
        min-height: 5.7rem;
    }

    .p-cta-contact__phone-number {
        font-size: 2rem;
    }

    .p-cta-contact__mail {
        font-size: 1.6rem;
    }
}