#live-chat-button {
    position: fixed;
    bottom: 12px;
    right: 80px;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Chat container */
#chat-container {
    box-sizing: border-box;
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: 100%;
    max-width: 380px;
    height: 0;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: height 300ms ease;
}

/* When chat is open, you likely set height via JS */
#chat-container.open {
    height: 460px;
}

/* Message wrapper */
#message {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Form */
#message form {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 10px;
    background: #ffffff;
    border-radius: 12px;
    position: relative;
}

/* Close button */
#message form button[onclick*="closeChat"] {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

/* Input group */
#contact-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Inputs */
#contact-input input,
#message textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-family: Arial, sans-serif;
}

/* Textarea */
#message textarea {
    min-height: 90px;
    resize: none;
}

/* Focus states */
#contact-input input:focus,
#message textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

/* Send button */
#send-contact-form {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    color: #fff;
    background-color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#send-contact-form:hover {
    background-color: #2563eb;
}

/* Mobile full width */
@media (max-width: 767px) {
    #chat-container {
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 12px 12px 0 0;
    }
}

/* Tablet and desktop */
@media (min-width: 768px) {
    #chat-container {
        width: 360px;
    }
}
