/* Support Form module (modules/support-form.php). Card and field treatment match the Contact Us form. */
.support-form {
    padding: 72px 24px 88px;
    background: #fff;
    color: #0b1633;
    font-family: "Founders Grotesk", "Fira Sans", sans-serif;
    line-height: 1.35;
    scroll-margin-top: 120px;
}
.support-form, .support-form * { box-sizing: border-box; }
.support-form [hidden] { display: none !important; }
.support-form__inner { max-width: 720px; margin: 0 auto; }
.support-form__intro { margin: 0 0 40px; text-align: center; }
.support-form .support-form__title { margin: 0 0 16px; color: #000823; font: 700 38px/1.15 "Founders Grotesk", "Fira Sans", sans-serif; }
.support-form__text { color: #475661; font: 400 18px/1.55 "Founders Grotesk", "Fira Sans", sans-serif; }
.support-form .support-form__text p { margin: 0 0 12px; color: inherit; font: inherit; letter-spacing: normal; }
.support-form .support-form__text > :last-child { margin-bottom: 0; }
.support-form__text a { display: inline; color: #0e756e; text-decoration: underline; text-underline-offset: 3px; }
.support-form .support-form__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.support-form .support-form__contacts li { margin: 0; }
.support-form__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #dbe3e9;
    border-radius: 999px;
    background: #fff;
    color: #0b1633;
    font: 500 16px/1.2 "Founders Grotesk", sans-serif;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.support-form__contacts a:hover { background: #f1f8f7; border-color: #86bdb7; }
.support-form__contacts svg { flex-shrink: 0; color: #0e756e; }
.support-form a:focus-visible, .support-form button:focus-visible { outline: 2px solid #0e9a91; outline-offset: 3px; }

.support-form__card {
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(165deg, #f7f9fc, #e9edf4 48%, #d9dfec);
    container-type: inline-size;
    scroll-margin-top: 120px;
}
.support-form .support-form__card-title { margin: 0 0 24px; color: #0e756e; font: 600 24px/1.25 "Founders Grotesk", "Fira Sans", sans-serif; }
/* Reserve room while HubSpot loads so the page below does not jump as far. */
.support-form__card.is-loading .support-form__target { min-height: 480px; }
.support-form__status:empty { display: none; }
.support-form .support-form__status p, .support-form__card noscript p { margin: 0 0 16px; color: #334155; font: 400 16px/1.5 "Founders Grotesk", sans-serif; }
.support-form .support-form__status[role="alert"] p { color: #875463; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.support-form .support-form__status .support-form__fallback { display: flex; flex-wrap: wrap; gap: 8px 18px; color: inherit; }
.support-form__fallback a, .support-form__retry { padding: 0; border: 0; background: none; color: #0e756e; font: 600 14px/1.45 "Founders Grotesk", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.support-form__card noscript a { display: inline; color: #0e756e; text-decoration: underline; }

.support-form__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; }
.support-form__card .hs-form > * { grid-column: 1 / -1; min-width: 0; }
.support-form__card .hs-form .hs-form-field { min-width: 0; max-width: 100%; margin: 0; }
.support-form__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; }
.support-form__card .hs-form fieldset:has(input[type="hidden"]):not(:has(input:not([type="hidden"]), select, textarea, .hs-richtext)) { display: none; }
.support-form__card .hs-form fieldset .hs-form-field { flex: 1 1 0%; float: none; min-width: 0; width: auto; margin: 0; }
.support-form__card .hs-form .hs-dependent-field { flex: 1 1 100%; min-width: 0; }
.support-form__card .hs-form .hs-dependent-field > .hs-form-field + .hs-form-field { margin-top: 16px; }
.support-form__card .hs-form .input { min-width: 0; max-width: 100%; margin: 0; }
.support-form__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. */
.support-form__card .hs-form .hs-form-field > label.support-form__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;
}
.support-form__card .hs-form .hs-form-required { color: #b50525; margin-left: 3px; }
.support-form__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(--support-field-height, 46px);
    height: auto;
    margin: 0;
    padding: 12px var(--support-field-padding-right, 14px) 12px 14px;
    border: 1px solid var(--support-field-border, #0b163326);
    border-radius: 12px;
    background: var(--support-field-background, #fff);
    color: #0b1633;
    font: 400 14px/1.5 "Founders Grotesk", sans-serif;
    box-shadow: var(--support-field-shadow, none);
}
.support-form__card .hs-form textarea.hs-input { --support-field-height: 120px; resize: vertical; }
.support-form__card .hs-form select.hs-input {
    -webkit-appearance: none;
    appearance: none;
    --support-field-padding-right: 40px;
    --support-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) {
    .support-form__card .hs-form select.hs-input { -webkit-appearance: auto; appearance: auto; --support-field-background: Canvas; }
}
.support-form__card .hs-form .hs-input::placeholder { color: #64748b; opacity: 1; }
.support-form__card .hs-form .hs-input:focus { --support-field-border: #0e9a91; outline: none; }
.support-form__card .hs-form .hs-input:focus-visible { outline: 2px solid #0e9a9140; outline-offset: 2px; }
/* Keep browser autofill on the same white surface as the other fields. */
.support-form__card .hs-form .hs-input:is(:autofill, :-webkit-autofill) {
    --support-field-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #0b1633;
    caret-color: #0b1633;
}
.support-form__card .hs-form input[type="checkbox"], .support-form__card .hs-form input[type="radio"] { width: 18px !important; height: 18px; margin: 2px 8px 0 0; accent-color: #0e9a91; }
.support-form__card .hs-form .inputs-list { list-style: none; margin: 0; padding: 0; }
.support-form__card .hs-form .inputs-list li { margin: 0; }
.support-form__card .hs-form .inputs-list label { color: #334155; font-size: 14px; line-height: 1.5; }
.support-form__card .hs-form .hs-richtext p, .support-form__card .hs-form .legal-consent-container p, .support-form__card .hs-form .hs-field-desc { margin: 0; color: #526075; font: 400 13px/1.5 "Founders Grotesk", sans-serif; }

.support-form__card .hs-form .support-form__file-control { position: relative; min-width: 0; padding: 16px; border: 1px dashed #9aaeb5; border-radius: 12px; background: #fff; }
.support-form__card .hs-form .support-form__file-control input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.support-form__card .hs-form .support-form__file-control:focus-within { border-color: #0e9a91; outline: 2px solid #0e9a9140; outline-offset: 2px; }
.support-form__file-picker { display: flex; align-items: flex-start; gap: 12px; }
.support-form__file-picker svg { flex: 0 0 28px; margin-top: 2px; color: #0e756e; }
.support-form__file-copy { min-width: 0; }
.support-form__file-title { display: block; color: #0b1633; font: 600 15px/1.4 "Founders Grotesk", sans-serif; }
.support-form__file-types { display: block; margin-top: 2px; color: #64748b; font: 400 12px/1.4 "Founders Grotesk", sans-serif; }
.support-form__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; }
.support-form__file-control:hover .support-form__file-action { background: #e7f3f1; }
.support-form__file-preview { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8ed; }
.support-form__file-preview img { display: block; width: 100%; height: 160px; margin: 0 0 12px; border-radius: 6px; background: #f5f7fa; object-fit: contain; }
.support-form__file-caption { display: flex; align-items: flex-start; gap: 12px; }
.support-form__file-name { display: block; flex: 1; min-width: 0; color: #526075; font: 400 13px/1.4 "Founders Grotesk", sans-serif; overflow-wrap: anywhere; pointer-events: none; }
.support-form__card .hs-form .support-form__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; }
.support-form__file-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* HubSpot inserts lists after validation; reset every level so messages stay in their field. */
.support-form__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;
}
.support-form__card .hs-form .hs-error-msgs li,
.support-form__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;
}
.support-form__card .hs-form .hs-error-msgs li + li { margin-top: 4px; }
.support-form__card .hs-form .hs-input:is(.error, .invalid):not(:focus) { --support-field-border: #c49da8; }
.support-form__card .hs-form .hs_submit { margin-top: 8px; padding-top: 24px; border-top: 1px solid #0b16331a; }
.support-form__card .hs-form .actions { padding: 0; margin: 0; }
.support-form__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;
}
.support-form__card .hs-form .hs-button:hover { background: #d40a2f; }
.support-form__card .hs-form .hs-button:focus-visible { outline: 2px solid #0e9a91; outline-offset: 4px; }
.support-form__card .hs-form .hs-button:disabled { opacity: .55; cursor: not-allowed; }

.support-form__card .submitted-message { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0 8px; color: #0b1633; font: 400 18px/1.5 "Founders Grotesk", sans-serif; text-align: center; outline: none; }
.support-form__card .submitted-message::before {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #28ccc11f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9a91' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 26px 26px;
}
.support-form__card .submitted-message p { margin: 0; color: inherit; font: inherit; }

/* Related support details share a row once the card is wide enough for their prompts. */
@container (min-width: 520px) {
    .support-form__card .hs-form > fieldset:has(> :is(.hs_customer_support_device_type, .hs_customer_support_web_browser, .hs_customer_support_link, .hs_customer_support_channel):only-child) { grid-column: auto; }
}
@container (max-width: 320px) {
    .support-form__card .hs-form fieldset .hs-form-field { flex-basis: 100%; }
}
@media (forced-colors: active) {
    .support-form__card .hs-form .hs-input:is(:autofill, :-webkit-autofill) { --support-field-shadow: none; -webkit-text-fill-color: CanvasText; }
}
@media (max-width: 767px) {
    .support-form { padding: 48px 16px 56px; }
    .support-form .support-form__title { font-size: 30px; }
    .support-form__text { font-size: 16px; }
    .support-form__intro { margin-bottom: 32px; }
    .support-form__card { padding: 24px 20px; border-radius: 20px; }
    .support-form__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) {
    .support-form__contacts a, .support-form__card .hs-form .hs-button { transition: none; }
}
