/* Keep matching screens free of decorative background illustrations. */
#fluentform_7 .ytm-special-arms,
#fluentform_7 .ytm-arm-signature {
    display: none !important;
}

/* Preserve the shared navigation while fitting the quiz below it on phones. */
@media (max-width: 768px) {
    body.ytm-match-active .site-content > .ast-container,
    body.ytm-match-active #primary,
    body.ytm-match-active #primary > article {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.ytm-match-active #fluentform_7 {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 20px clamp(16px, 5vw, 28px) 32px;
    }

    #fluentform_7 .ytm-welcome,
    #fluentform_7 .ytm-interstitial,
    #fluentform_7 .ytm-loading {
        min-height: 0;
        padding: 12px 0 28px;
    }

    #fluentform_7 .ytm-welcome-copy,
    #fluentform_7 .ytm-special-copy {
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #fluentform_7 .ytm-welcome .ytm-brand,
    #fluentform_7 .ytm-loading .ytm-brand {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }

    #fluentform_7 .ytm-welcome h1,
    #fluentform_7 .ytm-interstitial h2,
    #fluentform_7 .ytm-loading h2 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.12;
    }

    #fluentform_7 .ytm-question .ff-el-input--label label,
    #fluentform_7 .ytm-contact-intro h2 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    #fluentform_7 .ytm-layout-grid:not(.ytm-routing-question):not(.ytm-language-question) .ff-el-input--content {
        grid-template-columns: minmax(0, 1fr);
    }

    #fluentform_7 .ytm-question .ff-el-form-check-label,
    #fluentform_7 .ytm-layout-grid:not(.ytm-routing-question):not(.ytm-language-question) .ff-el-form-check-label,
    #fluentform_7 .ytm-layout-grid:not(.ytm-routing-question):not(.ytm-language-question) .ff-el-form-check:last-child:nth-child(odd) .ff-el-form-check-label {
        min-height: 72px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 13px 48px 13px 14px;
        text-align: left;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    #fluentform_7 .ytm-layout-grid:not(.ytm-routing-question):not(.ytm-language-question) .ytm-card-icon,
    #fluentform_7 .ytm-layout-grid:not(.ytm-routing-question):not(.ytm-language-question) .ff-el-form-check:last-child:nth-child(odd) .ytm-card-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        margin: 0 12px 0 0;
    }

    #fluentform_7 .step-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    #fluentform_7 .step-nav .ff-btn {
        float: none !important;
        max-width: 100%;
        margin: 14px 0 0;
        white-space: normal;
    }

    #fluentform_7 .step-nav .ff-btn-next {
        flex: 1 1 180px;
    }

    #fluentform_7 .ytm-primary-action,
    #fluentform_7 button[type="submit"] {
        max-width: 100%;
        white-space: normal;
    }

    #fluentform_7 .ytm-interstitial .ytm-primary-action {
        margin-top: 32px;
    }
}
