.made-hubspot-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.made-hubspot-popup.is-open {
    display: flex;
}

.made-hubspot-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.made-hubspot-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(624px, calc(100% - 32px));
    height: min(720px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;
    border-radius: var(--radius-md, 8px);
    background: var(--h-color, #fff);
    color: var(--dark-text, #172033);
}

.made-hubspot-popup__dialog h2 {
    margin-top: 0;
    color: inherit;
}

.made-hubspot-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Isolated form styling: do not alter the existing global .hs_form rules. */
.made-hubspot-popup .hs_form input:not([type="checkbox"]):not([type="radio"]),
.made-hubspot-popup .hs_form textarea,
.made-hubspot-popup .hs_form select {
    background: #fff !important;
    color: var(--dark-text, #172033) !important;
    border-color: #c8ccd4 !important;
}

.made-hubspot-popup a {
    color: #174f7a !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.made-hubspot-popup .hs-form-checkbox-display span,
.made-hubspot-popup .hs-form-booleancheckbox-display span {
    margin-left: 24px !important;
}

.made-hubspot-popup__fallback {
    margin-bottom: 0;
    font-size: 14px;
}
