﻿/* ============================================================
   AI CHATBOT WIDGET - BOOKING ENGINE
   ============================================================ */

#chat-launcher,
#chat-window,
#chat-window * {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* =========================
   Launcher
   ========================= */

#chat-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #004a99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 22px rgba(0, 74, 153, 0.28);
    transition: all 0.2s ease;
}

    #chat-launcher:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0, 74, 153, 0.34);
    }

    #chat-launcher svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

/* =========================
   Chat Window
   ========================= */

#chat-window {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 385px;
    height: 610px;
    background: #ffffff;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

    #chat-window.expanded {
        width: 460px;
        height: 680px;
    }

/* =========================
   Header
   ========================= */

.chat-header {
    background: linear-gradient(135deg, #004a99 0%, #0a63c9 100%);
    color: white;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-btn {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.9;
    transition: all 0.2s ease;
}

    .tool-btn:hover {
        opacity: 1;
        transform: scale(1.08);
    }

/* =========================
   Dropdown Menu
   ========================= */

#menu-dropdown {
    position: absolute;
    top: 54px;
    right: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    display: none;
    z-index: 1002;
    width: 130px;
    overflow: hidden;
}

.menu-item {
    padding: 11px 14px;
    color: #0f172a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .menu-item:hover {
        background: #eef5ff;
    }

/* =========================
   Chat Body
   ========================= */

#chat-box {
    flex: 1;
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    scroll-behavior: smooth;
    gap: 6px;
}

    #chat-box::-webkit-scrollbar {
        width: 6px;
    }

    #chat-box::-webkit-scrollbar-track {
        background: transparent;
    }

    #chat-box::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 20px;
    }

        #chat-box::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* =========================
   Messages
   ========================= */

.msg {
    max-width: 90%;
    line-height: 1.35;
    margin-bottom: 6px;
    width: fit-content;
    font-size: 12px;
}

.bot-bubble {
    background: #eef5ff;
    color: #1a202c;
    padding: 9px 12px;
    border-radius: 0 14px 14px 14px;
    align-self: flex-start;
    display: inline-block;
    min-width: 50px;
    max-width: 88%;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.06);
}

.user-bubble {
    background: #f8fafc;
    color: #111827;
    padding: 10px 14px;
    border-radius: 16px 16px 0 16px;
    align-self: flex-end;
    border: 1px solid #edf2f7;
    max-width: 82%;
    line-height: 1.35;
}

.bot-rich-card {
    width: 100%;
    max-width: 100%;
    align-self: flex-start;
    background: transparent;
}

/* =========================
   Quick Buttons
   ========================= */

.inline-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 12px 0;
}

    .inline-buttons .chat-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

.chat-btn {
    background: #ffffff;
    color: #004a99;
    border: 1.5px solid #004a99;
    padding: 9px 8px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    width: 100%;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    transition: all 0.2s ease;
    font-size: 12px;
}

    .chat-btn:hover {
        background: #004a99;
        color: #ffffff;
        transform: translateY(-1px);
    }

/* =========================
   Input Area
   ========================= */

.input-area {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 10px;
}

input#user-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 12px 13px;
    outline: none;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 42px;
    color: #0f172a;
    font-size: 12px;
}

    input#user-input:focus {
        border-color: #004a99;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.10);
    }

#send-btn {
    background: #cbd5e0;
    color: white;
    border: none;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #send-btn.active {
        background: #004a99;
    }

/* =========================
   Processing
   ========================= */

.processing {
    color: #64748b;
    padding: 0 18px 10px;
    display: none;
    font-style: italic;
    font-size: 11px;
}

/* =========================
   Onboarding Form
   ========================= */

.chat-onboarding-wrap {
    width: 100%;
    min-height: calc(100% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    flex: 1;
}

.chat-onboarding-card {
    width: 100%;
    max-width: 310px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 82, 186, 0.10);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 38px rgba(15, 82, 186, 0.14);
    animation: chatCardIn 0.35s ease;
    margin: auto;
}

.chat-onboarding-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0057b8, #2f80ed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    box-shadow: 0 10px 22px rgba(0, 87, 184, 0.22);
}

.chat-onboarding-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 6px;
}

    .chat-onboarding-title span {
        color: #0057b8;
    }

.chat-onboarding-subtitle {
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 16px;
}

.chat-lead-fields {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.chat-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .chat-field-group label {
        font-size: 11.5px;
        font-weight: 700;
        color: #334155;
    }

.modern-lead-input {
    width: 100%;
    height: 42px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    padding: 0 13px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .modern-lead-input::placeholder {
        color: #94a3b8;
    }

    .modern-lead-input:focus {
        border-color: #0057b8;
        box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.10);
    }

.modern-start-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0057b8, #004494);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    box-shadow: 0 12px 24px rgba(0, 87, 184, 0.24);
    transition: all 0.2s ease;
}

    .modern-start-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(0, 87, 184, 0.30);
    }

.chat-privacy-note {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    font-size: 10.8px;
    line-height: 1.4;
    color: #94a3b8;
    text-align: center;
}

/* =========================
   Booking Form / Rich Forms
   ========================= */

.booking-card,
.booking-form {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.10);
    box-sizing: border-box;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.booking-field,
.booking-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .booking-field label,
    .booking-form .form-label {
        font-weight: 700;
        color: #1e3a5f;
        font-size: 12px;
    }

.booking-input,
.booking-form input[type='date'],
.booking-form input[type='number'],
.booking-form input[type='text'],
.booking-form input[type='tel'] {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 12px;
}

    .booking-input:focus,
    .booking-form input:focus {
        border-color: #004a99;
        box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.12);
    }

.booking-submit-btn,
.submit-form-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #004a99 0%, #0a63c9 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 74, 153, 0.22);
    transition: all 0.2s ease;
}

    .booking-submit-btn:hover,
    .submit-form-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0, 74, 153, 0.28);
    }

/* =========================
   Lead Help Form
   ========================= */

.modern-help-form,
.lead-form {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(15, 82, 186, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-form-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.help-form-subtitle {
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 8px;
}

.help-input,
.lead-form input,
.lead-name,
.lead-phone,
#leadName,
#leadPhone {
    width: 100%;
    height: 42px;
    border: 1px solid #d5e2f1;
    border-radius: 13px;
    padding: 0 13px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}

    .help-input:focus,
    .lead-form input:focus,
    #leadName:focus,
    #leadPhone:focus {
        border-color: #0057b8;
        box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.10);
    }

.help-submit-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 13px;
    background: #0057b8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================
   Room Card
   ========================= */

.room-card {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-name {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.room-price {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 7px 10px;
    font-weight: 700;
    width: fit-content;
}

.room-plan {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 10px;
    line-height: 1.35;
}

.room-desc {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.room-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.cta-room-btn,
.cta-solid-btn {
    border: none;
    border-radius: 12px;
    min-height: 40px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .cta-room-btn:hover,
    .cta-solid-btn:hover {
        transform: translateY(-1px);
    }

    .cta-room-btn.book,
    .cta-solid-btn {
        background: linear-gradient(135deg, #004a99 0%, #0a63c9 100%);
        color: #ffffff;
    }

    .cta-room-btn.view {
        background: #ffffff;
        color: #004a99;
        border: 1.5px solid #004a99;
    }

/* =========================
   Animation
   ========================= */

@keyframes chatCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 576px) {
    #chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 40px);
        right: 10px;
        bottom: 10px;
        border-radius: 16px;
    }

        #chat-window.expanded {
            width: calc(100vw - 20px);
            height: calc(100vh - 40px);
        }

    #chat-launcher {
        right: 16px;
        bottom: 16px;
    }

    #chat-box {
        padding: 14px;
    }

    .inline-buttons {
        gap: 8px;
    }

    .chat-btn {
        min-height: 42px;
        padding: 8px 6px;
    }

    .booking-grid,
    .room-cta {
        grid-template-columns: 1fr;
    }

    .chat-onboarding-card {
        max-width: 300px;
        padding: 16px;
    }
}


/* =========================
   Sub Menu / Hyatt Link Style
   ========================= */

.bot-rich-card {
    width: 100%;
    max-width: 100%;
    align-self: flex-start;
}

.hyatt-link {
    width: 100%;
    min-height: 46px;
    padding: 13px 14px;
    margin-bottom: 9px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(15, 82, 186, 0.06);
    transition: all 0.2s ease;
}

    .hyatt-link:hover {
        border-color: #0057b8;
        background: #f8fbff;
        color: #0057b8;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(15, 82, 186, 0.12);
    }

    .hyatt-link span {
        min-width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #eef5ff;
        color: #0057b8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

.back-menu-cont {
    width: 100%;
    margin-top: 10px;
}

    .back-menu-cont .chat-btn {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        background: #ffffff;
        color: #0057b8;
        border: 1.5px solid #0057b8;
        font-size: 13px;
        font-weight: 800;
    }

        .back-menu-cont .chat-btn:hover {
            background: #0057b8;
            color: #ffffff;
        }