:root {
    --mainColor: #30a2dc;
    --softColor: #8cc7e5;
    --softAccent: #bdbdbd;
    --accentColor: #697076;
    --darkAccent: #22262c;
    --grey: #929292;
    --lgrey: #cccccc;
    --red: #b33d3d;
}


#content {
    position: fixed;
    top: calc(55px + max(150px, min(20vw, 300px)));
    width: 100%;
    height: calc(100% - calc(55px + max(150px, min(20vw, 300px))));
    overflow-y: auto;
}

#booking-div {
    box-sizing: border-box;
    padding-left: 4vw;
    padding-right: 4vw;
    padding-bottom: 4vw;


    wrapper:not(.checkbox) {
        display: block;
        box-sizing: border-box;

        label {
            white-space: nowrap;
            box-sizing: border-box;
            display: none;
            position: relative;
            margin-top: -1.3rem;
            top: .6rem;
            left: .5rem;
            font-weight: 500;
            color: var(--grey);
            background-color: white;
            width: fit-content;
            padding: 0rem .5rem;
            user-select: none;
            pointer-events: none;

            &.visible,
            &.persist {
                display: block;
                z-index: 20;
            }
        }

        input,
        select,
        textarea {
            display: block;
            box-sizing: border-box;
            height: 50px;
            width: 100%;
            max-width: 600px;
            border: solid 1px var(--lgrey);
            border-radius: 2px;
            font-size: 1rem;
            padding: .5rem 1rem .5rem 1rem;
            margin: 0px 0px 16px 0px;
            background-color: white;
            scroll-margin: 20px;

            option {
                font-size: larger;

                &.afterhours {
                    color: var(--grey);
                    font-size: inherit;
                }
            }

            &:focus {
                outline: solid 2px var(--grey);
            }

            &.placeholder:not(:focus) {
                color: var(--grey);
            }

            &.invalid {
                outline: solid 2px var(--red);
            }

            &.half {
                width: calc(50% - 0.2rem);
                max-width: calc(300px - 0.2rem);
                display: inline;
            }
        }

        textarea {
            height: 80px;
        }

        select {
            appearance: none;
            background-image: url('/img/arrowDown.svg');
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 30px 30px;
            cursor: pointer;
        }

        input[type="date"] {
            cursor: pointer;
        }

        &.missingRequired {
            &::after {
                content: "This information is required to continue.";
                color: var(--red);
                position: relative;
                bottom: 15px;
                pointer-events: none;
                display: block;
                z-index: 5001;
            }
        }

        .hoursNote {
            color: var(--grey);
            font-style: italic;
            position: relative;
            bottom: 15px;
            padding-bottom: 10px;
            pointer-events: none;
            display: block;
            z-index: 5000;
        }

        &.invalidPhone {
            &::after {
                content: "Please enter a valid 10-digit phone number.";
                color: var(--red);
                position: relative;
                bottom: 15px;
                pointer-events: none;
                display: block;
                z-index: 5000;
            }
        }

        &.invalidEmail {
            &::after {
                content: "Please enter a valid email address.";
                color: var(--red);
                position: relative;
                bottom: 15px;
                pointer-events: none;
                display: block;
                z-index: 5000;
            }
        }

        &.invalidAge {
            &::after {
                content: "Invalid age.";
                color: var(--red);
                position: relative;
                bottom: 15px;
                pointer-events: none;
                display: block;
                z-index: 5000;
            }
        }
    }

    button#submit {
        display: block;
        margin-top: 30px;
        height: 50px;
        width: 300px;
        font-weight: 800;
        background-color: var(--mainColor);
        color: white;
        border-radius: 5px;
    }

    wrapper.checkbox {
        display: block;
        /* cursor: pointer; */

        input {
            height: 40px;
            width: 40px;
            vertical-align: middle;
            cursor: pointer;
        }

        label {
            vertical-align: middle;
            cursor: pointer;
        }
    }

    addpet {
        position: relative;
        display: inline-block;
        width: 100px;
        height: 100px;
        border-radius: 10px;
        background-color: var(--mainColor);
        background-image: url("/admin/img/pets/add_new_pet.svg");
        background-size: contain;
        background-repeat: no-repeat;
        box-shadow: 2px 2px 5px #0000003b;
        margin: 0px 20px 20px 0px;
        cursor: pointer;

        &:hover {
            filter: brightness(1.1);
        }

        object {
            position: absolute;
            bottom: -5px;
            right: -15px;
            width: 40px;
            height: 40px;
            background-color: white;
            border-radius: 50%;
            pointer-events: none;
        }

        &.add {
            &::after {
                background-image: url('/img/arrowDown.svg');
            }
        }

        petname {
            color: black;
            position: absolute;
            top: 110px;
        }
    }

    pet {
        display: inline-block;
        vertical-align: top;
        width: calc(100% - 125px);
        max-width: calc(600px - 125px);
        position: relative;
        /* scroll-padding-top: 20px; */

        input:nth-child {
            scroll-padding-top: 20px;
        }
    }

    spacer {
        display: block;
        height: 20px;
        width: 100%;
        max-width: calc(600px);
        border-top: 1px solid var(--lgrey);
    }

    .hidden {
        display: none !important;
    }
}
    h3 {
        scroll-margin: 20px !important;
        scroll-padding: 20px !important;
    }