/* ====== Floating Chat Toggle ====== */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 14px 18px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
}

/* ====== Chat wrapper fixed size ====== */
.chat-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;           /* FIXED HEIGHT */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chat-wrapper.hidden {
    display: none;
}

/* ====== Close Button ====== */
.chat-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* ====== Container ====== */
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ====== Header ====== */
.container h1 {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    background: #075e54;
    color: white;
    text-align: center;
}

/* ====== Chat Area ====== */
#chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 8px;   /* SPACE BETWEEN BUBBLES */
}

/* ====== Chat Bubbles ====== */
.bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bubble.user {
    background: #DCF8C6;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    background: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ====== Input Row ====== */
.input-row {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

.input-row input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

.input-row button {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    margin-left: 6px;
    cursor: pointer;
}

/* ====== Section & Subsection Buttons ====== */
.section-button,
.subsection-button {
    display: block;
    width: 100%;
    margin-bottom: 8px;   /* FIX STICKING */
    background: #0a8f7a;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    white-space: normal;
}

.section-button:last-child,
.subsection-button:last-child {
    margin-bottom: 0;
}

.section-button:hover,
.subsection-button:hover {
    background: #066d5e;
}

/* ====== Suggestions ====== */
.suggestions {
    background: transparent !important;
}

.suggestion-list {
    display: flex;
    flex-direction: column;  /* STACK */
    gap: 8px;               /* SPACE */
}

.quick-suggestion {
    background: #0a8f7a;
    border: none;
    padding: 10px 14px;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    text-align: left;
}

/* ====== Contact Form ====== */
.bubble input,
.bubble textarea,
.bubble button {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 480px) {
    .chat-wrapper {
        width: 95%;
        right: 2.5%;
        bottom: 70px;
    }
}
