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

.uk-form-details {
    padding: 2.5rem;
}

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

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

/* Section headers */
/* stylelint-disable selector-class-pattern */
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-richtext h3,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .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;
}

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

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

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

/* Main form styling */
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
    background-color: var(--form-background);
    max-width: 24rem;
}

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

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

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

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

/* stylelint-disable selector-id-pattern */
#label-firstname-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-lastname-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-company-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-email-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-mobilephone-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-country-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-enquiry_about-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-your_message-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#label-how_did_you_hear_of_us_-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
    display: block;
    padding-top: 2.5rem;
}

textarea#your_message-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
    resize: none;
    box-sizing: border-box;
    padding-left: 1rem;
}

.legal-consent-container .hs-form-booleancheckbox-display {
    display: flex;
    align-items: flex-start;
}

.legal-consent-container > div:nth-of-type(1) {
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
}

.legal-consent-container > div:last-child {
    margin-bottom: 1.75rem;
}

.inputs-list {
    margin: 0;
    padding: 0;
}

.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 fieldset {
    max-width: none !important;
}

.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-input {
    width: 100% !important;
}

/* Override the width for checkbox inputs */
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-input[type="checkbox"] {
    width: auto !important;
    margin-right: 1rem;
    flex: 0 0 auto;
    min-width: 1rem;
}

/* Placeholder color */
#enquiry_about-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2,
#how_did_you_hear_of_us_-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
    color: var(--form-placeholder);
}

#enquiry_about-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2:not(.is-placeholder),
#how_did_you_hear_of_us_-b85dc803-2eff-44bf-a153-3cd1ceb8f9a2:not(
        .is-placeholder
    ) {
    color: black;
}

.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input::placeholder,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 textarea::placeholder {
    color: var(--form-placeholder);
}

/* Input fields */
/* stylelint-disable property-no-vendor-prefix */
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="text"],
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="email"],
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="tel"],
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="number"],
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 select,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-input:focus,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input.hs-input:focus,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 select:focus,
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 textarea:focus {
    border-bottom: 0.125rem solid var(--text-sky);
}

/* Submit button */
.hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
        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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
        max-width: 48rem;
    }
}

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

    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
        max-width: 62rem;
    }
}

@media (width >= 992px) {
    .uk-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;
    }

    .uk-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;
    }

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

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

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

    .legal-consent-container > div:nth-of-type(1) {
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .legal-consent-container > div:last-child {
        margin-bottom: 2.5rem;
    }

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

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

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

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

    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-button {
        width: auto;
    }

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

    /* Main form styling */
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 {
        background-color: var(--form-background);
        border-radius: 3.25rem 0;
        padding: 1.25rem 2.5rem 3.75rem;
        max-width: 45rem;
        box-shadow: 0 0.25rem 1rem grey;
    }

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

    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 fieldset {
        max-width: none !important;
    }

    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 .hs-input {
        width: 100% !important;
    }

    /* Input fields */
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="text"],
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="email"],
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="tel"],
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 input[type="number"],
    .hsForm_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 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_b85dc803-2eff-44bf-a153-3cd1ceb8f9a2 textarea {
        margin-top: 2.5rem;
    }
}

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

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

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

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