﻿.empire-appointment-layout {
    .global-short-form {
        display: none;
    }
}

.desktop-short-form {
    display: none;
}

.mobile-short-form {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
}

/* html body.bm-see-appt .bm-custom-form.bm-home-see-appt */
.global-short-form {
    background-color: var(--color-white);
    width: 100%;
    max-width: 300px;
    height: fit-content;
    /* max-height: unset;
    min-height: unset; */
    padding: 15px 10px;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
    box-shadow: 6px 6px 0px var(--color-navy);
    margin: 0 0 0 -6px;
    z-index: 1;

    /* html body.bm-see-appt .bm-form-title */
    .sf-header {
        font-family: var(--font-poppins);
        font-size: 24px;
        font-weight: var(--font-weight-semi-bold);
        line-height: 30px;
        text-align: center;
        padding: 0;
        margin-bottom: 0px;

        .no-breaking-space {
            white-space: nowrap;
        }
    }

    /* .bm-home-social-proof */
    .sf-reviews {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin: 0 0 20px;

        /* .bm-home-social-proof .bm-home-star-icon-container */
        .sf-reviews-stars {
            display: flex;
            gap: 5px;

            svg {
                fill: var(--color-navy)
            }
        }

        /* .bm-home-social-proof .bm-home-social-proof-text */
        span {
            color: var(--color-black);
            font-family: var(--font-poppins);
            font-size: 14px;
            font-weight: var(--font-weight-regular);
            line-height: 18px;
        }
    }

    /* form.email-form */
    form {
        max-width: 350px;
        margin: 0 auto;

        .sf-field {
            color: #474747;
            font-family: var(--font-poppins);
            font-size: 14px;
            font-weight: var(--font-weight-regular);
            line-height: 24px;
            width: 100%;
            height: auto;
            max-height: 45px;
            border: 1px solid #474747;
            border-radius: 5px !important;
            padding: 12px 18px;

            &.sf-property-field {
                padding: 12px 28px 12px 18px;
            }

            &::placeholder {
                color: #474747;
                font-family: var(--font-poppins);
                font-size: 14px;
                font-weight: var(--font-weight-regular);
                line-height: 24px;
            }
        }

        .bm-text-input-form {
            position: relative;

            span {
                align-items: center;
                margin-left: 10px;
                display: none;

                &.sf-verified {
                    display: flex;
                    min-width: 40px;
                }

                svg {
                    fill: #109046;
                }
            }
        }
        
        /* bm-input-checkmark */
        .sf-input-checkmark {
            display: flex;
            flex-direction: column;

            &.sf-verified {
                flex-direction: row;
            }
        }

        /* html body.bm-see-appt .bm-custom-form.bm-home-see-appt .form-block-select */
        .form-block-select {
            margin: 15px 0;
            position: relative;

            select {
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                cursor: pointer;
            }

            &::after {
                content: '';
                position: absolute;
                top: 50%;
                right: 15px;
                transform: translateY(-50%);
                background-image: url(/content/Images/Short-Form/dropdown-arrow.svg);
                background-repeat: no-repeat;
                width: 11px;
                height: 6px;
                pointer-events: none;
            }
        }

        .sf-checkmark-container {
            margin: 15px 0 25px;

            label {
                display: flex;
                align-items: start;
                color: var(--color-black);
                font-family: var(--font-poppins);
                font-size: 12px;
                font-weight: var(--font-weight-regular);
                line-height: 18px;
                margin: 0;
            }

            input {
                position: absolute;
                width: 25px;
                height: 25px;
                margin: 0;
                opacity: 0;
            }

            input:checked + .checkmark::after {
                display: block;
            }

            .checkmark {
                display: inline-block;
                width: 25px;
                min-width: 25px;
                height: 25px;
                border: 1px solid #474747;
                border-radius: 2px;
                margin: 0 12px 0 0;
                position: relative;

                &::after {
                    display: none;
                    content: '';
                    width: 9px;
                    height: 17px;
                    border: solid #474747;
                    border-width: 0px 3px 3px 0;
                    transform: rotate(40deg) translate(-50%, -50%);
                    position: absolute;
                    top: 45%;
                    left: 20%;
                }
            }
        }

        .form-btn-geometry {
            display: flex;
            flex-direction: column;
        }

        /* bm-custom-submit */
        .sf-submit-btn {
            background: var(--color-navy);
            color: var(--color-white);
            font-family: var(--font-poppins);
            font-size: 14px;
            font-weight: var(--font-weight-bold);
            line-height: normal;
            width: 100%;
            padding: 12px 15px;
            border: none;
            border-radius: 7px;
            margin: 0 0 10px;
            cursor: pointer;

            /* bm-verified */
            &.sf-verified {
                background: var(--color-navy);
                pointer-events: all;
            }

            &:hover {
                text-decoration: underline;
            }
        }

        .sf-call-number {
            font-family: var(--font-poppins);
            font-size: 16px;
            font-weight: var(--font-weight-semi-bold);
            line-height: 22px;
            width: fit-content;
            margin: 0 auto 15px;

            .sf-tel-number {
                color: var(--color-empire-blue);
                font-family: var(--font-poppins);
                font-weight: var(--font-weight-semi-bold);
                text-decoration: underline;
            }
        }
    }

    .sf-disclaimer {
        color: #231F20;
        font-family: var(--font-poppins);
        font-size: 13px;
        font-weight: var(--font-weight-regular);
        line-height: 18px;
        text-align: center;
        margin: 0;
    }

    /* html body .bm-custom-form .bm-error */
    .sf-error {
        position: relative;
        color: rgb(224, 0, 0);
        font-family: var(--font-poppins);
        font-size: 12px;
        line-height: 18px;
        margin: 0 0 -15px;

        &.unservice {
            position: absolute;
            background-color: var(--color-white);
            z-index: 1;
            top: 55px;
            margin: 0px -1px;
        }
    }
}

@media (min-width: 375px) {
    .mobile-short-form {
        margin: 30px 15px 40px;
    }

    .global-short-form {
        max-width: none;
    }
}

/* 480px */
@media (min-width: 30em) {
    .mobile-short-form {
        margin: 30px 0 40px;
    }

    .global-short-form {
        max-width: 425px;
        padding: 15px 5px;
    }
}

/* 600px */
@media (min-width: 37.5em) {
    .global-short-form {
        max-width: 475px;
    }
}

/* 768px */
@media (min-width: 48em) {
    .global-short-form {
        box-shadow: 12px 12px 0px var(--color-navy);
        margin: 0 0 0 -12px;

        .sf-header {
            line-height: normal;
        }

        .sf-reviews {
            margin: 0 0 25px;
        }

        form {
            .sf-field {
                font-size: 16px;
    
                &::placeholder {
                    font-size: 16px;
                }
            }

            .sf-checkmark-container {
                margin: 15px 0 30px;
            }
        }

        .sf-disclaimer {
            line-height: 22px;
        }
    }
}

/* 960px */
@media (min-width: 60em) {
}

@media (min-width: 1049px) {
    .desktop-short-form {
        display: block;
    }

    .mobile-short-form {
        display: none;
    }

    .global-short-form {
        padding: 25px 20px 10px;
        margin: 0;
    }
}