/* Styling chatbot widget floating kanan bawah */
#chatbot-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: #d4af37;
    color: #111;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover,
.chatbot-toggle.active {
    transform: scale(1.06);
    background: #bf9a2b;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.chatbot-panel {
    width: 360px;
    max-height: 540px;
    display: none;
    flex-direction: column;
    background: #5a0808;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-bottom: 12px;
}

.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #500000 0%, #2a0000 100%);
    color: #f7f4ea;
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.chatbot-header strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.chatbot-header p {
    margin: 0;
    font-size: 0.88rem;
    color: #d4af37;
}

.chatbot-close {
    border: none;
    background: transparent;
    color: #f7f4ea;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 0.9;
}

.chatbot-messages {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    background: #6b0909;
}

.chatbot-message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 88%;
}

.chatbot-message.bot {
    background: rgba(128, 0, 0, 0.95);
    color: #f7f4ea;
    align-self: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.chatbot-message.user {
    background: #d4af37;
    color: #111;
    align-self: flex-end;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-quick-replies {
    padding: 10px 16px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #7a0808;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.chatbot-quick-replies button {
    background: rgba(212, 175, 55, 0.14);
    color: #f7f4ea;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chatbot-quick-replies button:hover {
    background: rgba(212, 175, 55, 0.28);
    transform: translateY(-1px);
}

.chatbot-form {
    display: flex;
    gap: 10px;
    padding: 14px 16px 18px;
    background: #7a0808;
}

.chatbot-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #cc0000;
    background: #6b0909;
    color: #f7f4ea;
    padding: 14px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.chatbot-input:focus {
    border-color: rgba(212, 175, 55, 0.7);
    background: #5a0808;
}

.chatbot-input::placeholder {
    color: #8d8d8d;
}

.chatbot-submit {
    border: none;
    border-radius: 999px;
    background: #d4af37;
    color: #111;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chatbot-submit:hover {
    background: #bf9a2b;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    #chatbot-widget {
        right: 12px;
        bottom: 12px;
    }

    .chatbot-panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 40px);
        margin-bottom: 10px;
    }
}

@media (max-width: 420px) {
    .chatbot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chatbot-form {
        flex-direction: column;
    }

    .chatbot-submit {
        width: 100%;
    }
}