/* 
 * Guruvayoor Services - Events Shortcode CSS
 * Usecase: Displays events in grid layout with booking popup modal
 * Matching elementor-kit-10 styles:
 * --e-global-color-primary: #003366;
 * --e-global-color-secondary: #FF9933;
 * --e-global-color-text: #000000;
 * --e-global-color-accent: #FF9933;
 * --e-global-color-03b1a6d: #FFF8E7;
 * --e-global-color-ba49988: #004488;
 * --e-global-color-84b7e52: #FFFFFF;
 */

:root {
    /* Event specific colors */
    --event-primary: #003366;
    --event-secondary: #FF9933;
    --event-accent: #FF9933;
    --event-light-bg: #FFF8E7;
    --event-dark-blue: #004488;
    --event-white: #FFFFFF;
    --event-text: #000000;
    --event-gray: #555555;
    --event-light-gray: #f8f9fa;
    --event-border: #e0e0e0;
    --event-shadow: rgba(0, 51, 102, 0.08);
    --event-shadow-hover: rgba(0, 51, 102, 0.15);
    --event-success: #0a875a;
    --event-danger: #dc2626;
}


/* Events Wrapper */

.wide_gv_events_wrapper {
    font-family: 'Playfair Display', serif;
    margin: 30px 0;
}


/* Events Grid */

.wide_gv_events_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}


/* No Image Placeholder */

.wide_gv_no_image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--event-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
}


/* ===============================
   EVENT BOOKING MODAL
   =============================== */

.wide_gv_event_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wide_gv_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Modal Header */

.wide_gv_modal_header {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.modal_event_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal_header_info {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 51, 102, 0.9));
    color: var(--event-white);
    padding: 30px 30px 20px;
    width: 100%;
}

.modal_header_info h3 {
    margin: 0 0 8px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--event-white);
}

.modal_header_info p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Modal Close Button */

.wide_gv_modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--event-white);
    border: none;
    color: var(--event-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wide_gv_modal_close:hover {
    background: var(--event-secondary);
    color: var(--event-white);
    transform: rotate(90deg);
}


/* Modal Body */

.wide_gv_modal_body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.form_group {
    margin-bottom: 25px;
}

.form_group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--event-primary);
}

.wide_gv_number_input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--event-border);
    border-radius: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--event-text);
    background: var(--event-light-bg);
    transition: all 0.3s ease;
}

.wide_gv_number_input:focus {
    outline: none;
    border-color: var(--event-secondary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}


/* Features Scroll Area */

.wide_gv_features_scroll {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--event-border);
    border-radius: 10px;
    background: var(--event-light-bg);
    padding: 5px;
}


/* Feature Checkbox Item */

.wide_gv_feature_item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--event-border);
    transition: background 0.3s ease;
}

.wide_gv_feature_item:last-child {
    border-bottom: none;
}

.wide_gv_feature_item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.wide_gv_feature_checkbox {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--event-secondary);
}

.wide_gv_feature_label {
    flex: 1;
    cursor: pointer;
}

.wide_gv_feature_name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--event-text);
    margin-bottom: 4px;
    font-weight: 500;
}

.wide_gv_feature_rate {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--event-secondary);
    font-weight: 600;
}

.wide_gv_feature_note {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--event-gray);
    margin-top: 2px;
}


/* Modal Footer */

.wide_gv_modal_footer {
    padding: 20px 30px;
    background: var(--event-light-bg);
    border-top: 1px solid var(--event-border);
    display: flex;
    gap: 15px;
}

.wide_gv_modal_btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wide_gv_modal_btn.primary {
    background: var(--event-secondary);
    color: var(--event-white);
}

.wide_gv_modal_btn.primary:hover {
    background: #e68829;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.wide_gv_modal_btn.secondary {
    background: transparent;
    color: var(--event-primary);
    border: 2px solid var(--event-primary);
}

.wide_gv_modal_btn.secondary:hover {
    background: var(--event-primary);
    color: var(--event-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}


/* ===============================
   CART NOTIFICATION
   =============================== */

.wide_gv_cart_notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--event-success);
    color: var(--event-white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.wide_gv_cart_notification.show {
    transform: translateY(0);
    opacity: 1;
}

.wide_gv_cart_notification.hide {
    transform: translateY(100px);
    opacity: 0;
}

.wide_gv_cart_icon {
    font-size: 22px;
}

.wide_gv_cart_message {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 500;
}


/* ===============================
   SCROLLBAR STYLING
   =============================== */

.wide_gv_features_scroll::-webkit-scrollbar {
    width: 6px;
}

.wide_gv_features_scroll::-webkit-scrollbar-track {
    background: var(--event-light-bg);
    border-radius: 10px;
}

.wide_gv_features_scroll::-webkit-scrollbar-thumb {
    background: var(--event-secondary);
    border-radius: 10px;
}

.wide_gv_features_scroll::-webkit-scrollbar-thumb:hover {
    background: #e68829;
}


/* ===============================
   RESPONSIVE STYLES
   =============================== */

@media (max-width: 768px) {
    .wide_gv_events_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wide_gv_event_modal {
        padding: 10px;
    }
    .wide_gv_modal_content {
        max-width: 100%;
        max-height: 95vh;
    }
    .wide_gv_modal_header {
        height: 180px;
    }
    .modal_header_info h3 {
        font-size: 24px;
    }
    .wide_gv_modal_body {
        padding: 20px;
    }
    .wide_gv_modal_footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    .wide_gv_modal_btn {
        width: 100%;
    }
    .wide_gv_cart_notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wide_gv_modal_header {
        height: 160px;
    }
    .modal_header_info {
        padding: 20px 20px 15px;
    }
    .modal_header_info h3 {
        font-size: 22px;
    }
    .wide_gv_modal_close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}


/* ===============================
   LOADING STATE
   =============================== */

.wide_gv_loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wide_gv_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--event-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: eventSpin 0.8s linear infinite;
}

@keyframes eventSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ===============================
   ACCESSIBILITY
   =============================== */

.wide_gv_modal_close:focus,
.wide_gv_modal_btn:focus,
.wide_gv_feature_checkbox:focus {
    outline: 2px solid var(--event-accent);
    outline-offset: 2px;
}


/* ===============================
   EVENT BOOKING MODAL - CENTER FIX
   =============================== */

.wide_gv_event_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wide_gv_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wide_gv_modal_content {
    position: relative;
    background: var(--event-white);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: auto;
}


/* Simple modal animation */

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Modal show/hide */

.wide_gv_event_modal.active {
    display: flex !important;
}


/* Body lock when modal is open */

body.modal-open {
    overflow: hidden !important;
}


/* ===============================
   RESPONSIVE STYLES
   =============================== */

@media (max-width: 768px) {
    .wide_gv_event_modal {
        padding: 15px;
    }
    .wide_gv_modal_content {
        max-width: 100%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .wide_gv_event_modal {
        padding: 10px;
    }
}