/* 
 * Fullscreen Modal Enhancement Overrides
 * 
 * This file contains ONLY the specific overrides needed for fullscreen modal experience.
 * Base styles are in wprb.css - this file only enhances them for fullscreen mode.
 * 
 * Optimized to avoid duplications and reduce CSS bloat.
 */

/* Make modal fullscreen when opened by jQuery Modal */
.jquery-modal.blocker #wprb-booking-modal,
#wprb-booking-modal.jquery-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1050 !important;
}

/* Modal container should fill screen */
#wprb-booking-modal .modal-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Header bar with gradient */
#wprb-booking-modal .header-bar {
    background: linear-gradient(135deg, #ffb100 0%, #5cb85c 100%);
    color: white !important;
    padding: 30px 20px 20px !important;
}

/* Modal header image */
#wprb-booking-modal .wprb-modal-header-image {
    text-align: center !important;
    margin-bottom: 15px !important;
}

#wprb-booking-modal .wprb-modal-header-image img {
    max-width: 350px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Content area styling */
#wprb-booking-modal .main_container_booking {
    flex: 1 !important;
    overflow-y: auto !important;
    margin-top: 10px;
}

/* Step containers */
#wprb-booking-modal .booking-step {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding-left: 10px;
    padding-right: 10px;
}


/* Step progression styling - fullscreen specific overrides */
#wprb-booking-modal .header-bar_steps {
    gap: 20px !important;
    background: transparent !important;
}

#wprb-booking-modal .header-bar_steps li {
    padding: 10px 15px !important;
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: 120px !important;
}

#wprb-booking-modal .header-bar_steps li.current {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #667eea !important;
    font-weight: 600 !important;
    transform: scale(1.05) !important;
}

#wprb-booking-modal .header-bar_steps li.completed {
    background: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

#wprb-booking-modal .header-bar_steps li.completed::after {
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    line-height: 20px !important;
}

/* Form elements - enhanced for fullscreen */

/* Hours selection layout - horizontal */
#wprb-booking-modal .booking-hours ul {
    gap: 10px;
    min-height: auto;
    list-style: none;
    margin: 20px 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;
}

#wprb-booking-modal .booking-hours ul li {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 80px !important;
    margin: 0 !important;
    text-align: center !important;
}

#wprb-booking-modal .booking-hours ul li input {
    width: 100% !important;
    min-width: 80px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    border: 1px dotted #169e4f;
}

#wprb-booking-modal .booking-hours ul li input:hover {

    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    font-weight: 800 !important;
}

#wprb-booking-modal .booking-hours ul li input.active,
#wprb-booking-modal .booking-hours ul li input.selected-confirmed {

    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    transform: translateY(-1px) !important;
}


/* Enhanced animations for fullscreen */
#wprb-booking-modal .booking-step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

#wprb-booking-modal .booking-step.slide-out {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    transition: all 0.15s ease-in !important;
}

#wprb-booking-modal .booking-step.slide-in {
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-confirm {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Button confirmation animation */
#wprb-booking-modal input.selected-confirmed {
    animation: button-confirm 0.4s ease !important;
}

@keyframes button-confirm {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
    }

    100% {
        transform: translateY(-1px) scale(1);
    }
}

/* Room selection buttons */
#wprb-booking-modal .room-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 20px 0 !important;
}

#wprb-booking-modal .room-select-btn {
    flex: 0 0 auto !important;
    min-width: 150px !important;
    padding: 15px 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    border: 1px dotted #169e4f;
}

#wprb-booking-modal .room-select-btn:hover {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
}

#wprb-booking-modal .room-select-btn.active {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

/* Table selection improvements */
#wprb-booking-modal .basic-table-button {
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin: 5px !important;
    display: inline-block !important;
    min-width: 100px !important;
    text-align: center !important;
}

#wprb-booking-modal .basic-table-button:hover:not(.occupied):not(.insufficient-seats) {
    border-color: #667eea !important;
    background: #f0f8ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
}

#wprb-booking-modal .basic-table-button.occupied {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    cursor: not-allowed !important;
}

#wprb-booking-modal .basic-table-button.insufficient-seats {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
    cursor: not-allowed !important;
}

/* Step loader */
#wprb-booking-modal .step-loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    display: none !important;
}

#wprb-booking-modal .loader-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 3px solid rgba(102, 126, 234, 0.3) !important;
    border-top: 3px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Submit loader overlay */
#wprb-submit-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: none !important;
}

#wprb-submit-loader .submit-loader-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px) !important;
}

#wprb-submit-loader .submit-loader-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    min-width: 300px !important;
}

#wprb-submit-loader .submit-loader-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

#wprb-submit-loader p {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
}


/* Enhanced form styling */
#wprb-booking-modal .booking-step h3,
#wprb-booking-modal .booking-step h4 {
    color: #333 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

#wprb-booking-modal .wprb-step-description {
    color: #666 !important;
    font-size: 16px !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
    line-height: 1.5 !important;
}

/* Success feedback messages */
#wprb-booking-modal .selection-feedback {
    background: #d4edda !important;
    color: #155724 !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    margin-top: 15px !important;
    border-left: 4px solid #28a745 !important;
    font-size: 14px !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
}

#wprb-booking-modal .selection-feedback.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Mobile responsiveness */
@media (max-width: 768px) {

    #wprb-booking-modal .booking-hours ul {
        justify-content: center !important;
    }

    #wprb-booking-modal .booking-hours ul li {
        min-width: 70px !important;
    }

    #wprb-booking-modal .header-bar {
        padding: 20px 15px 15px !important;
    }

    #wprb-booking-modal .wprb-modal-header-image {
        margin-bottom: 10px !important;
    }

    #wprb-booking-modal .wprb-modal-header-image img {
        max-width: 250px !important;
    }

    #wprb-booking-modal .header-bar_steps {
        gap: 5px !important;
        flex-wrap: wrap !important;
    }

    #wprb-booking-modal .header-bar_steps li {
        min-width: 100px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* Room buttons responsive */

    #wprb-booking-modal .room-select-btn {
        min-width: 120px !important;
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 350px) {
    #wprb-booking-modal .header-bar_steps li {
        min-width: 80px !important;
    }
}