/* Container styling */
.hsFormContainer .hs-form {
    max-width: 600px;
    margin: 0 auto;
    gap: 1.15rem!important;
}
    .hsFormContainer.hsFormFull .hs-form {
        width: 100%;
        max-width: 800px;
    }
    .hsFormContainer.hsFormFull fieldset.form-columns-1 .hs-input {
        width: 100%;
    }
    .hsFormContainer.hsFormFull fieldset {
        max-width: none;
    }
    .hsFormContainer .hs-form fieldset:has(.hs-form-field[style*="display: none"]) {
        display: none !important;
    }

/* Label styling */
.hsFormContainer .hs-form label {
    font-weight: 600;
    color: #fff;
    font-size: 16px !important;
    letter-spacing: .05rem;
    margin-bottom: .25rem;
    display: block;
}
    .hsFormContainer.hsFormRev .hs-form label {
        color: #121212;
    }
    .hsFormContainer.hsFormRev .hs-form label.hs-error-msg {
        color: #fff;
    }

/* Input styling */
.hsFormContainer .hs-input {
    border: 1px solid #121212;
    border-radius: 0;
    padding: 10px !important;
    font-size: 18px !important;
    font-family: 'GothamBook';
    background-color: #fff !important;
    color: #000!important;
}

.hsFormContainer select.hs-input {
    width: 100%;
    height: auto;
    border: 1px solid #121212!important;
}

.hsFormContainer textarea.hs-input {
    width: 100%;
    height: 100px;
    max-height: none!important;
    border: 1px solid #121212!important;
}
.hsFormContainer .hs-form fieldset {
    order: unset!important; /* Fixes order of multi-column fields */
}

.hsFormContainer .legal-consent-container .hs-richtext {
    font-size: 11.5px;
    line-height: 1.5;
    color: #fff!important;
}
.hsFormContainer.hsFormRev .legal-consent-container .hs-richtext {
    color: #000!important;
}
.hsFormContainer .legal-consent-container .hs-richtext a {
    font-size: 11.5px;
    line-height: 1.5;
    color: #fff;
}
    .hsFormContainer.hsFormRev .legal-consent-container .hs-richtext a {
        color: #121212;
    }
/* Submit Button */
.hsFormContainer input[type=submit].hs-button, body.single.single-post article .content-container aside .hsFormContainer form input[type=submit] {
    background-color: #fff;
    color: #0C5A92;
    border: 2px solid #0C5A92!important;
    transition: background 0.3s ease;
    align-items: center;
    display: inline-flex;
    font-size: 22px!important;
    justify-content: center;
    padding: 11px 30px!important;
    text-align: center;
    text-decoration: none;
    width: unset !important;
}

/* Fix for Checkbox Alignment */
.hsFormContainer .hs-form-booleancheckbox-display {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

/* Ensure the checkbox itself doesn't shrink or take up full width */
.hsFormContainer .hs-form-booleancheckbox-display input[type="checkbox"] {
    width: auto !important;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Remove default list styling from HubSpot's <ul> */
.hsFormContainer ul.inputs-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.hsFormContainer .legal-consent-container .hs-form-booleancheckbox-display>span {
    margin-left: 0;
}
/* Style the Select wrapper to ensure it has a position context */
.hsFormContainer .hs-fieldtype-select .input {
    position: relative;
}

.hsFormContainer select.hs-input {
    width: 100%;
    height: auto;
    /* Match your other text inputs */
    background-color: #fff !important; 
    color: #121212 !important;
    border: 1px solid #121212;
    padding: 10px 40px 10px 10px !important;
    
    /* The Fix: Dark Gray/Black SVG arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    /* Remove the native browser arrow */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

/* Ensure the dropdown options inside also have white backgrounds */
.hsFormContainer select.hs-input option {
    background-color: #fff;
    color: #121212;
}

/* IE10+ fix to hide the default arrow */
.hsFormContainer select.hs-input::-ms-expand {
    display: none;
}

.hsFormContainer .hs-form label.hs-error-msg {
    background: #c42e2e;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    padding: .25rem .4rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}
.hsFormContainer ul.hs-error-msgs {
    margin: -2px 0 0 0px;
}
.hsFormContainer ul.hs-error-msgs li {
    margin: 0;
}
.hsFormContainer .hs-form label.hs-error-msg:before {
    content: '';
    position: absolute;
    left: 10px;
    top: -5px;
    width: 15px;
    height: 15px;
    background: #c42e2e;
    transform: rotate(45deg);
    z-index: -1;
}
.hsFormContainer .submitted-message {
    text-align: center;
    font-weight: 800;
    background: #0c5a92;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    color: #fff;
    line-height: 1.5;
}