/* Chatbot Styles */
.chat-bot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
}

/* Chat Button */
.chat-bot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0e76bc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-bot-button i {
    font-size: 24px;
}

.chat-bot-button:hover {
    background-color: #0a5a8e;
    transform: scale(1.05);
}

/* Chat Window */
.chat-bot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-bot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat Header */
.chat-bot-header {
    background-color: #0e76bc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-bot-close {
    cursor: pointer;
}

.chat-bot-close i {
    font-size: 18px;
}

/* Chat Messages */
.chat-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: #0e76bc;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Chat Input */
.chat-bot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-bot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-bot-send {
    background-color: #0e76bc;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-bot-send:hover {
    background-color: #0a5a8e;
}

/* Quick Options */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.chat-option-button {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-option-button:hover {
    background-color: #e1e1e1;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    align-self: flex-start;
    background-color: #f1f1f1;
    border-radius: 18px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-bottom-left-radius: 5px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
    animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
    animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

/* Contact Form Styles */
.chat-bot-contact-form {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: none;
}

.form-header {
    font-weight: bold;
    margin-bottom: 15px;
    color: #0e76bc;
    text-align: center;
}

.form-group2 {
    margin-bottom: 12px;
}

.form-group2 input,
.form-group2 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group2 input:focus,
.form-group2 textarea:focus {
    border-color: #0e76bc;
}

.form-group2 textarea {
    height: 80px;
    resize: none;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.chat-form-cancel,
.chat-form-submit {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.chat-form-cancel {
    background-color: #f1f1f1;
    color: #333;
}

.chat-form-submit {
    background-color: #0e76bc;
    color: white;
}

.chat-form-cancel:hover {
    background-color: #e1e1e1;
}

.chat-form-submit:hover {
    background-color: #0a5a8e;
}

.chat-form-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.form-status {
    margin-top: 10px;
    font-size: 14px;
}

.form-status .success-message {
    color: #28a745;
    padding: 5px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

.form-status .error-message {
    color: #dc3545;
    padding: 5px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

.form-status .info-message {
    color: #0e76bc;
    padding: 5px;
    background-color: rgba(14, 118, 188, 0.1);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .chat-bot-window {
        width: 300px;
        height: 450px;
        bottom: 70px;
        right: 0;
    }
}
