/* NS HubSpot Event Modal */

/* ── Register button ────────────────────────────────────────────────────────── */

a.js-event-hubspot-modal {
    display: inline-block;
    background-color: rgb(36, 53, 73);
    color: rgb(242, 245, 247);
    padding: 16px 24px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-sizing: border-box;
}

a.js-event-hubspot-modal .ns-btn__subtitle {
    display: inline;
    font-size: 12px;
    line-height: 12px;
    color: rgb(242, 245, 247);
}

a.js-event-hubspot-modal .ns-btn__label {
    display: block;
    font-size: 15px;
    line-height: 15px;
    color: rgb(242, 245, 247);
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */

.ns-hubspot-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.ns-hubspot-modal.is-open {
    display: block;
}

.ns-hubspot-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.ns-hubspot-modal__dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    background: #fff;
    padding: 40px 32px 32px;
    border-radius: 12px;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}

.ns-hubspot-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ns-hubspot-modal__close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.ns-hubspot-modal__title {
    margin: 0 0 24px;
    font-size: 1.4rem;
    line-height: 1.3;
    padding-right: 40px;
}

.ns-hubspot-modal__form {
    min-height: 80px;
}

body.ns-hubspot-modal-open {
    overflow: hidden;
}

.ns-hubspot-modal__form .hs-form fieldset {
    max-width: 100% !important;
}

.ns-hubspot-modal__form .hs-button {
    cursor: pointer;
}

@media (max-width: 600px) {
    .ns-hubspot-modal__dialog {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        padding: 56px 20px 24px;
        width: 100%;
    }
}
