.black_button.pro-hub-installer-trigger {
    width: 300px;
    max-width: 100%;
    min-height: 48px;
    margin-bottom: 20px;
    padding-left: 12px;
    padding-right: 12px;
    border: 0;
    cursor: pointer;
    text-align: center;
}

#proHubInstallerModal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 900px;
    height: calc(100% - 32px);
    max-height: calc(100% - 32px);
    min-height: calc(100% - 32px);
    margin: 16px auto;
}

#proHubInstallerModal .modal-content {
    max-height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, .3);
}

#proHubInstallerModal .modal-header {
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-top: 4px solid #ff000d;
}

#proHubInstallerModal .modal-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

#proHubInstallerModal .pro-hub-installer-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f2f2f2;
    color: #1a1a1a;
    font: 32px/1 sans-serif;
    cursor: pointer;
}

.pro-hub-installer-trigger:focus-visible,
#proHubInstallerModal :focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

#proHubInstallerModal input:focus,
#proHubInstallerModal select:focus,
#proHubInstallerModal textarea:focus {
    outline: none;
    box-shadow: none;
}

#proHubInstallerModal .modal-body {
    padding: 24px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-wrap: break-word;
}

#proHubInstallerModal .gform_wrapper {
    margin: 0;
}

/* Override the theme's page-form offset inside this narrower container. */
#proHubInstallerModal .gform_footer {
    margin-left: 0 !important;
}

/* Gravity Forms 2.9 creates a span loader even with legacy form markup. */
#proHubInstallerModal #gform_ajax_spinner_4 {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 0 0 12px;
    padding: 0;
    vertical-align: middle;
}

#proHubInstallerModal span#gform_ajax_spinner_4 {
    box-sizing: border-box;
    border: 3px solid #d9d9d9;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: pro-hub-submit-spin .75s linear infinite;
}

@keyframes pro-hub-submit-spin {
    to { transform: rotate(360deg); }
}

/* Stack both legacy list markup and current Gravity Forms radio choices. */
#proHubInstallerModal .gfield_radio {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0;
    list-style: none;
}

#proHubInstallerModal .gfield_radio > li,
#proHubInstallerModal .gfield_radio > .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 0;
}

#proHubInstallerModal .gfield_radio input[type=radio] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 3px 0 0 !important;
    cursor: pointer;
}

#proHubInstallerModal .gfield_radio label {
    flex: 1;
    min-width: 0;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    line-height: 1.5 !important;
    white-space: normal;
    cursor: pointer;
}

#proHubInstallerModal input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
#proHubInstallerModal select,
#proHubInstallerModal textarea {
    max-width: 100%;
    font-size: 16px;
}

/* The theme styles text inputs only; give email the same field treatment. */
#proHubInstallerModal .gfield input[type=email] {
    height: 48px;
    padding-left: 12px;
    border: 1px solid #999;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    color: #1a1a1a;
    font-family: 'trade-gothic-next', sans-serif;
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.19;
    letter-spacing: normal;
    -webkit-appearance: none;
    appearance: none;
}

#proHubInstallerModal .gfield input[type=email]::placeholder {
    color: #999;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.19;
    letter-spacing: normal;
    opacity: 1;
}

@media (max-width: 600px) {
    #proHubInstallerModal .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        min-height: 100%;
        margin: 0;
    }

    #proHubInstallerModal .modal-content {
        height: 100%;
        border-radius: 0;
    }

    #proHubInstallerModal .modal-header {
        padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    }

    #proHubInstallerModal .modal-title {
        font-size: 23px;
    }

    #proHubInstallerModal .modal-body {
        padding: 20px 16px max(24px, env(safe-area-inset-bottom));
    }

    #proHubInstallerModal .gform_footer input[type=submit] {
        width: 100%;
        min-height: 48px;
    }

    #proHubInstallerModal #gform_ajax_spinner_4 {
        display: block;
        margin: 16px auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #proHubInstallerModal span#gform_ajax_spinner_4 {
        animation: none;
    }

    #proHubInstallerModal.fade,
    #proHubInstallerModal.fade .modal-dialog {
        transition: none;
    }
}
