/* Contact Us uses the New Demo layout and card treatment without loading its scheduler. */
.contact-us {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 55px 100px;
    color: #0b1633;
    font-family: "Founders Grotesk", "Fira Sans", sans-serif;
    line-height: 1.35;
}
.contact-us, .contact-us * { box-sizing: border-box; }
.contact-us__content { flex: 1 1 0%; min-width: 0; padding-right: 12px; }
.contact-us .contact-us__title { margin: 0 0 18px; color: #0a0a0a; font: 700 55px/1.15 "Founders Grotesk", "Fira Sans", sans-serif; }
.contact-us .contact-us__intro { margin: 0 0 32px; color: #334155; font: 400 18px/1.55 "Founders Grotesk", "Fira Sans", sans-serif; }
.contact-us__copy { font-size: 18px; line-height: 1.5; color: #334155; }
.contact-us__copy h2 { margin: 0 0 16px; color: #0b1633; font: 600 24px/1.25 "Founders Grotesk", "Fira Sans", sans-serif; }
.contact-us__copy p { margin: 0; font: inherit; }
.contact-us__copy a, .contact-us__card a { color: #0b1633; text-decoration: underline; text-underline-offset: 3px; }
.contact-us a:focus-visible { outline: 2px solid #0e9a91; outline-offset: 4px; }
.contact-us__details { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.contact-us__details address { flex: 1 1 210px; margin: 0; color: #334155; font: inherit; }
.contact-us__phones { flex: 1 1 240px; }
.contact-us__phones p { margin-bottom: 8px; }
.contact-us__phones a[href^="tel:"] { white-space: nowrap; }
.contact-us__copy .contact-us__text-link { display: inline-flex; align-items: center; gap: 8px; color: #0e756e; font-weight: 600; text-decoration: none; }
.contact-us__copy .contact-us__text-link:hover { text-decoration: underline; }
.contact-us__text-link > span { font-size: 20px; line-height: 1; }
.contact-us__map { overflow: hidden; margin: 28px 0 0; border: 1px solid #d5e4e3; border-radius: 20px; background: #f5f9f8; }
.contact-us__map-frame { position: relative; }
.contact-us__map-canvas { width: 100%; height: 400px; background: #edf4f2; }
.contact-us__map .contact-us__map-status { position: absolute; top: 50%; left: 50%; z-index: 2; width: max-content; max-width: calc(100% - 80px); margin: 0; padding: 16px 20px; transform: translate(-50%, -50%); border-radius: 12px; background: #fff; box-shadow: 0 4px 20px #0b16331a; color: #334155; font-size: 15px; line-height: 1.4; text-align: center; }
.contact-us__map [hidden] { display: none !important; }
.contact-us__map-reset { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 8px; border: 1px solid #e1e8e8; border-radius: 6px; background: #fffffff0; color: #64748b; box-shadow: none; font: 400 12px/1.2 "Founders Grotesk", sans-serif; cursor: pointer; }
.contact-us__map-reset:hover { background: #fff; color: #334155; }
.contact-us__map button:focus-visible, .contact-us__map canvas:focus-visible { outline: 2px solid #0e756e; outline-offset: -3px; }
.contact-us__map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid #d5e4e3; border-radius: 10px; box-shadow: 0 2px 8px #0b163314; }
.contact-us__map .maplibregl-ctrl-group button { width: 40px; height: 40px; padding: 0; border-radius: 0; background-color: #fff; }
.contact-us__map .maplibregl-ctrl-group button:hover { background-color: #f1f8f7; }
.contact-us__map .contact-us__map-marker { display: block; width: 40px; height: 52px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.contact-us__map-marker svg { display: block; filter: drop-shadow(0 3px 4px #0b163333); }
.contact-us__map-marker-label { position: absolute; top: calc(100% + 6px); left: 0; width: 170px; padding: 7px 9px; border-radius: 8px; background: #fff; color: #000; box-shadow: 0 2px 8px #0b163314; font: 400 13px/1.2 "Founders Grotesk", sans-serif; white-space: normal; text-align: center; }
.contact-us__map-marker[data-location="hq"] .contact-us__map-marker-label { left: calc(100% + 6px); }
.contact-us__map-marker[data-location="emea"] .contact-us__map-marker-label { top: auto; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.contact-us__map-marker[data-location="apac"] .contact-us__map-marker-label { left: auto; right: 0; }
.contact-us__map-marker[aria-expanded="true"] .contact-us__map-marker-label { visibility: hidden; }
.contact-us__map .maplibregl-popup-content { padding: 20px 30px 20px 20px; border-radius: 12px; color: #0b1633; font: 400 16px/1.4 "Founders Grotesk", sans-serif; box-shadow: 0 5px 24px #0b163333; }
.contact-us__map-popup strong { display: block; margin-bottom: 8px; font-size: 21px; }
.contact-us__map .contact-us__map-popup p { margin: 0 0 12px; white-space: pre-line; font: inherit; }
.contact-us__map .contact-us__map-popup a { color: #0e756e; font-weight: 600; }
.contact-us__map .maplibregl-popup-close-button { width: 32px; height: 32px; padding: 0; color: #0b1633; font: 24px/1 sans-serif; }
.contact-us__map:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.contact-us__map:fullscreen .contact-us__map-frame { flex: 1; min-height: 0; }
.contact-us__map:fullscreen .contact-us__map-canvas { height: 100%; }
.contact-us__map:fullscreen figcaption { flex-shrink: 0; }
.contact-us__map figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid #d5e4e3; background: #fff; }
.contact-us__map .contact-us__map-credit { color: #526075; font-size: 11px; line-height: 1.5; }
.contact-us__map .contact-us__map-credit a { color: inherit; text-decoration: none; white-space: nowrap; }
.contact-us__map .contact-us__map-credit a:hover { text-decoration: underline; }
.contact-us__map .contact-us__text-link { margin-left: auto; font-size: 16px; }
.contact-us__offices { display: grid; gap: 14px; margin-top: 28px; }
.contact-us__offices h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.contact-us__app { margin-top: 32px; padding-top: 26px; border-top: 1px solid #dbe3e9; }
.contact-us__app-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-us__app-links a { flex: 1 1 210px; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #dbe3e9; border-radius: 12px; background: #fff; font-size: 17px; line-height: 1.3; font-weight: 500; text-decoration: none; }
.contact-us__app-links svg { flex-shrink: 0; color: #0e756e; }
.contact-us__app-links a > span:last-child { margin-left: auto; color: #0e756e; font-size: 20px; }
.contact-us__app-links a:hover { background: #f1f8f7; border-color: #86bdb7; }
.contact-us__form-column { flex: 0 0 420px; width: 100%; min-width: 0; max-width: 420px; }
.contact-us__card {
    padding: 36px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(165deg, #f7f9fc, #e9edf4 48%, #d9dfec);
    box-shadow: none;
    container-type: inline-size;
}
.contact-us__card > h2 { margin: 0 0 24px; color: #0e756e; font: 600 24px/1.25 "Founders Grotesk", "Fira Sans", sans-serif; }
.contact-us__card .hs-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; color: #0b1633; font: 400 14px/1.5 "Founders Grotesk", "Fira Sans", sans-serif; }
.contact-us__card .contact-us__reason { margin-bottom: 16px; }
.contact-us__card [data-contact-status]:empty { display: none; }
.contact-us__card .contact-us__retry { margin: 0 14px 0 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.contact-us__form-pane { min-width: 0; }
.contact-us__card .hs-form > * { grid-column: 1 / -1; min-width: 0; }
.contact-us__card .hs-form .hs-form-field { min-width: 0; max-width: 100%; margin: 0; }
.contact-us__card .hs-form > :is(.hs_firstname, .hs_lastname, .hs_company, .hs_jobtitle) { grid-column: auto; }
.contact-us__card .hs-form > fieldset:has(> :is(.hs_firstname, .hs_lastname, .hs_company, .hs_jobtitle):only-child) { grid-column: auto; }
.contact-us__card .hs-form fieldset { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; width: 100%; min-width: 0; max-width: 100%; padding: 0; margin: 0; border: 0; }
.contact-us__card .hs-form fieldset:has(input[type="hidden"]):not(:has(input:not([type="hidden"]), select, textarea, .hs-richtext)) { display: none; }
.contact-us__card .hs-form fieldset .hs-form-field { flex: 1 1 0%; float: none; min-width: 0; width: auto; margin: 0; }
.contact-us__card .hs-form .hs-dependent-field { flex: 1 1 100%; min-width: 0; }
.contact-us__card .hs-form .hs-dependent-field > .hs-form-field + .hs-form-field { margin-top: 16px; }
.contact-us__card .hs-form .input { min-width: 0; max-width: 100%; margin: 0; }
.contact-us__card .hs-form .hs-form-field > label { display: block; width: auto; height: auto; margin: 0 0 6px; padding: 0; position: static; color: #526075; font: 600 12.5px/1.5 "Founders Grotesk", sans-serif; }
/* Placeholder-only appearance; field names remain available to assistive technology. */
.contact-us__card .hs-form .hs-form-field > label.contact-us__field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.contact-us__card .hs-form .hs-form-required { color: #b50525; margin-left: 3px; }
.contact-us__card .hs-form .input .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    min-height: var(--contact-field-height, 46px);
    height: auto;
    margin: 0;
    padding: 12px var(--contact-field-padding-right, 14px) 12px 14px;
    border: 1px solid var(--contact-field-border, #0b163326);
    border-radius: 12px;
    background: var(--contact-field-background, #fff);
    color: #0b1633;
    font: 400 14px/1.5 "Founders Grotesk", sans-serif;
    box-shadow: var(--contact-field-shadow, none);
}
.contact-us__card .hs-form textarea.hs-input { --contact-field-height: 100px; resize: none; }
.contact-us__card .hs-form .contact-us__file-control { position: relative; min-width: 0; padding: 16px; border: 1px dashed #9aaeb5; border-radius: 12px; background: #fff; }
.contact-us__card .hs-form .contact-us__file-control input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.contact-us__card .hs-form .contact-us__file-control:focus-within { border-color: #0e9a91; outline: 2px solid #0e9a9140; outline-offset: 2px; }
.contact-us__file-picker { display: flex; align-items: flex-start; gap: 12px; }
.contact-us__file-picker svg { flex: 0 0 28px; margin-top: 2px; color: #0e756e; }
.contact-us__file-copy { min-width: 0; }
.contact-us__file-title { display: block; color: #0b1633; font: 600 15px/1.4 "Founders Grotesk", sans-serif; }
.contact-us__file-types { display: block; margin-top: 2px; color: #64748b; font: 400 12px/1.4 "Founders Grotesk", sans-serif; }
.contact-us__file-action { display: inline-block; margin-top: 10px; padding: 6px 10px; border: 1px solid #c9ddda; border-radius: 6px; background: #f1f8f7; color: #0e756e; font: 600 13px/1.3 "Founders Grotesk", sans-serif; }
.contact-us__file-control:hover .contact-us__file-action { background: #e7f3f1; }
.contact-us__file-preview { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8ed; }
.contact-us__file-preview img { display: block; width: 100%; height: 160px; margin: 0 0 12px; border-radius: 6px; background: #f5f7fa; object-fit: contain; }
.contact-us__file-caption { display: flex; align-items: flex-start; gap: 12px; }
.contact-us__file-prompt { display: block; flex: 1; min-width: 0; color: #526075; font: 400 13px/1.4 "Founders Grotesk", sans-serif; overflow-wrap: anywhere; pointer-events: none; }
.contact-us__card .hs-form .contact-us__file-remove { position: relative; z-index: 2; flex: 0 0 auto; margin: 0; padding: 2px 0; border: 0; background: none; color: #0e756e; font: 600 13px/1.4 "Founders Grotesk", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-us__file-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-us__card .hs-form .hs_how_did_you_hear_about_allego textarea.hs-input { --contact-field-height: 76px; }
.contact-us__card .hs-form select.hs-input {
    -webkit-appearance: none;
    appearance: none;
    --contact-field-padding-right: 40px;
    --contact-field-background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%230b1633' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
@media (forced-colors: active) {
    .contact-us__card .hs-form select.hs-input { -webkit-appearance: auto; appearance: auto; --contact-field-background: Canvas; }
}
.contact-us__card .hs-form .hs-input::placeholder { color: #64748b; opacity: 1; }
.contact-us__card .hs-form .hs-input:focus { --contact-field-border: #0e9a91; outline: none; }
.contact-us__card .hs-form .hs-input:focus-visible { outline: 2px solid #0e9a9140; outline-offset: 2px; }
/* Keep browser autofill on the same white surface as the demo fields. */
.contact-us__card .hs-form .hs-input:is(:autofill, :-webkit-autofill) {
    --contact-field-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #0b1633;
    caret-color: #0b1633;
}
.contact-us__card .hs-form input[type="checkbox"], .contact-us__card .hs-form input[type="radio"] { width: 18px !important; height: 18px; margin: 2px 8px 0 0; accent-color: #0e9a91; }
.contact-us__card .hs-form .inputs-list { list-style: none; margin: 0; padding: 0; }
.contact-us__card .hs-form .inputs-list label { color: #334155; font-size: 14px; line-height: 1.5; }
.contact-us__card .hs-form .hs-richtext p, .contact-us__card .hs-form .legal-consent-container p, .contact-us__card .hs-form .hs-field-desc { margin: 0; color: #526075; font: 400 13px/1.5 "Founders Grotesk", sans-serif; }
/* HubSpot inserts lists after validation; reset every level so messages stay in their field. */
.contact-us__card .hs-form .hs-error-msgs {
    display: block;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #875463;
    font: 400 12px/1.4 "Founders Grotesk", sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.contact-us__card .hs-form .hs-error-msgs li,
.contact-us__card .hs-form .hs-error-msgs label {
    display: block;
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.contact-us__card .hs-form .hs-error-msgs li + li { margin-top: 4px; }
.contact-us__card .hs-form .hs-input:is(.error, .invalid):not(:focus) { --contact-field-border: #c49da8; }
.contact-us__card .hs-form .hs_submit { margin-top: 8px; padding-top: 24px; border-top: 1px solid #0b16331a; }
.contact-us__card .hs-form .actions { padding: 0; margin: 0; }
.contact-us__card .hs-form .hs-button {
    display: block;
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 16px 24px;
    margin: 0;
    border: 0;
    border-radius: 32px 0 32px 32px;
    background: #b50525;
    box-shadow: 0 10px 30px -10px #b5052599;
    color: #fff;
    font: 700 15px/1.35 "Founders Grotesk", sans-serif;
    text-align: center;
    white-space: normal;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}
.contact-us__card .hs-form .hs-button:hover { background: #d40a2f; }
.contact-us__card .hs-form .hs-button:focus-visible { outline: 2px solid #0e9a91; outline-offset: 4px; }
.contact-us__card .hs-form .hs-button:disabled { opacity: .55; cursor: not-allowed; }
.contact-us__card [data-contact-status] p, .contact-us__card noscript p, .contact-us__card .submitted-message { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.contact-us__card [data-contact-status][role="alert"] { margin-bottom: 16px; color: #875463; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.contact-us__card [data-contact-status][role="alert"] p { color: inherit; font-size: inherit; line-height: inherit; }
.contact-us__card [hidden] { display: none !important; }
@media (forced-colors: active) {
    .contact-us__card .hs-form .hs-input:is(:autofill, :-webkit-autofill) { --contact-field-shadow: none; -webkit-text-fill-color: CanvasText; }
}
@container (max-width: 320px) {
    .contact-us__card .hs-form > :is(fieldset, .hs-form-field) { grid-column: 1 / -1 !important; }
    .contact-us__card .hs-form fieldset .hs-form-field { flex-basis: 100%; }
}
@media (max-width: 1200px) {
    .contact-us .contact-us__title { font-size: 48px; }
    .contact-us__form-column { flex-basis: 380px; max-width: 380px; }
}
@media (max-width: 1024px) {
    .contact-us { flex-direction: column; padding: 36px 40px 48px; gap: 32px; }
    .contact-us__content { width: 100%; padding-right: 0; }
    .contact-us__form-column { flex-basis: auto; max-width: 100%; order: -1; }
    .contact-us .contact-us__title { font-size: 44px; }
}
@media (max-width: 767px) {
    .contact-us { padding: 100px 16px 40px; }
    .contact-us .contact-us__title { font-size: 32px; line-height: 1.15; }
    .contact-us__copy { font-size: 16px; }
    .contact-us .contact-us__title { margin-bottom: 16px; }
    .contact-us .contact-us__intro { margin-bottom: 28px; font-size: 16px; }
    .contact-us__details { gap: 16px; }
    .contact-us__details address, .contact-us__phones { flex-basis: 100%; }
    .contact-us__map { margin-top: 24px; border-radius: 16px; }
    .contact-us__map-canvas { height: 320px; }
    .contact-us__map-marker-label { width: 132px; padding: 6px 8px; font-size: 11px; }
    .contact-us__map figcaption { padding: 12px; }
    .contact-us__app { margin-top: 28px; padding-top: 24px; }
    .contact-us__card { padding: 24px 20px; }
    .contact-us__card .hs-form .input .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-us__card .hs-form .hs-button { transition: none; }
}
