/* Enhanced color scheme for better contrast and modern feel */

.chatbot_chatbot-toggler {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #007bff;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    z-index: 100000;
}
body.chatbot_show-chatbot {
    overflow: hidden;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.chatbot_chatbot-toggler:hover {
    background: #0069d9;
    transform: scale(1.1);
    animation: none;
}

.chatbot_show-chatbot .chatbot_chatbot-toggler {
    transform: rotate(45deg);
    z-index: 100000 !important;
}

.chatbot_chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    max-width: 95vw;
    background: #f9fafb;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    font-family: system-ui, -apple-system, sans-serif;
}

.chatbot_show-chatbot .chatbot_chatbot {
    transform: scale(1);
    z-index: 10000 !important;
}

.chatbot_chatbot header {
    background: #007bff;
    color: white;
    padding: 16px;
    text-align: center;
    position: relative;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: -1000rem 0 0 rgba(15, 70, 103, 0) inset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot_chatbot header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: white !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.chatbot_close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chatbot_close-btn:hover {
    color: #e6f0ff;
}

.chatbot_chatbox {
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    background: #ffffff;
}

.chatbot_chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #ffffff;
}

.chatbot_chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot_chat-messages::-webkit-scrollbar-track {
    background: #ffffff;
}

.chatbot_chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chatbot_chat-message {
    margin: 8px 12px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    animation: fadeIn 0.3s ease;
}

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

.chatbot_bot-message {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    color: #1f2937;
    align-self: flex-start;
    border-radius: 24px 24px 24px 6px;
}

.chatbot_user-message {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    align-self: flex-end;
    border-radius: 24px 24px 6px 24px;
}

.chatbot_chat-step, .chatbot_form-step, .chatbot_contact-form {
    display: none;
    flex-direction: column;
    margin: 8px 12px;
    transition: opacity 0.3s ease;
}

.chatbot_contact-form {
    padding: 0;
}

.chatbot_contact-success {
    margin: 8px 0;
    color: #12b76a;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.chatbot_option-btn, .chatbot_submit-btn, .chatbot_contact-submit-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 4px 0;
    text-align: center;
}

.chatbot_option-btn:hover, .chatbot_submit-btn:hover, .chatbot_contact-submit-btn:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.chatbot_button-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatbot_form-input {
    width: 100%;
    padding: 12px 16px;
    margin: 4px 0;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot_chat-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
    height: 40px;
    line-height: 1.4;
}

.chatbot_form-input:focus, .chatbot_chat-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transition: box-shadow 0.2s ease;
}

.chatbot_form-input:valid {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.chatbot_form-input:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.chatbot_details-preview {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 14px;
    color: #334155;
    margin: 8px 0;
    line-height: 1.5;
}

.chatbot_form-navigation {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.chatbot_back-btn, .chatbot_next-btn, .chatbot_contact-back-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot_back-btn, .chatbot_contact-back-btn {
    background: #6c757d;
    color: white;
}

.chatbot_next-btn {
    background: #007bff;
    color: white;
}

.chatbot_back-btn:hover, .chatbot_contact-back-btn:hover {
    background: #5a6268;
}

.chatbot_next-btn:hover {
    background: #0069d9;
}

.chatbot_calendar-input {
    width: 100%;
    padding: 12px 16px;
    margin: 4px 0;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 15px;
    background: #ffffff;
    cursor: pointer;
}

.chatbot_time-section {
    margin: 8px 0;
}

.chatbot_time-section h4 {
    font-size: 16px;
    margin: 8px 0;
    color: #334155;
    font-weight: 600;
}

.chatbot_selected-day {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    margin: 8px 0;
    text-align: center;
}

.chatbot_progress-bar {
    height: 4px;
    background: #007bff;
    transition: width 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.chatbot_loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 8px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chatbot_chat-input-container {
    display: flex;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    position: sticky;
    bottom: 0;
    z-index: 10;
}


.chatbot_send-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.chatbot_send-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
}

.chatbot_send-btn i {
    pointer-events: none;
}

@media (max-width: 450px) {
    .chatbot_chatbot {
        width: 100vw;
        max-width: 100%;
        height: 100dvh;
        right: 0;
        bottom: 0;
        border-radius: 0;
        transition: height 0.3s ease;
    }
    .chatbot_chatbox {
        max-height: calc(100dvh - 120px);
    }
    .chatbot_chat-messages {
        padding: 12px 10px;
    }
    .chatbot_chat-input-container {
        padding: 12px;
    }
    .chatbot_chat-input {
        flex-grow: 1;
        font-size: 16px;
    }
    .chatbot_send-btn {
        width: 48px;
        height: 48px;
    }
    .chatbot_chatbot-toggler {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    .chatbot_show-chatbot .chatbot_chatbot-toggler {
        display: none;
    }
}

.chatbot_home-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chatbot_home-btn:hover {
    color: #e6f0ff;
}

.chatbot_next-btn.disabled, .chatbot_submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Grid layout and card style for initial options */
.chatbot_button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.chatbot_option-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 100px;
    border-radius: 12px;
    background: #e6f0ff;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
}

.chatbot_option-card i {
    font-size: 24px;
    color: #007bff;
}

/* Footer action panel beneath chatbot
.chatbot_footer-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    padding: 8px 0;
    z-index: 1000;
}

.chatbot_footer-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #334155;
}

.chatbot_footer-btn i {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 4px;
} */
