/* Shakumbhri CRM Frontend Styles */

/* Lead Form */
.shakumbhri-lead-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.shakumbhri-lead-form h3 {
    color: #1a5f2a;
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.shakumbhri-lead-form .form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.shakumbhri-form-group {
    margin-bottom: 18px;
}

.shakumbhri-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.shakumbhri-form-group input,
.shakumbhri-form-group select,
.shakumbhri-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.shakumbhri-form-group input:focus,
.shakumbhri-form-group select:focus,
.shakumbhri-form-group textarea:focus {
    border-color: #2d8a3e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,138,62,0.1);
}

.shakumbhri-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.shakumbhri-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.shakumbhri-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,138,62,0.3);
}

.shakumbhri-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shakumbhri-form-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.shakumbhri-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.shakumbhri-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Chatbot */
.shakumbhri-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.shakumbhri-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(45,138,62,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.shakumbhri-chatbot-toggle:hover {
    transform: scale(1.1);
}

.shakumbhri-chatbot-container {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.shakumbhri-chatbot-container.active {
    display: flex;
}

.shakumbhri-chatbot-header {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shakumbhri-chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

.shakumbhri-chatbot-status {
    font-size: 11px;
    opacity: 0.8;
}

.shakumbhri-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.shakumbhri-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.shakumbhri-chat-message {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.shakumbhri-chat-message.user {
    background: #2d8a3e;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.shakumbhri-chat-message.ai {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shakumbhri-chat-message.ai strong {
    color: #1a5f2a;
}

.shakumbhri-chat-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shakumbhri-chat-action-btn {
    padding: 6px 12px;
    background: #f0f9f0;
    border: 1px solid #2d8a3e;
    color: #1a5f2a;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.shakumbhri-chat-action-btn:hover {
    background: #2d8a3e;
    color: white;
}

.shakumbhri-chatbot-input-area {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.shakumbhri-chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.shakumbhri-chatbot-input:focus {
    border-color: #2d8a3e;
}

.shakumbhri-chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d8a3e;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shakumbhri-chatbot-typing {
    display: none;
    padding: 10px;
}

.shakumbhri-chatbot-typing.active {
    display: block;
}

.shakumbhri-typing-dots {
    display: flex;
    gap: 4px;
}

.shakumbhri-typing-dots span {
    width: 8px;
    height: 8px;
    background: #2d8a3e;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.shakumbhri-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.shakumbhri-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* WhatsApp Button */
.shakumbhri-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.shakumbhri-whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Quote Tracker */
.shakumbhri-quote-tracker {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

.shakumbhri-quote-tracker h2 {
    color: #1a5f2a;
    text-align: center;
}

.shakumbhri-tracker-form {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.shakumbhri-tracker-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
}

.shakumbhri-tracker-form button {
    padding: 12px 24px;
    background: #1a5f2a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.shakumbhri-quote-result {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .shakumbhri-chatbot-container {
        width: calc(100vw - 40px);
        height: 70vh;
        right: -10px;
    }

    .shakumbhri-form-row {
        grid-template-columns: 1fr;
    }
}
