/* 
================================================================
GLOBAL SLIDE-OUT DRAWER SYSTEM (FORCED)
================================================================
*/

/* 1. The Background Overlay */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    display: flex !important;
    justify-content: flex-end !important; /* Forces content to the right */
    align-items: stretch !important;      /* Forces content to be full height */
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. The Drawer Content */
.modal-content {
    /* Dimensions & Position */
    width: 100% !important;
    max-width: 600px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    
    /* Aesthetics */
    background: rgba(10, 10, 15, 0.98) !important;
    backdrop-filter: blur(40px) !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 2px solid var(--primary-neon) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9) !important;
    
    /* Animation */
    transform: translateX(100%) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    /* Layout */
    display: block !important;
    padding: 8rem 3rem 4rem !important;
    overflow-y: auto !important;
    position: relative !important;
}

/* 3. The Activation Animation */
.modal-overlay.active .modal-content {
    transform: translateX(0) !important;
}

/* 4. The Close Button */
.close-btn {
    position: absolute !important;
    top: 2.5rem !important;
    left: 2.5rem !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.8rem !important;
    z-index: 100001 !important;
    transition: all 0.3s ease !important;
}

.close-btn:hover {
    background: var(--primary-neon) !important;
    color: #000 !important;
    box-shadow: 0 0 25px var(--primary-neon) !important;
    transform: rotate(90deg) !important;
}

/* 5. Form Headings in Drawer */
.order-form h2 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
    background: linear-gradient(90deg, #fff, var(--primary-neon)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.order-form p {
    text-align: left !important;
    color: var(--text-muted) !important;
    margin-bottom: 2.5rem !important;
    font-size: 1.1rem !important;
}

/* Adjustments for Mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100% !important;
        padding: 7rem 2rem 3rem !important;
    }
}
