/* Genie Effect for Modal */
.modal#quickQuoteModal {
    opacity: 0;
    transform: scale(0.1);
    transform-origin: bottom right;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    display: none; /* Match inline style, but controlled by JS */
}

.modal#quickQuoteModal.show {
    display: flex !important; /* Override inline style */
    opacity: 1;
    transform: scale(1);
}

.modal#quickQuoteModal .modal-content {
    transform: scale(0.1);
    transform-origin: bottom right;
    transition: transform 0.4s ease-in-out;
}

.modal#quickQuoteModal.show .modal-content {
    transform: scale(1);
}

/* Animation for closing */
.modal#quickQuoteModal:not(.show) {
    animation: genieOut 0.4s ease-in-out forwards;
}

@keyframes genieOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.1);
    }
}

/* Ensure modal positioning and responsiveness */
.modal#quickQuoteModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal#quickQuoteModal .modal-content {
        width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .modal#quickQuoteModal .modal-content {
        padding: 0.8rem;
    }
}