:root {
    --primary-color: #333;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --bot-msg-color: #e9ecef;
    --user-msg-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* Launcher Button */
   #chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333, #444);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

#chat-launcher:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #5B4CFF, #5B4CFF);
}

/* Chat Widget Container */
#chat-widget {
    position: fixed;
    bottom: 20px; /* Reduced from 90px to bring it down */
    right: 20px;
    width: 380px;
    height: 520px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

/* Chat Header */
.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.header-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.8;
}

.header-controls button:hover {
    opacity: 1;
}

/* Tabs */
.chat-tabs {
    display: flex;
    background-color: #e9ecef;
    border-bottom: 1px solid #ccc;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Tab Contents */
.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-line;
    word-wrap: break-word;
}

.message.bot {
    background-color: var(--bot-msg-color);
    color: var(--text-color);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.message.user {
    background-color: var(--user-msg-color);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bot-msg-color);
    padding: 12px 16px;
    border-radius: 8px;
    border-top-left-radius: 2px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9E9E;
    border-radius: 50%;
    animation: bounce 1.3s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Chat Input */
.chat-input-container {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px;
    background-color: white;
}

#chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

#send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Booking Form Styling */
#booking-section {
    padding: 15px;
    overflow-y: auto;
    background-color: #fff;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #444;
}

.form-group input, .form-group textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.submit-booking-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.submit-booking-btn:hover {
    background-color: #004085;
}

/* Quick Options */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    align-self: flex-start;
}

.option-btn {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
}

.option-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

#booking-section {
    position: relative; /* Anchors the close button inside the section */
    padding: 15px 12px;
    overflow-y: auto;
    background-color: #fff;
    max-height: 100%;
}

.close-booking-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.close-booking-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Inside your Netlify style.css */
body {
    background: transparent !important;
    margin: 0;
    padding: 0;
}
