﻿/* quote popup */

#quote-popup {
    width: 100%;
    max-height: 100vh;
    padding-bottom: 50px;
    border-radius: 15px 15px 0px 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 100vh;
    left: 0;
    right: 0;
    bottom: -100%;
    transition: all 1s;
    z-index: 20;
    text-align: center;
    overflow-y: scroll;
}

#quote-popup.active {
    top: 60px;
    bottom: 0;
    transition: all 1s;
}

#quote-popup-overlay {
    position: fixed;
    top: 60px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: white;
    border-radius: 15px 15px 0px 0px;
    opacity: 0.7;
    transition: opacity 0.5s;
    z-index: 11;
    display: none;
    transition: all 1s;
}

#quote-success-div {
    position: fixed;
    top: 60px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    border-radius: 15px 15px 0px 0px;
    padding: 20px;
    background-image: url('../../images/home/confetti-removebg.png');
    background-size: 550px;
    background-color: rgba(255,255,255,0.9);
    background-blend-mode: lighten;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 1s;
}

#close-success-quote-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background-color: white;
    padding: 5px 9px;
    border-radius: 50%;
    cursor: pointer;
}

#quote-success-checkmark-and-message {
    background-color: rgba(255,255,255,1);
    border: 1px solid #D3D3D3;
    box-shadow: 2px 4px 12px #00000014;
    border-radius: 15px;
    padding: 20px;
}

#check-mark-animation {
    margin: auto;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100px;
}

#quote-popup-overlay.close, #quote-success-div.close {
    top: 100vh;
    bottom: -100%;
    transition: all 1s;
}

#quote-popup p {
    line-height: 1.5;
    margin-bottom: 0px;
}

#quote-popup-header {
    position: sticky;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: #fff;
    padding: 10px 0px;
    z-index: 10;
}

#close-quote-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
}

#require-alert {
    display: none;
    color: #d90429;
    margin-top: 5px;
}

#quote-form {
    padding: 10px 20px 20px;
}

#quote-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

#quote-form label {
    font-size: 13px;
    margin-bottom: 2px;
    text-align: left;
}

#quote-form input,
#quote-form textarea {
    padding: 10px;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
}

#quote-form input:focus-visible,
#quote-form textarea:focus-visible {
    outline: solid 1px #D3D3D3;
}

#quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.validation-failed-on-submit:has(input:invalid, textarea:invalid) #require-alert {
    display: block;
}

.validation-failed-on-submit #quote-form input:invalid,
.validation-failed-on-submit #quote-form textarea:invalid {
    border: 1px solid red;
}

#toast-container > div {
    opacity: 1;
}

#quote-popup-phone-number {
    font-weight: 600;
    margin: 5px 0px;
}

#submit-quote-div {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background-color: #fff;
    padding: 10px 20px;
    transition: all 1s;
}

#quote-popup.active #submit-quote-div {
    bottom: 0;
    transition: all 1s;
}

#submit-quote-div button {
    width: 100%;
}


@media (min-width: 600px) {

    #quote-popup {
        border-radius: 0px;
        max-width: 500px;
        margin: 0 auto;
        padding-bottom: 0px;
        position: fixed;
        top: 50px;
        bottom: 50px;
        display: none;
    }

    #quote-popup.active {
        display: block;
        top: 50px;
        bottom: 50px;
        z-index: 12;
    }

    #quote-popup.active + #dim-background-div {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #000;
        opacity: 0.7;
        z-index: 11;
    }

    #quote-popup-overlay {
        max-width: 500px;
        margin: 0 auto;
        top: 50px;
        bottom: 50px;
    }

    #quote-success-div {
        max-width: 500px;
        margin: 0 auto;
        top: 50px;
        bottom: 50px;
    }

    #close-quote-popup {
        cursor: pointer;
    }

    #quote-form {
        padding-bottom: 0px;
    }

    #submit-quote-div {
        position: sticky;
        bottom: 0px;
    }

}
