/* In-Chat Form Styles */
.chat-form {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 90%;
    align-self: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-form h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.chat-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-form input:focus {
    border-color: var(--primary-blue);
}

.chat-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-chat-submit {
    flex: 1;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-chat-submit:hover {
    background: #0062cc;
}

.btn-chat-cancel {
    flex: 1;
    background: #e5e5e5;
    /* Darker gray background for visibility */
    color: #333;
    /* Explicit dark color */
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    /* Ensure text is centered */
    display: block;
    /* Ensure it takes space */
}

.btn-chat-cancel:hover {
    background: #ebebeb;
}

/* Success State */
.transfer-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
}

.transfer-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-chat-cancel-transfer {
    background: #fff0f0;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background 0.2s;
}

.btn-chat-cancel-transfer:hover {
    background: #ffebee;
}