 /* BASE - Definition of general field behavior */

 .hbspt-form h2 {
    margin-bottom: 1rem;
}

.hs-form div.input {
    border: none;
    margin: 0;
    padding: 0;
}

.hs-form-field {
    position: relative;
    margin-bottom: 1rem;
}

.hs-form a {
    text-decoration: underline;
}

.hs-field-desc {
    font-size: 0.86rem;
    color: #6f6f6f;
}

.hs-form ul {
    display: flex;
}

/* mobile behavior of fieldsets and radio button rows (stack on mobile in full display width) */
@media (max-width: 768px) {
    fieldset {
        flex-direction: column;
    }

    fieldset.form-columns-2 .hs-form-field,
    fieldset.form-columns-3 .hs-form-field {
        width: 100% !important;
    }

    .hs-form ul {
    display: block;
}
}

/* form title styling */
.form-title {
    margin: 0;
    text-align: center;
}

.form-title~div>form {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* headings and text styling */
form .hs-richtext img {
    max-width: 100% !important;
}

form .header {
    background-color: transparent;
    border: none;
}

/* GDPR text styling */
.legal-consent-container .hs-form-booleancheckbox-display>span,
.legal-consent-container .hs-form-booleancheckbox-display>span p {
    line-height: 1.25;
}

/* form field label styling */

.hs-form-field>label {
    display: block;
    margin-bottom: 0.35rem;
    text-align: left;
    width: auto;
}

/* FIELDTYPE: INPUT POSITION AND STYLES */

.input {
    position: relative;
    width: 100%;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='file'],
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    width: 100% !important;
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

select::-ms-expand {
    display: none;
}

fieldset {
    max-width: 100% !important;
}

.hs-form div.input {
    padding-right: 8px;
}

/* FIELDTYPE: CHECKBOX/ RADIO BASE SETUP */

/* reset positioning */
form .inputs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inputs-list>li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

input[type='checkbox'],
input[type='radio'] {
    cursor: pointer;
    width: auto;
    height: auto;
    padding: 0;
    display: none;
}

/* CUSTOM CHECKBOX STYLING */

/* positioning */
.hs-form-booleancheckbox-display span {
    margin-left: 0 !important;
    padding: 0;
}

.hs-form-booleancheckbox label {
    text-indent: 2em hanging;
}

/* base checkbox definition appearing before text */
.hs-form-booleancheckbox span:not(.hs-form-required)::before {
    display: inline-block;
    padding: 0px;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    content: '';
    background: #ffffff;
    border: 1px solid #b2b2b2;
    border-radius: 2px;
    line-height: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

/* checkbox behavior on selection */
.legal-consent-container input:checked~span::before {
    border-color: #009fe3;
}

.legal-consent-container input:checked~span::after {
    content: "";
    display: inline-block;
    position: absolute;
    margin-left: 0.2rem;
    left: 0;
    height: 6px;
    margin-top: 0.32rem;
    width: 14px;
    border-left: 1px solid;
    border-bottom: 1px solid;
    color: #4b4b4d;
    transform: rotate(-60deg);
    top: 1px;
}

/* CUSTOM RADIO BUTTON STYLING */

/* position */
ul.inputs-list.multi-container li.hs-form-radio label {
    position: relative;
}

ul.inputs-list.multi-container li.hs-form-radio label span {
    display: inline-block;
    margin-left: 40px;
    /* Width of the new radio select and any additional spacing on the left */
    margin-right: 16px;
    /* Additional spacing on the right */
    margin-top: 1rem;
}

/* Hide the original radio select */
ul.inputs-list.multi-container li.hs-form-radio label input {
    height: 24px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 24px;
}

/* Add new radio select */
ul.inputs-list.multi-container li.hs-form-radio label span::before {
    border: 1px solid #b2b2b2;
    content: "";
    height: 20px;
    left: 0;
    position: absolute;
    top: 0;
    width: 20px;
    border-radius: 50%;
    transition: ease-in-out 0.3s;
}

/* Style new checked item */
ul.inputs-list.multi-container li.hs-form-radio label input:checked+span::before {
    background-color: #009fe3;
}

/* Show when checked */
ul.inputs-list.multi-container li.hs-form-radio label input:checked+span::after {
    opacity: 1;
}

/* Style when focused */
ul.inputs-list.multi-container li.hs-form-radio label input:focus+span::after {
    box-shadow: 0 0 0 3px #4D90FE;
    outline: 3px solid transparent;
    /* For Windows high contrast mode. */
}

/* FIELTYPE DROPDOWN SELECT STYLING */

.hs-form select {
    background-color: #ffffff;
    color: #4b4b40;
}

.hs-fieldtype-select .input::after {
    content: '';
    border: solid #b0b0b0;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
    pointer-events: none;
    position: absolute;
    right: 2rem;
    top: 0.75rem;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/* INPUT - DATEPICKER STYLING */

.hs-fieldtype-date .input .hs-dateinput:before {
    content: '\01F4C5';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.fn-date-picker td.is-selected .pika-button {
    border-radius: 0;
    box-shadow: none;
}

.fn-date-picker td .pika-button:hover {
    border-radius: 0 !important;
}

/* ERROR MESSAGES - Styling and Positioning */

.hs-form-field .hs-error-msg.hs-main-font-element {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    color: tomato !important;
    margin-left: 2rem;
    padding-bottom: 1rem !important;
    padding-top: 0;
    background-color: #ffffff;
}

.hs_error_rollup {
    background-color: tomato;
    color: #ffffff;
    padding: 0.5rem 2rem;
    border-radius: 10px;
    width: fit-content;
}

/* SUBMIT BUTTON - Base Styling and Hover Behavior */

.hs-button,
.hs-form input[type='submit'] {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: all 0.15s linear;
    white-space: normal;
    background-color: #009fe3;
    border-radius: 10px;
    line-height: 1.2rem;
    text-transform: uppercase;
    margin-top: 1rem;
    padding: 0.8rem 1.33333rem;
    margin-right: 0.5rem;
    transition: color 250ms ease-in-out, border-color 250ms ease-in-out, background-color 250ms ease-in-out;
    width: fit-content;
}

/* custom: SLV Submit Button Arrow */
.hs-button::after,
.hs-form input[type='submit']::after {
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 32 32' style='fill:%234b4b4d;'%3E%3Ctitle%3Ecaret-right%3C/title%3E%3Cpath d='M8.885 28.547l12.59-12.59-12.504-12.504c-0.302-0.302-0.302-0.789 0-1.091s0.789-0.302 1.091 0l13.053 13.053c0.302 0.302 0.302 0.789 0 1.091l-13.133 13.133c-0.148 0.148-0.345 0.228-0.543 0.228s-0.395-0.074-0.543-0.228c-0.308-0.302-0.308-0.789-0.012-1.091z'%3E%3C/path%3E%3C/svg%3E");
    display: inline-block;
    margin-left: 0.5rem;
    -webkit-transition: -webkit-transform 250ms ease-in-out;
    transition: -webkit-transform 250ms ease-in-out;
    transition: transform 250ms ease-in-out;
    transition: transform 250ms ease-in-out, -webkit-transform 250ms ease-in-out;
}

/* custom: Submit hover*/
.hs-button:hover,
.hs-form input[type='submit']:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: #4b4b4d;
}

.hs-button:hover::after,
.hs-form input[type='submit']:hover::after {
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 32 32' style='fill:%23ffffff;'%3E%3Ctitle%3Ecaret-right%3C/title%3E%3Cpath d='M8.885 28.547l12.59-12.59-12.504-12.504c-0.302-0.302-0.302-0.789 0-1.091s0.789-0.302 1.091 0l13.053 13.053c0.302 0.302 0.302 0.789 0 1.091l-13.133 13.133c-0.148 0.148-0.345 0.228-0.543 0.228s-0.395-0.074-0.543-0.228c-0.308-0.302-0.308-0.789-0.012-1.091z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-transform: translateX(0.33333rem);
    transform: translateX(0.33333rem);
}

/* CAPTCHA - Position */

.grecaptcha-badge {
    margin: 0 auto;
}

/* THANK YOU MESSAGE STYLING */

.submitted-message {
    font-size: 16px;
    color: #4b4b4d;
    background-color: #ececec;
    padding: 3rem 5rem 3rem 5rem;

    background-image: url(https://25577031.fs1.hubspotusercontent-eu1.net/hubfs/25577031/Logos%20%2B%20Icons/SLV_Icon_AUSGEWAEHLT_RGB.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 2rem 3rem;
    margin-top: 150px;
    margin-bottom: 150px;
}