.hubspot-contact-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg);
}

.hubspot-contact-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 24px 19px;
}

.hubspot-contact-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--neutral-100, #f5f5f5);
    font-size: 20px;
    color: var(--secondary-text-color, #525252);
}

.hubspot-contact-modal-title {
    flex: 1;
    font-family: var(--font-family-base, 'Open Sans', Arial, sans-serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--primary-text-color, #171717);
}

.hubspot-contact-modal-close {
    display: inline-flex;
    padding: 0;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--neutral-500, #737373);
}

    .hubspot-contact-modal-close:hover,
    .hubspot-contact-modal-close:focus {
        color: var(--primary-text-color, #171717);
    }

.hubspot-contact-modal-body {
    padding: 20px 24px;
}

/* HubSpot's form iframe (cross-origin, so it can't be styled) pads the form by 40px on every side.
   Pull the iframe out by that much and clip it, so the fields line up with the modal's own padding.
   Only once the form has loaded, so the loading spinner isn't clipped away while it loads. */
.hubspot-contact-modal-body .js-hubspot-form.hubspot-form-ready {
    overflow: hidden;
}

.hubspot-contact-modal-body .hubspot-form-ready .hs-form-frame {
    margin: -40px;
}
