/* Go High Level Chatbot Integration Styles */
/* Matches Paver Contractor Website Golden Yellow Branding */

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.6);
}

.chat-toggle.active {
    background: #dc3545;
    color: white;
    animation: none;
}

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

.chat-notification {
    font-size: 14px;
    white-space: nowrap;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(255, 193, 7, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4); }
}

.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #ffb300;
}

.chat-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(33, 37, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.chat-avatar i {
    font-size: 18px;
    color: #212529;
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-info .status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: #212529;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.chat-close:hover {
    background: rgba(33, 37, 41, 0.1);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #f8f9fa;
}

.chat-messages {
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    font-size: 14px;
    color: #212529;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    font-size: 14px;
}

.user-message .message-bubble {
    background: #ffc107;
    color: #212529;
    margin-left: auto;
}

.bot-message .message-bubble {
    background: white;
    color: #212529;
    border: 1px solid #e9ecef;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input-area input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option {
    border: 1px solid #ffc107 !important;
    color: #212529 !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
}

.chat-option:hover {
    background: #ffc107 !important;
    color: #212529 !important;
    transform: translateX(4px);
}

.contact-form {
    background: linear-gradient(135deg, #1a2633 0%, #0d1419 100%);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 193, 7, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-form .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
}

.contact-form .form-control {
    background: rgba(30, 40, 50, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 12px;
    color: #ffffff;
    font-weight: 500;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.contact-form .form-control:focus {
    background-color: rgba(30, 40, 50, 0.9);
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
        bottom: 20px;
        right: 20px;
        left: 20px;
        margin: auto;
    }
    
    .chat-toggle {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }
    
    .chat-notification {
        display: none;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
    }
    
    .chat-header {
        border-radius: 0;
    }
    
    .chat-footer {
        border-radius: 0;
    }
}

/* Dark theme support for consistency with website */
[data-bs-theme="dark"] .chat-window {
    background: #212529;
}

[data-bs-theme="dark"] .chat-body {
    background: #343a40;
}

[data-bs-theme="dark"] .message-bubble {
    background: #495057;
    color: white;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .bot-message .message-bubble {
    background: #495057;
    color: white;
}

[data-bs-theme="dark"] .chat-footer {
    background: #212529;
    border-top-color: #495057;
}

[data-bs-theme="dark"] .chat-input-area input {
    background: rgba(30, 40, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-bs-theme="dark"] .contact-form {
    background: linear-gradient(135deg, #1a2633 0%, #0d1419 100%);
    border-color: rgba(255, 193, 7, 0.15);
}

[data-bs-theme="dark"] .contact-form .form-label {
    color: #ffffff;
}

[data-bs-theme="dark"] .contact-form .form-control {
    background: rgba(30, 40, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}