.section.us-form-details-container {
    padding: 0;
}

.us-form-details .hs-form-required {
    display: none;
}

.form-columns-2 > div,
.form-columns-3 > div {
    flex: 1;
}

.us-form-details > div:first-child {
    padding: 2.5rem;
}

/* Section headers */
/* stylelint-disable selector-class-pattern */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-richtext h3,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-richtext h3 > strong {
    color: var(--text-sky);
    font-size: var(--heading-font-s);
    font-style: normal;
    font-weight: var(--text-medium);
    line-height: var(--line-height-120);
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.us-form-details > div > div:first-child h3,
.us-form-details > div > div:first-child h3 > strong {
    margin-bottom: 0;
}

.us-form-details > div > div:first-child h6,
.us-form-details > div > div:first-child h6 > strong {
    margin-bottom: 0.5rem;
}

.us-form-details > div:last-child > div:last-child {
    background-color: #e0f1fb;
    padding: 1.75rem 2.5rem;
    margin-top: 2.5rem;
}

.us-form-details .submitted-message p {
    margin-top: 0.5rem;
}

.us-form-details > div:last-child > div:last-child p,
.us-form-details > div:last-child > div:last-child p > strong {
    font-size: var(--text-medium);
    font-weight: var(--text-regular);
    line-height: var(--line-height-120);
}

.us-form-details > div:last-child > div:last-child p > a,
.us-form-details > div:last-child > div:last-child p > strong > a{
    color: var(--text-sky-dark);
}

.us-form-details .submitted-message {
    background-color: var(--form-background);
    padding-top: 1.5rem;
}

.us-form-details .submitted-message h5 {
    font-size: 1.5rem;
    margin: 0;
}

.hs-form li {
    list-style-type: none;
}

/* Main form styling */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
    background-color: var(--form-background);
    max-width: 24rem;
}

.form-columns-2,
.form-columns-3 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

textarea#message-81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
    resize: none;
    padding-left: 1rem;
    box-sizing: border-box;
}

/* stylelint-disable selector-id-pattern */
#label-av___state_list-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-canadian_state_list-81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
    display: none;
}

#label-firstname-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-lastname-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-jobtitle-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-email-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-phone-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-av___cust_name-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-address-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-city-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-country_list-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-number_of_properties-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-sub_type-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-lead_source_method-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-message-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#label-zip-81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
    display: block;
    padding-top: 2.5rem;
}

.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec fieldset {
    max-width: none !important;
}

.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-input {
    width: 100% !important;
}

/* Placeholder color */
#country_list-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#lead_source_method-81d65ed6-6c9c-4343-a7c5-6d9a329245ec,
#sub_type-81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
    color: var(--form-placeholder);
}

#country_list-81d65ed6-6c9c-4343-a7c5-6d9a329245ec:not(.is-placeholder),
#lead_source_method-81d65ed6-6c9c-4343-a7c5-6d9a329245ec:not(.is-placeholder),
#sub_type-81d65ed6-6c9c-4343-a7c5-6d9a329245ec:not(.is-placeholder) {
    color: black;
}

.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input::placeholder,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec textarea::placeholder {
    color: var(--form-placeholder);
}

/* Input fields */
/* stylelint-disable property-no-vendor-prefix */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="text"],
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="email"],
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="tel"],
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="number"],
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec select,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec textarea {
    padding: 1.5rem 0 0.8rem;
    border: none;
    border-bottom: 0.063rem solid var(--form-input-border);
    background-color: transparent;
    font-size: var(--heading-font-s);
    outline: none;
    transition: border-color 0.3s;

    /* Enhanced iOS fixes */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Dropdown styling */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.125rem bottom 0.81rem;
    background-size: 1rem;
    padding-right: 1.5rem;
}

/* Textarea styling */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec textarea {
    min-height: 7rem;
    resize: vertical;
    background-color: var(--form-textarea);
    border: none;
    border-bottom: 0.063rem solid var(--form-input-border);
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-input:focus,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input.hs-input:focus,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec select:focus,
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec textarea:focus {
    border-bottom: 0.125rem solid var(--text-sky);
}

/* Submit button */
.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-button {
    background-color: var(--text-sky);
    color: white;
    border-radius: 2.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    border: 0.125rem solid transparent;
    box-sizing: border-box;
}

.hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-button:hover {
    background-color: var(--button-hover-midnight);
    border: 0.125rem solid var(--button-hover-sky);
    cursor: pointer;
    text-decoration: none;
}

/* Error messages */
.hs-error-msgs {
    padding: 0;
    margin: 0.25rem 0 0;
    width: 100%;
    color: var(--form-error);
    font-size: 0.75rem;
}

/* Recaptcha Styling */
.hs_recaptcha {
    margin: 2.5rem 0;
}

/* Override the second media query */
@media (width >= 400px) {
    /* Target custom style inputs */
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
        max-width: 33rem;
    }

    /* Target form columns using attribute selectors */
    form[class*="hs-form"]:not(.hs-video-form) .form-columns-2 .hs-form-field,
    form[class*="hs-form"]:not(.hs-video-form) .form-columns-3 .hs-form-field {
        float: none !important;
        width: 100% !important;
    }
}

@media (width >= 600px) {
    .form-columns-2,
    .form-columns-3 {
        flex-direction: row;
        gap: 0;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
        max-width: 48rem;
    }
}

@media (width >= 768px) {
    .form-columns-2,
    .form-columns-3 {
        flex-direction: row;
        gap: 0;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
        max-width: 62rem;
    }
}

@media (width >= 992px) {
    .us-form-details {
        background-image: url("../../assets/form-background.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        width: 100%;
        height: 100%;
        position: relative;
        padding: 0;
    }

    .us-form-details::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(to bottom, white, transparent);
        pointer-events: none;
        z-index: 1;
    }

    .us-form-details > * {
        position: relative;
        z-index: 2;
    }

    .form-columns-2 > div,
    .form-columns-3 > div {
        flex: 1;
    }

    .us-form-details > div:first-child {
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        padding: 7.5rem 3.44rem 0;
    }

    .us-form-details > div:last-child {
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        padding: 0 3.44rem 7.5rem;
    }

    .us-form-details > div > div:first-child {
        margin: 2.5rem 2.5rem 2.5rem 0;
    }

    .us-form-details > div:last-child > div:last-child {
        background-color: #e0f1fb;
        padding: 0;
        max-width: 45rem;
        height: 6.5rem;
        width: 100%;
        border-radius: 0 0 3.25rem;
        margin: 0;
    }

    .us-form-details > div:last-child > div:last-child p,
    .us-form-details > div:last-child > div:last-child p > strong {
        margin: 2.75rem 2.5rem;
        font-size: var(--text-medium);
        font-weight: var(--text-regular);
        line-height: var(--line-height-120);
    }

    .us-form-details > div:first-child > div:first-child h3,
    .us-form-details > div:first-child > div:first-child h3 > strong {
        font-size: var(--heading-font-m);
    }

    .us-form-details > div:first-child > div:first-child {
        width: 100%;
        max-width: 17rem;
    }

    .us-form-details > div:last-child > div:first-child {
        width: 100%;
        max-width: 17rem;
    }

    .us-form-details > div:first-child > div:last-child {
        width: 45rem;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-button {
        width: auto;
    }

    .form-columns-2,
    .form-columns-3 {
        flex-direction: row;
        display: flex;
        gap: 1.25rem;
    }

    /* Main form styling */
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec {
        background-color: var(--form-background);
        border-radius: 3.25rem 0 0;
        padding: 1.25rem 2.5rem 3.75rem;
        max-width: 45rem;
        box-shadow: 0 0.25rem 1rem grey;
    }

    .us-form-details .submitted-message {
        background-color: var(--form-background);
        border-radius: 3.25rem 0 0;
        padding: 3.75rem 2.5rem;
        max-width: 45rem;
        box-shadow: 0 0.25rem 1rem grey;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec fieldset {
        max-width: none !important;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec .hs-input {
        width: 100% !important;
    }

    /* Input fields */
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="text"],
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="email"],
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="tel"],
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec input[type="number"],
    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec select {
        width: 100%;
        padding: 1.5rem 0 0.8rem;
        border: none;
        border-bottom: 0.063rem solid var(--form-input-border);
        background-color: transparent;
        font-size: var(--heading-font-s);
        outline: none;
        transition: border-color 0.3s;
    }

    .hsForm_81d65ed6-6c9c-4343-a7c5-6d9a329245ec textarea {
        margin-top: 2.5rem;
    }
}

@media (width >= 1280px) {
    .us-form-details > div:first-child {
        justify-content: space-between;
        padding: 7.5rem 4.44rem 0;
        max-width: 80rem;
        margin: 0 auto;
    }

    .us-form-details > div:last-child {
        justify-content: space-between;
        padding: 0 4.44rem 7.5rem;
        max-width: 80rem;
        margin: 0 auto;
    }

    .us-form-details > div:last-child > div:last-child {
        max-width: 47rem;
        height: 8.5rem;
        width: 100%;
        border-radius: 0 0 3.25rem;
    }

    .us-form-details > div:last-child > div:last-child p,
    .us-form-details > div:last-child > div:last-child p > strong {
        margin: 3.75rem 2.5rem;
        font-size: var(--text-medium);
        font-weight: var(--text-regular);
        line-height: var(--line-height-120);
    }

    .us-form-details > div:first-child > div:first-child h3,
    .us-form-details > div:first-child > div:first-child h3 > strong {
        font-size: 3.1575rem;
    }

    .us-form-details > div:first-child > div:first-child {
        width: 100%;
        max-width: 22rem;
    }

    .us-form-details > div:last-child > div:first-child {
        width: 100%;
        max-width: 22rem;
    }

    .us-form-details > div:first-child > div:last-child {
        width: 47rem;
    }
}
