/* HerStartup Chatbot Styles */
/* Brand Colors: #FF8161 (Coral), #FEEBD3 (Light Cream), #2B4E6D (Dark Blue), #1B3857 (Darker Blue), #A9AEAD (Light Grey) */

.herstartup-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF8161 0%, #FFB366 50%, #2B4E6D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255, 129, 97, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 129, 97, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.chatbot-toggle::before {
    content: '💬';
}

.chatbot-toggle.active::before {
    content: '✕';
    font-size: 20px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: none;
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #FF8161 0%, #FFB366 50%, #2B4E6D 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(255, 129, 97, 0.3);
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-status::before {
    content: '●';
    color: #4CAF50;
    margin-right: 5px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #FEEBD3 0%, #FFF5E6 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbot-message.user {
    background: linear-gradient(135deg, #FF8161 0%, #FFB366 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(255, 129, 97, 0.3);
}

.chatbot-message.bot {
    background: white;
    color: #2B4E6D;
    align-self: flex-start;
    border: 1px solid rgba(255, 129, 97, 0.2);
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chatbot-message.bot ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chatbot-message.bot li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.chatbot-message.bot strong {
    color: #FF8161;
    font-weight: 600;
}

.chatbot-typing {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(255, 129, 97, 0.2);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    max-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chatbot-typing.active {
    display: flex;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #A9AEAD;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid rgba(255, 129, 97, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.chatbot-input {
    flex: 1;
    border: 2px solid rgba(255, 129, 97, 0.3);
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.chatbot-input:focus {
    border-color: #FF8161;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF8161 0%, #FFB366 50%, #2B4E6D 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 129, 97, 0.4);
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 129, 97, 0.6);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Lead capture form styles */
.lead-capture-form {
    padding: 20px;
    background: white;
}

.lead-capture-form h4 {
    color: #2B4E6D;
    margin: 0 0 15px 0;
    font-size: 16px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2B4E6D;
    font-size: 12px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #A9AEAD;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #FF8161;
}

.lead-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF8161 0%, #2B4E6D 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 129, 97, 0.4);
}

.lead-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Welcome message */
.welcome-message {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FEEBD3 0%, #FF8161 20%, #2B4E6D 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.welcome-message h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.welcome-message p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 480px) {
    .herstartup-chatbot {
        bottom: 10px;
        right: 10px;
    }
    
    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: -10px;
        bottom: 80px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #FEEBD3;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #A9AEAD;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #FF8161;
}
