/* Chat footer - floating over conversation */
.chat-footer {
    padding: 24px;
    background: transparent;
    border-top: none;
    position: sticky;
    bottom: 0;
    box-shadow: none;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    padding-right: calc(var(--send-chat-msg-btn-size) + var(--send-chat-msg-btn-offset) + 12px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.15), var(--shadow-medium);
    transform: translateY(-2px);
}

.chat-input {
    background: transparent;
    border: none !important;
    padding: 18px 20px;
    width: 100%;
    resize: none;
    min-height: 64px;
    max-height: 240px;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1125rem;
    font-weight: 400;
    overflow-y: hidden;
    line-height: 1.7;
    letter-spacing: 0.005em;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 126, 232, 0.3) transparent;
}

.chat-input::-webkit-scrollbar {
    width: 6px;
}

.chat-input::-webkit-scrollbar-track {
    background: transparent;
}

.chat-input::-webkit-scrollbar-thumb {
    background-color: rgba(107, 126, 232, 0.3);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.chat-input::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 126, 232, 0.5);
}

.disclaimer {
    text-align: center;
    background: var(--chat-bg);
    padding: 12px 24px;
    margin: 0 -24px -24px -24px;  /* Extend to footer edges */
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 32px rgba(65, 105, 225, 0.1);
}

/* Hide disclaimer on mobile devices */
@media (max-width: 768px) {
    .disclaimer {
        display: none;
    }

    /* Mobile keyboard viewport handling */
    .chat-footer {
        /* Partial fix: Constrains footer height when keyboard appears
           Note: This doesn't prevent overlap - just limits footer expansion
           Full solution may require position: fixed or JS-based viewport detection */
        max-height: 100dvh;
        max-height: -webkit-fill-available;
    }

    .chat-input {
        /* Ensure textarea doesn't get hidden by keyboard */
        max-height: 200px;
    }
}
