:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #ff007a;
    --bg-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --text-color: #333;
    --bot-msg-bg: #f0f2f5;
    --user-msg-bg: #3a7bd5;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#regcheq-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-family);
}

#regcheq-chat-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-gradient);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#regcheq-chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
}

#regcheq-chat-launcher svg {
    fill: white;
    width: 30px;
    height: 30px;
}

#regcheq-chat-window {
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

#regcheq-chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#regcheq-chat-header {
    background: var(--bg-gradient);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#regcheq-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#regcheq-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fcfcfc;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.bot-msg {
    align-self: flex-start;
    background: var(--bot-msg-bg);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}

.user-msg {
    align-self: flex-end;
    background: var(--user-msg-bg);
    color: white;
    border-bottom-right-radius: 5px;
}

#regcheq-chat-input-container {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

#regcheq-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

#regcheq-chat-input:focus {
    border-color: var(--secondary-color);
}

#regcheq-chat-send {
    background: var(--bg-gradient);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#regcheq-chat-send:hover {
    transform: scale(1.1);
}

/* Contact Button in Header */
#contact-executive-btn {
    background: #1a237e; /* Dark Blue */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#contact-executive-btn:hover {
    background: #0d1440;
    transform: scale(1.05);
}

#contact-executive-btn.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    position: relative;
}

/* Hint Popup (Centered) - Now controlled by JS */
#regcheq-contact-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    width: 80%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Lead Form */
.lead-form-step {
    animation: slideIn 0.3s ease;
}

.lead-form-step p {
    margin-bottom: 10px;
}

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

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

/* Responsive */
@media (max-width: 480px) {
    #regcheq-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
    }
}
