/* GF */
.gform_confirmation_message {
    color: white !important;
}

.pf-hubspot-form-wrapper {
    width: 100%;
}

.pf-hubspot-form-wrapper--card {
    --pf-form-surface: rgba(255, 255, 255, 0.96);
    --pf-form-ink: #171717;
    --pf-form-muted: #4f586a;
    --pf-form-outline: rgba(255, 255, 255, 0.5);
    --pf-form-button: #eb6309;
    --pf-form-button-hover: #c75400;
}

.pf-hubspot-form-wrapper__form {
    min-width: 0;
    width: 100%;
}

.pf-hubspot-form-wrapper--card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 40px 40px;
    align-items: start;
    padding: 52px 56px;
    border-radius: 28px;
    overflow: hidden;
    background-image: url('/wp-content/uploads/grain-comp.png'),
        linear-gradient(110deg, #ff4b88 0%, #3549b0 100%);
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    color: #fff;
    box-shadow: 0 18px 42px rgba(25, 32, 96, 0.22);
}

.pf-hubspot-form-wrapper__intro {
    display: grid;
    gap: 20px;
    align-content: start;
    padding-top: 4px;
}

.pf-hubspot-form-wrapper__title {
    margin: 0;
    max-width: 7ch;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.02;
    font-weight: 700;
    color: #fff !important;
}

.pf-hubspot-form-wrapper__subtitle {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.15;
    font-weight: 600;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .pf-hubspot-form-wrapper--card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 32px 24px;
    }

    .pf-hubspot-form-wrapper__title {
        max-width: none;
    }

    .pf-hubspot-form-wrapper__form > *:last-child,
    .pf-hubspot-form-wrapper__form form,
    .pf-hubspot-form-wrapper__form .hsfc-FormWrapper,
    .pf-hubspot-form-wrapper__form .hsfc-Step__Content {
        margin-bottom: 0 !important;
    }

    .pf-hubspot-form-wrapper__form .hsfc-Step__Content > *:last-child,
    .pf-hubspot-form-wrapper__form form > *:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .pf-hubspot-form-wrapper--card {
        padding: 24px 20px 16px;
        border-radius: 22px;
    }

    .pf-hubspot-form-wrapper__intro {
        gap: 14px;
    }
}

/* Forms — default sec button look */
form.hs-form-private .hs-button {
    font-size: 18px;
    border-radius: 11px;
    padding: 16px 26px;
    line-height: 24px;
    border: 1px solid white;
    font-weight: 700;
    transition: .3s;
    background: rgba(255, 255, 255, 0.80);
    color: var(--e-global-color-primary);
}

form.hs-form-private .hs-button:hover {
    background: white;
    border-color: var(--e-global-color-primary);
}

/* Basic */
.field {
    position: relative;
}

.pf-hubspot-form-wrapper fieldset {
    margin-bottom: 12px !important;
}

fieldset.form-columns-1 .hs-input:not([type="checkbox"]) {
    width: 100% !important;
}

.hs-fieldtype-text .hs-input,
.hs-fieldtype-phonenumber .hs-input,
.hs-fieldtype-number .hs-input {
    background: rgba(255, 255, 255, 0.90);
    border: none !important;
    border-radius: 8px;
    height: 48px;
    padding: 10px 14px;
}

.hs-fieldtype-select .hs-input {
    background: rgba(255, 255, 255, 0.90);
    border: none !important;
    border-radius: 8px;
    height: 48px;
    padding: 0 40px 0 14px;
    font-size: 16px;
    font-family: "SofiaSans", Sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(/wp-content/uploads/chevron-down.svg);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    margin-top: 14px;
}

.field label {
    opacity: 1;
    color: white;
}

.hs-fieldtype-text label,
.hs-fieldtype-phonenumber label,
.hs-fieldtype-number label {
    position: absolute;
    transition: 0.2s;
    cursor: text;
    font-weight: 400;
    top: 18px;
    font-size: 16px;
    left: 14px;
    color: var(--e-global-color-secondary);
}

.hs-form-field.active label {
    transform: translateY(-12px);
    font-size: 12px;
    opacity: 1;
}

/* Error */
.hs-error-msgs {
    list-style-type: none;
    padding: 0;
}

label.hs-error-msg {
    position: relative;
    font-size: 14px !important;
    background: white;
    border-radius: 4px;
    padding: 4px 10px;
    color: red;
    top: 0;
    left: 0;
    transform: unset !important;
}

ul.inputs-list {
    list-style-type: none;
    color: white;
    padding: 0;
}

li.hs-form-checkbox,
li.hs-form-radio {
    margin: 20px 0;
    display: block;
    color: white;
}

.hs-form-booleancheckbox a {
    text-decoration: underline !important;
    color: white;
}

li.hs-form-checkbox label,
li.hs-form-radio label,
li.hs-form-booleancheckbox label {
    display: flex;
    font-size: 16px;
}

/* Custom checkbox/radio squares for HubSpot forms */
li.hs-form-checkbox .hs-form-checkbox-display,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display,
li.hs-form-radio .hs-form-radio-display {
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

li.hs-form-checkbox .hs-form-checkbox-display .hs-input,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display .hs-input,
li.hs-form-radio .hs-form-radio-display .hs-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

li.hs-form-checkbox .hs-form-checkbox-display > span,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display > span,
li.hs-form-radio .hs-form-radio-display > span {
    position: relative;
    padding-left: 40px;
}

li.hs-form-checkbox .hs-form-checkbox-display > span::before,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display > span::before,
li.hs-form-radio .hs-form-radio-display > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 28px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    transform: translateY(-50%);
    background-color: transparent;
    transition: 0.3s;
}

li.hs-form-checkbox .hs-form-checkbox-display .hs-input:checked + span::before,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display .hs-input:checked + span::before,
li.hs-form-radio .hs-form-radio-display .hs-input:checked + span::before {
    background-color: white;
    border-color: white;
}

li.hs-form-checkbox .hs-form-checkbox-display .hs-input:checked + span::after,
li.hs-form-booleancheckbox .hs-form-booleancheckbox-display .hs-input:checked + span::after,
li.hs-form-radio .hs-form-radio-display .hs-input:checked + span::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-color: #213877;
    -webkit-mask-image: url(/wp-content/uploads/check.svg);
    mask-image: url(/wp-content/uploads/check.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.legal-consent-container .hs-form-booleancheckbox-display > span {
    margin-left: unset !important;
}

.legal-consent-container .hs-form-booleancheckbox-display {
    margin-top: 5px;
}

.hs_submit input {
    background-color: var(--e-global-color-50b4f44b);
    font-size: 20px;
    border-radius: 11px;
    padding: 18px 26px;
    line-height: 24px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: .3s;
    color: white;
}

.hs-fieldtype-textarea .hs-input {
    background: rgba(255, 255, 255, 0.90);
    border: none !important;
    border-radius: 8px;
    padding: 14px;
    min-height: 100px;
    color: #000;
}

.hs_submit input:hover {
    background-color: var(--e-global-color-248a6999);
}

.hs_recaptcha {
    margin: 20px 0;
}

.submitted-message h4,
.submitted-message p {
    color: white !important;
}

/* HubSpot legacy form layout for the explicit demo card variant only */
.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: start;
    width: 100%;
    max-width: none;
}

.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > fieldset,
.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs-richtext,
.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .legal-consent-container,
.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .submitted-message {
    grid-column: 1 / -1;
}

.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs_recaptcha {
    grid-column: 1;
    margin: 8px 0 0;
}

.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs_submit {
    grid-column: 2;
    align-self: end;
    margin-top: 8px;
}

.pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs_submit .actions,
.pf-hubspot-form-wrapper--card .actions {
    display: flex;
    justify-content: flex-end;
}

.pf-hubspot-form-wrapper--card fieldset {
    margin: 0 !important;
    max-width: none !important;
}

.pf-hubspot-form-wrapper--card fieldset.form-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pf-hubspot-form-wrapper--card fieldset.form-columns-2 .hs-form-field {
    width: auto !important;
    float: none !important;
}

.pf-hubspot-form-wrapper--card fieldset.form-columns-1 .hs-input:not([type="checkbox"]) {
    width: 100% !important;
}

.pf-hubspot-form-wrapper--card .hs-form-field {
    position: relative;
    margin: 0 !important;
    min-width: 0;
}

.pf-hubspot-form-wrapper--card .hs-fieldtype-text > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-email > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-phonenumber > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-number > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-textarea > label:not(.hs-error-msg) {
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 2;
    margin: 0;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--pf-form-muted);
    transition: transform 0.2s ease, font-size 0.2s ease, opacity 0.2s ease;
}

.pf-hubspot-form-wrapper--card .hs-fieldtype-text.active > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-email.active > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-phonenumber.active > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-number.active > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper--card .hs-fieldtype-textarea.active > label:not(.hs-error-msg) {
    transform: translateY(-10px);
    font-size: 12px;
    opacity: 1;
}

.pf-hubspot-form-wrapper--card .hs-fieldtype-text .hs-input,
.pf-hubspot-form-wrapper--card .hs-fieldtype-email .hs-input,
.pf-hubspot-form-wrapper--card .hs-fieldtype-phonenumber .hs-input,
.pf-hubspot-form-wrapper--card .hs-fieldtype-number .hs-input {
    width: 100% !important;
    height: 52px;
    padding: 18px 14px 0;
    border: 1px solid transparent !important;
    border-radius: 10px;
    background: var(--pf-form-surface);
    color: var(--pf-form-ink);
    box-shadow: none !important;
}

.pf-hubspot-form-wrapper--card .hs-fieldtype-select .hs-input {
    width: 100% !important;
    height: 52px;
    margin-top: 0;
    padding: 0 44px 0 14px;
    border: 1px solid transparent !important;
    border-radius: 10px;
    background-color: var(--pf-form-surface);
    color: var(--pf-form-ink);
    background-image: url(/wp-content/uploads/chevron-down.svg);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.pf-hubspot-form-wrapper--card .hs-fieldtype-textarea .hs-input {
    width: 100% !important;
    min-height: 112px;
    padding: 16px 14px;
    border: 1px solid transparent !important;
    border-radius: 10px;
    background: var(--pf-form-surface);
    color: var(--pf-form-ink);
    box-shadow: none !important;
}

.pf-hubspot-form-wrapper--card .hs-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22) !important;
}

.pf-hubspot-form-wrapper--card .hs-form-field .input {
    margin-right: 0 !important;
}

.pf-hubspot-form-wrapper--card ul.inputs-list {
    display: grid;
    gap: 14px;
    margin: 2px 0 0;
    padding: 0;
}

.pf-hubspot-form-wrapper--card li.hs-form-checkbox,
.pf-hubspot-form-wrapper--card li.hs-form-radio,
.pf-hubspot-form-wrapper--card li.hs-form-booleancheckbox {
    margin: 0;
    color: #fff;
}

.pf-hubspot-form-wrapper--card li.hs-form-checkbox label,
.pf-hubspot-form-wrapper--card li.hs-form-radio label,
.pf-hubspot-form-wrapper--card li.hs-form-booleancheckbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

.pf-hubspot-form-wrapper--card li.hs-form-checkbox .hs-form-checkbox-display > span::before,
.pf-hubspot-form-wrapper--card li.hs-form-booleancheckbox .hs-form-booleancheckbox-display > span::before,
.pf-hubspot-form-wrapper--card li.hs-form-radio .hs-form-radio-display > span::before {
    width: 26px;
    height: 26px;
}

.pf-hubspot-form-wrapper--card .legal-consent-container,
.pf-hubspot-form-wrapper--card .hs-richtext {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.pf-hubspot-form-wrapper--card .legal-consent-container p,
.pf-hubspot-form-wrapper--card .hs-richtext p {
    margin: 0;
    color: inherit;
}

.pf-hubspot-form-wrapper--card .legal-consent-container a,
.pf-hubspot-form-wrapper--card .hs-richtext a {
    color: inherit;
    text-decoration: underline !important;
}

.pf-hubspot-form-wrapper .legal-consent-container a,
.pf-hubspot-form-wrapper .legal-consent-container a:hover,
.pf-hubspot-form-wrapper .legal-consent-container a:focus,
.pf-hubspot-form-wrapper .legal-consent-container a:active,
.pf-hubspot-form-wrapper .hs-richtext a,
.pf-hubspot-form-wrapper .hs-richtext a:hover,
.pf-hubspot-form-wrapper .hs-richtext a:focus,
.pf-hubspot-form-wrapper .hs-richtext a:active {
    color: white !important;
}

.hs-form-html .legal-consent-container,
.hs-form-html .legal-consent-container p,
.hs-form-html .hs-richtext,
.hs-form-html .hs-richtext p {
    color: white !important;
}

.hs-form-html .legal-consent-container a,
.hs-form-html .legal-consent-container a:hover,
.hs-form-html .legal-consent-container a:focus,
.hs-form-html .legal-consent-container a:active,
.hs-form-html .hs-richtext a,
.hs-form-html .hs-richtext a:hover,
.hs-form-html .hs-richtext a:focus,
.hs-form-html .hs-richtext a:active {
    color: white !important;
    text-decoration: underline !important;
}

.pf-hubspot-form-wrapper--card .hs-button,
.pf-hubspot-form-wrapper--card .hs_submit input {
    min-height: 58px;
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--pf-form-button);
    box-shadow: 0 12px 26px rgba(235, 99, 9, 0.28);
    color: #fff;
}

.pf-hubspot-form-wrapper--card .hs-button:hover,
.pf-hubspot-form-wrapper--card .hs_submit input:hover {
    background: var(--pf-form-button-hover);
}

.pf-hubspot-form-wrapper--card .hs-error-msgs {
    margin: 8px 0 0;
}

.pf-hubspot-form-wrapper--card label.hs-error-msg {
    display: inline-block;
    margin-top: 6px;
}

/* Legacy HubSpot forms inside pf_hubspot_form should visually match the newer renderer */
.pf-hubspot-form-wrapper form:not(.hsfc-Form) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 8px;
    align-items: start;
    width: 100% !important;
    max-width: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) > fieldset,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs-richtext,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .legal-consent-container,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .submitted-message {
    grid-column: 1 / -1;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs_recaptcha {
    grid-column: 1;
    margin: 4px 0 0;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs_submit {
    grid-column: 2;
    align-self: end;
    margin-top: 0;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs_submit .actions,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .actions {
    display: flex;
    justify-content: flex-end;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) fieldset {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) fieldset.form-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100% !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) fieldset.form-columns-2 .hs-form-field {
    width: 100% !important;
    float: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .input,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-form-field,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-input {
    width: 100% !important;
    max-width: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-form-field {
    position: relative;
    margin: 0 !important;
    min-width: 0;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-text > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-email > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-phonenumber > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-number > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-select > label:not(.hs-error-msg),
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-textarea > label:not(.hs-error-msg) {
    position: static;
    display: block;
    margin: 0 0 2px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    color: white !important;
    transform: none !important;
    opacity: 1 !important;
    max-width: none;
    pointer-events: auto;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-form-field.active > label:not(.hs-error-msg) {
    transform: none !important;
    font-size: 14px !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-text .hs-input,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-email .hs-input,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-phonenumber .hs-input,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-number .hs-input {
    width: 100% !important;
    height: 40px;
    padding: 6px 14px;
    border: none !important;
    border-radius: 8px;
    background: #fff;
    color: #000;
    box-shadow: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-select .hs-input {
    width: 100% !important;
    height: 40px;
    margin-top: 0;
    padding: 0 40px 0 14px;
    border: none !important;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    background-image: url(/wp-content/uploads/chevron-down.svg);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-textarea .hs-input {
    width: 100% !important;
    min-height: 100px;
    padding: 14px;
    border: none !important;
    border-radius: 8px;
    background: #fff;
    color: #000;
    box-shadow: none !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-input::placeholder {
    color: #000;
    opacity: 1;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) ul.inputs-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-checkbox,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-radio,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-booleancheckbox {
    margin: 0;
    color: #fff;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-checkbox label,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-radio label,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) li.hs-form-booleancheckbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.35;
    color: #fff;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext {
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container p,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext p {
    margin: 0;
    color: inherit;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container a,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container a:hover,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container a:focus,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .legal-consent-container a:active,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext a,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext a:hover,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext a:focus,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-richtext a:active {
    color: white !important;
    text-decoration: underline !important;
}

.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-checkbox > label,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-booleancheckbox > label,
.pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-fieldtype-radio > label {
    display: none !important;
}

@media (max-width: 767px) {
    .pf-hubspot-form-wrapper form:not(.hsfc-Form),
    .pf-hubspot-form-wrapper form:not(.hsfc-Form) fieldset.form-columns-2,
    .pf-hubspot-form-wrapper--card form:not(.hsfc-Form),
    .pf-hubspot-form-wrapper--card fieldset.form-columns-2 {
        grid-template-columns: 1fr;
    }

    .pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs_recaptcha,
    .pf-hubspot-form-wrapper form:not(.hsfc-Form) > .hs_submit,
    .pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs_recaptcha,
    .pf-hubspot-form-wrapper--card form:not(.hsfc-Form) > .hs_submit {
        grid-column: 1;
    }

    .pf-hubspot-form-wrapper form:not(.hsfc-Form) .actions,
    .pf-hubspot-form-wrapper--card .actions {
        justify-content: flex-start;
    }

    .pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs-button,
    .pf-hubspot-form-wrapper form:not(.hsfc-Form) .hs_submit input,
    .pf-hubspot-form-wrapper--card .hs-button,
    .pf-hubspot-form-wrapper--card .hs_submit input {
        width: 100%;
    }
}

/* Andere editor styling */
/* ======================================================
   HUBSPOT FORMS NEXT ALL IMPORTANT
   ====================================================== */

[data-hsfc-id="Renderer"] .hsfc-FormWrapper {
    width: 100% !important;
    max-width: none !important;
}

[data-hsfc-id="Renderer"] .hsfc-Step__Content {
    padding: 0 !important;
}

@media (min-width: 768px) {
    [data-hsfc-id="Renderer"] .hsfc-Step__Content {
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 32px !important;
        row-gap: 6px !important;
        align-items: flex-start !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > * {
        flex: 0 0 100% !important;
        margin-bottom: 0 !important;
        min-width: 0 !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2),
    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2) + .hsfc-NavigationRow {
        max-width: 100% !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2) .hsfc-ReCaptchaV2 {
        margin: 0 !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2) {
        flex: 0 0 auto !important;
        width: fit-content !important;
        display: block !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2) + .hsfc-NavigationRow {
        display: flex !important;
        flex: 1 1 auto !important;
        align-self: center !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        width: auto !important;
        margin-top: 0 !important;
        transform: translateY(-6px) !important;
        margin-left: 0 !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has(.hsfc-ReCaptchaV2) + .hsfc-NavigationRow .hsfc-Button {
        width: auto !important;
    }
}

/* INPUTVELDEN */
[data-hsfc-id="Renderer"] .hsfc-TextInput,
[data-hsfc-id="Renderer"] .hsfc-TextareaInput {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 40px !important;
    padding: 6px 14px !important;
    font-size: 16px !important;
    color: #000 !important;
    font-family: "SofiaSans", Sans-serif !important;
}

/* Textarea */
[data-hsfc-id="Renderer"] .hsfc-TextareaInput {
    height: auto !important;
    min-height: 100px !important;
    padding: 14px !important;
}

/* DROPDOWN */
[data-hsfc-id="Renderer"] .hsfc-DropdownInput > input {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 40px !important;
    padding: 0 40px 0 14px !important;
    font-size: 16px !important;
    color: #000 !important;
    font-family: "SofiaSans", Sans-serif !important;
}

[data-hsfc-id="Renderer"] .hsfc-TextInput::placeholder,
[data-hsfc-id="Renderer"] .hsfc-TextareaInput::placeholder,
[data-hsfc-id="Renderer"] .hsfc-DropdownInput > input::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* Caret */
[data-hsfc-id="Renderer"] .hsfc-DropdownInput__Caret {
    padding-right: 14px !important;
}

/* LABELS */
[data-hsfc-id="Renderer"] .hsfc-FieldLabel {
    font-size: 14px !important;
    color: white !important;
    margin-bottom: 2px !important;
    font-family: "SofiaSans", Sans-serif !important;
}

/* Description text (override inline styles) */
[data-hsfc-id="Renderer"] .hsfc-FieldDescription,
[data-hsfc-id="Renderer"] .hsfc-FieldDescription span {
    background-color: transparent !important;
    color: white !important;
}

[data-hsfc-id="Renderer"] .hsfc-FieldDescription a,
[data-hsfc-id="Renderer"] .hsfc-FieldDescription a:hover,
[data-hsfc-id="Renderer"] .hsfc-LegalText a,
[data-hsfc-id="Renderer"] .hsfc-LegalText a:hover {
    color: white !important;
}

/* Focus */
[data-hsfc-id="Renderer"] .hsfc-TextInput:focus,
[data-hsfc-id="Renderer"] .hsfc-TextareaInput:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4) !important;
}

/* BUTTON */
[data-hsfc-id="Renderer"] .hsfc-Button {
    font-size: 18px !important;
    border-radius: 11px !important;
    padding: 14px 24px !important;
    line-height: 24px !important;
    border: 1px solid transparent !important;
    font-weight: 700 !important;
    transition: .3s !important;
    background: var(--e-global-color-50b4f44b) !important;
    color: white !important;
    display: inline-block !important;
    font-family: "SofiaSans", Sans-serif !important;
}

[data-hsfc-id="Renderer"] .hsfc-Button:hover {
    background: var(--e-global-color-248a6999) !important;
}

/* ==========================
   RADIO OVERRIDE
   ========================== */

[data-hsfc-id="Renderer"] .hsfc-RadioInput {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    background: transparent !important;
    position: relative !important;
}

/* HubSpot mask uit */
[data-hsfc-id="Renderer"] .hsfc-RadioInput:checked:after {
    display: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: none !important;
    content: none !important;
}

/* Eigen check */
[data-hsfc-id="Renderer"] .hsfc-RadioInput:checked {
    background: white !important;
}

[data-hsfc-id="Renderer"] .hsfc-RadioInput:checked::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 12px !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 0 !important;
    background-image: url(/wp-content/uploads/check.svg) !important;
    background-repeat: no-repeat !important;
}

/* ==========================
   CHECKBOX OVERRIDE
   ========================== */

[data-hsfc-id="Renderer"] .hsfc-CheckboxInput {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 5px !important;
    background: transparent !important;
    position: relative !important;
}

/* HubSpot checkmark uit */
[data-hsfc-id="Renderer"] .hsfc-CheckboxInput:checked:after {
    display: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: none !important;
    content: none !important;
}

/* Eigen check */
[data-hsfc-id="Renderer"] .hsfc-CheckboxInput:checked {
    background: white !important;
    background-image: url(/wp-content/uploads/check.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px !important;
}

/* Labels uitlijning */
[data-hsfc-id="Renderer"] .hsfc-CheckboxFieldGroup__Options label,
[data-hsfc-id="Renderer"] .hsfc-RadioFieldGroup__Options label {
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-CheckboxFieldGroup__Options,
[data-hsfc-id="Renderer"] .hsfc-RadioFieldGroup__Options {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="CheckboxFieldGroup"]),
[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="RadioFieldGroup"]) {
    margin-bottom: 0 !important;
    gap: 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="CheckboxFieldGroup"]) + .hsfc-Row:has([data-hsfc-id="CheckboxFieldGroup"]),
[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="CheckboxFieldGroup"]) + .hsfc-Row:has([data-hsfc-id="RadioFieldGroup"]),
[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="RadioFieldGroup"]) + .hsfc-Row:has([data-hsfc-id="CheckboxFieldGroup"]),
[data-hsfc-id="Renderer"] .hsfc-Step__Content > .hsfc-Row:has([data-hsfc-id="RadioFieldGroup"]) + .hsfc-Row:has([data-hsfc-id="RadioFieldGroup"]) {
    margin-top: 0 !important;
}

/* OVERIG */
[data-hsfc-id="Renderer"] .hsfc-Row {
    margin-bottom: 4px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

[data-hsfc-id="Renderer"] .hsfc-Row > * {
    flex: 1 1 100% !important;
    min-width: 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-ReCaptchaV2 {
    margin: 4px 0 0 !important;
}

[data-hsfc-id="Renderer"] [data-hsfc-id="CheckboxFieldGroup"],
[data-hsfc-id="Renderer"] [data-hsfc-id="RadioFieldGroup"] {
    margin: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
}

[data-hsfc-id="Renderer"] [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldLabel,
[data-hsfc-id="Renderer"] [data-hsfc-id="RadioFieldGroup"] .hsfc-FieldLabel,
[data-hsfc-id="Renderer"] [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldDescription,
[data-hsfc-id="Renderer"] [data-hsfc-id="RadioFieldGroup"] .hsfc-FieldDescription {
    margin: 0 !important;
    padding: 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-FieldDescription,
[data-hsfc-id="Renderer"] .hsfc-FieldDescription span,
[data-hsfc-id="Renderer"] .hsfc-LegalText,
[data-hsfc-id="Renderer"] .hsfc-LegalText p {
    line-height: 1.35 !important;
}

[data-hsfc-id="Renderer"] .hsfc-PostSubmit h4,
[data-hsfc-id="Renderer"] .hsfc-PostSubmit p {
    color: white !important;
}

form.hsfc-Form .hsfc-PhoneField .hsfc-PhoneInput > input[type="tel"].hsfc-TextInput {
    border-radius: 0 8px 8px 0 !important;
}

[data-hsfc-id="Renderer"] .hsfc-PhoneInput__FlagAndCaret {
    background: rgba(255,255,255,0.90) !important;
    border: none !important;
}

.hs-fieldtype-text {
    margin-bottom: 10px;
}

.hsfc-DropdownOptions__Search {
    display: none !important;
}

.hsfc-DropdownOptions__List__ListItem {
    font-size: 16px !important;
    font-family: "SofiaSans", Sans-serif !important;
}

.hsfc-ErrorAlert {
    position: relative;
    font-size: 14px !important;
    background: white;
    border-radius: 4px;
    padding: 2px 10px;
    color: red;
    top: 0;
    left: 0;
    transform: unset !important;
    font-family: "SofiaSans" !important;
    width: max-content;
}

span.hsfc-FieldLabel__RequiredIndicator {
    color: white !important;
}

/* banner weg */
.hsfc-Step__banner {
    display: none !important;
}

div[data-hsfc-id="Banner"] {
    display: none !important;
}

/* Alleen sterretje weghalen bij radio field group */
div[data-hsfc-id="RadioFieldGroup"] .hsfc-FieldLabel__RequiredIndicator {
    display: none !important;
}

.pf-download-brochure-form [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldLabel,
.elementor-element-a2dc558 [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldLabel,
.elementor-element-a2dc558 .hs-fieldtype-checkbox > label,
.pf-download-brochure-form .hs-fieldtype-checkbox > label {
    padding-bottom: 3px !important;
}

.pf-download-brochure-checkbox-label {
    padding-bottom: 3px !important;
}

.pf-download-brochure-required-star {
    display: inline !important;
}

.elementor-element-a2dc558 [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldLabel::after,
.elementor-element-a2dc558 .hs-fieldtype-checkbox > label::after {
    content: " *" !important;
}

.pf-download-brochure-form [data-hsfc-id="CheckboxFieldGroup"] .hsfc-FieldLabel__RequiredIndicator {
    display: none !important;
}

@media (min-width: 768px) {
    [data-hsfc-id="Renderer"] .hsfc-Row > * {
        flex: 1 1 calc(50% - 8px) !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-Row > *.hsfc-Field--full,
    [data-hsfc-id="Renderer"] .hsfc-Row > [data-hsfc-id="RadioFieldGroup"],
    [data-hsfc-id="Renderer"] .hsfc-Row > [data-hsfc-id="CheckboxFieldGroup"],
    [data-hsfc-id="Renderer"] .hsfc-Row > [data-hsfc-id="TextareaField"] {
        flex: 1 1 100% !important;
    }
}

@media (max-width: 767px) {
    [data-hsfc-id="Renderer"] .hsfc-FormWrapper {
        max-width: 100% !important;
    }

    [data-hsfc-id="Renderer"] .hsfc-TextInput,
    [data-hsfc-id="Renderer"] .hsfc-TextareaInput,
    [data-hsfc-id="Renderer"] .hsfc-DropdownInput > input {
        font-size: 16px !important;
    }
}

/* ============================================================
   HubSpot v2 forms — generieke basis-styling (alle formulieren)
   ============================================================ */

/* Volle breedte — laat Elementor de container-breedte bepalen */
.hbspt-form:has(form.hs-form-private),
form.hs-form-private.hs-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
}

/* Fieldsets niet beperken tot 500px (HubSpot default) */
form.hs-form-private fieldset {
    max-width: 100% !important;
}

/* Placeholder zwart i.p.v. grijs */
form.hs-form-private .hs-input::placeholder {
    color: #000;
    opacity: 1;
}

/* Witte input-achtergrond */
form.hs-form-private .hs-input {
    background: #FFFFFF;
}

/* Input hoogte 40px (behalve checkbox, radio, textarea) */
form.hs-form-private .hs-input:not([type="checkbox"]):not([type="radio"]):not(textarea) {
    height: 40px;
    box-sizing: border-box;
}

/* ============================================================
   Per formulier — button variant override
   (Default is sec — voeg hier alleen forms toe die een andere look willen)
   ============================================================ */
