/* =====================================================================
   Contact Us Popup
   - Desktop / Tablet (>= 576px): centered modal
   - Mobile (< 576px): full-width bottom drawer
   ===================================================================== */

.contact-popup-open {
    overflow: hidden;
}

.contact-popup,
.contact-popup *,
.contact-popup *::before,
.contact-popup *::after {
    box-sizing: border-box;
}

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.contact-popup[hidden] {
    display: none;
}

.contact-popup--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 33, 0.55);
    cursor: pointer;
}

.contact-popup__panel {
    position: relative;
    width: 100%;
    max-width: 792px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--Pitch-White, #FFFFFF);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(7, 17, 33, 0.22);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 220ms ease;
}

.contact-popup__scroll {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 48px 48px 40px;
    scrollbar-gutter: stable;
}

.contact-popup--open .contact-popup__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.contact-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #939CAB;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.contact-popup__close:hover,
.contact-popup__close:focus-visible {
    color: var(--Black, #071121);
    background: rgba(7, 17, 33, 0.05);
    outline: none;
}

.contact-popup__close:focus-visible {
    box-shadow: 0 0 0 2px var(--New-Blue, #0C59DB);
}

.contact-popup__close svg {
    width: 20px;
    height: 20px;
    display: block;
}

.contact-popup__header {
    text-align: center;
    margin-bottom: 28px;
}

.contact-popup__chip {
    display: inline-block;
    padding: 6px 20px;
    border: 1.5px solid var(--New-Blue, #0C59DB);
    border-radius: 999px;
    color: var(--New-Blue, #0C59DB);
    font-family: var(--font-family-Title, "Lato"), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.contact-popup__title {
    margin: 0 0 0;
    font-family: var(--font-family-Title, "Lato"), sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--Black, #071121);
}

.contact-popup__description {
    margin: 0;
    font-family: var(--font-family-Body, "Karla"), sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #4E5258;
}

.contact-popup__form-wrapper {
    position: relative;
    margin-top: 4px;
    min-height: 220px;
}

.contact-popup__form-wrapper .hs-form-frame {
    width: 100%;
}

.contact-popup__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    padding: 24px 0;
    color: #4E5258;
    font-family: var(--font-family-Body, "Karla"), sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.contact-popup__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(12, 89, 219, 0.18);
    border-top-color: var(--New-Blue, #0C59DB);
    animation: contact-popup-spin 720ms linear infinite;
}

.contact-popup__form-wrapper--ready .contact-popup__loader {
    display: none;
}

.contact-popup__form-wrapper--ready {
    min-height: 0;
}

@keyframes contact-popup-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-popup__spinner {
        animation: none;
        border-top-color: rgba(12, 89, 219, 0.18);
    }
}

/* ---------------------------------------------------------------------
   Tablet (576px - 991px): keep modal but tighten spacing
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .contact-popup__panel {
        max-width: 560px;
    }

    .contact-popup__scroll {
        padding: 40px 36px 32px;
    }

    .contact-popup__title {
        font-size: 24px;
    }

    .contact-popup__description {
        font-size: 14px;
    }
}

/* ---------------------------------------------------------------------
   Mobile (< 576px): bottom drawer
   --------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .contact-popup {
        align-items: flex-end;
        padding: 0;
    }

    .contact-popup__panel {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -16px 40px rgba(7, 17, 33, 0.18);
        transform: translateY(100%);
        opacity: 1;
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .contact-popup__scroll {
        max-height: 92vh;
        padding: 28px 20px 32px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .contact-popup--open .contact-popup__panel {
        transform: translateY(0);
        opacity: 1;
    }

    .contact-popup__scroll::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        margin: 0 auto 18px;
        background: #E5E7EB;
        border-radius: 999px;
    }

    .contact-popup__close {
        top: 8px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .contact-popup__header {
        margin-bottom: 22px;
    }

    .contact-popup__chip {
        font-size: 13px;
        padding: 5px 16px;
        margin-bottom: 12px;
    }

    .contact-popup__title {
        font-size: 22px;
    }

    .contact-popup__description {
        font-size: 14px;
    }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .contact-popup,
    .contact-popup__panel {
        transition: none;
    }
}

/* =====================================================================
   Industry Contact Form Section
   Reusable HubSpot-form section used across industry pages.
   - Desktop (>= 992px): two-column layout
   - Tablet  (768 – 991): two-column with tighter spacing
   - Mobile  (< 768px):   stacked single column
   ===================================================================== */

.industry-contact-form {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 80px 0;
    background: #0B1429;
    scroll-margin-top: 100px;
}

.industry-contact-form *,
.industry-contact-form *::before,
.industry-contact-form *::after {
    box-sizing: border-box;
}

.industry-contact-form__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.industry-contact-form__inner {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
}

.industry-contact-form__intro {
    flex: 1 1 360px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.industry-contact-form__chip {
    display: inline-block;
    padding: 6px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--Pitch-White, #FFFFFF);
    background: transparent;
    font-family: var(--font-family-Title, "Lato"), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.industry-contact-form__title {
    margin: 0 0 16px;
    font-family: var(--font-family-Title, "Lato"), sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--Pitch-White, #FFFFFF);
}

.industry-contact-form__description {
    margin: 0;
    font-family: var(--font-family-Body, "Karla"), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.industry-contact-form__description strong {
    font-weight: 700;
    color: var(--Pitch-White, #FFFFFF);
}

.industry-contact-form__card {
    flex: 0 1 560px;
    width: 100%;
    background: var(--Pitch-White, #FFFFFF);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(7, 17, 33, 0.25);
}

.industry-contact-form__card .hs-form-frame {
    width: 100%;
}

/* ---------------------------------------------------------------------
   Specificity overrides
   Several page templates ship their own scoped typography rules like
   `.<page>-page #page-content h2 { color: var(--Black); }` (specificity
   1,1,1) which would otherwise turn the white heading dark. Match them
   under `#page-content` (1,2,0) so the section keeps its inverted
   palette without using !important and without affecting anything
   outside the section.
   --------------------------------------------------------------------- */
#page-content .industry-contact-form .industry-contact-form__title {
    color: var(--Pitch-White, #FFFFFF);
    font-family: var(--font-family-Title, "Lato"), sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

#page-content .industry-contact-form .industry-contact-form__description {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-family-Body, "Karla"), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

#page-content .industry-contact-form .industry-contact-form__description strong {
    color: var(--Pitch-White, #FFFFFF);
    font-weight: 700;
}

#page-content .industry-contact-form .industry-contact-form__chip {
    color: var(--Pitch-White, #FFFFFF);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------------
   Tablet (768 – 991px)
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .industry-contact-form {
        padding: 64px 0;
    }

    .industry-contact-form__inner {
        gap: 48px;
    }

    .industry-contact-form__intro {
        flex: 1 1 320px;
        max-width: 420px;
    }

    .industry-contact-form__card {
        flex: 1 1 360px;
        padding: 0;
    }

    .industry-contact-form__title,
    #page-content .industry-contact-form .industry-contact-form__title {
        font-size: 32px;
    }

    .industry-contact-form__description,
    #page-content .industry-contact-form .industry-contact-form__description {
        font-size: 15px;
    }
}

/* ---------------------------------------------------------------------
   Mobile (< 768px): stack vertically
   --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .industry-contact-form {
        padding: 48px 0;
    }

    .industry-contact-form__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .industry-contact-form__intro,
    .industry-contact-form__card {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .industry-contact-form__chip {
        margin-bottom: 16px;
    }

    .industry-contact-form__title,
    #page-content .industry-contact-form .industry-contact-form__title {
        font-size: 28px;
    }

    .industry-contact-form__description,
    #page-content .industry-contact-form .industry-contact-form__description {
        font-size: 14px;
    }

    .industry-contact-form__card {
        padding: 0;
        border-radius: 14px;
    }
}

/* ---------------------------------------------------------------------
   Reduced motion: pause the looping background video
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .industry-contact-form__bg-video {
        display: none;
    }
}
