.cabb-block.form {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
}

.cabb-block.form.text_dark {
    color: #1D1D1D;
}

.cabb-block.form.text_light {
    color: #fff;
}

.cabb-block.form .block_inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    max-width: var(--max-width);
    margin: 0 auto;
    z-index: 1;
}

.cabb-block.form.col_1 .block_inner {
    flex-direction: column;
}

.cabb-block.form .block_top {
    flex: 1;
    max-width: 600px;
}

.cabb-block.form .form_title {
    font-family: var(--cabb-font-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    padding-bottom: 24px;
    margin: 0;
}

.cabb-block.form .form_text {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}

.cabb-block.form .form_text p {
    margin-top: 0;
}

.cabb-block.form .form_text p:last-child {
    margin-bottom: 0;
}

.cabb-block.form .block_bottom {
    width: 100%;
    flex: 1;
    max-width: 600px;
}

.cabb-block.form .hubspot_form fieldset {
    max-width: none;
    padding-bottom: 32px;
}

.cabb-block.form .hubspot_form fieldset:last-of-type {
    padding-bottom: 0;
}

.cabb-block.form .hubspot_form fieldset.form-columns-2 {
    margin: 0 -4px;
}

.cabb-block.form .hubspot_form fieldset.form-columns-2 > div {
    padding: 0 4px;
}

.cabb-block.form .hubspot_form label {
    font-family: var(--cabb-font-heading);
    font-size: 16px;
    line-height: 1.57;
}

.cabb-block.form .hubspot_form .input {
    margin: 0;
}

.cabb-block.form .hubspot_form input.hs-input[type="text"],
.cabb-block.form .hubspot_form input.hs-input[type="email"],
.cabb-block.form .hubspot_form input.hs-input[type="tel"],
.cabb-block.form .hubspot_form select.hs-input,
.cabb-block.form .hubspot_form textarea.hs-fieldtype-textarea {
    line-height: 1.57;
    background-color: #fff;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #777E90;
}

.cabb-block.form .hubspot_form input.hs-input[type="checkbox"] {
    position: relative;
    margin-right: 8px;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid;
    border-radius: 2px;
    vertical-align: middle;
    cursor: pointer;
}

.cabb-block.form.text_light .hubspot_form input.hs-input[type="checkbox"] {
    border-color: #fff;
}

.cabb-block.form.text_dark .hubspot_form input.hs-input[type="checkbox"] {
    border-color: #1D1D1D;
}

.cabb-block.form .hubspot_form input.hs-input[type="checkbox"]:after {
    position: absolute;
    display: block;
    content: '';
    border-radius: 1px;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    opacity: 0;
    transition: opacity ease-in-out 0.2s;
}

.cabb-block.form.text_light .hubspot_form input.hs-input[type="checkbox"]:after {
    background: #fff;
}

.cabb-block.form.text_dark .hubspot_form input.hs-input[type="checkbox"]:after {
    background: #1D1D1D;
}

.cabb-block.form .hubspot_form input.hs-input[type="checkbox"]:checked:after {
    opacity: 1;
}

.cabb-block.form .hubspot_form input.hs-input[type="file"] {
    margin-top: 8px;
}

.cabb-block.form .hubspot_form input.hs-input[type="file"]::file-selector-button {
    border: none;
    font-family: var(--cabb-font-heading) !important;
    font-size: 14px;
    line-height: 1.57;
    font-weight: 600;
    padding: 0 16px;
    border-radius: 2px;
    height: 30px;
    margin-right: 10px;
    cursor: pointer;
    transition: background ease-in-out 0.2s;
}

.cabb-block.form.text_light .hubspot_form input.hs-input[type="file"]::file-selector-button {
    background: #fff;
    color: #1D1D1D;
}

.cabb-block.form.text_dark .hubspot_form input.hs-input[type="file"]::file-selector-button {
    background: #000;
    color: #fff;
}

.cabb-block.form .hubspot_form input.hs-input[type="file"]::file-selector-button:hover {
    background: var(--cabb-color-hover);
    color: #1D1D1D;
}

.cabb-block.form .hubspot_form select.hs-input {
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20' fill='none'><path d='M5.97877 7.5L9.30484 11.3167L12.6309 7.5L13.6526 8.675L9.30484 13.675L4.95703 8.675L5.97877 7.5Z' fill='%231A1A1A'/></svg>") no-repeat right 10px center #fff;
    background-size: 18px 20px;
    padding-right: 16px;
}

.cabb-block.form .hubspot_form textarea.hs-fieldtype-textarea {
    display: block;
    min-height: 122px;
}

.cabb-block.form .hubspot_form .hs-field-desc {
    font-family: var(--cabb-font-heading);
    font-size: 12px;
    line-height: 1.66;
}

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

.cabb-block.form ul.hs-error-msgs {
    list-style: none;
    padding: 5px 0 0 0;
    margin: 0;
}

.cabb-block.form.text_light ul.hs-error-msgs {
    color: #ffaeae;
}

.cabb-block.form.text_dark ul.hs-error-msgs {
    color: #ff2f2f;
}

.cabb-block.form .hubspot_form .actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

.cabb-block.form .hubspot_form input.hs-button {
    display: inline-block;
    background: #000;
    color: #FFF;
    font-family: var(--cabb-font-heading);
    font-size: 14px;
    line-height: 1.42;
    letter-spacing: -0.14px;
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
    border: none;
    transition: all ease-in-out 0.2s;
    border-radius: 2px;
}

.cabb-block.form .hubspot_form input.hs-button:hover {
    background: var(--cabb-color-hover) !important;
    color: #000;
}

.cabb-block.form .block_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cabb-block.form .block_bg img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .cabb-block.form .block_inner {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 32px;
    }

    .cabb-block.form .block_top {
        flex: none;
        width: 100%;
    }

    .cabb-block.form .block_bottom {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cabb-block.form .form_title {
        font-size: 28px !important;
    }

    .cabb-block.form .form_text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cabb-block.form .hubspot_form fieldset {
        padding-bottom: 16px;
    }

    .cabb-block.form .hubspot_form fieldset.form-columns-2 {
        margin: 0;
    }

    .cabb-block.form .hubspot_form fieldset.form-columns-2 > div {
        padding: 0 0 16px;
    }

    .cabb-block.form .hubspot_form fieldset.form-columns-2 > div:last-child {
        padding: 0;
    }

    .cabb-block.form .hubspot_form .hs-form-field {
        width: 100%;
    }

    .cabb-block.form .hubspot_form input.hs-input:not([type="checkbox"]) {
        width: 100% !important;
    }
}
