/* Persistent mobile contact shortcuts, independent of wizard navigation. */
.mobile-contact-bar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .wizard-actions {
        position: static;
        align-items: flex-start;
    }

    .wizard-actions__group {
        min-width: 0;
    }

    .wizard-actions .consult-button {
        display: none;
    }

    .wizard-actions .next-button,
    .wizard-actions .back-button {
        height: 58px;
    }

    .wizard-actions .next-button {
        font-size: var(--font-17);
    }

    .mobile-contact-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-sizing: border-box;
        /* Keep an opaque backing beneath both buttons. */
        background: linear-gradient(to right, var(--blue) 0 50%, var(--navy-800) 50% 100%);
        box-shadow: 0 -4px 16px #091c3414;
    }

    /* Hide from the first paint until the loading cover is fully removed. */
    body:has(.landing-loader) .mobile-contact-bar {
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-contact-bar > button,
    .mobile-contact-bar > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        box-sizing: border-box;
        min-width: 0;
        min-height: calc(58px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 0;
        color: #fff;
        font: inherit;
        font-size: var(--font-16);
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-contact-bar__estimate {
        background: var(--blue);
    }

    .mobile-contact-bar__phone {
        background: var(--navy-800);
    }

    .mobile-contact-bar__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .mobile-contact-bar__copy strong {
        font-size: var(--font-15);
        font-weight: 600;
        line-height: 1.25;
    }

    .mobile-contact-bar__copy small {
        font-size: var(--font-11);
        font-weight: 400;
        line-height: 1.25;
        opacity: 0.85;
    }

    .mobile-contact-bar__icon {
        display: block;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        overflow: hidden;
    }

    .mobile-contact-bar > :focus-visible {
        outline: 3px solid #fff;
        outline-offset: -5px;
    }

    .mobile-contact-bar > :active {
        filter: brightness(0.9);
    }
}
