/* ================================
   GLOBAL RESET & BASE STYLES
================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    max-width: 100%;
    background: #f4f6f8;
    overflow-x: hidden;
}

/* ================================
   STICKY HEADER
================================== */
header {
    width: 100%;
    background: #0369a1;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quick-consult-title {
    text-align: center;
    margin-bottom: 15px; /* optional spacing */
}

/* ================================
   CHAT CONTAINER
================================== */
.chat-container {
    max-width: 700px;
    margin: 80px auto 90px auto; /* space for header + footer */
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

/* Chat window */
.chat-window {
    max-height: 550px; /* taller window */
    overflow-y: auto;
    padding: 10px;
}

/* ================================
   CHAT BUBBLES
================================== */
.chat-message {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot {
    background: #e9f3ff;
    border-left: 4px solid #0369a1;
}

.user {
    background: #d1ffd6;
    border-right: 4px solid #28a745;
    text-align: right;
}

/* ================================
   INPUT FIELD AREA
================================== */
.input-area {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

textarea, input[type="text"], input[type="email"], input[type="date"], input[type="file"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    resize: vertical;
}

textarea {
    min-height: 60px;
}

/* ================================
   BUTTONS
================================== */
button.send-btn, .choice-btn, .bot-file-wrapper a {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

button.send-btn:hover, .choice-btn:hover, .bot-file-wrapper a:hover {
    background: #1e7e34;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

/* ================================
   DATE PICKER WRAPPER
================================== */
.bot-date-wrapper {
    margin: 10px 0;
}

/* ================================
   FOOTER
================================== */
footer, .site-footer {
    width: 100%;
    background: #0369a1; /* consistent with chat page */
    color: white;
    text-align: center;
    padding: 12px 5px;
    font-size: 14px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
}

/* ================================
   QUICK CONSULT NOTE
================================== */
.cta-note {
    background-color: #e0f2ff;
    color: #0369a1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 15px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(3,105,161, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(3,105,161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(3,105,161, 0); }
}

/* ================================
   MOBILE RESPONSIVE
================================== */
@media (max-width: 768px) {
    .chat-container {
        margin: 70px 10px 90px 10px;
        padding: 20px;
    }

    button.send-btn, .choice-btn, .bot-file-wrapper a {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        margin: 60px 10px 90px 10px;
        padding: 15px;
    }

    .chat-window {
        max-height: 500px;
    }
}
