/* With a single tab (this page, after dropping the unused "product
   feedback" HubSpot tab) there's nothing to switch between — the red
   full-width tab button bar this component always rendered just added a
   redundant, oddly-styled header above the form instead of going straight
   from the section title into the form, which is what Figma shows. */
.tabbed-form .container.single-tab .tabs {
    display: none;
}

/* This container only ever had max-width:944px + margin:auto centering
   (no gutter padding of its own) — fine above 944px wide, where the auto
   margins are already much wider than any reasonable side padding, but at
   or below 944px (every tablet/mobile width, and plenty of real desktop
   windows) those margins hit 0 and the form sat flush against the
   viewport edge with no breathing room at all. !important because
   main.css has its own ".tabbed-form .container{padding-left:0!important}"
   at max-width:768px — same specificity as this rule, so without
   !important here too, whichever of the two loads last would win by
   cascade order alone, which is fragile; this makes the override explicit
   regardless of enqueue order. */
.tabbed-form .container {
    box-sizing: border-box !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* This container centers itself independently at max-width:944px, instead
   of sharing the page's standard .container (max-width:1140px, 12px
   padding) that the hero title and the "Contacto" title below use — so its
   left edge lands differently than theirs. That 944-vs-1140 box (matching
   Figma, left alone) is fine; just the title text should line up with the
   other two titles on the page, not the whole form. Since both boxes are
   centered on the same viewport, the gap between their left edges reduces
   to a constant regardless of viewport width: (1140-944)/2 + (12-24) =
   -110px — so shifting only the title left by 110px realigns it without
   moving the form fields/button, which stay exactly where Figma has them. */
@media (min-width: 992px) {
    .tabbed-form .section-title {
        margin-left: -110px;
    }
}

/* Figma-matched styling for the HubSpot-generated form itself. The form's
   actual field labels/order/count are configured in HubSpot (not this
   theme) and out of scope here — this only restyles the generic
   .hs-form-field/.hs-input/etc. wrapper markup HubSpot always renders,
   regardless of which fields or language that account's form uses. */
.tabbed-form .container.single-tab {
    padding-top: 0;
}

.tabbed-form .hs-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.tabbed-form .hs-form .hs-form-field {
    margin-bottom: 0 !important;
}

/* HubSpot renders its hidden tracking fields (hutk, pageUri, etc.) each in
   their own <fieldset>, same as visible fields — with .hs-form set to
   display:flex + gap above, each of those invisible 0-height fieldsets
   still consumed a full 17px of gap before and after it, stacking into a
   large empty gap in the form wherever several of them landed together.
   Also covers HubSpot's conditionally-hidden fields (e.g. a region field
   that only appears for certain countries): HubSpot sets
   `style="display:none"` on the .hs-form-field itself, not the <fieldset>
   wrapping it, so the wrapper was still a flex child taking its own gap
   even while collapsed to 0 height. */
.tabbed-form .hs-form fieldset:not(:has(.hs-form-field)),
.tabbed-form .hs-form fieldset:has(.hs-form-field[style*="display: none"]):not(:has(.hs-form-field:not([style*="display: none"]))) {
    display: none;
}

.tabbed-form .hs-form fieldset {
    max-width: none !important;
}

.tabbed-form .hs-form .form-columns-2,
.tabbed-form .hs-form .form-columns-1 {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.tabbed-form .hs-form .form-columns-1 .hs-form-field,
.tabbed-form .hs-form .form-columns-2 .hs-form-field {
    width: 100%;
}

.tabbed-form .hs-form label:not(.hs-form-booleancheckbox-display) {
    font-family: "Alright Sans", Verdana, sans-serif;
    font-weight: 900;
    font-size: 12px;
    line-height: 14px;
    color: #ba0c2f;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.tabbed-form .hs-form .hs-form-required {
    color: #ba0c2f;
}

.tabbed-form .hs-form .hs-input:not([type=checkbox]):not([type=radio]) {
    width: 100%;
    height: 44px;
    border: 1px solid #c0c0c0;
    border-radius: 0;
    padding: 0 16px;
    font-family: "Alright Sans", Verdana, sans-serif;
    font-size: 16px;
    color: #030405;
    box-sizing: border-box;
}

.tabbed-form .hs-form select.hs-input {
    appearance: none;
    background: #fff url("../images-reskin/chevron.png") no-repeat right 16px center;
    background-size: 16px;
}

.tabbed-form .hs-form textarea.hs-input {
    height: 96px;
    padding: 12px 16px;
}

/* Checkboxes (opt-ins/consent) */
.tabbed-form .hs-form .hs-form-booleancheckbox-display {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: "Alright Sans", Verdana, sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #030405;
    cursor: pointer;
}

.tabbed-form .hs-form .hs-form-booleancheckbox-display input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #ba0c2f;
}

.tabbed-form .hs-form ul.inputs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tabbed-form .hs-form .legal-consent-container {
    margin-top: 0;
}

/* Submit button */
.tabbed-form .hs-form .hs-button {
    background: #ba0c2f;
    color: #fff;
    border: none;
    border-radius: 21px;
    height: 42px;
    padding: 0 32px;
    font-family: "Alright Sans", Verdana, sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
}

.tabbed-form .hs-form .hs-button:hover {
    background: #980c31;
}

.tabbed-form .hs-form .hs_submit .actions {
    margin: 0;
}

@media (max-width: 768px) {
    .tabbed-form .hs-form .form-columns-2 {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    legend.gfield_label.gfield_label_before_complex{
        color: #000 !important;
    }
    #rc-anchor-container .rc-anchor-normal-footer .rc-anchor-pt{
        padding-right: 34px !important;
    }
    .rc-anchor-light.rc-anchor-normal{
        width: 100% !important;
    }
    .tabbed-form .tabs li:nth-child(2) a{
        /* position: absolute; */
        white-space: nowrap;
        height: 59px;
    }
    .block.tabbed-form .container > div > div:nth-of-type(2) > div:nth-of-type(1) {
        width: calc(50% + 50vw) !important;
    }

    /*  */
    /* .gform_wrapper form input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]){
        border: 1px solid #C0C0C0 !important;
    } */
}