.heroBtn {
    border: 1.5px solid #5c8aff;
    transition: all .2s;
    line-height: 1;
}

.heroBtn:hover {
    border-color: #5c8aff;
    color: #fff;
    background-color: #5c8aff;
    box-shadow: revert;
}

.heroBtn:hover span {
    color: #fff;
}

.heroBtn--fill {
    background-color: #5c8aff;
}

.heroBtn--fill:hover {
    opacity: 0.7;
    border-color: #5c8aff;
    background-color: #5c8aff;
    box-shadow: revert;
}

.heroBtn--fill span {
    color: #fff;
}

.headCard {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% top;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}


@media (max-width: 576px) {
    .headCardOverlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to left,
                #fff 0%,
                rgba(255, 255, 255, 0.5) 0%,
                rgba(255, 255, 255, 0) 100%);


        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        z-index: -1;
    }

    .headCard {
        background-position: 70% 0px;
        border-bottom: 1px solid #dfdfdf;
    }

    .headCard__text {
        color: #444;
    }
}

.headCard-layout {
    padding-top: 8px;
}

/* FormBuilder (Lead magnet = F2F) inside Lity modal */
.lm-f2f-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    width: 100%;
}

.lm-f2f-form form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.lm-f2f-form form > *:has([name="full_name"]),
.lm-f2f-form form > *:has([name="full-name"]),
.lm-f2f-form form > *:has([name="fullName"]),
.lm-f2f-form form > *:has(#full_name) {
    grid-column: 1;
}

.lm-f2f-form form > *:has([name="city"]),
.lm-f2f-form form > *:has(select) {
    grid-column: 2;
}

.lm-f2f-form form > *:has([name="email"]),
.lm-f2f-form form > *:has(input[type="email"]) {
    grid-column: 2;
}

.lm-f2f-form form > *:has([name="phone"]),
.lm-f2f-form form > *:has([name="phone_number"]),
.lm-f2f-form form > *:has([name="phone-number"]),
.lm-f2f-form form > *:has(input[type="tel"]) {
    grid-column: 1;
}

.lm-f2f-form form > .mgn-submit-wrapper,
.lm-f2f-form form > *:has(button[type="submit"]),
.lm-f2f-form form > *:has(input[type="submit"]),
.lm-f2f-form form > *:has(.mgn-submit-button) {
    grid-column: 1 / -1;
    order: 999;
}

.lm-f2f-form .form-label,
.lm-f2f-form label:not(.form-check-label) {
    display: block;
    /* margin: 0 0 8px; */
    color: #282828;
    font-size: 14px;
    font-weight: 500;
}

.lm-f2f-form .form-control,
.lm-f2f-form .form-select,
.lm-f2f-form input[type="text"],
.lm-f2f-form input[type="tel"],
.lm-f2f-form input[type="email"],
.lm-f2f-form select {
    width: 100%;
    min-height: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: #f2f2f2 !important;
    color: #111;
    font-size: 15px;
    outline: 0;
}

.lm-f2f-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

.lm-f2f-form select::-ms-expand {
    display: none;
}

.lm-f2f-form .iti {
    width: 100%;
}

.lm-f2f-form .iti input.form-control,
.lm-f2f-form .iti input[type="tel"] {
    width: 100%;
    background: #f2f2f2 !important;
}

.lm-f2f-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-left: 0;
}

.lm-f2f-form .form-check-input {
    float: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.lm-f2f-form .form-check-label {
    color: #636363;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.lm-f2f-form .form-check-label a,
.lm-f2f-form .privacy-policy-link {
    color: #4a7dff;
    font-weight: 600;
    text-decoration: underline;
}

.lm-f2f-form .mgn-submit-button,
.lm-f2f-form .mgn-submit-button.btn,
.lm-f2f-form .mgn-submit-button.btn-primary,
.lm-f2f-form button[type="submit"],
.lm-f2f-form input[type="submit"],
.lm-f2f-form .btn[type="submit"],
.lm-f2f-form .btn-primary {
    appearance: none;
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-radius: 12px;
    opacity: 1 !important;
    background-color: #4a7dff !important;
    background-image: linear-gradient(135deg, #4a7dff 0%, #2d4b99 100%) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none !important;
    cursor: pointer;
}

.lm-f2f-form .mgn-consent-wrapper--optional:has(label:empty),
.lm-f2f-form .form-check:has(.form-check-label:empty) {
    display: none !important;
}

@media (max-width: 1023px) {
    .lm-f2f-form form {
        grid-template-columns: 1fr;
    }

    .lm-f2f-form form > * {
        grid-column: 1 / -1 !important;
    }
}
