/* Formulários nativos do HubSpot com a aparência do site.
   .gw-hs-form        = bloco de formulário (fundo escuro, texto claro)
   .gw-hs-form.f2     = fundo claro, texto escuro
   Editor novo (hsfc-*) e formulário legado em HTML puro (.hs-form). */

.gw-hs-form { min-height: 160px; }
.gw-hs-form .hs-form-html { width: 100%; }

/* ---------- editor novo ---------- */
.gw-hs-form .hsfc-Renderer,
.gw-hs-form .hsfc-FormWrapper,
.gw-hs-form .hsfc-Form,
.gw-hs-form .hsfc-Step {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: 'Roboto Flex', sans-serif !important;
}
.gw-hs-form .hsfc-Step__Content { padding: 0 !important; }
.gw-hs-form .hsfc-Row { margin-bottom: 14px !important; gap: 14px !important; }
.gw-hs-form .hsfc-FieldLabel,
.gw-hs-form .hsfc-FieldLabel *,
.gw-hs-form .hsfc-RichText,
.gw-hs-form .hsfc-RichText * {
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 15px !important;
    line-height: 22px !important;
    color: #fff !important;
}
.gw-hs-form.f2 .hsfc-FieldLabel,
.gw-hs-form.f2 .hsfc-FieldLabel *,
.gw-hs-form.f2 .hsfc-RichText,
.gw-hs-form.f2 .hsfc-RichText * { color: #1d1d1f !important; }
.gw-hs-form .hsfc-RichText a { text-decoration: underline !important; }
.gw-hs-form .hsfc-FieldLabel__RequiredIndicator { color: #ff8a8a !important; }
.gw-hs-form.f2 .hsfc-FieldLabel__RequiredIndicator { color: #d93025 !important; }

.gw-hs-form .hsfc-TextInput,
.gw-hs-form .hsfc-NumberInput,
.gw-hs-form .hsfc-TextareaInput,
.gw-hs-form .hsfc-DropdownInput,
.gw-hs-form .hsfc-PhoneInput {
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 16px !important;
    color: #111 !important;
    background-color: #fff !important;
    border: 1px solid #CCCCCC !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.gw-hs-form .hsfc-TextInput,
.gw-hs-form .hsfc-NumberInput,
.gw-hs-form .hsfc-DropdownInput,
.gw-hs-form .hsfc-PhoneInput { min-height: 50px !important; height: 50px !important; }
.gw-hs-form .hsfc-TextareaInput { min-height: 50px !important; height: 50px; padding-top: 12px !important; }
.gw-hs-form .hsfc-PhoneInput { overflow: hidden; padding: 0 !important; }
.gw-hs-form .hsfc-PhoneInput .hsfc-TextInput,
.gw-hs-form .hsfc-DropdownInput .hsfc-TextInput {
    border: 0 !important;
    border-radius: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    background: transparent !important;
}
.gw-hs-form .hsfc-PhoneInput__FlagAndCaret {
    background: #f1f1f3 !important;
    border: 0 !important;
    border-right: 1px solid #CCCCCC !important;
    border-radius: 0 !important;
    height: 48px !important;
}
.gw-hs-form .hsfc-TextInput:focus,
.gw-hs-form .hsfc-TextareaInput:focus,
.gw-hs-form .hsfc-PhoneInput:focus-within,
.gw-hs-form .hsfc-DropdownInput:focus-within {
    border-color: #3C7AFE !important;
    outline: 2px solid rgba(60, 122, 254, .35) !important;
    outline-offset: 0 !important;
}
.gw-hs-form .hsfc-PhoneInput .hsfc-TextInput:focus,
.gw-hs-form .hsfc-DropdownInput .hsfc-TextInput:focus { outline: 0 !important; }
.gw-hs-form .hsfc-DropdownOptions { border-radius: 10px !important; color: #111 !important; }
.gw-hs-form .hsfc-DropdownOptions * { color: #111 !important; font-family: 'Roboto Flex', sans-serif !important; }

.gw-hs-form .hsfc-RadioFieldGroup__Options label,
.gw-hs-form .hsfc-CheckboxFieldGroup__Options label,
.gw-hs-form .hsfc-CheckboxField label { display: flex !important; align-items: center; gap: 8px; }
.gw-hs-form .hsfc-RadioInput,
.gw-hs-form .hsfc-CheckboxInput { accent-color: #3C7AFE; }

.gw-hs-form .hsfc-ErrorAlert,
.gw-hs-form .hsfc-ErrorAlert * {
    font-family: 'Roboto Flex', sans-serif !important;
    font-size: 13px !important;
    line-height: 18px !important;
    color: #ffb4b4 !important;
}
.gw-hs-form.f2 .hsfc-ErrorAlert,
.gw-hs-form.f2 .hsfc-ErrorAlert * { color: #c62828 !important; }
.gw-hs-form .hsfc-InfoAlert,
.gw-hs-form .hsfc-InfoAlert * { color: #fff !important; }
.gw-hs-form.f2 .hsfc-InfoAlert,
.gw-hs-form.f2 .hsfc-InfoAlert * { color: #1d1d1f !important; }

.gw-hs-form .hsfc-NavigationRow { margin: 4px 0 0 !important; }
.gw-hs-form .hsfc-NavigationRow__Buttons { justify-content: stretch !important; }
.gw-hs-form .hsfc-Button {
    width: 100% !important;
    font-family: 'Roboto Flex', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 21px !important;
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(90deg, #03C5E9 0%, #3C7AFE 100%) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    box-shadow: none !important;
    cursor: pointer;
}
.gw-hs-form .hsfc-Button:hover { filter: brightness(1.06); transform: none !important; }
.gw-hs-form .hsfc-ReCaptchaV3 { margin-top: 10px; }
.gw-hs-form .hsfc-PostSubmit,
.gw-hs-form .hsfc-PostSubmit * { color: #fff !important; font-family: 'Roboto Flex', sans-serif !important; }
.gw-hs-form.f2 .hsfc-PostSubmit,
.gw-hs-form.f2 .hsfc-PostSubmit * { color: #1d1d1f !important; }

/* ---------- formulário legado em HTML puro ---------- */
.gw-hs-form form.hs-form { margin: 0; }
.gw-hs-form form.hs-form fieldset {
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 14px !important;
    padding: 0;
    border: 0;
}
.gw-hs-form form.hs-form fieldset > .hs-form-field {
    flex: 1 1 0;
    min-width: 200px;
    width: auto !important;
    float: none !important;
    padding: 0;
}
.gw-hs-form form.hs-form fieldset:not(:has(.hs-form-field:not([style*="none"]))) { display: none; }
.gw-hs-form form.hs-form .input { margin: 0 !important; }
.gw-hs-form form.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
    height: 50px;
    width: 100% !important;
    padding: 0 12px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #CCCCCC;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #111;
    box-sizing: border-box;
}
.gw-hs-form form.hs-form .hs-form-field > label {
    display: block;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #fff;
}
.gw-hs-form.f2 form.hs-form .hs-form-field > label { color: #1d1d1f; }
.gw-hs-form form.hs-form .hs-form-required { color: #ff8a8a; }
.gw-hs-form.f2 form.hs-form .hs-form-required { color: #d93025; }
.gw-hs-form form.hs-form .hs-error-msgs { list-style: none; margin: 4px 0 0; padding: 0; }
.gw-hs-form form.hs-form .hs-error-msgs label,
.gw-hs-form form.hs-form .hs-error-msg { display: block; font-size: 13px; line-height: 18px; color: #ffb4b4; }
.gw-hs-form.f2 form.hs-form .hs-error-msgs label,
.gw-hs-form.f2 form.hs-form .hs-error-msg { color: #c62828; }
.gw-hs-form form.hs-form .hs_error_rollup { display: none; }
.gw-hs-form form.hs-form .hs-submit .actions { margin: 0; padding: 0; }
.gw-hs-form form.hs-form .hs-button {
    width: 100%;
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 21px;
    color: #fff;
    border: 0;
    background: linear-gradient(90deg, #03C5E9 0%, #3C7AFE 100%);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
}
.gw-hs-form .submitted-message { color: #fff; font-size: 18px; padding: 24px 8px; text-align: center; }
.gw-hs-form.f2 .submitted-message { color: #1d1d1f; }
.gw-hs-form iframe.hs-form-iframe { width: 100% !important; }

@media (max-width: 767px) {
    .gw-hs-form .hsfc-Row { flex-direction: column !important; }
    .gw-hs-form form.hs-form fieldset > .hs-form-field { flex: 1 1 100%; }
}

.gw-hs-form.gw-hs-branco { background-color: #fff !important; }

/* listas de opções (rádio e caixas de seleção) do formulário legado */
.gw-hs-form form.hs-form ul.inputs-list {
    list-style: none !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 4px 16px;
}
.gw-hs-form form.hs-form ul.inputs-list li { margin: 0; padding: 0; list-style: none !important; }
.gw-hs-form form.hs-form ul.inputs-list li::before,
.gw-hs-form form.hs-form ul.inputs-list li::marker { content: none; }
.gw-hs-form form.hs-form ul.inputs-list label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
    color: #fff;
}
.gw-hs-form.f2 form.hs-form ul.inputs-list label { color: #1d1d1f; }
.gw-hs-form form.hs-form ul.inputs-list input { width: 18px !important; height: 18px; margin: 0; accent-color: #3C7AFE; flex: 0 0 auto; }
.gw-hs-form form.hs-form fieldset { margin-bottom: 18px !important; }
.gw-hs-form form.hs-form .hs-form-field > label { font-weight: 500; margin-bottom: 4px; }
.gw-hs-form form.hs-form .hs-button { max-width: 100%; }

/* caixa própria, para páginas que não carregam o CSS do modelo novo */
.gw-hs-form.gw-hs-caixa {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    background-color: #F5F5F7;
    border-radius: 15px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .gw-hs-form.gw-hs-caixa { margin: 16px 12px; padding: 16px; }
}
