/* Shared appearance for dynamic embeds. Opt in with allego-form/allego-form-surface. */
.allego-form-surface { background: transparent; color: var(--allego-form-ink, #0b1633); border-radius: 0; padding: 0; container-type: inline-size; }
.allego-form-surface .allego-form-title { color: var(--allego-form-ink, #0b1633); font-size: 24px; line-height: 1.2; margin: 0 0 24px; }
.allego-form-surface .allego-form { font-family: "Founders Grotesk",sans-serif; font-size: 14px; color: #0b1633; }
.allego-form-surface .allego-form fieldset { max-width: none; width: 100%; border: 0; margin: 0; padding: 0; }
.allego-form-surface .allego-form .hs-form-field { margin-bottom: 18px; min-width: 0; }
.allego-form-surface .allego-form .input { margin-right: 0; }
.allego-form-surface .allego-form .hs-form-field > label { display: block; position: static; width: auto; height: auto; clip-path: none; white-space: normal; overflow: visible; color: var(--allego-form-ink, #0b1633); font-size: 12.5px; font-weight: 600; line-height: 1.5; margin: 0 0 7px; }
.allego-form-surface .allego-form .hs-form-required { color: var(--allego-form-ink, #b50525); margin-left: 3px; }
.allego-form-surface .allego-form .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { display: block; box-sizing: border-box; width: 100% !important; max-width: 100%; min-width: 0; height: auto; min-height: 46px; padding: 12px 14px; border: 1px solid #0b163326; border-radius: 12px; background: #fff; color: #0b1633; font: inherit; font-size: 14px; line-height: 1.5; margin: 0; box-shadow: none; }
.allego-form-surface .allego-form textarea.hs-input { min-height: 110px; resize: vertical; }
.allego-form-surface .allego-form .hs-input::placeholder { color: #94a3b8; opacity: 1; }
.allego-form-surface .allego-form .hs-input:focus { border-color: #28ccc1; outline: 2px solid #28ccc14d; outline-offset: 2px; }
.allego-form-surface .allego-form input[type="checkbox"], .allego-form-surface .allego-form input[type="radio"] { display: inline-block; width: 16px !important; height: 16px; padding: 0; margin: 2px 8px 0 0; accent-color: var(--allego-form-ink, #0e9a91); vertical-align: top; }
.allego-form-surface .allego-form .inputs-list { list-style: none; padding: 0; margin: 0; }
.allego-form-surface .allego-form .inputs-list label { color: var(--allego-form-ink, #0b1633); font-size: 13px; line-height: 1.5; }
.allego-form-surface .allego-form .hs-field-desc, .allego-form-surface .allego-form .hs-richtext p, .allego-form-surface .allego-form .legal-consent-container p { color: var(--allego-form-ink, #0b1633); font-size: 13px; line-height: 1.5; margin: 8px 0; }
.allego-form-surface .allego-form a { color: var(--allego-form-ink, #0e9a91); text-decoration: underline; }
.allego-form-surface .allego-form .hs-error-msgs, .allego-form-surface .allego-form .hs-error-msgs label { color: var(--allego-form-ink, #b50525); font-size: 13px; line-height: 1.5; margin: 6px 0 0; padding: 0; list-style: none; }
.allego-form-surface .allego-form .hs-input.error, .allego-form-surface .allego-form .hs-input.invalid { border-color: var(--allego-form-ink, #b50525); }
.allego-form-surface .allego-form .hs-button { display: block; box-sizing: border-box; width: 100%; height: auto; min-height: 50px; padding: 15px 20px; border: 0; border-radius: 32px 0 32px 32px; background: var(--allego-form-ink, #0b1633); color: var(--allego-form-button-ink, #ffffff); font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.5; margin: 24px 0 0; cursor: pointer; white-space: normal; text-align: center; }
.allego-form-surface .allego-form .hs-button:hover { filter: brightness(0.9); }
.allego-form-surface .allego-form .hs-button:focus-visible { outline: 2px solid #0e9a91; outline-offset: 3px; }
.allego-form-surface .allego-form .hs-button:disabled { opacity: .5; cursor: not-allowed; }
.allego-form-surface [data-form-status] p, .allego-form-surface .submitted-message { color: var(--allego-form-ink, #0b1633); font-size: 14px; line-height: 1.5; margin: 14px 0 0; }
.allego-form-surface [data-form-status][role="alert"] p { color: var(--allego-form-ink, #b50525); }
.allego-form-surface .allego-form-retry { color: var(--allego-form-ink, #0e9a91); background: transparent; border: 1px solid currentColor; border-radius: 20px; padding: 8px 16px; font-size: 14px; margin-top: 12px; cursor: pointer; }
@container (max-width: 420px) {
    .allego-form-surface .allego-form fieldset .hs-form-field { float: none; width: 100%; }
}

/* Single-post input labels remain accessible; consent, choices and errors stay visible. */
[data-allego-single-form] .allego-form .hs-form-field > label.allego-field-label-hidden {
    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;
}
