﻿.button-scroll-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-top: 20px; /* Reduced from 20px to minimize space between text and buttons */
    /* Add these properties to prevent movement during scroll */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Use hardware acceleration to prevent jumps during scrolling */
    will-change: transform;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    grid-gap: 10px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    /* Add to prevent jitter during scroll */
    transform: translateZ(0);
}

.gulf-air-button {
    background: rgba(26, 29, 46, 0.95) !important;
    color: #f7fafc !important;
    border: 1px solid rgba(184, 134, 11, 0.3) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    width: 200px !important;
    height: 40px !important;
    text-align: center !important;
    position: relative !important;
    overflow: visible !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    /* Ensure it's rendered as a button, not input */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    /* Add to prevent jitter during scroll */
    transform: translateZ(0);
}

    .gulf-air-button:hover {
        background: rgba(184, 134, 11, 0.2) !important;
        border-color: rgba(184, 134, 11, 0.6) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }

    .gulf-air-button:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
        background: rgba(184, 134, 11, 0.3) !important;
    }

/* Mobile: stack buttons vertically */
@media (max-width: 768px) {
    .button-scroll-container {
        width: 100%;
        max-width: none;
        padding: 0 20px;
        margin: 20px 0;
        box-sizing: border-box;
    }

    .button-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 5px;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .gulf-air-button {
        width: 100% !important;
        max-width: 280px !important;
        min-width: unset !important;
        height: 50px;
        flex: none;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .button-scroll-container {
        padding: 0 16px;
    }

    .button-grid {
        gap: 0px;
    }

    .gulf-air-button {
        max-width: 100% !important;
        font-size: 15px;
    }
}

.book-now-button {
    background: rgba(26, 29, 46, 0.95);
    color: #f7fafc;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 18px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-decoration: none;
}

    .book-now-button:hover {
        background: rgba(184, 134, 11, 0.2);
        border-color: rgba(184, 134, 11, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .book-now-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        background: rgba(184, 134, 11, 0.3);
    }

/* Add specific styles for buttons in chat messages to prevent movement during scrolling */
.chat-history-message .button-scroll-container,
.chat-history-initial .button-scroll-container {
    /* Force hardware acceleration and prevent repaints */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    /* Prevent any jitter during scroll */
    position: relative;
    z-index: 1;
}

/* Target specific button rendering in chat messages */
.chat-history-message .content .button-scroll-container {
    margin-top: 0 !important; /* No margin in chat messages */
    margin-bottom: 5px;
}

/* Eliminate space when button container immediately follows a paragraph */
.ai-message p + .button-scroll-container,
.chat-history-message .content p + .button-scroll-container,
.content p + .button-scroll-container {
    margin-top: 0 !important; /* Force zero margin between text and buttons */
}

/* Ensure button containers in content divs have no top margin */
.content .button-scroll-container {
    margin-top: 0 !important; /* Force zero top margin in any content div */
}

/* Input group layout and label styling */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 200px;
}

    .input-group label {
        font-size: 14px;
        color: #f7fafc;
        font-weight: 500;
        margin-left: 6px;
    }

/* Gulf Air styled date input */
.gulf-air-input {
    background: rgba(26, 29, 46, 0.95);
    color: #f7fafc;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 200px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    appearance: none;
}

    .gulf-air-input:hover {
        background: rgba(184, 134, 11, 0.2);
        border-color: rgba(184, 134, 11, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .gulf-air-input:focus {
        outline: none;
        border-color: rgba(184, 134, 11, 0.8);
        box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.4);
    }

/* Align Submit button to span full width below inputs */
.input-group.full-width {
    grid-column: span 2;
    display: flex;
    justify-content: center;
}

.gulf-air-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.formatted-date {
    color: #f7fafc;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}


/* Responsive stacking for mobile devices */
@media (max-width: 768px) {
    .responsive-form {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .input-group {
        max-width: 100% !important;
    }

        .input-group.full-width {
            grid-column: auto;
        }
}



.booking-menu-item{
    text-decoration:underline;
    cursor:pointer;
    color:white;
}

    .booking-menu-item:hover {
        color: #d5d5d5;
    }