:root {
    --scs-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --scs-secondary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --scs-bg: rgba(255, 255, 255, 0.8);
    --scs-glass-border: rgba(255, 255, 255, 0.4);
    --scs-text: #2d3436;
    --scs-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* CSS Reset for Widget */
#scs-chat-widget,
#scs-chat-widget *,
#scs-chat-widget *:before,
#scs-chat-widget *:after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
}

#scs-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

#scs-chat-toggle {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: var(--scs-primary-gradient);
    background-size: 200% 200%;
    animation: scs-gradient-move 5s ease infinite, scs-pulse 2s infinite;
    color: white !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scs-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scs-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#scs-chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

#scs-chat-container {
    width: 380px;
    height: 600px;
    background: var(--scs-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    box-shadow: var(--scs-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--scs-glass-border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    bottom: 85px;
    right: 0;
}

#scs-chat-widget.scs-chat-open #scs-chat-container {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

#scs-chat-header {
    background: var(--scs-primary-gradient);
    color: white !important;
    padding: 24px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0;
}

#scs-chat-header span {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: white !important;
}

#scs-chat-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    font-size: 20px !important;
    transition: background 0.2s;
}

#scs-chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scs-message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.scs-bot-message {
    align-self: flex-start;
    background: white !important;
    color: var(--scs-text) !important;
    border-bottom-left-radius: 4px;
}

.scs-user-message {
    align-self: flex-end;
    background: var(--scs-primary-gradient) !important;
    color: white !important;
    border-bottom-right-radius: 4px;
}

#scs-chat-quick-actions {
    display: flex !important;
    gap: 10px;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.scs-quick-btn {
    flex: 1;
    background: white !important;
    border: 1px solid rgba(118, 75, 162, 0.15) !important;
    color: #764ba2 !important;
    padding: 10px 5px !important;
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
}

.scs-quick-btn:hover {
    background: var(--scs-primary-gradient) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.2);
}

#scs-chat-input-container {
    padding: 20px 24px;
    background: white;
    display: flex !important;
    gap: 12px;
    align-items: center !important;
    flex-shrink: 0;
}

#scs-chat-input {
    flex: 1;
    height: 48px !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 16px !important;
    padding: 0 16px !important;
    background: #f8f9fa !important;
    font-size: 14px !important;
    color: var(--scs-text) !important;
}

#scs-chat-send {
    background: var(--scs-primary-gradient) !important;
    color: white !important;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

#scs-chat-leads-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
}

#scs-chat-leads-container.visible {
    transform: translateY(0);
}

.scs-lead-input-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.scs-lead-input-group input,
.scs-lead-input-group textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #efefef !important;
    border-radius: 14px !important;
    background: #fcfcfc !important;
    font-size: 14px !important;
    color: var(--scs-text) !important;
}

.scs-lead-submit {
    flex: 1;
    height: 50px !important;
    background: var(--scs-primary-gradient) !important;
    color: white !important;
    border-radius: 16px !important;
    cursor: pointer;
    font-weight: 600 !important;
}

.scs-lead-cancel {
    flex: 1;
    height: 50px !important;
    background: #f8f9fa !important;
    color: #636e72 !important;
    border-radius: 16px !important;
    cursor: pointer;
}