.hubspot-contact-form .form-wrapper:not(:empty) + .editor-message {
    display: none;
}

.hs-form,
.hubspot-contact-form .submitted-message {
    color: var(--color-grey-100);
}

.hubspot-contact-form .submitted-message {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
}

.hubspot-contact-form .submitted-message > p:first-child {
    font-weight: 700;
    font-size: 35px;
    line-height: 40px;
    margin-bottom: 25px;
}

.hubspot-contact-form .hs-form fieldset > div {
    margin-bottom: 35px;
}

.hubspot-contact-form .hs-form fieldset.form-columns-2 {
    display: flex;
    gap: 25px;
}

.hubspot-contact-form .hs-form fieldset.form-columns-2 .hs-form-field {
    float: none;
    width: calc(100% / 2);
}

/* old form rendering compatibility */
.hs-form > .hs-form-field,
.hs-form > .hs-dependent-field > .hs-form-field {
    width: 100%;
    max-width: 500px;
    margin-bottom: 25px;
}

.hs-form-field > label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.hs-form-field.hs-fieldtype-checkbox > label {
    margin-bottom: 10px;
}

.hs-form-field
    .hs-input:is([type="text"], [type="tel"], [type="email"], select, textarea) {
    width: 100% !important;
}

.hs-form .hs-form-checkbox label {
    font-size: 15px;
    line-height: 140%;
}

.hs-form input.hs-input {
    background: transparent;
    border: 1px solid var(--color-grey-50);
    padding: 15px;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
    color: var(--color-grey-100);
}

.hs-form input.hs-input:focus {
    border-color: var(--color-dark-blue);
}

.hs-form input.hs-input.error {
    border-color: var(--color-red);
}

.hs-form select,
.hs-form textarea {
    border-color: var(--color-grey-50);
    color: var(--color-grey-100);
    background-color: transparent;
    margin: 0;
    padding: 15px !important;
}

.hs-form select {
    appearance: none;
    max-width: unset;
    width: 100%;
    background: none;
    line-height: 130%;
}

.hs-form .hs-fieldtype-select .input {
    position: relative;
}

.hs-form .hs-fieldtype-select .input:after {
    font-family: "Material Symbols Outlined";
    content: "\e5cf";
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: 700;
}

.hs-form input[type="checkbox"] {
    margin: 8px 15px 8px 0;
    padding: 0;
}

.edit-post-visual-editor .hs-form input.hs-input[type="checkbox"] {
    width: unset;
}

.hs-form ul.inputs-list {
    margin: 0;
    padding: 0; /* for editor */
    list-style: none;
}

.hs-form ul.inputs-list li {
    margin-top: 5px;
}

.hs-form ul.inputs-list li.hs-form-radio {
    display: inline-block;
    margin-right: 25px;
}

.hs-form ul.inputs-list li.hs-form-radio .hs-form-radio-display {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 15px;
    line-height: 130%;
}

.hs-form ul.inputs-list li.hs-form-radio input.hs-input[type="radio"] {
    margin: 0;
    padding: 0;
    position: relative;
    cursor: pointer;
    visibility: hidden;
}

.hs-form ul.inputs-list li.hs-form-radio input.hs-input[type="radio"]:before {
    visibility: hidden;
}

/* Radio inner background */
.hs-form
    ul.inputs-list
    li.hs-form-radio
    input.hs-input[type="radio"]:checked:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    z-index: 1;
    background-color: var(--color-grey-100);
    visibility: visible;
    margin: 0;
}

/* Radio outer border */
.hs-form ul.inputs-list li.hs-form-radio input.hs-input[type="radio"]:after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    top: -2px;
    left: -1px;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-100);
    visibility: visible;
}

.hs-form ul.no-list.hs-error-msgs.inputs-list {
    font-size: 13px;
    color: var(--color-red);
}

.hs-form .legal-consent-container ul li {
    margin: 0 0 25px 0;
}

.hs-form .legal-consent-container ul li input[type="checkbox"] {
    margin: 5px 10px 0 0;
}

.hs-form .legal-consent-container p {
    font-size: 15px;
    line-height: 140%;
}

.hs-form .legal-consent-container ul.no-list.hs-error-msgs.inputs-list {
    margin-top: 0px;
}

.hs-form .legal-consent-container .hs-error-msgs label {
    color: var(--color-red);
}

.hs-form .hs-submit {
    margin-top: 25px;
}

.hs-form .hs-button,
.edit-post-visual-editor .hs-form .hs-button /* for editor */ {
    font-weight: 700;
    padding: 15px 25px;
    color: var(--color-white);
    background-color: var(--color-dark-blue) !important;
    border: 2px solid var(--color-dark-blue);
    border-radius: 25px;
    min-width: 200px;
}

.hs-form .hs-button:hover {
    opacity: 0.75;
}

.hs-form .hs_error_rollup {
    margin-top: 35px;
}

.hs-form .hs-recaptcha {
    margin-top: 15px;
}

/* Featuring fields */
.hubspot-contact-form--has-featured-field {
    position: relative;
    padding-top: 250px;
}

.hubspot-contact-form--has-featured-field .featured-field {
    position: absolute;
    top: 0;
    max-width: unset;
}

.hubspot-contact-form--has-featured-field .featured-field label {
    font-size: 40px;
    line-height: 120%;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 35px;
}

.hubspot-contact-form--has-featured-field .featured-field ul[role="checkbox"] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hubspot-contact-form--has-featured-field
    .featured-field
    ul[role="checkbox"]
    li
    label {
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.hubspot-contact-form--has-featured-field
    .featured-field
    ul[role="checkbox"]
    li
    input {
    display: none;
}

.hubspot-contact-form--has-featured-field
    .featured-field
    ul[role="checkbox"]
    li
    input
    + span {
    padding: 15px;
    display: flex;
    border: 1px solid var(--color-dark-blue);
    border-radius: 5px;
    cursor: pointer;
}

.hubspot-contact-form--has-featured-field
    .featured-field
    ul[role="checkbox"]
    li
    input
    + span:hover {
    opacity: 0.75;
    color: var(--color-white);
    background-color: var(--color-dark-blue);
}

.hubspot-contact-form--has-featured-field
    .featured-field
    ul[role="checkbox"]
    li
    input:checked
    + span {
    color: var(--color-white);
    background-color: var(--color-dark-blue);
}

@media only screen and (max-width: 1200px) {
    .hubspot-contact-form .hs-form fieldset > div {
        margin-bottom: 25px;
    }

    .hubspot-contact-form .submitted-message {
        font-weight: 400;
        font-size: 15px;
        line-height: 130%;
        padding: 0 15px;
    }

    .hubspot-contact-form .submitted-message > p:first-child {
        font-size: 25px;
        line-height: 130%;
        margin-bottom: 15px;
    }

    .hubspot-contact-form--has-featured-field .featured-field label {
        font-size: 25px;
        font-weight: 700;
        line-height: 130%;
        margin-bottom: 15px;
    }
}

@media (max-width: 400px),
    (min-device-width: 320px) and (max-device-width: 480px) {
    .hubspot-contact-form .hs-form fieldset.form-columns-2 {
        flex-direction: column;
        gap: 0;
    }
    .hubspot-contact-form .hs-form fieldset.form-columns-2 .hs-form-field {
        width: unset;
    }
    .hs-form fieldset.form-columns-2 .hs-input {
        width: 100% !important; /* overriding default Hubspot float layout */
    }
}
